Ignore:
Timestamp:
07/02/10 13:59:24 (14 years ago)
Author:
amuller
Message:

Ticket #1124 - Configurando a página a validação w3c

File:
1 edited

Legend:

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

    r2623 r2991  
    4444 
    4545        if ( $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'click_or_onmouseover' ] == 'onmouseover' ) 
    46                 $show_menu_event = 'onMouseOver'; 
     46                $show_menu_event = 'onmouseover'; 
    4747        else 
    48                 $show_menu_event = 'onClick'; 
     48                $show_menu_event = 'onclick'; 
    4949 
    5050        $applications = ''; 
     
    8282 
    8383                        $icon .= "{$indent}\t\t\t\t" . '<img id="'.str_replace('_','',$app).'id" src="' . $app_data['icon'] . '" alt="' . $title . '" title="'. $title 
    84                                 . '" border="0" width="' . ( $current_app ? 35 : 24 ) . '" height="' . ( $current_app ? 35 : 24 ) . '" nowrap="nowrap"/>' 
     84                                . '" border="0" width="' . ( $current_app ? 35 : 24 ) . '" height="' . ( $current_app ? 35 : 24 ) . '"/>' 
    8585                                . "{$indent}\t\t\t</a>"; 
    8686 
     
    105105                                        $tdwidth = 100 / ( $max_icons + 2 ); 
    106106 
    107                                 $app_icons .= "{$indent}\t\t" . '<td nowrap class="navbar_but' . ( $current_app ? 'Out' : '' ) . '">'; 
     107                                $app_icons .= "{$indent}\t\t" . '<td nowrap="nowrap" class="navbar_but' . ( $current_app ? 'Out' : '' ) . '">'; 
    108108 
    109109                                if ( isset( $GLOBALS['phpgw_info']['flags']['navbar_target'] ) && $GLOBALS['phpgw_info']['flags']['navbar_target'] ) 
     
    115115 
    116116 
    117                         $icon = "{$indent}\t\t\t" . '<img align="center" src="' . $app_data['icon'] . '" alt="' . $title . '" width="16" title="'. $title . '" border="0" />'; 
     117                        $icon = "{$indent}\t\t\t" . '<img align="middle" src="' . $app_data['icon'] . '" alt="' . $title . '" width="16" title="'. $title . '" border="0" />'; 
    118118 
    119119                        $app_extra_icons .= "{$indent}<tr>"; 
     
    147147        } 
    148148 
    149         $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'java_script' ] .= "\n\t\t<script>\n\t\t\t" 
     149        $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'java_script' ] .= "\n\t\t<script type=\"text/javascript\">\n\t\t\t" 
    150150                . 'var curr_app = "' . ( ( $curr_app ) ? str_replace( '_','',$curr_app ) . 'id' : '' ) . '";' . "\n\t\t" 
    151151                . '</script>'; 
     
    157157                $icon = '<img id="logout_id" width="24" height="24" src="' 
    158158                        . $GLOBALS[ 'phpgw_info' ][ 'navbar' ][ 'logout' ][ 'icon' ] 
    159                         . '" alt="' . $hint . '" title="' . $hint . '">'; 
     159                        . '" alt="' . $hint . '" title="' . $hint . '"/>'; 
    160160 
    161161                if ( $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'navbar_format' ] == 'icons' ) 
     
    164164                        $icon = ''; 
    165165 
    166                 $app_icons .= '<td nowrap class="navbar_but"><a onclick="location.href=\'' 
    167                         . $GLOBALS[ 'phpgw_info' ][ 'navbar' ][ 'logout' ][ 'url' ] . '\'">' . $icon . '</td>'; 
     166                $app_icons .= '<td nowrap="nowrap" class="navbar_but"><a onclick="location.href=\'' 
     167                        . $GLOBALS[ 'phpgw_info' ][ 'navbar' ][ 'logout' ][ 'url' ] . '\'">' . $icon . '</a></td>'; 
    168168        } 
    169169 
     
    171171 
    172172        $hint = $GLOBALS['phpgw_info']['navbar']['logout']['title']; 
    173         $icon = "{$indent}\t\t\t" . '<img src="'.$GLOBALS['phpgw_info']['navbar']['logout']['icon'].'"  alt="'.$hint.'" title="'.$hint.'">'; 
     173        $icon = "{$indent}\t\t\t" . '<img src="'.$GLOBALS['phpgw_info']['navbar']['logout']['icon'].'"  alt="'.$hint.'" title="'.$hint.'"/>'; 
    174174        $title = $GLOBALS['phpgw_info']['navbar']['logout']['title']; 
    175175 
     
    181181                . "{$indent}\t</td>{$indent}</tr>"; 
    182182 
    183         $app_extra_icons_div = '<script language="javascript">' . "\n\t\t" 
     183        $app_extra_icons_div = '<script type="text/javascript">' . "\n\t\t" 
    184184                . '     new ypSlideOutMenu( "menu1", "down", 5, 24, 160, 200, "left" );' . "\n\t\t" 
    185185                . '</script>' . "\n\t\t" 
     
    191191                . '                                     <td colspan="2" nowrap="nowrap" align="right" style="background-color:#dddddd;padding:1px;">' . "\n\t\t" 
    192192                . '                                             <a ' . $show_menu_event . '="ypSlideOutMenu.hide(\'menu1\')" title="' . lang('close') . '">' . "\n\t\t" 
    193                 . '                                                     <img style="" border="0" src="' . $var[ 'img_root' ] . '/close.png"/>' . "\n\t\t" 
     193                . '                                                     <img style="" alt="close" border="0" src="' . $var[ 'img_root' ] . '/close.png"/>' . "\n\t\t" 
    194194                . '                                             </a>' . "\n\t\t" 
    195195                . '                                     </td>' . "\n\t\t" 
     
    198198                . '                                     <td colspan="1" valign="top" nowrap="nowrap" align="left" style="background-color:#dddddd;padding:1px;">' . "\n\t\t" 
    199199                . '                                             <a href="javascript:ypSlideOutMenu.hide(\'menu1\');showBar()" title="'.lang('Expand Menu').'">' . "\n\t\t" 
    200                 . '                                                     <img src = "' . $var[ 'img_root' ] . '/down.button.png"></a>' . "\n\t\t" 
     200                . '                                                     <img src="' . $var[ 'img_root' ] . '/down.button.png" alt="down"/></a>' . "\n\t\t" 
    201201                . '                                     </td>' . "\n\t\t" 
    202202                . '                                     <td colspan="1" valign="top" nowrap="nowrap" align="left" style="background-color:#dddddd;padding:1px;">' . "\n\t\t" 
     
    214214        $var['app_extra_icons_icon'] = '<td width="26" valign="top" align="right" style="zIndex:10000;padding-right:3px;padding-top:10px;">' 
    215215                . $indent . '<a title="' . lang( 'show_more_apps' ) . '" ' . $show_menu_event . '="ypSlideOutMenu.showMenu(\'menu1\')">' 
    216                 . "{$indent}\t" . '<img src="' . $var[ 'img_root' ] . '/extra_icons.png" border="0" />' 
     216                . "{$indent}\t" . '<img src="' . $var[ 'img_root' ] . '/extra_icons.png" alt="'. lang( 'show_more_apps' ) .'" border="0" />' 
    217217                . "{$indent}</a>\n\t\t\t\t\t" 
    218218                . '</td>'; 
     
    255255                                        $agreeterm_url = 'http://' . $agreeterm_url; 
    256256 
    257                                 echo '<script>' . 
     257                                echo '<script type="text/javascript">' . 
    258258                                        'if(location.href.indexOf("termo_aceite.php") == -1){' . 
    259259                                        'location.href = "' . $agreeterm_url . '"' . 
     
    272272                                        $changepasswd_url = 'http://' . $changepasswd_url; 
    273273 
    274                                 echo '<script>' . 
     274                                echo '<script type="text/javascript">' . 
    275275                                        'if(location.href.indexOf("changepassword.php") == -1){' . 
    276276                                        'location.href = "' . $changepasswd_url . '"' . 
Note: See TracChangeset for help on using the changeset viewer.