Changeset 3829 for branches/2.2/mobile/inc
- Timestamp:
- 02/28/11 11:22:55 (13 years ago)
- Location:
- branches/2.2/mobile/inc
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/inc/class.mobiletemplate.inc.php
r3734 r3829 4 4 { 5 5 private $template; 6 private $href_back; 6 7 7 8 /* … … 23 24 $this->template->set_var('lang_search_error_message',lang("need choose one option")); 24 25 $this->template->set_var('lang_search_error_message_four_digits',lang("search word need not be empty and has more then four char")); 25 26 27 26 } else { 28 27 $this->template->set_file(array('home_t' => 'template.tpl')); … … 134 133 $this->template->set_var('lang_contacts', lang('Contact Center')); 135 134 $this->template->set_var('lang_calendar', lang('Calendar')); 136 $this->template->set_var('href_back', 'javascript:history.back()');137 135 $this->template->set_var('href_cc', 'index.php?menuaction=mobile.ui_mobilecc.init_cc'); 138 136 $this->template->set_var('href_email', "index.php?menuaction=mobile.ui_mobilemail.change_folder&folder=0"); 139 137 $this->template->set_var('href_calendar', "index.php?menuaction=mobile.ui_mobilecalendar.index"); 140 138 $this->template->set_var('href_home', "index.php?menuaction=mobile.ui_home.index"); 139 } 140 141 private function process_back_link() { 142 $url = $GLOBALS['phpgw']->session->appsession('mobile.last_url','mobile'); 143 144 if($url) { 145 $params = $GLOBALS['phpgw']->session->appsession('mobile.last_request','mobile'); 146 147 $query_string = ""; 148 unset($params['sessionid']); 149 unset($params['domain']); 150 unset($params['last_loginid']); 151 unset($params['last_domain']); 152 unset($params['kp3']); 153 unset($params['showHeader']); 154 155 foreach ($params as $key => $value) { 156 $query_string .= "&".$key."=".$value; 157 } 158 159 if($query_string != "") 160 $url .= "?".substr($query_string,1); 161 162 $this->href_back = $url; 163 } else { 164 $this->href_back = 'javascript:history.back()'; 165 } 166 167 $GLOBALS['phpgw']->session->appsession('mobile.last_url','mobile',$_SERVER["SCRIPT_URL"]); 168 $GLOBALS['phpgw']->session->appsession('mobile.last_request','mobile',$_REQUEST); 169 } 170 171 function get_back_link(){ 172 return $this->href_back; 141 173 } 142 174 … … 150 182 $var = Array('title' => lang("expresso mini")); 151 183 $this->template->set_var($var); 184 $this->process_back_link(); 152 185 } 153 186 -
branches/2.2/mobile/inc/class.ui_home.inc.php
r3813 r3829 176 176 $p->set_var('search_param',$params['name']); 177 177 $p->set_var('lang_back',lang('back')); 178 $p->set_var('href_back',$GLOBALS['phpgw_info']['mobiletemplate']->get_back_link()); 178 179 $p->set_var('lang_new_message',ucfirst(lang('new message'))); 179 180 $p->set_var('lang_search',lang('search')); -
branches/2.2/mobile/inc/class.ui_mobilecalendar.inc.php
r3731 r3829 38 38 $this->template->set_block('home_search_bar','search_bar'); 39 39 $this->template->set_var('lang_back',lang("back")); 40 $this->template->set_var('href_back',$GLOBALS['phpgw_info']['mobiletemplate']->get_back_link()); 40 41 $this->template->set_var('lang_calendar',lang("Calendar")); 41 42 $this->template->set_var('lang_search',lang("search")); -
branches/2.2/mobile/inc/class.ui_mobilecc.inc.php
r3825 r3829 134 134 //Langs gerais da página 135 135 $this->template->set_var("lang_back",lang("back")); 136 $this->template->set_var('href_back',$GLOBALS['phpgw_info']['mobiletemplate']->get_back_link()); 136 137 $this->template->set_var("selecteds",ucfirst(lang("selecteds"))); 137 138 $this->template->set_var("lang_more",lang("more")); … … 580 581 581 582 $this->template->set_var('lang_back',lang("back")); 583 $this->template->set_var('href_back',$GLOBALS['phpgw_info']['mobiletemplate']->get_back_link()); 582 584 $this->template->set_var('lang_use_contact',lang("use contact")); 583 585 $this->template->set_var('lang_selecteds',lang("selecteds")); … … 682 684 $this->template->set_var('lang_contact_title',lang("context contact")); 683 685 $this->template->set_var('lang_back',lang("back")); 686 $this->template->set_var('href_back',$GLOBALS['phpgw_info']['mobiletemplate']->get_back_link()); 684 687 $this->template->set_var('lang_cancel',lang("cancel")); 685 688 $this->template->set_var('lang_confirm', $confirm); -
branches/2.2/mobile/inc/class.ui_mobilemail.inc.php
r3814 r3829 210 210 $this->template->set_block('view_msg', 'attachment_alert_block'); 211 211 $this->template->set_var('lang_back', lang("back")); 212 $this->template->set_var('href_back',$GLOBALS['phpgw_info']['mobiletemplate']->get_back_link()); 212 213 $this->template->set_var('lang_reading_message', lang("Reading Message")); 213 214 $this->template->set_var('theme', $GLOBALS['phpgw_info']['server']['template_set']); … … 440 441 $p->set_var("selected_".$this->current_search_box_type,"selected"); 441 442 $p->set_var("lang_back",lang("back")); 443 $p->set_var('href_back',$GLOBALS['phpgw_info']['mobiletemplate']->get_back_link()); 442 444 $p->set_var("selecteds",ucfirst(lang("Selecteds"))); 443 445 $p->set_var("filter_by",lang("filter by")); … … 685 687 $this->template->set_block('new_msg_t', 'page'); 686 688 $this->template->set_var('lang_back', lang("back")); 689 $this->template->set_var('href_back',$GLOBALS['phpgw_info']['mobiletemplate']->get_back_link()); 687 690 $this->template->set_var('lang_calendar', strtoupper(lang("Calendar"))); 688 691 $this->template->set_var('lang_send', strtoupper(lang("Send")));
Note: See TracChangeset
for help on using the changeset viewer.