$delete_page = "delete_page.php"; $results_view_verify_page = "results_view_verifications_page.php"; $results_pass_test_run = "results_update_pass_test_run_action.php"; $results_update_test_run = "results_update_test_run_page.php"; $row_style = ''; if (isset($_GET['testset_id']) && isset($_GET['test_id'])) { $s_results = session_set_properties("results", $_GET); $testset_id = $s_results['testset_id']; $test_id = $s_results['test_id']; } else { # coming from redirect etc, get stored testset_id and test_run_id $s_results = session_get_properties("results"); $testset_id = $s_results['testset_id']; $test_id = $s_results['test_id']; } $locked = testset_get_lock_status($testset_id); html_window_title(); html_print_body(); html_page_title($project_name . " - " . lang_get('test_results')); html_page_header($db, $project_name); html_print_menu(); html_test_results_menu($db, $results_page, $project_id, session_get_properties("results", $_GET)); error_report_check($_GET); if ($locked) { print "<h3 class='hint'> <img src='images/locked.png' alt='locked'> Testset locked</h3>" . NEWLINE; } $row_test_detail = test_get_detail($test_id); if (!empty($row_test_detail)) { //results_print_test_detail_table( $row_test_detail ); print "<table class=width100 rules=cols>"; print "<tr class='tbl_header'>";
function testset_update_testset_lock($testset_id, $build_id, $date, $user_name, $comments) { global $db; $db_testset_tbl = TS_TBL; $db_testset_id = TS_ID; $db_build_id = TS_BUILD_ID; $db_lock_date = TS_LOCKCHANGE_DATE; $db_lock_by = TS_LOCK_BY; $db_lock_comment = TS_LOCK_COMMENT; $db_lock = TS_LOCK; $locked = testset_get_lock_status($testset_id); if ($locked) { $lock = 'N'; } else { $lock = 'Y'; } $query = "UPDATE {$db_testset_tbl}\n SET\n {$db_lock_date} = '{$date}',\n {$db_lock_by} = '{$user_name}',\n {$db_lock_comment} = '{$comments}',\n {$db_lock} = '{$lock}'\n WHERE\n {$db_testset_id} = '{$testset_id}'\n AND\n {$db_build_id} = {$build_id}"; db_query($db, $query); }