diff options
author | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-15 15:08:54 +0000 |
---|---|---|
committer | osmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2007-02-15 15:08:54 +0000 |
commit | bb477a6e32047142a526ce6be933d8187ddbe162 (patch) | |
tree | 9a04aa75f09c512e2ff7b22b405a9cb548220d1e /frontends/php | |
parent | 52ca3469297bc11ea8776265b7fc6c46b72ba38b (diff) | |
download | zabbix-bb477a6e32047142a526ce6be933d8187ddbe162.tar.gz zabbix-bb477a6e32047142a526ce6be933d8187ddbe162.tar.xz zabbix-bb477a6e32047142a526ce6be933d8187ddbe162.zip |
- added highlighting for second level menu (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3833 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
-rw-r--r-- | frontends/php/css.css | 4 | ||||
-rw-r--r-- | frontends/php/include/page_header.php | 9 |
2 files changed, 11 insertions, 2 deletions
diff --git a/frontends/php/css.css b/frontends/php/css.css index 8b831761..aac21e68 100644 --- a/frontends/php/css.css +++ b/frontends/php/css.css @@ -594,6 +594,10 @@ table.sub_menu tr td padding-bottom: 0px; } +table.sub_menu tr td span.active a +{ + color: #ffcc00; +} /**************** FORM ELEMENTS ****************/ .biginput diff --git a/frontends/php/include/page_header.php b/frontends/php/include/page_header.php index ff21e5c5..cb8dad53 100644 --- a/frontends/php/include/page_header.php +++ b/frontends/php/include/page_header.php @@ -252,7 +252,7 @@ COpt::profiling_start("page"); // End of check permissions unset($menu_url); - foreach($sub['pages'] as $sub_pages) + foreach($sub['pages'] as $id => $sub_pages) { if($page['file'] == $sub_pages['url']) @@ -280,6 +280,8 @@ COpt::profiling_start("page"); if(isset($menu_url)) /* active menu */ { + $sub['pages'][$id]['active'] = true; /* mark as active */ + $class = "active"; update_profile('web.menu.'.$label.'.last', $menu_url); @@ -294,8 +296,11 @@ COpt::profiling_start("page"); { if(!isset($sub_pages['label'])) continue; + $label = new CLink($sub_pages['label'], $sub_pages['url'],'highlight'); + if(isset($sub_pages['active'])) $label = new CSpan($label, 'active'); + array_push($sub_menu_row, - new CLink($sub_pages['label'], $sub_pages['url'],'highlight'), + $label, new CSpan(SPACE.SPACE.'|'.SPACE.SPACE, 'divider') ); } |