當前位置: 首頁>>代碼示例>>PHP>>正文


PHP menu::main方法代碼示例

本文整理匯總了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;
}
開發者ID:jaimeivan,項目名稱:smart-restaurant,代碼行數:31,代碼來源:mgmt_start_new.php

示例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>
開發者ID:idreamsoft,項目名稱:iCMS5.0,代碼行數:31,代碼來源:admincp.php

示例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">&nbsp;</TD></TR></table>

<?php 
    }
    $header_printed = 2;
}
$timestamp_start = $_SESSION['timestamp']['start'];
$timestamp_end = $_SESSION['timestamp']['end'];
開發者ID:jaimeivan,項目名稱:smart-restaurant,代碼行數:31,代碼來源:mgmt_start.php


注:本文中的menu::main方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。