html_print_menu(); html_browse_release_menu($db, $page, $project_id); print "<br>"; error_report_check($_GET); global $db; print "<div align=center>"; if (isset($testset_id) && $testset_id != 'all') { print "<form method=post action='{$page}?_release_id={$release_id}&_build_id={$build_id}&_testset_id={$testset_id}'>"; print "<table class=width80 rules=cols>" . NEWLINE; print "<tr>" . NEWLINE; html_tbl_print_header(lang_get('area_tested'), AREA_TESTED_NAME, $order_by, $order_dir); html_tbl_print_header(lang_get('num_of_tests_for_area')); html_tbl_print_header(lang_get('num_of_tests_used')); html_tbl_print_header(lang_get('percentage_of_area_tests')); print "</tr>" . NEWLINE; foreach (project_get_areas_tested($project_id, $order_by, $order_dir) as $row_area_tested) { $row_style = html_tbl_alternate_bgcolor($row_style); $area_tested = $row_area_tested[AREA_TESTED_NAME]; $tests_for_area = report_get_num_tests_in_area($project_id, $area_tested); $tests_used = report_get_num_area_tested_in_testset($project_id, $_GET['_testset_id'], $area_tested); if ($tests_for_area != 0) { $percentage_tests_used = sprintf("%01.2f", $tests_used / $tests_for_area * 100); } else { $percentage_tests_used = "0.00"; } print "<tr class='{$row_style}'>" . NEWLINE; print "<td>{$area_tested}</td>" . NEWLINE; print "<td>{$tests_for_area}</td>" . NEWLINE; print "<td>{$tests_used}</td>" . NEWLINE; print "<td>{$percentage_tests_used}%</td>" . NEWLINE; print "</tr>" . NEWLINE;
print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; print "<br>"; } # --------------------------------------------------------------------- # Areas Tested Table # --------------------------------------------------------------------- print "<form method=post name='area_tested_table' action='{$page}?order_by={$order_by}&order_dir={$order_dir}'>"; print "<table class=hide70>" . NEWLINE; print "<tr>" . NEWLINE; print "<td>" . NEWLINE; $rows_areas_tested = project_get_areas_tested($selected_project_id, $order_by, $order_dir, $page_number); print "<input type=hidden name='order_dir' value='{$order_dir}'>"; print "<input type=hidden name='order_by' value='{$order_by}'>"; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; if ($rows_areas_tested) { print "<input type=hidden name=table value=project_manage_areas>" . NEWLINE; print "<table class='width70' rules='cols'>" . NEWLINE; print "<tr>" . NEWLINE; html_tbl_print_header(lang_get('area_tested'), AREA_TESTED_NAME, $order_by, $order_dir, "{$page}?page_number={$page_number}", $page_number); if ($project_manager) { html_tbl_print_header(lang_get('edit')); html_tbl_print_header(lang_get('delete')); }