mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@316 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6c4afb721d
commit
73539eeb2b
5 changed files with 76 additions and 56 deletions
|
|
@ -10,9 +10,9 @@
|
|||
|
||||
// 아이콘을 미리 생성해 놓음
|
||||
var tree_folder_icon = new Image();
|
||||
tree_folder_icon.src = "./common/tpl/images/folder.gif";
|
||||
tree_folder_icon.src = "./common/tpl/images/page.gif";
|
||||
var tree_open_folder_icon = new Image();
|
||||
tree_open_folder_icon.src = "./common/tpl/images/imgfolder.gif";
|
||||
tree_open_folder_icon.src = "./common/tpl/images/page.gif";
|
||||
|
||||
var tree_minus_icon = new Image();
|
||||
tree_minus_icon.src = "./common/tpl/images/minus.gif";
|
||||
|
|
@ -119,10 +119,10 @@ function drawNode(parent_node, menu_id) {
|
|||
if(hasChild) {
|
||||
if(!hasNextSibling) {
|
||||
line_icon = "minus";
|
||||
folder_icon = "folder";
|
||||
folder_icon = "page";
|
||||
} else {
|
||||
line_icon = "minusbottom";
|
||||
folder_icon = "folder";
|
||||
folder_icon = "page";
|
||||
}
|
||||
} else {
|
||||
if(hasNextSibling) {
|
||||
|
|
|
|||
|
|
@ -31,4 +31,6 @@
|
|||
$lang->about_menu_open_window = '메뉴 선택시 새창으로 띄울 것인지를 정할 수 있습니다';
|
||||
$lang->about_menu_img_btn = '이미지 버튼을 등록하시면 레이아웃에서 자동으로 이미지 버튼으로 교체되어 표시가 됩니다.';
|
||||
$lang->about_menu_group_srls = '그룹을 선택하시면 해당 그룹의 사용자만 메뉴가 보이게 됩니다. (xml파일을 직접 열람하면 노출이 됩니다)';
|
||||
|
||||
$lang->msg_cannot_delete_for_child = '하부 메뉴가 있는 메뉴는 삭제하실 수 없습니다';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -105,8 +105,15 @@
|
|||
$node_info = $oLayoutModel->getLayoutMenuInfo($args->menu_srl);
|
||||
if($node_info->parent_srl) $parent_srl = $node_info->parent_srl;
|
||||
|
||||
// DB에서 삭제
|
||||
$oDB = &DB::getInstance();
|
||||
|
||||
// 자식 노드가 있는지 체크
|
||||
$output = $oDB->executeQuery('layout.getChildMenuCount', $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
if($output->data->count>0) return new Object(-1, msg_cannot_delete_for_child);
|
||||
|
||||
// DB에서 삭제
|
||||
$output = $oDB->executeQuery("layout.deleteLayoutMenu", $args);
|
||||
if(!$output->toBool()) return $output;
|
||||
|
||||
|
|
|
|||
11
modules/layout/queries/getChildMenuCount.xml
Normal file
11
modules/layout/queries/getChildMenuCount.xml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<query id="getChildMenuCount" action="select">
|
||||
<tables>
|
||||
<table name="layout_menu" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="count(*)" alias="count" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="parent_srl" var="menu_srl" filter="number" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
@ -19,7 +19,7 @@ function completeInsertLayoutMenu(ret_obj) {
|
|||
}
|
||||
}
|
||||
|
||||
/* 레이아웃 멘뉴 삭제 */
|
||||
/* 레이아웃 메뉴 삭제 */
|
||||
function doDeleteLayoutMenu(menu_srl, menu_id) {
|
||||
var fo_obj = xGetElementById("fo_"+menu_id);
|
||||
if(!fo_obj) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue