$per_page = $s_display_options['filter']['per_page']; html_window_title(); html_print_body(); html_page_title($project_name . " - " . lang_get('testsets_status_page')); html_page_header($db, $project_name); html_print_menu(); error_report_check($_GET); print "<br>"; print "<form method='post' action='{$page}' name='testset_form' id='form_order'>" . NEWLINE; print "<div align=center>" . NEWLINE; html_print_testsets_filter($project_id, $build_name, $release_name, $per_page); print "<br>" . NEWLINE; $release_id = admin_get_max_release_id_from_build_tbl($project_id); $build_id = admin_get_max_build_id($release_id); $testset_id = admin_get_max_testset($build_id); $statuses = results_get_teststatus_by_project($project_id); #$results_url = $results_page ."?release_id=$release_id&build_id=$build_id&testset_id=$testset_id"; $rows_testsets = testset_filter_row($project_id, $build_name, $release_name, $per_page, $order_by, $order_dir, $page_number); #$rows_testsets = testset_get_last($project_id); if ($rows_testsets) { print "<table align=center rules=cols class=width95>" . NEWLINE; print "<tr>" . NEWLINE; html_tbl_print_sortable_header(lang_get('testset_id'), TS_TBL . "." . TS_ID, $order_by, $order_dir); html_tbl_print_sortable_header(lang_get('testset_name'), TS_TBL . "." . TS_NAME, $order_by, $order_dir); html_tbl_print_sortable_header(lang_get('build_name'), BUILD_TBL . "." . BUILD_NAME, $order_by, $order_dir); html_tbl_print_sortable_header(lang_get('release_name'), RELEASE_TBL . "." . RELEASE_NAME, $order_by, $order_dir); html_tbl_print_sortable_header(lang_get('tests')); # Display table headers based on the statuses of the project foreach ($statuses as $status) { html_tbl_print_header($status); }
print"<td class=left>". NEWLINE; print"<select name='test_result_assigned_to' size=1>". NEWLINE; $selected_value = $assigned_to; $assign_to_users = user_get_usernames_by_project($project_id, $blank=true); html_print_list_box_from_array( $assign_to_users, $selected_value); print"</select>". NEWLINE; print "</td>". NEWLINE; print"</tr>" ; */ # Test Run Status print "<tr>" . NEWLINE; print "<td class=form-lbl-r>" . lang_get('test_status') . "</td>" . NEWLINE; print "<td class=left>" . NEWLINE; print "<select name='test_result_status' size=1>" . NEWLINE; $selected_value = $status; $test_run_status = results_get_teststatus_by_project($project_id); html_print_list_box_from_array($test_run_status, $selected_value); print "</select>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # Root Cause for Failure print "<tr>" . NEWLINE; print "<td class=form-lbl-r>" . lang_get('root_cause') . "</td>" . NEWLINE; print "<td class=left>" . NEWLINE; print "<select name='root_cause' size=1>" . NEWLINE; $selected_value = $root_cause; $root_causes = results_get_root_cause_values(); html_print_list_box_from_array($root_causes, $selected_value); print "</select>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE;
# OS print "<tr>" . NEWLINE; print "<td class=form-lbl-r>" . lang_get('os') . "</td>" . NEWLINE; print "<td class='form-data-l'>" . NEWLINE; print "<select name='os' size=1>" . NEWLINE; $os = results_get_os(); html_print_list_box_from_array($os, session_validate_form_get_field("os", $row_os)); print "</select>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # Test Run Status print "<tr>" . NEWLINE; print "<td class=form-lbl-r>" . lang_get('test_run_status') . " <span class='required'>*</span></td>" . NEWLINE; print "<td class=left>" . NEWLINE; print "<select name='test_run_status_required' size=1>" . NEWLINE; $test_run_status = results_get_teststatus_by_project($project_id, $blank = true); html_print_list_box_from_array($test_run_status, session_validate_form_get_field("test_run_status_required", $row_test_run_status)); print "</select>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # Root Cause for Failure print "<tr>" . NEWLINE; print "<td class=form-lbl-r>" . lang_get('root_cause') . "</td>" . NEWLINE; print "<td class=left>" . NEWLINE; print "<select name='root_cause' size=1>" . NEWLINE; $root_cause = results_get_root_cause_values(); html_print_list_box_from_array($root_cause, session_validate_form_get_field("root_cause", $row_root_cause)); print "</select>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # E-mail user