Location: PHPKode > projects > Science Lab Inventory & Order Management > sciencelabinv/ewmenu.php
<?php

// Menu
define("EW_MENUBAR_CLASSNAME", "ewMenuBarVertical", TRUE);
define("EW_MENUBAR_SUBMENU_CLASSNAME", "", TRUE);
?>
<?php

// MenuItem Adding event
function MenuItem_Adding(&$Item) {

	//var_dump($Item);
	// Return FALSE if menu item not allowed

	return TRUE;
}
?>
<!-- Begin Main Menu -->
<div class="nav2">
<?php

// Generate all menu items
$RootMenu = new cMenu("RootMenu");
$RootMenu->IsRoot = TRUE;
$RootMenu->AddMenuItem(14, $Language->MenuPhrase("14", "MenuText"), "orderslist.php?order=request_date&ordertype=DESC", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(4, $Language->MenuPhrase("4", "MenuText"), "orderslist.php?cmd=resetall", 14, "", AllowListMenu('orders'));
$RootMenu->AddMenuItem(3, $Language->MenuPhrase("3", "MenuText"), "order_detaillist.php?cmd=resetall", 14, "", AllowListMenu('order_detail'));
$RootMenu->AddMenuItem(2, $Language->MenuPhrase("2", "MenuText"), "lessonlist.php", 14, "", AllowListMenu('lesson'));
$RootMenu->AddMenuItem(15, $Language->MenuPhrase("15", "MenuText"), "itemslist.php?order=name&ordertype=ASC", -1, "", True);
$RootMenu->AddMenuItem(1, $Language->MenuPhrase("1", "MenuText"), "itemslist.php?cmd=resetall", 15, "", TRUE);
$RootMenu->AddMenuItem(6, $Language->MenuPhrase("6", "MenuText"), "storeslist.php?cmd=resetall", 15, "", TRUE);
$RootMenu->AddMenuItem(5, $Language->MenuPhrase("5", "MenuText"), "roomslist.php", 15, "", TRUE);
$RootMenu->AddMenuItem(7, $Language->MenuPhrase("7", "MenuText"), "typeslist.php", 15, "", AllowListMenu('types'));
$RootMenu->AddMenuItem(8, $Language->MenuPhrase("8", "MenuText"), "unitlist.php", 15, "", AllowListMenu('unit'));
$RootMenu->AddMenuItem(9, $Language->MenuPhrase("9", "MenuText"), "useraccountslist.php", -1, "", AllowListMenu('useraccounts'));
$RootMenu->AddMenuItem(16, $Language->MenuPhrase("16", "MenuText"), "orders_viewlist.php?order=request_date&ordertype=DESC", -1, "", True);
$RootMenu->AddMenuItem(12, $Language->MenuPhrase("12", "MenuText"), "orders_viewlist.php", 16, "", TRUE);
$RootMenu->AddMenuItem(10, $Language->MenuPhrase("10", "MenuText"), "items_viewlist.php", 16, "", TRUE);
$RootMenu->AddMenuItem(11, $Language->MenuPhrase("11", "MenuText"), "orders_detail_viewlist.php", 16, "", TRUE);
$RootMenu->AddMenuItem(31, $Language->MenuPhrase("31", "MenuText"), "orders_date_teacherreport.php?cmd=resetall", 16, "", TRUE);
$RootMenu->AddMenuItem(32, $Language->MenuPhrase("32", "MenuText"), "orders_date_lessonreport.php", 16, "", TRUE);
$RootMenu->AddMenuItem(-1, $Language->Phrase("Logout"), "logout.php", -1, "", IsLoggedIn());
$RootMenu->AddMenuItem(-1, $Language->Phrase("Login"), "login.php", -1, "", !IsLoggedIn() && substr(@$_SERVER["URL"], -1 * strlen("login.php")) <> "login.php");
$RootMenu->Render();
?>
</div>
<!-- End Main Menu -->
Return current item: Science Lab Inventory & Order Management