$s_release_properties = session_set_properties("release", $_GET); $release_id = $s_release_properties['release_id']; $release_name = admin_get_release_name($release_id); $build_id = $s_release_properties['build_id']; $build_name = admin_get_build_name($build_id); html_window_title(); html_print_body($form_name, 'build_edit_name_required'); html_page_title($project_name . " - " . lang_get('build_edit_page')); html_page_header($db, $project_name); html_print_menu(); html_release_map(array("release_link", "build_link", "Edit")); print "<br>" . NEWLINE; error_report_check($_GET); #################################################################################################### # Create the form allowing the user to edit the record $build_details = admin_get_build($project_id, $build_id); extract($build_details, EXTR_PREFIX_ALL, 'v'); $build_name = ${'v_' . BUILD_NAME}; $build_date_received = ${'v_' . BUILD_DATE_REC}; $build_description = ${'v_' . BUILD_DESCRIPTION}; print "<div align=center>" . NEWLINE; print "<span class='required'>*</span> <span class='print'>" . lang_get('must_complete_field') . "</span>" . NEWLINE; print "<table class=width60>" . NEWLINE; print "<tr>" . NEWLINE; print "<td>" . NEWLINE; print "<table class=inner>" . NEWLINE; print "<td class=center>" . NEWLINE; print "<form method=post name={$form_name} action={$action_page}>" . NEWLINE; print "<input type=hidden name=build_id value='{$build_id}'>" . NEWLINE; # FORM TITLE print "<tr>" . NEWLINE;
print "</table>" . NEWLINE; #print"<h3>".lang_get("latest_test_results")."</h3>". 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); if (empty($release_id)) { # There are no tests associated to the testset or no test sets. print lang_get('no_releases_in_project'); } elseif (empty($build_id)) { print lang_get('no_builds_in_release'); } elseif (empty($testset_id)) { print lang_get('no_testsets_in_build'); } else { # There are tests associated to the test set so we can display the test status. $release_name = admin_get_release_name($release_id); $build_info = admin_get_build($project_id, $build_id); $build_name = $build_info[BUILD_NAME]; $build_date = $build_info[BUILD_DATE_REC]; print "<table rules=cols class=width80>" . NEWLINE; print "<tr>" . NEWLINE; html_tbl_print_header(lang_get('release_name')); html_tbl_print_header(lang_get('build_name')); html_tbl_print_header(lang_get('build_date_received')); print "</tr>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class='tbl-data-c'>{$release_name}</td>" . NEWLINE; print "<td class='tbl-data-c'>{$build_name}</td>" . NEWLINE; print "<td class='tbl-data-c'>{$build_date}</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "<br>" . NEWLINE;