- Timestamp:
- 04/13/10 15:18:25 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpgwapi/templates/default/navbar.inc.php
r1705 r2505 73 73 $title = $GLOBALS['phpgw_info']['apps'][$app]['title']; 74 74 if($app == 'home') $title = lang('Home'); 75 75 76 if ($GLOBALS['phpgw_info']['flags']['currentapp'] == $app) 76 77 { 77 $icon .= '<img id="'.str_replace('_','',$app).'id" src="' . $app_data['icon'] . '" alt="' . $title . '" title="'. $title . '" border="0" width="35" height="35" nowrap="nowrap"/></a>';78 78 $current_app = True; 79 } 80 else 81 $icon .= '<img id="'.str_replace('_','',$app).'id" src="' . $app_data['icon'] . '" alt="' . $title . '" title="'. $title . '" border="0" width="24" height="24" nowrap="nowrap"/></a>'; 79 echo '<script>var curr_app = "' . str_replace('_','',$app) . 'id";</script>'; 80 } 81 82 $icon .= '<img id="'.str_replace('_','',$app).'id" src="' . $app_data['icon'] . '" alt="' . $title . '" title="'. $title 83 . '" border="0" width="'.($current_app ? 35 : 24 ).'" height="'.($current_app ? 35 : 24 ).'" nowrap="nowrap"/></a>'; 82 84 83 85 if($app=='home') … … 112 114 } 113 115 114 $app_icons .= '<td nowrap '. 115 'onmouseover="javascript:'.($current_app?'return true;':'').'this.className=\'navbar_butOver\'; zoom_in(this.firstChild.firstChild.id)" '. 116 'onmouseout="javascript:'.($current_app?'return true;':'').'this.className=\'navbar_but\'; '.($current_app?'':'zoom_out(this.firstChild.firstChild.id)').'" '. 117 'class="'.($current_app?'navbar_butOut':'navbar_but').'">'; 116 $app_icons .= '<td nowrap' 117 . ' onmouseover="if ( this.className != \'navbar_butOut\'){this.className=\'navbar_butOver\'; zoom_in(this.firstChild.firstChild.id);}"' 118 . ' onmouseout="if ( this.className != \'navbar_butOut\'){this.className=\'navbar_but\'; zoom_out(this.firstChild.firstChild.id);}"' 119 . ' onclick="if ( this.className != \'navbar_butOut\'){this.className=\'navbar_butOut\'; zoom_out(curr_app);' 120 . 'document.getElementById(curr_app).parentNode.parentNode.className=\'navbar_but\';curr_app=\'' . str_replace('_','',$app) . 'id\'}"' 121 . ' class="navbar_but'.($current_app?'Out':'').'">'; 118 122 119 123 if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target'])
Note: See TracChangeset
for help on using the changeset viewer.