Changeset 3690 for branches/2.2/mobile/inc
- Timestamp:
- 01/17/11 15:32:30 (13 years ago)
- Location:
- branches/2.2/mobile/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/inc/class.mobiletemplate.inc.php
r3652 r3690 65 65 public function print_page($class, $method){ 66 66 $this->print_header(); 67 $this->init_mobile(); 67 68 $class=='ui_home' && $method=='index'?$this->print_logout():$this->print_navbar(); 68 69 $filename = 'inc/class.'.$class.'.inc.php'; … … 71 72 $obj -> $method($_REQUEST); 72 73 $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)); 73 82 } 74 83 … … 89 98 */ 90 99 private function print_navbar(){ 91 $ui_mobilemail = CreateObject('mobile.ui_mobilemail');92 $obj = createobject("expressoMail1_2.functions");93 // setting timezone preference94 $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 98 100 $this-> print_logout(); 99 101 $this-> template->set_var('lang_back', lang('Back')); -
branches/2.2/mobile/inc/class.ui_home.inc.php
r3641 r3690 37 37 $this->template->set_var('lang_my_folders', lang("my folders")); 38 38 $this->template->set_var('lang_my_commitments', lang("my commitments")); 39 39 $this->template->set_var('lang_my_contacts', lang("my contacts")); 40 40 $this->template->set_var('lang_new_mail', lang("new mail")); 41 41 $this->template->set_var('lang_mark_as_read', lang("mark as read")); … … 89 89 foreach($events[$year.$this->common->complete_string($month,2,"R","0").$this->common->complete_string($day,2,"R","0")] as $index=>$event) 90 90 { 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") ); 92 92 $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") ); 93 93 $this->template->set_var('commitment_title', $event["title"] ); … … 109 109 foreach($folders as $index=>$folder) 110 110 { 111 $this->template->set_var(' dd_class', (($index%2==0) ? "par" : "") );111 $this->template->set_var('folder_class', (($index%2==0) ? "par" : "par1") ); 112 112 $this->template->set_var('folder_id', $index + $index_increment ); 113 113 $this->template->set_var('folder_name', $folder["folder_name"] );
Note: See TracChangeset
for help on using the changeset viewer.