src.dualinventive.com/mtinfo/dist/webroot/rc-4.05/scripts/page/menu_syscomp_search.php

43 lines
1.3 KiB
PHP

<?php
/** \file scripts\page\menu_syscomp_search.php
* \brief DI webinterface menu system component 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 system component search script.
*/
if(
!is_valid_action(
"system_component_new","system_component_duplicate","system_component_change","system_component_info","system_component_delete",
"version_new"
)
) {
// 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("system_component_new")) {
// Show page header
print_xml_header();
// Include search content
include("menu_syscomp_search_content.php");
// Show page footer
print_page_footer();
}
else {
// Redirect to system component new page
header("Location: ?id=" . $_PAGE_INFO['id'] . "&href=page/menu_syscomp_info&action=" . $_SESSION[$_PAGE_INFO['id']]['action'] . "");
}
}
?>