1<?php 2# --------------------------------------------------------------------- 3# rth is a requirement, test, and bugtracking system 4# Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net 5# This program is distributed under the terms and conditions of the GPL 6# See the README and LICENSE files for details 7#---------------------------------------------------------------------- 8# --------------------------------------------------------------------- 9# Test Set Signoff Page 10# 11# $RCSfile: testset_signoff_page.php,v $ $Revision: 1.3 $ 12# --------------------------------------------------------------------- 13 14include"./api/include_api.php"; 15 16$page = basename(__FILE__); 17$action_page = 'testset_signoff_action.php'; 18$num = 0; 19$bg_color = ''; 20$project_properties = session_get_project_properties(); 21$project_name = $project_properties['project_name']; 22$submit_btn = lang_get('submit_btn'); 23 24if (isset($_GET['failed'])) { 25 $is_validation_failure = $_GET['failed']; 26} 27else 28 $is_validation_failure = false; 29 30 31html_window_title(); 32 33auth_authenticate_user(); 34 35html_page_title($project_name ." - ". lang_get('testset_signoff_page') ); 36html_page_header( $db, $project_name ); 37 38html_print_menu(); 39html_print_body(); 40print"<br><br>"; 41 42error_report_check( $_GET ); 43 44if (isset($_GET['testset_id'])) { 45 46 $testset_id = $_GET['testset_id']; 47} 48 49if (isset($_GET['build_id'])) { 50 51 $build_id = $_GET['build_id']; 52} 53 54$row = testset_get( $testset_id, $build_id ); 55 56 57if (!empty($row)) { 58 59 extract( $row, EXTR_PREFIX_ALL, 'v' ); 60 61 //$testset_id = ${'v_' . TS_ID}; 62 $testset_name = ${'v_' . TS_NAME}; 63 $date_created = ${'v_' . TS_DATE_CREATED}; 64 $description = ${'v_' . TS_DESCRIPTION}; 65 $status = ${'v_' . TS_STATUS}; 66 $comments = ${'v_' . TS_SIGNOFF_COMMENTS}; 67 68 69 //print"<div align=center>"; 70 //print "<span class='required'>*</span><span class='print'>" . lang_get('must_complete_field') . "</span><br/>"; 71 print"<div align='center'>"; 72 print"<table class=width65 rules='none' border='0'>"; 73 print"<tr>"; 74 print"<td>"; 75 print"<table class=inner rules='none' border='0'>"; 76 print"<form method=post action=$action_page>"; 77 78 print"<tr class=left>"; 79 print"<td class=print-category colspan=2>".lang_get('testset_signoff')."</td>"; 80 print"</tr>"; 81 82 print"<tr class=left>"; 83 print"<td class=right>". lang_get('testset_name') .":</td>"; 84 print"<td class=left>$testset_name</td>"; 85 print"</tr>"; 86 87 print"<tr class=left>"; 88 print"<td class=right>". lang_get('date_created') .":</td>"; 89 print"<td class=left>$date_created</td>"; 90 print"</tr>"; 91 92 print"<tr class=left>"; 93 print"<td class=right>". lang_get('description') .":</td>"; 94 print"<td class=left>$description</td>"; 95 print"</tr>"; 96 97 $statuses = testset_get_status(); 98 print"<tr class=left>"; 99 print"<td class=right>". lang_get('status') .":</td>"; 100 print"<td class=left>"; 101 print"<select name=signoff_status>"; 102 html_print_list_box_from_array( $statuses, $status ); 103 //html_list_box( $db, TESTSET_STATUS_TBL, TS_STATUS_NAME, $status ); 104 print"</select>"; 105 print"</td>"; 106 print"</tr>"; 107 108 print"<tr class=left>"; 109 print"<td class='right'>". lang_get('comments') .":</td>"; 110 print"<td class='left'><textarea rows='5' cols='50' name='signoff_comments'>$comments</textarea></td>"; 111 print"</tr>"; 112 113 print"<tr><td><input type='hidden' name='testset_id' value='$testset_id'></td></tr>"; 114 print"<tr><td><input type='hidden' name='build_id' value='$build_id'></td></tr>"; 115 116 print"<tr><td class=center colspan=2><input type=submit name='save' value='$submit_btn'><br/><br/></td>"; 117 118 print"</form>"; 119 print"</table>"; 120 121 print"</td>"; 122 print"</tr>"; 123 print"</table>"; 124 print"<br>"; 125 print"</div>"; 126 print"</div>"; 127 128 129} 130 131html_print_footer(); 132 133# --------------------------------------------------------------------- 134# $Log: testset_signoff_page.php,v $ 135# Revision 1.3 2006/02/24 11:36:04 gth2 136# update to div - class=div-c not working in firefox - gth 137# 138# Revision 1.2 2006/01/08 22:00:19 gth2 139# bug fixes. missing some variables - gth 140# 141# Revision 1.1.1.1 2005/11/30 23:00:58 gth2 142# importing initial version - gth 143# 144# --------------------------------------------------------------------- 145 146?>