本文整理汇总了PHP中menu::main方法的典型用法代码示例。如果您正苦于以下问题:PHP menu::main方法的具体用法?PHP menu::main怎么用?PHP menu::main使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类menu
的用法示例。
在下文中一共展示了menu::main方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: unset
}
unset($res_loc);
// unsets all the waiters' _SESSION vars
unset($_SESSION['catprinted']);
if (isset($_REQUEST['mgmt_db_number'])) {
$_SESSION['common_db'] = $_REQUEST['mgmt_db_number'];
} elseif (!isset($_SESSION['common_db'])) {
$_SESSION['common_db'] = common_find_first_db();
}
/*
we almost always use this command var, so we get it here
to make it available to other functions whithout other hassle
*/
if (isset($_REQUEST['command'])) {
$command = $_REQUEST['command'];
} else {
$command = 'none';
}
if (isset($_REQUEST['data'])) {
$start_data = $_REQUEST['data'];
}
header("Content-Language: " . $_SESSION['language']);
header("Content-type: text/html; charset=" . phr('CHARSET'));
$tpl = new template();
$tmp = head_line('Management section');
$tpl->assign("head", $tmp);
$menu = new menu();
$tmp = $menu->main();
$tpl->append("scripts", $tmp);
$header_printed = 2;
}
示例2:
<li>|</li>
<LI><a href="javascript:void(0);" onclick="logout();">退出登录</a></li>
<li>|</li>
<li><a href="http://faq.idreamsoft.com" target="_blank">帮助</a></li>
<li>|</li>
<li><a href="index.php" target="_blank">网站首页</a></li>
<li>|</li>
<li><a href="http://www.idreamsoft.com" target="_blank">官方论坛</a></li>
</ul>
<div style="float:left"><?php
echo iCMS_VER;
?>
</div>
</div>
<div class='main_menu'> <!--主菜单--> <?php
menu::main();
?>
</div>
</div></td>
</tr>
</table>
<div class="top_border"></div>
</div></td>
</tr>
<tr>
<td valign="top" width="1%"><!--次菜单-->
<div class="left">
<div class="main_menu_title">
<div class="main_menu_title_left"></div>
<div class="main_menu_title_right" id="off"> </div>
<div class="none"></div>
示例3: menu
$cal_lang_file = ROOTDIR . '/jscalendar/lang/calendar-en.js';
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Smart Restaurant - Management</title>
<meta http-equiv="Cache-Control" content="no-cache">
<meta http-equiv="Expires" content="0">
<script type="text/javascript" language="JavaScript" src="<?php
echo $jsurl;
?>
"></script>
</script>
</head>
<?php
if (!isset($_GET['print'])) {
?>
<body class=mgmt_body>
<?php
$menu = new menu();
echo $menu->main();
?>
<table><TR><TD height="20"> </TD></TR></table>
<?php
}
$header_printed = 2;
}
$timestamp_start = $_SESSION['timestamp']['start'];
$timestamp_end = $_SESSION['timestamp']['end'];