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


PHP Menu::addMenu方法代碼示例

本文整理匯總了PHP中Menu::addMenu方法的典型用法代碼示例。如果您正苦於以下問題:PHP Menu::addMenu方法的具體用法?PHP Menu::addMenu怎麽用?PHP Menu::addMenu使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Menu的用法示例。


在下文中一共展示了Menu::addMenu方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Menu

require_once '../classes/connection.class.php';
require_once '../classes/menu.class.php';
$addmenuobj = new Menu();
/*echo '<pre>';
print_r($addmenuobj);
echo '</pre>';
exit;
*/
$menu_id = mysqli_real_escape_string($addmenuobj->conxn, $_POST['menu_id']);
$menu_category = mysqli_real_escape_string($addmenuobj->conxn, $_POST['menu_category']);
$category_title = mysqli_real_escape_string($addmenuobj->conxn, $_POST['category_title']);
$menu_title = mysqli_real_escape_string($addmenuobj->conxn, $_POST['menu_title']);
$menu_price = mysqli_real_escape_string($addmenuobj->conxn, $_POST['menu_price']);
$addmenuobj->setMenuID($menu_id);
$addmenuobj->setMenuCategory($menu_category);
$addmenuobj->setCategoryTitle($category_title);
$addmenuobj->setMenuTitle($menu_title);
$addmenuobj->setMenuPrice($menu_price);
//$adduserobj->setError($er);
//$adduserobj->setMessage($msg);
$addmenuobj->addMenu();
/*echo '<pre>';
print_r ($adduserobj);
echo '</pre>';
exit;*/
if ($addmenuobj) {
    header('location:../index.php?page=menu&action=view');
    $_SESSION['msg'] = $addmenuobj->msg = "The menu has been added sucessfully";
} else {
    echo $_SESSION['msg'] = $addmenuobj->msg = "Sorry the menu has not been  added, please try again later";
}
開發者ID:Ukesh2010,項目名稱:aila,代碼行數:31,代碼來源:process_add_menu.php

示例2: welcomePageTitle

<div id="main">
<?php 
include 'section/LinkExpo.php';
?>

<div id="preferencewelcomepage">

<?php 
welcomePageTitle($expo->title, 1);
if (PREF == 'New') {
    welcomePageContent($author, $expo);
} else {
    welcomePageContent();
}
welcomePageNavi();
?>

</div><!-- preferencewelcomepage -->

</div><!-- main -->

<?php 
$menuItemArray = array();
Menu::addMenu($menuItemArray);
include 'section/footer.php';
?>

</div><!-- container -->
</body></html>
開發者ID:ConSked,項目名稱:scheduler,代碼行數:29,代碼來源:PreferenceWelcomePage.php

示例3: swwat_createInputSubmit

<?php 
// ok, start the html
include 'section/header.php';
?>

<div id="main">

    <div id="sendmessagepage_send">
        <form method="POST" name="sendmessagepage_form" action="WorkerMessageAction.php">
            <?php 
echo "Subject: ";
echo '<input type="text" name="', PARAM_SUBJECT_MESSAGE, '" value="" length="30"/>';
echo "<p/>\n";
echo '<textarea name="', PARAM_MESSAGE, '" rows="3" cols="40"></textarea>';
echo "<br/><br/>\n";
swwat_createInputSubmit(PARAM_SEND_MESSAGE, "Send Message");
?>
        </form>
    </div><!-- sendmessagepage_send -->

</div><!-- main -->

<?php 
Menu::addMenu(array());
include 'section/footer.php';
?>

</div><!-- container -->
</body></html>
開發者ID:ConSked,項目名稱:scheduler,代碼行數:29,代碼來源:WorkerMessagePage.php


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