54 lines
1.9 KiB
PHP
54 lines
1.9 KiB
PHP
<?php
|
|
/** \file scripts\page\menu_changelog_search.php
|
|
* \brief DI webinterface menu system version and changelog 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 version and changelog search script. This file
|
|
* creates a search engine for software/hardware/mechanical version.
|
|
*/
|
|
|
|
//== Menu structure
|
|
|
|
if(
|
|
!is_valid_action(
|
|
"changelog_new","changelog_duplicate","changelog_change","changelog_info","changelog_delete"
|
|
)
|
|
) {
|
|
// Redirect page back to login page
|
|
force_logout(_("No valid rights"), "Invalid action: " . current_action(TRUE));
|
|
}
|
|
|
|
$page = new MTinfoSearchScreen();
|
|
|
|
//===========================================
|
|
|
|
// Verify project/rights and log
|
|
if( $page->user_has_rights() ) {
|
|
// Redirect when creating new system component, version or change log item
|
|
if( is_valid_action("system_component_new") ) {
|
|
// Redirect to new system component entry page
|
|
header("Location: ?id=" . $_PAGE_INFO['id'] . "&href=page/menu_syscomp_info&action=" . current_action() . "");
|
|
}
|
|
else if( is_valid_action("version_new") ) {
|
|
// Redirect to new version entry page
|
|
header("Location: ?id=" . $_PAGE_INFO['id'] . "&href=page/menu_version_info&action=" . current_action() . "");
|
|
}
|
|
else if( is_valid_action("version_new") ) {
|
|
// Redirect to version new page
|
|
header("Location: ?id=" . $_PAGE_INFO['id'] . "&href=page/menu_version_info&action=" . current_action() . "");
|
|
}
|
|
else {
|
|
// Show page header
|
|
$y_position = (isset($_SESSION[$_PAGE_INFO['id']]['syscomp_info']['y_position'])) ? ($_SESSION[$_PAGE_INFO['id']]['syscomp_info']['y_position']) : 0;
|
|
print_xml_header($y_position, $extra_header_HTML);
|
|
|
|
// Include search content
|
|
include("menu_changelog_search_content.php");
|
|
|
|
// Show page footer
|
|
print_page_footer();
|
|
}
|
|
}
|
|
?>
|