151 lines
5.8 KiB
PHP
151 lines
5.8 KiB
PHP
<?php
|
|
/** \file scripts\page\menu_lance_search.php
|
|
* \brief DI webinterface menu lance script.
|
|
* \author Rob Schalken, Core|Vision
|
|
* \version 1.0
|
|
* \date 17-10-2008
|
|
*
|
|
* This file contains the menu lance search script. This file creates a search
|
|
* engine for lances.
|
|
*/
|
|
|
|
//== Required settings ======================
|
|
if (is_valid_action("lance_use")) {
|
|
$_PAGE_INFO['page_title'] = "equipment search menu";
|
|
|
|
$_PAGE_INFO['history_menu_buttons'] = array("Project overview", $_PAGE_INFO['HIST_MAIN']);
|
|
$_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu");
|
|
|
|
$menu = "zoekscherm:lans";
|
|
$rights = "menu:lans";
|
|
$title = "Equipment search (use)";
|
|
}
|
|
else if (is_valid_action("lance_rt")) {
|
|
$_PAGE_INFO['page_title'] = "equipment select menu";
|
|
|
|
$_PAGE_INFO['history_menu_buttons'] = array("Project overview", $_PAGE_INFO['HIST_MAIN']);
|
|
$_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu");
|
|
|
|
$menu = "zoekscherm:lansen";
|
|
$rights = "menu:realtime_status";
|
|
$title = "Equipment select (realtime)";
|
|
}
|
|
else if (is_valid_action("lance_info")) {
|
|
$_PAGE_INFO['page_title'] = "equipment search";
|
|
|
|
$_PAGE_INFO['history_menu_buttons'] = array("Project overview", $_PAGE_INFO['HIST_MAIN'], "Equipment maintenance");
|
|
$_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu", "page/menu_lance");
|
|
|
|
$menu = "zoekscherm:lans";
|
|
$rights = "menu:lansen:root,menu:lansen";
|
|
$title = "Equipment search (info)";
|
|
}
|
|
else if (is_valid_action("lance_change")) {
|
|
$_PAGE_INFO['page_title'] = "equipment search";
|
|
|
|
$_PAGE_INFO['history_menu_buttons'] = array("Project overview", $_PAGE_INFO['HIST_MAIN'], "Equipment maintenance");
|
|
$_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu", "page/menu_lance");
|
|
|
|
$menu = "zoekscherm:lans";
|
|
$rights = "menu:lansen:root,menu:lansen";
|
|
$title = "Equipment search (change)";
|
|
}
|
|
else if (is_valid_action("lance_delete")) {
|
|
$_PAGE_INFO['page_title'] = "Delete equipment menu";
|
|
|
|
$_PAGE_INFO['history_menu_buttons'] = array("Project overview", $_PAGE_INFO['HIST_MAIN'], "Equipment maintenance");
|
|
$_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu", "page/menu_lance");
|
|
|
|
$menu = "menu:lansen:verwijderen";
|
|
$rights = "menu:lansen:root,menu:lansen";
|
|
$title = "Delete equipment";
|
|
}
|
|
else if (is_valid_action("lance_calibration")) {
|
|
$_PAGE_INFO['page_title'] = "equipment search";
|
|
|
|
$_PAGE_INFO['history_menu_buttons'] = array("Project overview", $_PAGE_INFO['HIST_MAIN'], "Equipment maintenance");
|
|
$_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu", "page/menu_lance");
|
|
|
|
$menu = "zoekscherm:lans";
|
|
$rights = "menu:lansen:root,menu:lansen";
|
|
$title = "Equipment search (elek test)";
|
|
}
|
|
else if (is_valid_action("lance_endcontrol")) {
|
|
$_PAGE_INFO['page_title'] = "equipment search";
|
|
|
|
$_PAGE_INFO['history_menu_buttons'] = array("Project overview", $_PAGE_INFO['HIST_MAIN'], "Equipment maintenance");
|
|
$_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu", "page/menu_lance");
|
|
|
|
$menu = "zoekscherm:lans";
|
|
$rights = "menu:lansen:root,menu:lansen";
|
|
$title = "Equipment search (func test)";
|
|
}
|
|
else if (is_valid_action("lance_main_report")) {
|
|
$_PAGE_INFO['page_title'] = "equipment search";
|
|
|
|
$_PAGE_INFO['history_menu_buttons'] = array("Project overview", $_PAGE_INFO['HIST_MAIN'], "Equipment maintenance");
|
|
$_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu", "page/menu_lance");
|
|
|
|
$menu = "zoekscherm:lans";
|
|
$rights = "menu:lansen:root,menu:lansen";
|
|
$title = "Equipment search (report)";
|
|
}
|
|
else if (is_valid_action("lance_doc")) {
|
|
$_PAGE_INFO['page_title'] = "equipment search";
|
|
|
|
$_PAGE_INFO['history_menu_buttons'] = array("Project overview", $_PAGE_INFO['HIST_MAIN'], "Equipment maintenance");
|
|
$_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu", "page/menu_lance");
|
|
|
|
$menu = "zoekscherm:lans";
|
|
$rights = "menu:lansen:root,menu:lansen";
|
|
$title = "Equipment search (doc)";
|
|
}
|
|
else if (is_valid_action("lance_change_status")) {
|
|
$_PAGE_INFO['page_title'] = "equipment search";
|
|
|
|
$_PAGE_INFO['history_menu_buttons'] = array("Project overview", $_PAGE_INFO['HIST_MAIN'], "Equipment maintenance");
|
|
$_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu", "page/menu_lance");
|
|
|
|
$menu = "zoekscherm:lans";
|
|
$rights = "menu:lansen:root,menu:lansen";
|
|
$title = "Equipment search (status)";
|
|
}
|
|
else if (is_valid_action("lance_alarmnr")) {
|
|
$_PAGE_INFO['page_title'] = "equipment search";
|
|
|
|
$_PAGE_INFO['history_menu_buttons'] = array("Project overview", $_PAGE_INFO['HIST_MAIN'], "Equipment maintenance");
|
|
$_PAGE_INFO['history_menu_links'] = array("page/project", "page/menu", "page/menu_lance");
|
|
|
|
$menu = "zoekscherm:lans";
|
|
$rights = "menu:lansen:root,menu:lansen";
|
|
$title = "Equipment search (alarm nr)";
|
|
}
|
|
//===========================================
|
|
|
|
// Clear previous session info
|
|
unset($_SESSION[$_PAGE_INFO['id']]['lance_info']);
|
|
|
|
// Verify project/rights and log
|
|
if (Ver_Rights_Project_Log($rights, $menu)) {
|
|
// Redirect when creating new lance
|
|
if (!is_valid_action("lance_new")) {
|
|
// Store title
|
|
$_SESSION[$_PAGE_INFO['id']]['title'] = $title;
|
|
|
|
// Show page header
|
|
print_xml_header();
|
|
|
|
// Include search content
|
|
include("menu_lance_search_content.php");
|
|
|
|
// Show page footer
|
|
print_page_footer();
|
|
}
|
|
else {
|
|
// Redirect to lance new page
|
|
header("Location: ?id=" . $_PAGE_INFO['id'] . "&href=page/menu_lance_info&action=" . $_SESSION[$_PAGE_INFO['id']]['action'] . "");
|
|
}
|
|
}
|
|
|
|
?>
|