print "</table>" . NEWLINE; print "</form>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "<br><br>" . NEWLINE; $build_details = admin_get_builds($release_id, $order_by, $order_dir); if (!empty($build_details)) { print "<table id='sortabletable' class='sortable' rules=cols>" . NEWLINE; print "<thead>" . NEWLINE; print "<tr class=tbl_header>" . NEWLINE; html_tbl_print_header_not_sortable(lang_get('build_name')); html_tbl_print_header(lang_get('build_date_received')); html_tbl_print_header_not_sortable(lang_get('build_description')); html_tbl_print_header_not_sortable(lang_get('edit')); html_tbl_print_header_not_sortable(lang_get('delete')); print "\t</tr>" . NEWLINE; print "</thead>" . NEWLINE; print "<tbody>" . NEWLINE; for ($i = 0; $i < sizeof($build_details); $i++) { extract($build_details[$i], EXTR_PREFIX_ALL, 'v'); $build_id = ${'v_' . BUILD_ID}; $build_name = ${'v_' . BUILD_NAME}; $build_date_received = ${'v_' . BUILD_DATE_REC}; $build_description = ${'v_' . BUILD_DESCRIPTION}; $row_style = html_tbl_alternate_bgcolor($row_style); print "<tr class='{$row_style}'>" . NEWLINE; print "<td class='tbl-l'><a href='{$testset_page}?build_id={$build_id}'>{$build_name}</a></td>" . NEWLINE; print "<td class='tbl-c'>{$build_date_received}</td>" . NEWLINE; print "<td class='tbl-l'>{$build_description}</td>" . NEWLINE; print "<td class='tbl-c'><a href='{$build_edit_page}?build_id={$build_id}'>" . lang_get('edit') . "</a></td>" . NEWLINE;
#html_tbl_print_header( lang_get('phone') ); #html_tbl_print_header( lang_get('user_rights'), PROJ_USER_PROJECT_RIGHTS, $s_users_order_by, $s_users_order_dir, $action_page ); #html_tbl_print_header( lang_get('qa_owner'), PROJ_USER_QA_OWNER, $s_users_order_by, $s_users_order_dir, $action_page ); #html_tbl_print_header( lang_get('ba_owner'), PROJ_USER_BA_OWNER, $s_users_order_by, $s_users_order_dir, $action_page ); html_tbl_print_header(lang_get('id')); html_tbl_print_header(lang_get('username')); html_tbl_print_header(lang_get('first')); html_tbl_print_header(lang_get('last')); html_tbl_print_header(lang_get('email')); html_tbl_print_header_not_sortable(lang_get('phone')); html_tbl_print_header(lang_get('user_rights')); html_tbl_print_header(lang_get('qa_owner')); html_tbl_print_header(lang_get('ba_owner')); if ($project_manager) { html_tbl_print_header_not_sortable(lang_get('edit')); html_tbl_print_header_not_sortable(lang_get('remove')); } print "\n</tr>" . NEWLINE; print "</thead>" . NEWLINE; print "<tbody>" . NEWLINE; foreach ($rows_user_details as $row_user_detail) { $tbl_user_id = $row_user_detail[USER_ID]; $tbl_user_first = $row_user_detail[USER_FNAME]; $tbl_user_last = $row_user_detail[USER_LNAME]; $tbl_username = $row_user_detail[USER_UNAME]; $tbl_user_email = $row_user_detail[USER_EMAIL]; $tbl_user_phone = $row_user_detail[USER_PHONE]; $tbl_user_delete_rights = $row_user_detail[PROJ_USER_DELETE_RIGHTS]; $tbl_user_email_testset = $row_user_detail[PROJ_USER_EMAIL_TESTSET]; $tbl_user_email_discussions = $row_user_detail[PROJ_USER_EMAIL_REQ_DISCUSSION]; $tbl_user_qa_owner = $row_user_detail[PROJ_USER_QA_OWNER];
print "<input type=hidden name=project_id value={$selected_project_id}>"; print "<table id='sortabletable' class='sortable' rules=cols>" . NEWLINE; print "<thead>" . NEWLINE; print "<tr>" . NEWLINE; #html_tbl_print_header( lang_get('man_auto') ); #html_tbl_print_header( lang_get('test_name'), TEST_NAME, $order_by, $order_dir ); #html_tbl_print_header( lang_get('testtype'), TEST_TESTTYPE, $order_by, $order_dir ); #html_tbl_print_header( lang_get('area_tested'), TEST_AREA_TESTED, $order_by, $order_dir ); #html_tbl_print_header( lang_get('status'), TEST_STATUS, $order_by, $order_dir ); #html_tbl_print_header( lang_get('archive') ); html_tbl_print_header_not_sortable(lang_get('man_auto')); html_tbl_print_header(lang_get('test_name')); html_tbl_print_header(lang_get('testtype')); html_tbl_print_header(lang_get('area_tested')); html_tbl_print_header(lang_get('status')); html_tbl_print_header_not_sortable(lang_get('archive')); print "</tr>" . NEWLINE; print "</thead>" . NEWLINE; print "<tbody>" . NEWLINE; foreach ($row as $test_row) { #$row_style = html_tbl_alternate_bgcolor($row_style); #print"<tr class='$row_style'>". NEWLINE; print "<tr>" . NEWLINE; print "<td>" . html_print_testtype_icon($test_row[TEST_MANUAL], $test_row[TEST_AUTOMATED]) . "</td>" . NEWLINE; print "<td>" . $test_row[TEST_NAME] . "</td>" . NEWLINE; print "<td>" . $test_row[TEST_TESTTYPE] . "</td>" . NEWLINE; print "<td>" . $test_row[TEST_AREA_TESTED] . "</td>" . NEWLINE; print "<td>" . $test_row[TEST_STATUS] . "</td>" . NEWLINE; if (session_records_ischecked("archive_tests", $test_row[TEST_ID])) { $checked = "checked"; } else {
html_tbl_print_sortable_header(lang_get('id'), TEST_ID, $order_by, $order_dir); print "<th class='unsortable'></th>" . NEWLINE; html_tbl_print_sortable_header(lang_get('test_name'), TEST_NAME, $order_by, $order_dir); html_tbl_print_sortable_header(lang_get('ba_owner'), TEST_BA_OWNER, $order_by, $order_dir); html_tbl_print_sortable_header(lang_get('qa_owner'), TEST_QA_OWNER, $order_by, $order_dir); html_tbl_print_sortable_header(lang_get('testtype'), TEST_TESTTYPE, $order_by, $order_dir); html_tbl_print_sortable_header(lang_get('area_tested'), TEST_AREA_TESTED, $order_by, $order_dir); html_tbl_print_sortable_header(lang_get('test_run')); html_tbl_print_sortable_header(lang_get('tester'), TEST_TS_ASSOC_TBL . "." . TEST_TS_ASSOC_ASSIGNED_TO, $order_by, $order_dir); html_tbl_print_sortable_header(lang_get('info')); print "<th class='unsortable'></th>" . NEWLINE; #html_tbl_print_header( lang_get('bug') ); html_tbl_print_sortable_header(lang_get('test_status'), TEST_TS_ASSOC_STATUS, $order_by, $order_dir); if (!$locked) { html_tbl_print_header_not_sortable(lang_get('run_test')); html_tbl_print_header_not_sortable(lang_get('update')); } print "</tr>" . NEWLINE; print "</thead>" . NEWLINE; print "<tbody>" . NEWLINE; #html_tbl_print_header( lang_get('test_name') ); #html_tbl_print_header( lang_get('ba_owner') ); #html_tbl_print_header( lang_get('qa_owner') ); #html_tbl_print_header( lang_get('testtype') ); #html_tbl_print_header( lang_get('area_tested') ); #html_tbl_print_header( lang_get('test_doc') ); #html_tbl_print_header( lang_get('priority') ); #if($s_show_priority == 'Y') #html_tbl_print_header( lang_get('priority') ); //print_r($row); //foreach( $row as $key => $value ) {