src.dualinventive.com/mtinfo/dist/webroot/main/scripts/page/menu_material.php

47 lines
1.7 KiB
PHP

<?php
/** \file scripts\page\menu_material.php
* \brief DI webinterface menu script.
* \author Rob Schalken, Core|Vision
* \version 1.0
* \date 17-10-2008
*
* This file gives an overview of all assigned/non-assigned materials
*/
//== Required settings ======================
if (!isset($_SESSION[$_PAGE_INFO['id']]['main_menu'])) {
$_PAGE_INFO['page_title'] = "equipment menu";
$_PAGE_INFO['history_menu_buttons'] = array("Project overview");
$_PAGE_INFO['history_menu_links'] = array("page/project");
$_PAGE_INFO['shortcut_menu_buttons']= array("Print equipment overview");
$_PAGE_INFO['shortcut_menu_links'] = array("action/_a_menu_material&print");
$_PAGE_INFO['shortcut_menu_rights'] = array("menu:projecten:root,menu:projecten&projecten:d");
}
else {
$_PAGE_INFO['page_title'] = "equipment menu";
$_PAGE_INFO['history_menu_buttons'] = array("Project overview", $_PAGE_INFO['HIST_MAIN'], "Project maintenance");
$_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu", "page/menu_project");
$_PAGE_INFO['shortcut_menu_buttons']= array("Print equipment overview");
$_PAGE_INFO['shortcut_menu_links'] = array("action/_a_menu_material&print");
$_PAGE_INFO['shortcut_menu_rights'] = array("menu:projecten:root,menu:projecten&projecten:d");
}
//===========================================
// Verify project/rights and log
if (Ver_Rights_Project_Log("menu:projecten:root,menu:projecten", "menu:projecten:materieel")) {
// Show page header
print_xml_header();
// Include material content
include("menu_material_content.php");
// Show page footer
print_page_footer();
}
?>