| [ Index ] |
|
Code source de eGroupWare 1.2.106-2 |
1 <?php 2 /**************************************************************************\ 3 * eGroupWare SiteMgr - Web Content Management * 4 * http://www.egroupware.org * 5 * -------------------------------------------- * 6 * This program is free software; you can redistribute it and/or modify it * 7 * under the terms of the GNU General Public License as published by the * 8 * Free Software Foundation; either version 2 of the License, or (at your * 9 * option) any later version. * 10 \**************************************************************************/ 11 12 /* $Id: class.ui.inc.php 20295 2006-02-15 12:31:25Z $ */ 13 14 class ui 15 { 16 var $t; 17 18 19 function ui() 20 { 21 $themesel = $GLOBALS['sitemgr_info']['themesel']; 22 $templateroot = $GLOBALS['sitemgr_info']['site_dir'] . SEP . 'templates' . SEP . $themesel; 23 $this->t =& new Template3($templateroot); 24 } 25 26 function displayPageByName($page_name) 27 { 28 global $objbo; 29 global $page; 30 $objbo->loadPage($GLOBALS['Common_BO']->pages->so->PageToID($page_name)); 31 $this->generatePage(); 32 } 33 34 function displayPage($page_id) 35 { 36 global $objbo; 37 $objbo->loadPage($page_id); 38 $this->generatePage(); 39 } 40 41 function displayIndex() 42 { 43 global $objbo; 44 $objbo->loadIndex(); 45 $this->generatePage(); 46 } 47 48 function displayTOC($categoryid=false) 49 { 50 global $objbo; 51 $objbo->loadTOC($categoryid); 52 $this->generatePage(); 53 } 54 55 function generatePage() 56 { 57 // add a content-type header to overwrite an existing default charset in apache (AddDefaultCharset directiv) 58 header('Content-type: text/html; charset='.$GLOBALS['egw']->translation->charset()); 59 60 echo $this->t->parse(); 61 } 62 63 } 64 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
| Généré le : Sun Feb 25 17:20:01 2007 | par Balluche grâce à PHPXref 0.7 |