mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-01 00:02:21 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@329 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
79ac997400
commit
1a62c23c70
5 changed files with 42 additions and 9 deletions
|
|
@ -242,6 +242,7 @@
|
|||
|
||||
$tree[$parent_srl][$menu_srl] = $node;
|
||||
}
|
||||
|
||||
|
||||
// 파일 생성
|
||||
$xml_buff = "<root>".$this->getXmlTree($tree[0], $tree)."</root>";
|
||||
|
|
@ -261,9 +262,21 @@
|
|||
$child_buff = "";
|
||||
|
||||
if($menu_srl&&$tree[$menu_srl]) $child_buff = $this->getXmlTree($tree[$menu_srl], $tree);
|
||||
|
||||
$attribute = sprintf(
|
||||
'node_srl="%s" text="%s" url="%s" open_window="%s" normal_btn="%s" hover_btn="%s" active_btn="%s" group_srls="%s"',
|
||||
$node->menu_srl,
|
||||
str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->name),
|
||||
str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->url),
|
||||
$node->open_window,
|
||||
str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->normal_btn),
|
||||
str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->hover_btn),
|
||||
str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->active_btn),
|
||||
$node->group_srls
|
||||
);
|
||||
|
||||
if($child_buff) $buff .= sprintf('<node node_srl="%s" text="%s">%s</node>', $node->menu_srl, $node->name, $child_buff);
|
||||
else $buff .= sprintf('<node node_srl="%s" text="%s" />', $node->menu_srl, $node->name);
|
||||
if($child_buff) $buff .= sprintf('<node %s>%s</node>', $attribute, $child_buff);
|
||||
else $buff .= sprintf('<node %s />', $attribute);
|
||||
}
|
||||
return $buff;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue