mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-05 01:52:17 +09:00
menu에서 parent_srl을 추가 반환
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3394 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
c2c9f8c018
commit
a1ea7634f9
1 changed files with 31 additions and 29 deletions
|
|
@ -349,19 +349,20 @@
|
||||||
if($group_srls) $group_check_code = sprintf('($_SESSION["is_admin"]==true||(is_array($_SESSION["group_srls"])&&count(array_intersect($_SESSION["group_srls"], array(%s)))))',$group_srls);
|
if($group_srls) $group_check_code = sprintf('($_SESSION["is_admin"]==true||(is_array($_SESSION["group_srls"])&&count(array_intersect($_SESSION["group_srls"], array(%s)))))',$group_srls);
|
||||||
else $group_check_code = "true";
|
else $group_check_code = "true";
|
||||||
$attribute = sprintf(
|
$attribute = sprintf(
|
||||||
'node_srl="%s" text="<?php if(%s) { %s }?>" url="<?php print(%s?"%s":"")?>" href="<?php print(%s?"%s":"")?>" open_window="%s" expand="%s" normal_btn="%s" hover_btn="%s" active_btn="%s" ',
|
'node_srl="%s" parent_srl="%s" text="<?php if(%s) { %s }?>" url="<?php print(%s?"%s":"")?>" href="<?php print(%s?"%s":"")?>" open_window="%s" expand="%s" normal_btn="%s" hover_btn="%s" active_btn="%s" ',
|
||||||
$menu_item_srl,
|
$menu_item_srl,
|
||||||
$group_check_code,
|
$node->parent_srl,
|
||||||
$name_str,
|
$group_check_code,
|
||||||
$group_check_code,
|
$name_str,
|
||||||
$url,
|
$group_check_code,
|
||||||
$group_check_code,
|
$url,
|
||||||
$href,
|
$group_check_code,
|
||||||
$open_window,
|
$href,
|
||||||
$expand,
|
$open_window,
|
||||||
$normal_btn,
|
$expand,
|
||||||
$hover_btn,
|
$normal_btn,
|
||||||
$active_btn
|
$hover_btn,
|
||||||
|
$active_btn
|
||||||
);
|
);
|
||||||
|
|
||||||
if($child_buff) $buff .= sprintf('<node %s>%s</node>', $attribute, $child_buff);
|
if($child_buff) $buff .= sprintf('<node %s>%s</node>', $attribute, $child_buff);
|
||||||
|
|
@ -417,22 +418,23 @@
|
||||||
|
|
||||||
// 속성을 생성한다 ( url_list를 이용해서 선택된 메뉴의 노드에 속하는지를 검사한다. 꽁수지만 빠르고 강력하다고 생각;;)
|
// 속성을 생성한다 ( url_list를 이용해서 선택된 메뉴의 노드에 속하는지를 검사한다. 꽁수지만 빠르고 강력하다고 생각;;)
|
||||||
$attribute = sprintf(
|
$attribute = sprintf(
|
||||||
'"node_srl"=>"%s","text"=>(%s?$_menu_names[%d][$lang_type]:""),"href"=>(%s?"%s":""),"url"=>(%s?"%s":""),"open_window"=>"%s","normal_btn"=>"%s","hover_btn"=>"%s","active_btn"=>"%s","selected"=>(array(%s)&&in_array(Context::get("mid"),array(%s))?1:0),"expand"=>"%s", "list"=>array(%s)',
|
'"node_srl"=>"%s","parent_srl"=>"%s","text"=>(%s?$_menu_names[%d][$lang_type]:""),"href"=>(%s?"%s":""),"url"=>(%s?"%s":""),"open_window"=>"%s","normal_btn"=>"%s","hover_btn"=>"%s","active_btn"=>"%s","selected"=>(array(%s)&&in_array(Context::get("mid"),array(%s))?1:0),"expand"=>"%s", "list"=>array(%s)',
|
||||||
$node->menu_item_srl,
|
$node->menu_item_srl,
|
||||||
$group_check_code,
|
$node->parent_srl,
|
||||||
$node->menu_item_srl,
|
$group_check_code,
|
||||||
$group_check_code,
|
$node->menu_item_srl,
|
||||||
$href,
|
$group_check_code,
|
||||||
$group_check_code,
|
$href,
|
||||||
$url,
|
$group_check_code,
|
||||||
$open_window,
|
$url,
|
||||||
$normal_btn,
|
$open_window,
|
||||||
$hover_btn,
|
$normal_btn,
|
||||||
$active_btn,
|
$hover_btn,
|
||||||
$selected,
|
$active_btn,
|
||||||
$selected,
|
$selected,
|
||||||
$expand,
|
$selected,
|
||||||
$child_buff
|
$expand,
|
||||||
|
$child_buff
|
||||||
);
|
);
|
||||||
|
|
||||||
// buff 데이터를 생성한다
|
// buff 데이터를 생성한다
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue