<?php require_once SPECMANAGEMENT_CORE_URI . 'specmanagement_database_api.php'; require_once SPECMANAGEMENT_CORE_URI . 'specmanagement_print_api.php'; $print_flag = false; if (isset($_POST['print'])) { $print_flag = true; } /** * Page content */ calculate_page_content($print_flag); /** * @param $print_flag */ function calculate_page_content($print_flag) { $specmanagement_print_api = new specmanagement_print_api(); html_page_top1(plugin_lang_get('menu_versgraph')); echo '<link rel="stylesheet" href="' . SPECMANAGEMENT_PLUGIN_URL . 'files/specmanagement.css">'; if (!$print_flag) { html_page_top2(); if (plugin_is_installed('WhiteboardMenu') && file_exists(config_get_global('plugin_path') . 'WhiteboardMenu')) { require_once WHITEBOARDMENU_CORE_URI . 'whiteboard_print_api.php'; $whiteboard_print_api = new whiteboard_print_api(); $whiteboard_print_api->printWhiteboardMenu(); } $specmanagement_print_api->print_plugin_menu(); echo '<div align="center">'; echo '<hr size="1" width="100%" />'; }
} $show_zero_issues = false; if (isset($_POST['show_zero_issues'])) { $show_zero_issues = true; } if (isset($_POST['non_show_zero_issues'])) { $show_zero_issues = false; } $print_flag = false; if (isset($_POST['print'])) { $print_flag = true; } /** * Page content */ calculate_page_content($print_flag, $obsolete_flag, $show_zero_issues); /** * @param $print_flag * @param $obsolete_flag * @param $show_zero_issues */ function calculate_page_content($print_flag, $obsolete_flag, $show_zero_issues) { $specmanagement_print_api = new specmanagement_print_api(); html_page_top1(plugin_lang_get('menu_versview')); echo '<link rel="stylesheet" href="' . SPECMANAGEMENT_PLUGIN_URL . 'files/specmanagement.css">'; if (!$print_flag) { html_page_top2(); // if ( plugin_is_installed( 'WhiteboardMenu' ) && file_exists ( config_get_global ( 'plugin_path' ) . 'WhiteboardMenu' ) ) // { // require_once WHITEBOARDMENU_CORE_URI . 'whiteboard_print_api.php';
<?php require_once SPECMANAGEMENT_CORE_URI . 'specmanagement_database_api.php'; require_once SPECMANAGEMENT_CORE_URI . 'specmanagement_print_api.php'; calculate_page_content(); function calculate_page_content() { $specmanagement_database_api = new specmanagement_database_api(); $specmanagement_print_api = new specmanagement_print_api(); $types = array(); $types_rows = $specmanagement_database_api->get_full_types(); foreach ($types_rows as $types_row) { $types[] = $types_row[1]; } html_page_top1(plugin_lang_get('select_doc_title')); echo '<link rel="stylesheet" href="' . SPECMANAGEMENT_PLUGIN_URL . 'files/specmanagement.css">'; html_page_top2(); // if ( plugin_is_installed( 'WhiteboardMenu' ) && file_exists ( config_get_global ( 'plugin_path' ) . 'WhiteboardMenu' ) ) // { // require_once WHITEBOARDMENU_CORE_URI . 'whiteboard_print_api.php'; // $whiteboard_print_api = new whiteboard_print_api(); // $whiteboard_print_api->printWhiteboardMenu(); // } if (project_includes_user(helper_get_current_project(), auth_get_current_user_id()) || helper_get_current_project() == 0 || user_is_administrator(auth_get_current_user_id())) { echo '<div align="center">'; echo '<hr size="1" width="50%" />'; $specmanagement_print_api->printTableTop('50'); $specmanagement_print_api->printFormTitle(2, 'menu_title'); $specmanagement_print_api->printCategoryField(1, 1, 'select_type'); echo '<td>'; echo '<form method="post" name="form_set_source" action="' . plugin_page('editor') . '">';