Ignore:
Timestamp:
01/17/11 15:32:30 (13 years ago)
Author:
eduardoalex
Message:

Ticket #1404 - Corrigido o layout da tela home do expresso mini

Location:
branches/2.2/mobile/inc
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/mobile/inc/class.mobiletemplate.inc.php

    r3652 r3690  
    6565                public function print_page($class, $method){ 
    6666                        $this->print_header(); 
     67                        $this->init_mobile(); 
    6768                        $class=='ui_home' && $method=='index'?$this->print_logout():$this->print_navbar(); 
    6869                        $filename = 'inc/class.'.$class.'.inc.php'; 
     
    7172                        $obj -> $method($_REQUEST); 
    7273                        $this->template->pfp('out', 'mobile_home'); 
     74                } 
     75                 
     76                public function init_mobile() { 
     77                        $ui_mobilemail = CreateObject('mobile.ui_mobilemail'); 
     78                        $obj = createobject("expressoMail1_2.functions"); 
     79      // setting timezone preference 
     80      $zones = $obj->getTimezones(); 
     81      $_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));                     
    7382                } 
    7483                 
     
    8998                */ 
    9099                private function print_navbar(){ 
    91                         $ui_mobilemail = CreateObject('mobile.ui_mobilemail'); 
    92                         $obj = createobject("expressoMail1_2.functions"); 
    93             // setting timezone preference 
    94             $zones = $obj->getTimezones(); 
    95             $_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)); 
    96  
    97  
    98100                        $this-> print_logout();                  
    99101                        $this-> template->set_var('lang_back', lang('Back')); 
  • branches/2.2/mobile/inc/class.ui_home.inc.php

    r3641 r3690  
    3737                        $this->template->set_var('lang_my_folders', lang("my folders")); 
    3838                        $this->template->set_var('lang_my_commitments', lang("my commitments")); 
    39                 $this->template->set_var('lang_my_contacts', lang("my contacts")); 
     39      $this->template->set_var('lang_my_contacts', lang("my contacts")); 
    4040                        $this->template->set_var('lang_new_mail', lang("new mail")); 
    4141                        $this->template->set_var('lang_mark_as_read', lang("mark as read")); 
     
    8989                        foreach($events[$year.$this->common->complete_string($month,2,"R","0").$this->common->complete_string($day,2,"R","0")] as $index=>$event)  
    9090                        { 
    91                                 $this->template->set_var('dd_class', (($index%2==0) ? "par" : "") ); 
     91                                $this->template->set_var('commitment_class', (($index%2==0) ? "fundo-azul-alinha" : "fundo-branco-alinha") ); 
    9292                                $this->template->set_var('commitment_time', $this->common->complete_string($event["start"]["hour"],2,"R","0") .":". $this->common->complete_string($event["start"]["min"],2,"R","0") ); 
    9393                                $this->template->set_var('commitment_title', $event["title"] ); 
     
    109109                        foreach($folders as $index=>$folder)  
    110110                        { 
    111                                 $this->template->set_var('dd_class', (($index%2==0) ? "par" : "") ); 
     111                                $this->template->set_var('folder_class', (($index%2==0) ? "par" : "par1") ); 
    112112                                $this->template->set_var('folder_id', $index + $index_increment ); 
    113113                                $this->template->set_var('folder_name', $folder["folder_name"] ); 
Note: See TracChangeset for help on using the changeset viewer.