本文整理汇总了PHP中ui::displayPageByName方法的典型用法代码示例。如果您正苦于以下问题:PHP ui::displayPageByName方法的具体用法?PHP ui::displayPageByName怎么用?PHP ui::displayPageByName使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ui
的用法示例。
在下文中一共展示了ui::displayPageByName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: lang
if (!is_dir($GLOBALS['sitemgr_info']['site_dir'] . SEP . 'templates') || !is_readable($GLOBALS['sitemgr_info']['site_dir'] . SEP . 'templates')) {
echo lang("The filesystem path to your sitemgr-site directory '%1' is probably wrong. Go to SiteMgr --> Define Websites and edit/fix the concerned Site.", $GLOBALS['sitemgr_info']['site_dir']);
} elseif (!is_dir($templateroot) || !is_readable($templateroot)) {
echo lang("You may have deinstalled the used template '%1'. Reinstall it or go to SiteMgr --> Configure Website and select an other one.", $GLOBALS['sitemgr_info']['themesel']);
}
$GLOBALS['phpgw']->common->phpgw_exit();
}
$objui = new ui();
$page = CreateObject('sitemgr.Page_SO');
$page_id = $_GET['page_id'];
$page_name = $_GET['page_name'];
$category_id = $_GET['category_id'];
$toc = $_GET['toc'];
$index = $_GET['index'];
if ($page_name && $page_name != 'index.php') {
$objui->displayPageByName($page_name);
} elseif ($category_id) {
$cat = $Common_BO->cats->getCategory($category_id);
if ($cat->index_page_id > 0) {
$page = $Common_BO->pages->getPage($cat->index_page_id);
if ($page->id) {
$objui->displayPage($page->id);
}
}
if (!$cat->index_page_id || !is_object($page) || !$page->id) {
$objui->displayTOC($category_id);
}
} elseif ($page_id) {
$objui->displayPage($page_id);
} elseif (isset($index)) {
$objui->displayIndex();