Changeset 4156 for trunk/mobile/inc/class.mobiletemplate.inc.php
- Timestamp:
- 04/27/11 15:10:48 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mobile/inc/class.mobiletemplate.inc.php
r4046 r4156 16 16 $template = $GLOBALS['phpgw']->session->appsession('mobile.layout','mobile'); 17 17 18 if($template == "mini_desktop") { 18 if( $template == "mini_desktop" ) 19 { 19 20 $this->template->set_file(array('home_t' => 'pc_template.tpl')); 20 21 $this->template->set_file(array('home_t_search_bar' => 'search_bar.tpl')); … … 24 25 $this->template->set_var('lang_search_error_message',lang("need choose one option")); 25 26 $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 { 27 30 $this->template->set_file(array('home_t' => 'template.tpl')); 28 31 $this->template->set_var('lang_mini_desktop', lang('mini desktop')); 29 } 30 31 32 33 } 32 34 33 35 $this->template->set_block('home_t', 'mobile_home'); … … 119 121 } 120 122 121 public function init_mobile() { 123 public function init_mobile() 124 { 122 125 $ui_mobilemail = CreateObject('mobile.ui_mobilemail'); 123 126 $obj = createobject("expressoMail1_2.functions"); 124 125 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)); 127 130 128 131 $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 129 144 $this->template->set_var('lang_logout', lang('logout')); 130 145 $this->template->set_var('lang_search', lang('search'));
Note: See TracChangeset
for help on using the changeset viewer.