43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?php
|
|
/** \file scripts\page\menu_woitem_search.php
|
|
* \brief DI webinterface menu workorder item search script.
|
|
* \author Jack Weeland, Core|Vision
|
|
* \version $Revision: 26247 $
|
|
* \date $Date: 2016-02-29 10:40:22 +0100 (Mon, 29 Feb 2016) $
|
|
*
|
|
* This file contains the menu workorder item search script.
|
|
*/
|
|
|
|
//== Menu structure
|
|
if(
|
|
!is_valid_action(
|
|
"workorder_item_new","workorder_item_duplicate","workorder_item_change","workorder_item_info","workorder_item_delete"
|
|
)
|
|
){
|
|
// Redirect page back to login page
|
|
force_logout(_("No valid rights"), "Invalid action: " . $_SESSION[$_PAGE_INFO['id']]['action']);
|
|
}
|
|
|
|
$page = new MTinfoSearchScreen();
|
|
|
|
//===========================================
|
|
|
|
// Verify project/rights and log
|
|
if( $page->user_has_rights() ) {
|
|
// Redirect when creating new equipment type
|
|
if (!is_valid_action("workorder_item_new")) {
|
|
// Show page header
|
|
print_xml_header();
|
|
|
|
// Include search content
|
|
include("menu_woitem_search_content.php");
|
|
|
|
// Show page footer
|
|
print_page_footer();
|
|
}
|
|
else {
|
|
// Redirect to workorder item entry
|
|
header("Location: ?id=" . $_PAGE_INFO['id'] . "&href=page/menu_woitem_info&action=" . $_SESSION[$_PAGE_INFO['id']]['action'] . "");
|
|
}
|
|
}
|
|
?>
|