47 lines
1.8 KiB
PHP
47 lines
1.8 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");
|
|
$_SESSION[$_PAGE_INFO['id']]['title'] = _("Assign equipment");
|
|
|
|
$_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");
|
|
$_SESSION[$_PAGE_INFO['id']]['title'] = _("Assign equipment");
|
|
|
|
$_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();
|
|
}
|
|
?>
|