Changeset 3731 for branches/2.2/mobile/inc/class.ui_home.inc.php
- Timestamp:
- 02/03/11 17:13:42 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/inc/class.ui_home.inc.php
r3727 r3731 22 22 23 23 function change_template($params) { 24 25 24 $GLOBALS['phpgw']->session->appsession('mobile.layout','mobile',$params['template']); 26 header("location: index.php ");25 header("location: index.php?menuaction=mobile.ui_mobilemail.change_folder&folder=0"); 27 26 } 28 27 … … 49 48 $this->template->set_var('lang_selected', lang("selected")); 50 49 51 $this->template->set_var('search',$this->template->fp('out','search_bar'));52 53 50 $accountId = $GLOBALS['phpgw_info']['user']['account_id']; 54 51 … … 59 56 $this->set_folder_block($default_folders, "default_folders_box"); 60 57 61 if(isset($params["expand_folders"]) && $params["expand_folders"] == 1) 62 { 63 $personal_folders = $this->imap_functions->get_folders_list(array('noSharedFolders' => true, 'folderType' => 'personal', 'noQuotaInfo' => true)); 64 $this->set_folder_block($personal_folders, "personal_folders_box", sizeof($default_folders)); 65 $this->template->set_var('expand_folders', 0); 66 } else { 67 $this->template->set_var('expand_folders', 1); 68 } 58 $personal_folders = $this->imap_functions->get_folders_list(array('noSharedFolders' => true, 'folderType' => 'personal', 'noQuotaInfo' => true)); 59 $this->set_folder_block($personal_folders, "personal_folders_box", sizeof($default_folders)); 69 60 70 61 $this->template->set_var('quota_percent', $total_quota["quota_percent"]); … … 92 83 ) ); 93 84 94 $events 85 $events = $this->bocalendar->cached_events; 95 86 96 87 foreach($events[$year.$this->common->complete_string($month,2,"R","0").$this->common->complete_string($day,2,"R","0")] as $index=>$event) … … 105 96 $GLOBALS['phpgw_info']['mobiletemplate']->set_error_msg($params["error_message"]); 106 97 $GLOBALS['phpgw_info']['mobiletemplate']->set_success_msg($params["success_message"]); 107 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile')=="mini") 98 99 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile')=="mini_desktop") { 108 100 $GLOBALS['phpgw_info']['mobiletemplate']->set_home($this->template->fp('out', 'page')); 109 else 101 } else { 102 $this->template->set_var('search',$this->template->fp('out','search_bar')); 110 103 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'page')); 104 } 111 105 112 106 } … … 149 143 150 144 $p = $this->template; 151 $p->set_file( 152 Array( 153 'search' => 'home_search.tpl', 154 'home_search_bar' => 'search_bar.tpl' 155 ) 156 ); 145 $p->set_file(array('home_search' => 'home_search.tpl')); 146 $p->set_file(array('home_search_bar' => 'search_bar.tpl')); 157 147 158 148 //Langs gerais da página 159 $p->set_block(' search','home_search');160 $p->set_block(" search","row_events");161 $p->set_block(" search","no_events");149 $p->set_block('home_search','main'); 150 $p->set_block("home_search","row_events"); 151 $p->set_block("home_search","no_events"); 162 152 $p->set_block('home_search_bar','search_bar'); 163 153 … … 184 174 $p->set_var('show_more_events',"none"); 185 175 $p->set_var('contacts_request_from', 186 isset($params["request_from"])? 187 $params["request_from"]:"none"); 188 189 $p->set_var('search',$p->fp('out','search_bar')); 176 isset($params["request_from"])? 177 $params["request_from"]:"none"); 178 179 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile')!="mini_desktop") { 180 $p->set_var('search',$p->fp('out','search_bar')); 181 } 190 182 191 183 //E-mails … … 194 186 if($params['default_folders']==="1") { 195 187 if($params['personal_folders']!=="1") 196 $mail_params['folderType'] = 'default'; 188 $mail_params['folderType'] = 'default'; 197 189 } 198 190 else { … … 324 316 } 325 317 326 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out',' home_search'));318 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($p->fp('out','main')); 327 319 328 320 }
Note: See TracChangeset
for help on using the changeset viewer.