Changeset 2623 for trunk/phpgwapi


Ignore:
Timestamp:
04/23/10 10:41:56 (14 years ago)
Author:
rodsouza
Message:

Ticket #1009 - Organizando o HTML do template default.

Location:
trunk/phpgwapi
Files:
11 edited

Legend:

Unmodified
Added
Removed
  • trunk/phpgwapi/inc/class.common.inc.php

    r2616 r2623  
    399399                                        $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 'cookieManager', 'phpgwapi/templates/' . $GLOBALS['phpgw_info']['server']['template_set'] ); 
    400400 
    401                                         $this -> phpgw_header( ); 
     401                                        $this -> phpgw_header( $module_content ); 
    402402                                } 
    403403                                else 
     404                                { 
    404405                                        echo $this -> get_java_script( ); 
    405  
    406                                 echo $module_content; 
     406                                        echo $module_content; 
     407                                } 
    407408 
    408409                                /*if (is_object($GLOBALS['phpgw']->accounts)) 
     
    12071208                        if ($GLOBALS['phpgw_info']['flags']['currentapp'] == 'home' || $GLOBALS['phpgw_info']['flags']['currentapp'] == 'preferences' || $GLOBALS['phpgw_info']['flags']['currentapp'] == 'about') 
    12081209                        { 
    1209                                 $app = $app_title = 'eGroupWare'; 
     1210                                $app = $app_title = ':: ExpressoLivre ::'; 
    12101211                        } 
    12111212                        else 
     
    12501251                @abstract load the phpgw header 
    12511252                */ 
    1252                 function phpgw_header() 
     1253                function phpgw_header( $content ) 
    12531254                { 
    12541255                        // add a content-type header to overwrite an existing default charset in apache (AddDefaultCharset directiv) 
    1255                         header('Content-type: text/html; charset='.$GLOBALS['phpgw']->translation->charset()); 
     1256                        header( "Content-type: text/html; charset={$GLOBALS[ 'phpgw' ] -> translation -> charset( )}" ); 
    12561257 
    12571258                        $path = PHPGW_INCLUDE_ROOT . '/phpgwapi/templates/' . $GLOBALS['phpgw_info']['server']['template_set']; 
    12581259 
    1259                         include_once( "{$path}/head.inc.php" ); 
    1260  
    12611260                        $this -> navbar( false ); 
    12621261 
    12631262                        include_once( "{$path}/navbar.inc.php" ); 
    12641263 
    1265                         if (!@$GLOBALS['phpgw_info']['flags']['nonavbar'] && !@$GLOBALS['phpgw_info']['flags']['navbar_target']) 
    1266                                 echo parse_navbar(); 
     1264                        if ( ! @$GLOBALS['phpgw_info']['flags']['nonavbar'] && !@$GLOBALS['phpgw_info']['flags']['navbar_target']) 
     1265                        { 
     1266                                parse_navbar( ); 
     1267                                $content = ob_get_contents( ) . $content; 
     1268                                ob_clean( ); 
     1269 
     1270                                parse_navbar_end( ); 
     1271                                $content .= ob_get_contents( ) . "\t"; 
     1272                                ob_clean( ); 
     1273                        } 
     1274 
     1275                        require_once "{$path}/head.inc.php"; 
    12671276                } 
    12681277 
    12691278                function phpgw_footer() 
    12701279                { 
    1271                         if (!defined('PHPGW_FOOTER')) 
    1272                         { 
    1273                                 define('PHPGW_FOOTER',True); 
    1274                                 if (!isset($GLOBALS['phpgw_info']['flags']['nofooter']) || !$GLOBALS['phpgw_info']['flags']['nofooter']) 
    1275                                 { 
    1276                                         include(PHPGW_API_INC . '/footer.inc.php'); 
    1277                                 } 
     1280                        if ( ! defined( 'PHPGW_FOOTER' ) ) 
     1281                        { 
     1282                                define( 'PHPGW_FOOTER', true ); 
     1283                                if ( ! isset( $GLOBALS['phpgw_info']['flags']['nofooter']) || !$GLOBALS['phpgw_info']['flags']['nofooter'] ) 
     1284                                        include_once PHPGW_API_INC . '/footer.inc.php'; 
    12781285                        } 
    12791286                } 
     
    12941301                        $tpl->set_var($GLOBALS['phpgw_info']['theme']); 
    12951302                        $app_css = ''; 
     1303 
    12961304                        if(@isset($_GET['menuaction'])) 
    12971305                        { 
     
    13031311                                } 
    13041312                        } 
    1305                         if (isset($GLOBALS['phpgw_info']['flags']['css'])) 
    1306                         { 
     1313 
     1314                        if ( isset( $GLOBALS['phpgw_info']['flags']['css'] ) ) 
    13071315                                $app_css .= $GLOBALS['phpgw_info']['flags']['css']; 
    1308                         } 
    1309                         $tpl->set_var('app_css', $app_css); 
     1316 
     1317                        $tpl->set_var( 'app_css', $app_css ); 
    13101318 
    13111319                        // search for app specific css file 
     
    13181326                                $path = PHPGW_SERVER_ROOT . str_replace( '/', SEP, $css ); 
    13191327 
    1320                                 $link = '<LINK href="%s" type="text/css" rel="StyleSheet">'; 
    1321                                 $link = sprintf( $link, 
     1328                                $link = '<link href="%s" type="text/css" rel="StyleSheet" />'; 
     1329                                $link = "\n\t\t" . sprintf( $link, 
    13221330                                        "{$GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ]}{$css}" 
    13231331                                ); 
     
    13471355                        } 
    13481356 
    1349                         return $tpl -> subst('css'); 
     1357                        return $tpl -> subst( 'css' ); 
    13501358                } 
    13511359 
     
    13621370                function get_java_script( ) 
    13631371                { 
    1364                         $java_script = ''; 
     1372                        $java_script = "\t\t"; 
    13651373 
    13661374                        /* this flag is for all javascript code that has to be put before other jscode.  
  • trunk/phpgwapi/inc/class.javascript.inc.php

    r2608 r2623  
    121121                        if(!empty($this->files) && is_array($this->files)) 
    122122                        { 
    123                                 $links = "<!--JS Imports from phpGW javascript class -->\n"; 
     123                                $links = "\n\t\t<!--JS Imports from phpGW javascript class -->"; 
    124124                                foreach($this->files as $app => $packages) 
    125125                                { 
     
    145145                                                                        else 
    146146                                                                        { 
    147                                                                                 $links .= '<script type="text/javascript" src="' 
    148                                                                                         . $GLOBALS['phpgw_info']['server']['webserver_url'] 
    149                                                                                         . "/$app/js/$pkg/$file" . '.js?' . filemtime( $jsFilePath ) . '">' 
    150                                                                                         . "</script>\n"; 
     147                                                                                $_script = '<script type="text/javascript" src="%s/%s/js/%s/%s.js?%d"></script>'; 
     148                                                                                $links .= "\n\t\t" . sprintf( $_script, $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ], $app, $pkg, $file, filemtime( $jsFilePath ) ); 
    151149                                                                        } 
    152150 
     
    264262                                return true; 
    265263                        } 
     264                        error_log( $_file . "\n\n", 3, '/tmp/log' ); 
    266265                        return false; 
    267266                } 
  • trunk/phpgwapi/js/expressoAjax/dom.js

    r2618 r2623  
     1XEvents.add( window, "onload", function( ) 
     2{ 
     3        if ( template == 'classic' ) 
     4                return false; 
     5 
     6        var icons = document.getElementById( "app_icons" ).getElementsByTagName( "td" ); 
     7        for ( var i = 0; i < icons.length; i++ ) 
     8        { 
     9                XEvents.add( icons.item( i ), "onmouseover", function( ) 
     10                { 
     11                        if ( this.className != "navbar_butOut" ) 
     12                        { 
     13                                this.className = "navbar_butOver"; 
     14                                /*zoom_in( this.firstChild.firstChild.id );*/ 
     15                        } 
     16                } ); 
     17                XEvents.add( icons.item( i ), "onmouseout", function( ) 
     18                { 
     19                        if ( this.className != "navbar_butOut" ) 
     20                        { 
     21                                this.className = "navbar_but"; 
     22                                /*zoom_out( this.firstChild.firstChild.id );*/ 
     23                        } 
     24                } ); 
     25                XEvents.add( icons.item( i ), "onclick", function( ) 
     26                { 
     27                        if ( this.className != "navbar_butOut" ) 
     28                        { 
     29                                this.className = "navbar_butOut"; 
     30                                /*zoom_out( this.firstChild.firstChild.id );*/ 
     31                                var app = document.getElementById( curr_app ); 
     32                                if ( app ) 
     33                                        app.parentNode.parentNode.className= "navbar_but"; 
     34                                //curr_app = "' . str_replace( '_', '', $app ) . 'id" 
     35                        } 
     36                } ); 
     37        } 
     38} ); 
     39 
     40function openWindow( newWidth, newHeight, link ) 
     41{ 
     42        newScreenX  = screen.width - newWidth; 
     43        newScreenY  = 0; 
     44        Window1 = window.open( link, "", 
     45                "width=" + newWidth + ", height=" + newHeight 
     46                + ", screenX=" + newScreenX + ", screenY=" + newScreenY 
     47                + ", top=" + newScreenY + ", left=" + newScreenX 
     48                + ", toolbar=no, scrollbars=yes, resizable=no" 
     49        ); 
     50} 
     51 
    152function borkb(size){ 
    253        kbyte = 1024; 
     
    193244        extra = document.getElementById("extraButton"); 
    194245        extra.style.visibility = "hidden"; 
    195         but.innerHTML="<a title='"+title+"' onClick='javascript:changeBar()'><img src="+URL_SERVER+"'/phpgwapi/templates/default/images/up.button.png'></a>"; 
     246        but.innerHTML='<a title="' +title + '" onClick="javascript:changeBar()"><img src="' + URL_SERVER + '/phpgwapi/templates/default/images/up.button.png"></a>'; 
    196247        var neverExpires = new Date("January 01, 2100 00:00:00"); 
    197248        document.cookie = "showHeader=true"+ 
  • trunk/phpgwapi/js/tools/xobject.js

    r2561 r2623  
    1818                } 
    1919        }; 
     20 
     21        String.prototype.trim = function( ) 
     22        { 
     23                return this.replace( /^ +| +$/g, '' ); 
     24        } 
    2025 
    2126        function f( n ) 
     
    6166        { 
    6267                escapable.lastIndex = 0; 
    63                 return escapable.test(string) ? 
     68                return escapable.test( string ) ? 
    6469                        '"' + string.replace(escapable, function (a) 
    65                                         { 
    66                                         var c = meta[a]; 
    67                                         return typeof c === 'string' ? c : 
     70                        { 
     71                                var c = meta[ a ]; 
     72                                return typeof c === 'string' ? c : 
    6873                                        '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); 
    69                                         }) + '"' : 
    70                 '"' + string + '"'; 
     74                        } ) + '"' : '"' + string + '"'; 
    7175        } 
    7276 
  • trunk/phpgwapi/templates/classic/head.tpl

    r2561 r2623  
    44                <title>{website_title}</title> 
    55                <meta http-equiv="content-type" content="text/html; charset={charset}" /> 
    6                 <meta name="keywords" content="eGroupWare" /> 
    7                 <meta name="description" content="eGroupware" /> 
    8                 <meta name="keywords" content="eGroupWare" /> 
    9                 <meta name="copyright" content="eGroupWare http://www.egroupware.org (c) 2003" /> 
     6                <meta name="keywords" content="ExpressoLivre" /> 
     7                <meta name="description" content="ExpressoLivre" /> 
     8                <meta name="copyright" content="ExpressoLivre http://www.expressolivre.org (l) 2003" /> 
    109                <meta name="language" content="{lang_code}" /> 
    11                 <meta name="author" content="eGroupWare http://www.egroupware.org" /> 
     10                <meta name="author" content="ExpressoLivre http://www.expressolivre.org" /> 
    1211                <meta name="robots" content="none" /> 
     12                <meta http-equiv="Default-Style" content="eGroupWareStyle"> 
    1313                <link rel="icon" href="{img_icon}" type="image/x-ico" /> 
    1414                <link rel="shortcut icon" href="{img_shortcut}" /> 
    15                 <META http-equiv="Default-Style" content="eGroupWareStyle"> 
    16                 {slider_effects} 
    17                 {simple_show_hide} 
    18                 {pngfix} 
    19                 {css} 
    20                 {java_script} 
     15{css}{pngfix}{java_script} 
    2116        </head> 
    2217        <!-- we don't need body tags anymore, do we?) we do!!! onload!! LK --> 
    23         <body {body_tags}> 
     18        <body {body_tags}>{content}</body> 
     19</html> 
    2420<!-- END head --> 
  • trunk/phpgwapi/templates/default/css.tpl

    r1247 r2623  
    1 <style type="text/css"> 
    2 <!-- 
    3         .row_on { color: {row_text}; background-color: {row_on}; } 
    4         .row_off { color: {row_text}; background-color: {row_off}; } 
    5         .th { color: {th_text}; background-color: {th_bg}; } 
    6         {app_css} 
    7 --> 
    8 </style> 
    9 {css_file} 
     1                <style type="text/css"> 
     2                <!-- 
     3                        .row_on { color: {row_text}; background-color: {row_on}; } 
     4                        .row_off { color: {row_text}; background-color: {row_off}; } 
     5                        .th { color: {th_text}; background-color: {th_bg}; } 
     6                        {app_css} 
     7                --> 
     8                </style>{css_file} 
  • trunk/phpgwapi/templates/default/footer.tpl

    r1247 r2623  
    1                                                                         </td></tr></table> 
    2                                                                         </div> 
    3                   <!-- Applicationbox Column --> 
    4                   </td> 
    5                   </tr> 
    6   </table> 
    7 </div> 
    8 <!-- END footer.tpl --> 
     1                <!-- BEGIN footer.tpl --> 
     2                                                                        </td> 
     3                                                                </tr> 
     4                                                        </table> 
     5                                                </div> 
     6                                        </td> 
     7                                        <!-- Applicationbox Column --> 
     8                                </tr> 
     9                        </table> 
     10                </div> 
     11                <!-- END footer.tpl --> 
  • trunk/phpgwapi/templates/default/head.inc.php

    r2561 r2623  
    1313        if($GLOBALS['phpgw_info']['user']['preferences']['common']['show_generation_time']) 
    1414        { 
    15                 $mtime = microtime();  
    16                 $mtime = explode(' ',$mtime);  
    17                 $mtime = $mtime[1] + $mtime[0];  
    18                 $GLOBALS['page_start_time'] = $mtime;  
     15                $mtime = microtime(); 
     16                $mtime = explode(' ',$mtime); 
     17                $mtime = $mtime[1] + $mtime[0]; 
     18                $GLOBALS['page_start_time'] = $mtime; 
    1919        } 
    2020 
    21         // get used language code 
    22         $lang_code = $GLOBALS['phpgw_info']['user']['preferences']['common']['lang']; 
     21        $pngfix = ''; 
     22        if ( ! $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'disable_pngfix' ] ) 
     23                $pngfix = "\t\t" . '<!--[if lt IE 7]>' . "\n\t\t\t" 
     24                        . '<script src="' 
     25                        . $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] . '/phpgwapi/templates/' . $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ] . '/js/pngfix.js' 
     26                        . '" type="text/javascript">' 
     27                        . "</script>\n\t\t" 
     28                        . "<![endif]-->\n"; 
    2329 
    24         $bodyheader = ' bgcolor="' . $GLOBALS['phpgw_info']['theme']['bg_color'] . '" alink="' 
    25                 . $GLOBALS['phpgw_info']['theme']['alink'] . '" link="' . $GLOBALS['phpgw_info']['theme']['link'] . '" vlink="' 
    26                 . $GLOBALS['phpgw_info']['theme']['vlink'] . '"'; 
     30        error_log( var_export( $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 
     31                ( ( ! $GLOBALS['phpgw_info']['user']['preferences']['common']['disable_slider_effects'] ) ? 'slidereffects' : 'simple_show_hide' ), 
     32                'phpgwapi/templates/' . $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'template_set' ], true ), true ) . "\n\n" , 3, '/tmp/log' ); 
    2733 
    28         if(!$GLOBALS['phpgw_info']['server']['htmlcompliant']) 
    29         { 
    30                 $bodyheader .= ''; 
    31         } 
    32         $currentapp = $GLOBALS['phpgw_info']['flags']['currentapp'] ; 
     34        $bodyheader = ' bgcolor="' . $GLOBALS['phpgw_info']['theme']['bg_color'] 
     35                . '" link="' . $GLOBALS['phpgw_info']['theme']['link'] 
     36                . '" alink="' . $GLOBALS['phpgw_info']['theme']['alink'] 
     37                . '" vlink="' . $GLOBALS['phpgw_info']['theme']['vlink'] . '"'; 
    3338 
    34         #_debug_array($GLOBALS['phpgw_info']['user']['preferences']['common']); 
     39        $app = $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]; 
     40        $app = ( $app ) ? ' [' . ( isset( $GLOBALS[ 'phpgw_info' ][ 'apps' ][ $app ] ) ? $GLOBALS[ 'phpgw_info' ][ 'apps' ][ $app ][ 'title' ] : lang( $app ) ) . ']' : ''; 
    3541 
    36         //pngfix defaults to yes 
    37         if(!$GLOBALS['phpgw_info']['user']['preferences']['common']['disable_pngfix']) 
    38         { 
    39                 $pngfix_src = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/'.$GLOBALS['phpgw_info']['server']['template_set'].'/js/pngfix.js'; 
    40                 $pngfix ='<!-- This solves the Internet Explorer PNG-transparency bug, but only for IE 5.5 and higher -->  
    41                 <!--[if lt IE 7]> 
    42                 <script src="'.$pngfix_src.'" type="text/javascript"> 
    43                 </script> 
    44                 <![endif]-->'; 
    45         } 
     42        $webserver_url = ( ! empty( $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] ) ) ? 
     43                $GLOBALS[ 'phpgw_info' ][ 'server' ][ 'webserver_url' ] : '/'; 
    4644 
    47         $GLOBALS[ 'phpgw' ] -> js -> validate_file( 'jscode', 
    48                 ( ( ! $GLOBALS['phpgw_info']['user']['preferences']['common']['disable_slider_effects'] ) ? 'slidereffects' : 'simple_show_hide' ), 
    49                 'phpgwapi/templates/' . $GLOBALS['phpgw_info']['server']['template_set'], true ); 
     45        if ( strpos( $webserver_url, '/' ) != ( strlen( $webserver_url ) - 1 ) ) 
     46                $webserver_url .= '/'; 
    5047 
    51         $tpl = CreateObject('phpgwapi.Template',PHPGW_TEMPLATE_DIR); 
    52         $tpl->set_unknowns('remove'); 
    53         $tpl->set_file(array('_head' => 'head.tpl')); 
    54         $tpl->set_block('_head','head'); 
    55  
    56         $app = $GLOBALS['phpgw_info']['flags']['currentapp']; 
    57         $app = $app ? ' ['.(isset($GLOBALS['phpgw_info']['apps'][$app]) ? $GLOBALS['phpgw_info']['apps'][$app]['title'] : lang($app)).']':''; 
    58  
    59         $webserver_url = $GLOBALS['phpgw_info']['server']['webserver_url']; 
    60         $webserver_url = ( !empty($webserver_url) ) ? $webserver_url : '/'; 
    61          
    62         if(strrpos($webserver_url,'/') === false || strrpos($webserver_url,'/') != (strlen($webserver_url)-1)) 
    63                 $webserver_url .= '/'; 
    64          
    6548        if( is_null($_SESSION['phpgw_info'][$GLOBALS['phpgw_info']['flags']['currentapp']]['user'])) 
    6649                $tmpDefault = "default"; 
     
    6952 
    7053        $var = Array( 
    71                 'img_icon'      => $webserver_url . $currentapp . '/templates/'.$tmpDefault.'/images/navbar.png', 
    72                 'img_shortcut'  => $webserver_url . $currentapp . '/templates/'.$tmpDefault.'/images/navbar.png', 
    73                 'pngfix'        => $pngfix, 
    74                 'slider_effects'=> $slider_effects, 
    75                 'simple_show_hide'=> '',//$simple_show_hide, 
    76                 'lang_code'=> $lang_code, 
    77                 'charset'       => $GLOBALS['phpgw']->translation->charset(), 
    78                 'font_family'   => $GLOBALS['phpgw_info']['theme']['font'], 
    79                 'website_title' => $GLOBALS['phpgw_info']['server']['site_title'].$app, 
    80                 'body_tags'     => $bodyheader .' '. $GLOBALS['phpgw']->common->get_body_attribs(), 
    81                 'css'           => $GLOBALS['phpgw']->common->get_css(), 
    82                 'java_script'   => $GLOBALS['phpgw']->common->get_java_script(), 
    83                 'cookie_manager'=> '' 
     54                'img_icon'       => "{$webserver_url}{$GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]}/templates/{$tmpDefault}/images/navbar.png", 
     55                'img_shortcut'   => "{$webserver_url}{$GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ]}/templates/{$tmpDefault}/images/navbar.png", 
     56                'pngfix'         => $pngfix, 
     57                'lang_code'      => $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'lang' ], 
     58                'charset'        => $GLOBALS[ 'phpgw' ] -> translation -> charset( ), 
     59                'font_family'    => $GLOBALS[ 'phpgw_info' ][ 'theme' ][ 'font' ], 
     60                'website_title'  => "{$GLOBALS[ 'phpgw_info' ][ 'server' ][ 'site_title' ]} $app", 
     61                'body_tags'      => "{$bodyheader} {$GLOBALS[ 'phpgw' ] -> common -> get_body_attribs()}", 
     62                'css'            => $GLOBALS[ 'phpgw' ] -> common -> get_css( ), 
     63                'java_script'    => $GLOBALS[ 'phpgw' ] -> common -> get_java_script( ), 
     64                'content'        => $content 
    8465        ); 
    85         $tpl->set_var($var); 
    86         $tpl->pfp('out','head'); 
    87         unset($tpl); 
     66 
     67        $tpl = CreateObject( 'phpgwapi.Template', PHPGW_TEMPLATE_DIR ); 
     68        $tpl -> set_unknowns( 'remove' ); 
     69        $tpl -> set_file( array( '_head' => 'head.tpl' ) ); 
     70        $tpl -> set_block( '_head', 'head' ); 
     71        $tpl -> set_var( $var ); 
     72        $tpl -> pfp( 'out', 'head' ); 
     73        unset( $tpl ); 
    8874?> 
  • trunk/phpgwapi/templates/default/head.tpl

    r2561 r2623  
    44                <title>{website_title}</title> 
    55                <meta http-equiv="content-type" content="text/html; charset={charset}" /> 
    6                 <meta name="keywords" content="eGroupWare" /> 
    7                 <meta name="description" content="eGroupware" /> 
    8                 <meta name="keywords" content="eGroupWare" /> 
    9                 <meta name="copyright" content="eGroupWare http://www.egroupware.org (c) 2003" /> 
     6                <meta name="keywords" content="ExpressoLivre" /> 
     7                <meta name="description" content="ExpressoLivre" /> 
     8                <meta name="copyright" content="ExpressoLivre - http://www.expressolivre.org (c) 2005 - GPL" /> 
    109                <meta name="language" content="{lang_code}" /> 
    11                 <meta name="author" content="eGroupWare http://www.egroupware.org" /> 
     10                <meta name="author" content="ExpressoLivre http://www.expressolivre.org" /> 
    1211                <meta name="robots" content="none" /> 
     12                <meta http-equiv="Default-Style" content="eGroupWareStyle"> 
    1313                <link rel="icon" href="{img_icon}" type="image/x-ico" /> 
    1414                <link rel="shortcut icon" href="{img_shortcut}" /> 
    15                 <META http-equiv="Default-Style" content="eGroupWareStyle"> 
    16                 {slider_effects} 
    17                 {simple_show_hide} 
    18                 {pngfix} 
    19                 {css} 
    20                 {java_script} 
     15{css}{pngfix}{java_script} 
    2116        </head> 
    2217        <!-- we don't need body tags anymore, do we?) we do!!! onload!! LK --> 
    23         <body {body_tags}> 
     18        <body {body_tags}>{content}</body> 
     19</html> 
    2420<!-- END head --> 
  • trunk/phpgwapi/templates/default/navbar.inc.php

    r2578 r2623  
    4343        $var['table_bg_color'] = $GLOBALS['phpgw_info']['theme']['navbar_bg']; 
    4444 
    45         if($GLOBALS['phpgw_info']['user']['preferences']['common']['click_or_onmouseover']=='onmouseover') 
    46         { 
     45        if ( $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'click_or_onmouseover' ] == 'onmouseover' ) 
    4746                $show_menu_event = 'onMouseOver'; 
    48         } 
    4947        else 
    50         { 
    5148                $show_menu_event = 'onClick'; 
    52         } 
    53  
    5449 
    5550        $applications = ''; 
     
    5752        //      == 'icons_and_text') 
    5853 
    59         $max_icons=$GLOBALS['phpgw_info']['user']['preferences']['common']['max_icons']; 
    60  
    61         if(!$max_icons) 
    62         { 
    63                 $max_icons=200; 
    64         } 
    65  
     54        $max_icons = $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'max_icons' ]; 
     55 
     56        if ( ! $max_icons ) 
     57                $max_icons = 200; 
     58 
     59        $indent = "\n\t\t\t\t\t\t"; 
    6660        $curr_app = NULL; 
    6761        $i = 0; 
    68         foreach($GLOBALS['phpgw_info']['navbar'] as $app => $app_data) 
    69         { 
    70                 $current_app = False; 
    71                 if($app != 'preferences' && $app != 'about' && $app != 'logout') 
     62        $cacheit = array( 'admin', 'expressoAdmin1_2', 'expressoMail1_2', 'contactcenter', 'jabberit_messenger', 'filemanager' ); 
     63        foreach ( $GLOBALS[ 'phpgw_info' ][ 'navbar' ] as $app => $app_data ) 
     64        { 
     65                $current_app = false; 
     66                if ( $app != 'preferences' && $app != 'about' && $app != 'logout' ) 
    7267                { 
    73                         $icon = '<a href="'.$app_data['url'].'" cacheit="' 
    74                                 . ( ( $app == 'admin' || $app == 'expressoAdmin1_2' || $app == 'expressoMail1_2' || $app == 'contactcenter' || $app == 'jabberit_messenger' || $app == 'filemanager'  ) ? 'true' : 'false') 
     68                        $icon = "{$indent}\t\t\t" . '<a href="' . $app_data[ 'url' ] . '" cacheit="' 
     69                                . ( in_array( $app, $cacheit ) ? 'true' : 'false' ) 
    7570                                . '">'; 
    76                         $title = $GLOBALS['phpgw_info']['apps'][$app]['title']; 
    77                         if($app == 'home') $title = lang('Home'); 
    78  
    79                         if ($GLOBALS['phpgw_info']['flags']['currentapp'] == $app) 
    80                         { 
    81                                 $current_app = True; 
     71 
     72                        $title = $GLOBALS[ 'phpgw_info' ][ 'apps' ][ $app ][ 'title' ]; 
     73 
     74                        if ( $app == 'home' ) 
     75                                $title = lang( 'Home' ); 
     76 
     77                        if ( $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'currentapp' ] == $app ) 
     78                        { 
     79                                $current_app = true; 
    8280                                $curr_app = $app; 
    8381                        } 
    8482 
    85                         $icon .= '<img id="'.str_replace('_','',$app).'id" src="' . $app_data['icon'] . '" alt="' . $title . '" title="'. $title 
    86                                 . '" border="0" width="'.($current_app ? 35 : 24 ).'" height="'.($current_app ? 35 : 24 ).'" nowrap="nowrap"/></a>'; 
    87  
    88                         if($app=='home') 
    89                         { 
    90                                 if($GLOBALS['phpgw_info']['user']['preferences']['common']['start_and_logout_icons']=='no') 
    91                                 { 
     83                        $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"/>' 
     85                                . "{$indent}\t\t\t</a>"; 
     86 
     87                        if ( $app == 'home' ) 
     88                                if ( $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'start_and_logout_icons' ] == 'no' ) 
    9289                                        continue; 
    93                                 } 
    94                         } 
    95  
    96                         // Verifica qual o formato da Barra de navegação:  
    97                         // Icone ou Texto, ou Icone e Texto 
    98  
    99  
    100                         if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']=='icons') { 
     90 
     91                        if ( $GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']=='icons' ) 
     92                        { 
    10193                                $title_extra = $title; 
    10294                                $title = ''; 
    10395                        } 
    104                         else if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']=='text'){ 
    105                                 $icon = ''; 
    106                         } 
    107  
    108                         if($i< $max_icons) { 
    109  
    110                                 if($GLOBALS['phpgw_info']['user']['preferences']['common']['start_and_logout_icons']=='no') 
    111                                 { 
    112                                         $tdwidth = 100/($max_icons); 
    113                                 } 
     96                        else 
     97                                if( $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'navbar_format' ] == 'text' ) 
     98                                        $icon = ''; 
     99 
     100                        if ( $i < $max_icons ) 
     101                        { 
     102                                if ( $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'start_and_logout_icons' ] == 'no' ) 
     103                                        $tdwidth = 100 / ( $max_icons ); 
    114104                                else 
    115                                 { 
    116                                         $tdwidth = 100/($max_icons+2); 
    117                                 } 
    118  
    119                                 $app_icons .= '<td nowrap' 
    120                                         . ' onmouseover="if ( this.className != \'navbar_butOut\'){this.className=\'navbar_butOver\'; zoom_in(this.firstChild.firstChild.id);}"' 
    121                                         . ' onmouseout="if ( this.className != \'navbar_butOut\'){this.className=\'navbar_but\'; zoom_out(this.firstChild.firstChild.id);}"' 
    122                                         . ' onclick="if ( this.className != \'navbar_butOut\'){this.className=\'navbar_butOut\'; zoom_out(curr_app);' 
    123                                         . 'var app = document.getElementById(curr_app); if ( app ) app.parentNode.parentNode.className=\'navbar_but\';curr_app=\'' . str_replace('_','',$app) . 'id\'}"' 
    124                                         . ' class="navbar_but'.($current_app?'Out':'').'">'; 
    125  
    126                                 if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target']) 
    127                                 { 
     105                                        $tdwidth = 100 / ( $max_icons + 2 ); 
     106 
     107                                $app_icons .= "{$indent}\t\t" . '<td nowrap class="navbar_but' . ( $current_app ? 'Out' : '' ) . '">'; 
     108 
     109                                if ( isset( $GLOBALS['phpgw_info']['flags']['navbar_target'] ) && $GLOBALS['phpgw_info']['flags']['navbar_target'] ) 
    128110                                        $app_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"'; 
    129                                 }                                                
     111 
    130112                                $app_icons .=  $icon; 
    131                         } 
    132  
    133  
    134                         $icon = '<img align="center" src="' . $app_data['icon'] . '" alt="' . $title . '" width="16" title="'. $title . '" border="0" />'; 
    135  
    136                         $app_extra_icons .= '<tr>'; 
    137  
    138                         if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']!='text') 
    139                         { 
    140                                 $app_extra_icons .= '<td class="extraIconsRow"><a href="' . $app_data['url'] . '"'; 
    141  
    142                                 if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target']) 
    143                                 { 
    144                                         $app_extra_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"'; 
    145                                 } 
    146  
    147                                 $app_extra_icons .= ' >' . $icon . '</a></td>'; 
    148                         } 
    149  
    150  
    151                         $app_extra_icons .= '<td align="left" class="extraIconsRow" style=""><a href="'.$app_data['url'] . '"'; 
    152  
    153                         if(isset($GLOBALS['phpgw_info']['flags']['navbar_target']) && $GLOBALS['phpgw_info']['flags']['navbar_target']) 
    154                         { 
     113                                $app_icons .=  "{$indent}\t\t</td>"; 
     114                        } 
     115 
     116 
     117                        $icon = "{$indent}\t\t\t" . '<img align="center" src="' . $app_data['icon'] . '" alt="' . $title . '" width="16" title="'. $title . '" border="0" />'; 
     118 
     119                        $app_extra_icons .= "{$indent}<tr>"; 
     120 
     121                        if ( $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'navbar_format' ] != 'text' ) 
     122                        { 
     123                                $app_extra_icons .= "{$indent}\t" . '<td class="extraIconsRow">' 
     124                                        . "{$indent}\t" . '     <a href="' . $app_data['url'] . '"'; 
     125 
     126                                if ( isset( $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'navbar_target' ] ) && $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'navbar_target' ] ) 
     127                                        $app_extra_icons .= ' target="' . $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'navbar_target' ] . '"'; 
     128 
     129                                $app_extra_icons .= " >{$icon}{$indent}\t\t</a>{$indent}\t</td>"; 
     130                        } 
     131 
     132 
     133                        $app_extra_icons .= "{$indent}\t" . '<td align="left" class="extraIconsRow" style="">' 
     134                                . "{$indent}\t\t" . '<a href="'.$app_data['url'] . '"'; 
     135 
     136                        if ( isset( $GLOBALS['phpgw_info']['flags']['navbar_target'] ) && $GLOBALS['phpgw_info']['flags']['navbar_target'] ) 
    155137                                $app_extra_icons .= ' target="' . $GLOBALS['phpgw_info']['flags']['navbar_target'] . '"'; 
    156                         } 
    157  
    158                         $app_extra_icons .= '>' . $title_extra . '</a></td></tr>'; 
    159  
    160                         unset($icon); 
    161                         unset($title); 
    162                         $i++;                            
     138 
     139                        $app_extra_icons .= '>' . $title_extra . '</a>' 
     140                                . "{$indent}\t</td>" 
     141                                . "{$indent}</tr>"; 
     142 
     143                        unset( $icon ); 
     144                        unset( $title ); 
     145                        $i++; 
    163146                } 
    164147        } 
    165148 
    166         echo '<script>var curr_app = "' . ( ( $curr_app ) ? str_replace( '_','',$curr_app ) . 'id' : '' ) . '";</script>'; 
    167  
    168         if($GLOBALS['phpgw_info']['user']['preferences']['common']['start_and_logout_icons']!='no')      
    169         { 
    170  
    171                 $hint = $GLOBALS['phpgw_info']['navbar']['logout']['title']; 
    172                 $icon = '<img id="logout_id" width="24" height="24" src="'.$GLOBALS['phpgw_info']['navbar']['logout']['icon'].'"  alt="'.$hint.'" title="'.$hint.'">'; 
    173  
    174                 if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']=='icons') { 
    175  
     149        $GLOBALS[ 'phpgw_info' ][ 'flags' ][ 'java_script' ] .= "\n\t\t<script>\n\t\t\t" 
     150                . 'var curr_app = "' . ( ( $curr_app ) ? str_replace( '_','',$curr_app ) . 'id' : '' ) . '";' . "\n\t\t" 
     151                . '</script>'; 
     152 
     153        if ( $GLOBALS['phpgw_info']['user']['preferences']['common']['start_and_logout_icons'] != 'no' ) 
     154        { 
     155 
     156                $hint = $GLOBALS[ 'phpgw_info' ][ 'navbar' ][ 'logout' ][ 'title' ]; 
     157                $icon = '<img id="logout_id" width="24" height="24" src="' 
     158                        . $GLOBALS[ 'phpgw_info' ][ 'navbar' ][ 'logout' ][ 'icon' ] 
     159                        . '" alt="' . $hint . '" title="' . $hint . '">'; 
     160 
     161                if ( $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'navbar_format' ] == 'icons' ) 
    176162                        $title = ''; 
    177                 } 
    178                 else if($GLOBALS['phpgw_info']['user']['preferences']['common']['navbar_format']=='text'){ 
    179  
     163                else if ( $GLOBALS[ 'phpgw_info' ][ 'user' ][ 'preferences' ][ 'common' ][ 'navbar_format' ] == 'text' ) 
    180164                        $icon = ''; 
    181                 }                        
    182                 $app_icons .= '<td nowrap '. 
    183                         'onmouseover="javascript:this.className=\'navbar_butOver\'; zoom_in(this.firstChild.firstChild.id)" '. 
    184                         'onmouseout="javascript:this.className=\'navbar_but\'; zoom_out(this.firstChild.firstChild.id)" '. 
    185                         'class="navbar_but"><a onclick="location.href=\''.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'\'">'.$icon.'</td>'; 
    186         }                       //                      window.location.href=\''.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'\' 
    187  
    188         $var['app_icons'] = $app_icons; 
     165 
     166                $app_icons .= '<td nowrap class="navbar_but"><a onclick="location.href=\'' 
     167                        . $GLOBALS[ 'phpgw_info' ][ 'navbar' ][ 'logout' ][ 'url' ] . '\'">' . $icon . '</td>'; 
     168        } 
     169 
     170        $var[ 'app_icons' ] = $app_icons; 
    189171 
    190172        $hint = $GLOBALS['phpgw_info']['navbar']['logout']['title']; 
    191         $icon = '<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.'">'; 
    192174        $title = $GLOBALS['phpgw_info']['navbar']['logout']['title']; 
    193175 
    194         $app_extra_icons .= '<td  class="extraIconsRow"> 
    195                 <a href="'.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'">'.$icon.'</a></td>'; 
    196  
    197         $app_extra_icons .= '<td class="extraIconsRow"> 
    198                 <a href="'.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'">'.$title.'</a></td>'; 
    199  
    200  
    201         $app_extra_icons_div = ' 
    202                 <script language="javascript"> 
    203 new ypSlideOutMenu("menu1", "down", 5, 24, 160, 200,\'left\') 
    204                                 </script> 
    205                                 <div id="menu1Container"> 
    206                                 <div id="menu1Content" style="position: relative; left: 0; text-align: left;"> 
    207  
    208                                 <div id="extraIcons"> 
    209  
    210                                 <table cellspacing="0" cellpadding="0" border="0" width="100%"> 
    211                                 <tr> 
    212                                 <td colspan="2" nowrap="nowrap" align="right" style="background-color:#dddddd;padding:1px;"> 
    213                                 <a href="#" '.$show_menu_event.'="ypSlideOutMenu.hide(\'menu1\')" title="'.lang('close').'"> 
    214                                 <img style="" border="0" src="'.$var['img_root'].'/close.png"/></a></span></td></tr> 
    215                                 <tr> 
    216                                 <td colspan="1" valign="top" nowrap="nowrap" align="left" style="background-color:#dddddd;padding:1px;"> 
    217                                         <a href="#" onClick="javascript:ypSlideOutMenu.hide(\'menu1\');showBar()" title="'.lang('Expand Menu').'"> 
    218                                         <img src = "'.$var['img_root'].'/down.button.png"></a> 
    219                                 </td> 
    220                                 <td colspan="1" valign="top" nowrap="nowrap" align="left" style="background-color:#dddddd;padding:1px;"> 
    221                                         <a href="#" onClick="javascript:ypSlideOutMenu.hide(\'menu1\');showBar()" title="'.lang('Expand Menu').'"> 
    222                                         <b>'.lang('Expand Menu').'</b></a></td></tr>                             
    223                                 '.$app_extra_icons.'</table> 
    224                                 </div> 
    225  
    226                                 </div> 
    227                                 </div> 
    228                                 '; 
    229  
    230                                 $var['app_extra_icons_div']= $app_extra_icons_div;                               
    231                                 $var['app_extra_icons_icon']= '<td width="26" valign="top" align="right" style="zIndex:10000;padding-right:3px;padding-top:10px;"><a title="'.lang('show_more_apps').'" href="#"  '.$show_menu_event.'="ypSlideOutMenu.showMenu(\'menu1\')"><img src="'.$var['img_root'].'/extra_icons.png" border="0" /></a></td>'; 
     176        $app_extra_icons .= "{$indent}<tr>{$indent}\t" . '<td  class="extraIconsRow">' 
     177                . "{$indent}\t\t" . '<a href="'.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'">'. "{$icon}{$indent}\t\t</a>" 
     178                . "{$indent}\t</td>" 
     179                . "{$indent}\t" . '<td class="extraIconsRow">' 
     180                . "{$indent}\t\t" . '<a href="'.$GLOBALS['phpgw_info']['navbar']['logout']['url'].'">'.$title.'</a>' 
     181                . "{$indent}\t</td>{$indent}</tr>"; 
     182 
     183        $app_extra_icons_div = '<script language="javascript">' . "\n\t\t" 
     184                . '     new ypSlideOutMenu( "menu1", "down", 5, 24, 160, 200, "left" );' . "\n\t\t" 
     185                . '</script>' . "\n\t\t" 
     186                . '<div id="menu1Container">' . "\n\t\t" 
     187                . '     <div id="menu1Content" style="position: relative; left: 0; text-align: left;">' . "\n\t\t" 
     188                . '             <div id="extraIcons">' . "\n\t\t" 
     189                . '                     <table cellspacing="0" cellpadding="0" border="0" width="100%">' . "\n\t\t" 
     190                . '                             <tr>' . "\n\t\t" 
     191                . '                                     <td colspan="2" nowrap="nowrap" align="right" style="background-color:#dddddd;padding:1px;">' . "\n\t\t" 
     192                . '                                             <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" 
     194                . '                                             </a>' . "\n\t\t" 
     195                . '                                     </td>' . "\n\t\t" 
     196                . '                             </tr>' . "\n\t\t" 
     197                . '                             <tr>' . "\n\t\t" 
     198                . '                                     <td colspan="1" valign="top" nowrap="nowrap" align="left" style="background-color:#dddddd;padding:1px;">' . "\n\t\t" 
     199                . '                                             <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" 
     201                . '                                     </td>' . "\n\t\t" 
     202                . '                                     <td colspan="1" valign="top" nowrap="nowrap" align="left" style="background-color:#dddddd;padding:1px;">' . "\n\t\t" 
     203                . '                                             <a href="javascript:ypSlideOutMenu.hide(\'menu1\');showBar()" title="'.lang('Expand Menu').'">' . "\n\t\t" 
     204                . '                                                     <b>' . lang('Expand Menu') . '</b>' . "\n\t\t" 
     205                . '                                             </a>' . "\n\t\t" 
     206                . '                                     </td>' . "\n\t\t" 
     207                . "                             </tr>{$app_extra_icons}\n\t\t" 
     208                . '                     </table>' . "\n\t\t" 
     209                . '             </div>' . "\n\t\t" 
     210                . '     </div>' . "\n\t\t" 
     211                . '</div>'; 
     212 
     213        $var['app_extra_icons_div'] = $app_extra_icons_div; 
     214        $var['app_extra_icons_icon'] = '<td width="26" valign="top" align="right" style="zIndex:10000;padding-right:3px;padding-top:10px;">' 
     215                . $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" />' 
     217                . "{$indent}</a>\n\t\t\t\t\t" 
     218                . '</td>'; 
    232219 
    233220 
  • trunk/phpgwapi/templates/default/navbar.tpl

    r2617 r2623  
    11<!-- BEGIN navbar_header --> 
    2 <div align="center" id="hiddenButton" style="position:absolute"> 
    3 </div> 
    4 <div align="center" id="extraButton" style="position:absolute"> 
    5 <table><tr>{app_extra_icons_icon}</tr></table> 
    6 </div> 
    7 {app_extra_icons_div} 
     2                <div align="center" id="hiddenButton" style="position:absolute"></div> 
     3                <div align="center" id="extraButton" style="position:absolute"> 
     4                        <table> 
     5                                <tr> 
     6                                        {app_extra_icons_icon} 
     7                                </tr> 
     8                        </table> 
     9                </div> 
     10                {app_extra_icons_div} 
     11                <div class="toolbar" id="toolbar" style="visibility:hidden"> 
     12                        <table border="0" height="50px" width="100%" cellpadding=0 cellspacing=0> 
     13                                <tr> 
     14                                        <td class="logo_expresso">&nbsp;<br></td> 
     15                                        <td align="center"> 
     16                                                <table id="app_icons" width="auto" border="0" cellpadding="0" cellspacing="0"> 
     17                                                        <tr>{app_icons} 
     18                                                        </tr> 
     19                                                </table> 
     20                                        </td> 
     21                                        <td style="padding-left:0px;padding-right:25px" align="right" nowrap></td> 
     22                                </tr> 
     23                        </table> 
     24                        <div id ="divStatusBar"> 
     25                                <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
     26                                        <tr> 
     27                                                <td width="30%" align="left" id="user_info" nowrap>{user_info}{frontend_name}</td> 
     28                                                <td width="30%" id="admin_info" nowrap>{current_users}</td> 
     29                                                <td style="padding-right:10px" width="*" align="right" valign="center" nowrap="true"> 
     30                                                        <a href="{dir_root}/preferences/" title="{title_my_preferences}" alt="{title_my_preferences}" cacheit="true" onmouseover="javascript:self.status='{title_my_preferences}'" onmouseout="javascript:self.status=''"> 
     31                                                                <img height="15px" src="{dir_root}/phpgwapi/templates/{template}/images/preferences.png" /> 
     32                                                                <font id="links_bar">{my_preferences}</font> 
     33                                                        </a> 
     34                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
     35                                                        <a href="javascript:openWindow(400,550,'{dir_root}/help/enviasugestao.php')" title="{title_suggestions}" alt="{title_suggestions}" onmouseover="javascript:self.status='{title_suggestions}'" onmouseout="javascript:self.status=''"> 
     36                                                                <img src="{dir_root}/phpgwapi/templates/{template}/images/critic.png" /> 
     37                                                                <font id="links_bar">{suggestions}</font> 
     38                                                        </a> 
     39                                                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
     40                                                        <a href="javascript:openWindow(480,510,'{dir_root}/help')" title="{title_help}" alt="{title_help}" onmouseover="javascript:self.status='{title_help}'" onmouseout="javascript:self.status=''"> 
     41                                                                <img src="{dir_root}/phpgwapi/templates/{template}/images/help.png" width="16px" /> 
     42                                                                <font id="links_bar">{help}</font> 
     43                                                        </a> 
     44                                                </td> 
     45                                        </tr> 
     46                                </table> 
     47                        </div> 
     48                </div> 
     49<!-- END navbar_header --> 
    850 
    9 <div class="toolbar" id="toolbar" style="visibility:hidden"> 
    10 <table border="0" height="50px" width="100%" cellpadding=0 cellspacing=0><tr> 
    11         <td class="logo_expresso">&nbsp;<br></td> 
    12         <td align="center"> 
    13         <table width="auto" border="0" cellpadding="0" cellspacing="0">{app_icons}</table> 
    14         </td><td style="padding-left:0px;padding-right:25px" align="right" nowrap> 
    15 </td></tr></table> 
    16 <div id ="divStatusBar"> 
    17 <table width="100%" border="0" cellspacing="0" cellpadding="0"> 
    18  <tr> 
    19   <td width="30%" align="left" id="user_info" nowrap>{user_info}{frontend_name}</td> 
    20   <td width="30%" id="admin_info" nowrap>{current_users}</td> 
    21   <td style="padding-right:10px" width="*" align="right" valign="center" nowrap="true"> 
    22                 <a href="{dir_root}/preferences/" title="{title_my_preferences}" alt="{title_my_preferences}" cacheit="true" onmouseover="javascript:self.status='{title_my_preferences}'" onmouseout="javascript:self.status=''"><img height="15px" src="{dir_root}/phpgwapi/templates/{template}/images/preferences.png"><font id="links_bar">{my_preferences}</font></a> 
    23                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
    24                 <a href="#" title="{title_suggestions}" alt="{title_suggestions}" onmouseover="javascript:self.status='{title_suggestions}'" onmouseout="javascript:self.status=''" onclick="javascript:openWindow(400,550,'{dir_root}/help/enviasugestao.php')"><img src="{dir_root}/phpgwapi/templates/{template}/images/critic.png"><font id="links_bar">{suggestions}</font></a> 
    25                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    26                 <a href="#" title="{title_help}" alt="{title_help}" onmouseover="javascript:self.status='{title_help}'" onmouseout="javascript:self.status=''" onclick="javascript:openWindow(480,510,'{dir_root}/help')"><img src="{dir_root}/phpgwapi/templates/{template}/images/help.png" width="16px"><font id="links_bar">{help}</font></a> 
    27   </td> 
    28  </tr> 
    29 </table> 
    30 </div> 
    31 </div> 
     51<!-- BEGIN appbox --> 
     52                <div id="divSubContainer"> 
     53                        <table width="100%" cellspacing="0" cellpadding="0" border="0"> 
     54                                <tr> 
     55                                {sideboxcolstart} 
     56<!-- END appbox --> 
    3257 
    33 <script language="Javascript"> 
    34  function openWindow(newWidth,newHeight,link) 
    35   {                      
    36                  
    37         newScreenX  = screen.width - newWidth;   
    38         newScreenY  = 0;                 
    39         Window1=window.open(link,'',"width="+newWidth+",height="+newHeight+",screenX="+newScreenX+",left="+newScreenX+",screenY="+newScreenY+",top="+newScreenY+",toolbar=no,scrollbars=yes,resizable=no"); 
    40                                  
    41   }      
    42 </script> 
    43 <!-- END navbar_header --> 
    44 <!-- BEGIN appbox -->    
    45         <div id="divSubContainer"> 
    46                 <table width="100%" cellspacing="0" cellpadding="0" border="0"> 
    47                 <tr> 
    48                 {sideboxcolstart} 
    49 <!-- END appbox --> 
    5058<!-- BEGIN sidebox_hide_header --> 
    51         <script language="javascript"> 
    52                 new ypSlideOutMenu("menu2", "right", 0, 165, 160, 200) 
    53         </script> 
     59                <script language="javascript"> 
     60                        new ypSlideOutMenu("menu2", "right", 0, 165, 160, 200) 
     61                </script> 
     62                <div id="sideboxdragarea" style="position:absolute;left:0px;top:175px"> 
     63                        <a href="javascript:" {show_menu_event}="ypSlideOutMenu.showMenu('menu2')" onmouseover="//ypSlideOutMenu.showMenu('menu2')" title="{lang_show_menu}"> 
     64                                <img src="{img_root}/dragarea_right.png" /> 
     65                        </a> 
     66                </div> 
     67                <div id="menu2Container"> 
     68                        <div id="menu2Content" style="position: relative; left: 0; text-align: left;"> 
     69                                <table cellspacing="0" cellpadding="0" border="0"> 
     70                                        <tr> 
     71                                                <td> 
     72                                                        <div style="background-color:#ffffff;border: #9c9c9c 1px solid;padding:5px;"> 
     73<!-- END sidebox_hide_header --> 
    5474 
    55         <div id="sideboxdragarea" style="position:absolute;left:0px;top:175px"> 
    56         <a href="#" {show_menu_event}="ypSlideOutMenu.showMenu('menu2')" onmouseover="//ypSlideOutMenu.showMenu('menu2')" title="{lang_show_menu}"><img src="{img_root}/dragarea_right.png" /></a> 
    57         </div> 
    58         <div id="menu2Container"> 
    59         <div id="menu2Content" style="position: relative; left: 0; text-align: left;"> 
    60                 <table cellspacing="0" cellpadding="0" border="0"> 
    61                  <tr><td> 
    62                    
    63                 <div style="background-color:#ffffff;border: #9c9c9c 1px solid;padding:5px;"> 
    64 <!-- END sidebox_hide_header --> 
    6575<!-- BEGIN sidebox_hide_footer --> 
    66 </div> 
    67 </td><td style="padding-top:10px" valign="top"> 
    68 <a href="#" onClick="ypSlideOutMenu.hide('menu2')" ><img src="{img_root}/dragarea_left.png" align="right" /></a> 
    69 </td></tr></table> 
    70 </div> 
    71 </div> 
    72 <script language="Javascript"> 
    73         initBar(GetCookie("showHeader")); 
    74 </script> 
     76                                                        </div> 
     77                                                </td> 
     78                                                <td style="padding-top:10px" valign="top"> 
     79                                                        <a href="javascript:" onClick="ypSlideOutMenu.hide('menu2')" > 
     80                                                                <img src="{img_root}/dragarea_left.png" align="right" /> 
     81                                                        </a> 
     82                                                </td> 
     83                                        </tr> 
     84                                </table> 
     85                        </div> 
     86                </div> 
     87                <script language="Javascript"> 
     88                        initBar(GetCookie("showHeader")); 
     89                </script> 
    7590<!-- END sidebox_hide_footer --> 
    7691 
     92<!-- BEGIN navbar_footer --> 
     93{sideboxcolend} 
     94                                        <!-- End Sidebox Column --> 
     95                                        <!-- Applicationbox Column --> 
     96                                        <td id="tdAppbox" valign="top" {remove_padding}> 
     97                                                <div id="divAppboxHeader">{current_app_title}</div> 
     98                                                <div id="divAppbox" class="divAppbox"> 
     99                                                        <table id="tableDivAppbox" width="98%" cellpadding="0" cellspacing="0"> 
     100                                                                <tr> 
     101                                                                        <td> 
     102<!-- END navbar_footer --> 
    77103 
     104<!-- BEGIN extra_blocks_header --> 
     105                                                                <div class="divSidebox"> 
     106                                                                        <div class="divSideboxHeader"><span>{lang_title}</span></div> 
     107                                                                        <div> 
     108                                                                                <table width="100%" cellspacing="0" cellpadding="0" border=0> 
     109<!-- END extra_blocks_header --> 
    78110 
     111<!-- BEGIN extra_block_row --> 
     112                                                                                        <tr class="divSideboxEntry"> 
     113                                                                                                <td width="15" align="center" valign="middle" class="textSidebox"> 
     114                                                                                                        {icon_or_star} 
     115                                                                                                </td> 
     116                                                                                                <td class="textSidebox"> 
     117                                                                                                        <a class="textSidebox" href="{item_link}"{target}>{lang_item}</a> 
     118                                                                                                </td> 
     119                                                                                        </tr> 
     120<!-- END extra_block_row --> 
    79121 
     122<!-- BEGIN extra_block_spacer --> 
     123                                                                                        <tr class="divSideboxEntry"> 
     124                                                                                                <td colspan="2" height="8" class="textSidebox">&nbsp;</td> 
     125                                                                                        </tr> 
     126<!-- END extra_block_spacer --> 
    80127 
    81 <!-- BEGIN navbar_footer -->     
    82                 {sideboxcolend} 
    83                 <!-- End Sidebox Column --> 
    84                 <!-- Applicationbox Column --> 
    85                 <td id="tdAppbox" valign="top" {remove_padding}> 
    86                 <div id="divAppboxHeader">{current_app_title}</div> 
    87                 <div id="divAppbox" class="divAppbox"> 
    88                 <table id="tableDivAppbox" width="98%" cellpadding="0" cellspacing="0"> 
    89                 <tr><td> 
    90 <!-- END navbar_footer --> 
    91 <!-- BEGIN extra_blocks_header --> 
    92 <div class="divSidebox"> 
    93         <div class="divSideboxHeader"><span>{lang_title}</span></div> 
    94         <div> 
    95                 <table width="100%" cellspacing="0" cellpadding="0" border=0> 
    96 <!-- END extra_blocks_header --> 
    97128<!-- BEGIN extra_blocks_footer --> 
    98         </table>         
    99                 </div> 
    100                 </div> 
    101                 <div class="sideboxSpace"></div> 
     129                                                                                </table> 
     130                                                                        </div> 
     131                                                                </div> 
     132                                                                <div class="sideboxSpace"></div> 
    102133<!-- END extra_blocks_footer --> 
    103 <!-- BEGIN extra_block_row --> 
    104 <tr class="divSideboxEntry"> 
    105 <td width="15" align="center" valign="middle" class="textSidebox">{icon_or_star}</td><td class="textSidebox"><a class="textSidebox" href="{item_link}"{target}>{lang_item}</a></td></tr> 
    106 <!-- END extra_block_row --> 
    107 <!-- BEGIN extra_block_spacer --> 
    108 <tr class="divSideboxEntry">  
    109         <td colspan="2" height="8" class="textSidebox">&nbsp;</td> 
    110 </tr> 
    111 <!-- END extra_block_spacer --> 
Note: See TracChangeset for help on using the changeset viewer.