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@341 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
f24301e7c7
commit
aa6f3b6bf6
3 changed files with 9 additions and 5 deletions
|
|
@ -91,7 +91,7 @@ function loadTreeMenu(url, menu_id, zone_id, title, callback_func, manual_select
|
|||
}
|
||||
|
||||
// 트리메뉴 XML정보를 이용해서 정해진 zone에 출력
|
||||
var manual_select_node_srl = 0;
|
||||
var manual_select_node_srl = '';
|
||||
function drawTreeMenu(oXml, callback_func, resopnse_tags, null_func, param) {
|
||||
var xmlDoc = oXml.getResponseXml();
|
||||
if(!xmlDoc) return null;
|
||||
|
|
@ -144,7 +144,7 @@ function drawNode(parent_node, menu_id) {
|
|||
// url을 확인하여 현재의 url과 동일하다고 판단되면 manual_select_node_srl 에 값을 추가
|
||||
if(node_callback_func[menu_id] == moveTreeMenu && url) {
|
||||
if(typeof(zbfe_url)!="undefined" && zbfe_url==url) manual_select_node_srl = node_srl;
|
||||
else if(location.href.indexOf(url) != -1) manual_select_node_srl = node_srl;
|
||||
else if(location.href == url) manual_select_node_srl = node_srl;
|
||||
}
|
||||
|
||||
// 자식 노드가 있는지 확인
|
||||
|
|
|
|||
|
|
@ -11,7 +11,9 @@
|
|||
{$content}
|
||||
<div style="margin-top:20px;">
|
||||
<!--@foreach($bottom_menu->list as $key => $val)-->
|
||||
<a href="#" onclick="location.href='{$val['url']}';return false;">{$val['text']}</a>
|
||||
<span <!--@if($zbfe_url==$val['url'])-->style="font-weight:bold;"<!--@end-->>
|
||||
<a href="#" onclick="location.href='{$val['href']}';return false;">{$val['text']}</a>
|
||||
</span>
|
||||
<!--@end-->
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -296,12 +296,14 @@
|
|||
|
||||
if($menu_srl&&$tree[$menu_srl]) $child_buff = $this->getPhpCacheCode($tree[$menu_srl], $tree);
|
||||
|
||||
if($node->url && !strpos($node->url, '://')) $node->url = "./?".$node->url;
|
||||
if($node->url && !strpos($node->url, '://')) $node->href = "./?".$node->url;
|
||||
else $node->href = $node->url;
|
||||
|
||||
$attribute = sprintf(
|
||||
'"node_srl"=>"%s","text"=>"%s","url"=>"%s","open_window"=>"%s","normal_btn"=>"%s","hover_btn"=>"%s","active_btn"=>"%s","group_srls"=>array(%s),%s',
|
||||
'"node_srl"=>"%s","text"=>"%s","href"=>"%s","url"=>"%s","open_window"=>"%s","normal_btn"=>"%s","hover_btn"=>"%s","active_btn"=>"%s","group_srls"=>array(%s),%s',
|
||||
$node->menu_srl,
|
||||
str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->name),
|
||||
str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->href),
|
||||
str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->url),
|
||||
$node->open_window,
|
||||
str_replace(array('&','"','<','>'),array('&','"','<','>'),$node->normal_btn),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue