Changeset 3727 for branches/2.2/mobile/inc/class.ui_home.inc.php
- Timestamp:
- 02/01/11 14:29:20 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2/mobile/inc/class.ui_home.inc.php
r3706 r3727 9 9 var $public_functions = array( 10 10 'index' => true, 11 'search' => true 11 'search' => true, 12 'change_template' => true 12 13 ); 13 14 … … 18 19 $this->db = CreateObject('phpgwapi.db'); 19 20 $this->bocalendar = CreateObject('calendar.bocalendar'); 21 } 22 23 function change_template($params) { 24 25 $GLOBALS['phpgw']->session->appsession('mobile.layout','mobile',$params['template']); 26 header("location: index.php"); 20 27 } 21 28 … … 98 105 $GLOBALS['phpgw_info']['mobiletemplate']->set_error_msg($params["error_message"]); 99 106 $GLOBALS['phpgw_info']['mobiletemplate']->set_success_msg($params["success_message"]); 100 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'page')); 107 if($GLOBALS['phpgw']->session->appsession('mobile.layout','mobile')=="mini") 108 $GLOBALS['phpgw_info']['mobiletemplate']->set_home($this->template->fp('out', 'page')); 109 else 110 $GLOBALS['phpgw_info']['mobiletemplate']->set_content($this->template->fp('out', 'page')); 111 101 112 } 102 113
Note: See TracChangeset
for help on using the changeset viewer.