print "<td class=grid-header-c>" . lang_get('download') . "</td>"; print "<td class=grid-header-c>" . lang_get('show_history') . "</td>"; print "<td class=grid-header-c>" . lang_get('add_version') . "</td>"; if ($user_has_delete_rights) { print "<td class=grid-header-c>" . lang_get('delete') . "</td>"; } //print"<td class=grid-header-c>". lang_get('edit') ."</td>"; print "<td class=grid-header-c>" . lang_get('uploaded_by') . "</td>"; print "<td class=grid-header-c>" . lang_get('date_added') . "</td>"; print "<td class=grid-header-c>" . lang_get('info') . "</td>"; //print"<td class=grid-header-c>". lang_get('delete_latest') ."</td>"; print "</tr>"; foreach ($upload_rows as $upload_row) { $display_name = $upload_row[MAN_TD_DISPLAY_NAME]; $man_test_id = $upload_row[MAN_TD_MANUAL_TEST_ID]; $doc_detail_row = test_get_uploaded_document_detail($man_test_id); $filename = $doc_detail_row[MAN_TD_VER_FILENAME]; $comments = $doc_detail_row[MAN_TEST_DOCS_VERS_COMMENTS]; $time_stamp = $doc_detail_row[MAN_TD_VER_TIME_STAMP]; $uploaded_by = $doc_detail_row[MAN_TD_VER_UPLOADED_BY]; $version = $doc_detail_row[MAN_TD_VER_VERSION]; $doc_type = $doc_detail_row[MAN_TEST_DOCS_VERS_MANUAL_DOC_TYPE_NAME]; $fname = $s_project_properties['test_upload_path'] . $filename; $download_filename = urlencode($fname); if (IGNORE_VERSION_FILENAME_VALIDATION) { $file_name = substr($filename, 28); } else { $file_name = $display_name; } print "<tr>"; print "<td class=grid-data-c>" . html_file_type($filename) . "</td>";
$test_name = test_get_name($test_id); if (isset($_POST['manual_test_id']) && $_POST['manual_test_id'] != "") { $manual_test_id = $_POST['manual_test_id']; } else { $manual_test_id = $_GET['manual_test_id']; } $row_style = ''; html_window_title(); html_print_body(); html_page_title($project_name . " - " . lang_get('file_upload_page')); html_page_header($db, $project_name); html_print_menu(); #### Change to api submenu function for this page type #### test_menu_print($page); print "<br><br>" . NEWLINE; $row = test_get_uploaded_document_detail($manual_test_id); $manual_test_id = $row[MAN_TD_VER_MANUAL_TEST_ID]; $file_name = $row[MAN_TD_DISPLAY_NAME]; $doc_type = $row[MAN_TEST_DOCS_VERS_MANUAL_DOC_TYPE_NAME]; # Display test information and link back to test detail print "<div align=center>" . NEWLINE; print "<table class=width95>" . NEWLINE; print "<tr class='tbl_header'>" . NEWLINE; print "<td width='50%'>" . lang_get('test_id') . "</td>" . NEWLINE; print "<td width='50%'>" . lang_get('test_name') . "</td>" . NEWLINE; #print"<td width='33%'>". lang_get('test_version') ."</td>". NEWLINE; print "</tr>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class=grid-data-c><a href='test_detail_page.php?test_id={$test_id}&project_id={$project_id}&tab=2'>{$display_test_id}</a></td>" . NEWLINE; print "<td class=grid-data-c>{$test_name}</td>" . NEWLINE; #print"<td class=grid-data-c>$version_no</td>". NEWLINE;