Changeset 2505


Ignore:
Timestamp:
04/13/10 15:18:25 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Destacando o ícone do módulo quando o mesmo é acionado na barra.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/templates/default/navbar.inc.php

    r1705 r2505  
    7373                                        $title = $GLOBALS['phpgw_info']['apps'][$app]['title']; 
    7474                                        if($app == 'home') $title = lang('Home'); 
     75 
    7576                                        if ($GLOBALS['phpgw_info']['flags']['currentapp'] == $app) 
    7677                                        { 
    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>'; 
    7878                                                $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>'; 
    8284 
    8385                                        if($app=='home') 
     
    112114                                                } 
    113115                                                 
    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':'').'">'; 
    118122 
    119123                                                if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target']) 
Note: See TracChangeset for help on using the changeset viewer.