Ignore:
Timestamp:
04/27/11 15:10:48 (13 years ago)
Author:
niltonneto
Message:

Ticket #1787 - quando feito o login automatico o botao sair não é mostrado na tela

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/mobile/inc/class.mobiletemplate.inc.php

    r4046 r4156  
    1616                        $template = $GLOBALS['phpgw']->session->appsession('mobile.layout','mobile'); 
    1717                         
    18                         if($template == "mini_desktop") { 
     18                        if( $template == "mini_desktop" ) 
     19                        { 
    1920                                $this->template->set_file(array('home_t' => 'pc_template.tpl')); 
    2021                                $this->template->set_file(array('home_t_search_bar' => 'search_bar.tpl')); 
     
    2425                                $this->template->set_var('lang_search_error_message',lang("need choose one option")); 
    2526                                $this->template->set_var('lang_search_error_message_four_digits',lang("search word need not be empty and has more then four char")); 
    26                         }       else { 
     27                        } 
     28                        else 
     29                        { 
    2730                                $this->template->set_file(array('home_t' => 'template.tpl')); 
    2831                                $this->template->set_var('lang_mini_desktop', lang('mini desktop')); 
    29                         } 
    30                          
    31  
     32 
     33                        } 
    3234                         
    3335                        $this->template->set_block('home_t', 'mobile_home'); 
     
    119121                } 
    120122 
    121                 public function init_mobile() { 
     123                public function init_mobile() 
     124                { 
    122125                        $ui_mobilemail = CreateObject('mobile.ui_mobilemail'); 
    123126                        $obj = createobject("expressoMail1_2.functions"); 
    124       // setting timezone preference 
    125       $zones = $obj->getTimezones(); 
    126       $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['timezone'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] : sprintf("%s", array_search("America/Sao_Paulo", $zones)); 
     127                // setting timezone preference 
     128                $zones = $obj->getTimezones(); 
     129                $_SESSION['phpgw_info']['user']['preferences']['expressoMail']['timezone'] = $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] ? $GLOBALS['phpgw_info']['user']['preferences']['expressoMail']['timezone'] : sprintf("%s", array_search("America/Sao_Paulo", $zones)); 
    127130                         
    128131                        $this->template->set_var('global_title', lang('expresso mini')); 
     132                        // button logout 
     133                        if( isset($_COOKIE['lem']) && isset($_COOKIE['pem']) ) 
     134                        { 
     135                                $this->template->set_var('style_1','padding-left:65%;'); 
     136                                $this->template->set_var('style_2','position:relative; float: right; display: none'); 
     137                        } 
     138                        else 
     139                        { 
     140                                $this->template->set_var('style_1','position:absolute; float: left;'); 
     141                                $this->template->set_var('style_2','position:relative; float: right; display: block'); 
     142                        } 
     143                         
    129144                        $this->template->set_var('lang_logout', lang('logout')); 
    130145                        $this->template->set_var('lang_search', lang('search')); 
Note: See TracChangeset for help on using the changeset viewer.