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# $RCSfile: release_signoff_page.php,v $  $Revision: 1.3 $
10# ---------------------------------------------------------------------
11
12include"./api/include_api.php";
13auth_authenticate_user();
14
15$page                   = basename(__FILE__);
16$project_properties     = session_get_project_properties();
17$project_name           = $project_properties['project_name'];
18$s_project_properties	= session_get_project_properties();
19$project_id				= $s_project_properties['project_id'];
20
21
22html_window_title();
23html_print_body();
24html_page_title($project_name ." -  ". lang_get( 'release_signoff_page' ));
25html_page_header( $db, $project_name );
26html_print_menu();
27
28error_report_check( $_GET );
29
30print"<br><br>". NEWLINE;
31
32$row = admin_get_release_detail( $_GET['release_id'] );
33
34$release_id				= $row[RELEASE_ID];
35$release_name			= $row[RELEASE_NAME];
36$qa_status				= $row[RELEASE_QA_SIGNOFF];
37$ba_status				= $row[RELEASE_BA_SIGNOFF];
38$qa_signoff_date		= $row[RELEASE_QA_SIGNOFF_DATE];
39$ba_signoff_date		= $row[RELEASE_BA_SIGNOFF_DATE];
40$qa_signoff_by			= $row[RELEASE_QA_SIGNOFF_BY];
41$ba_signoff_by			= $row[RELEASE_BA_SIGNOFF_BY];
42$qa_comments			= $row[RELEASE_QA_SIGNOFF_COMMENTS];
43$ba_comments			= $row[RELEASE_BA_SIGNOFF_COMMENTS];
44
45print"<div align=center>". NEWLINE;
46
47print"<form method=post action='release_signoff_action.php'>". NEWLINE;
48print"<table class=width60>". NEWLINE;
49print"<tr>". NEWLINE;
50print"<td>". NEWLINE;
51
52    print"<table class=inner rules=none border=0>". NEWLINE;
53
54    print"<tr>". NEWLINE;
55    print"<td class=form-header-l colspan=2>".lang_get('signoff').": $release_name</td>". NEWLINE;
56    print"</tr>". NEWLINE;
57
58	util_add_spacer();
59
60	# RELEASE STATUS
61	print"<tr>". NEWLINE;
62    print"<td class=form-lbl-r>". lang_get('status') ."</td>". NEWLINE;
63    print"<td class=form-data-l>". NEWLINE;
64		$statuses = admin_get_release_status();
65        print"<select name='qa_status' size=1>". NEWLINE;
66		html_print_list_box_from_array( $statuses, $qa_status );
67        print"</select>". NEWLINE;
68    print"</td>". NEWLINE;
69    print"</tr>". NEWLINE;
70
71	# RELEASE COMMENTS
72    print"<tr>". NEWLINE;
73    print"<td class=form-lbl-r>". lang_get('test_comments') ."</td>". NEWLINE;
74    print"<td class=form-data-l>". NEWLINE;
75        print"<textarea rows='4' cols='60' name='qa_comments'>$qa_comments</textarea>". NEWLINE;
76    print"</td>". NEWLINE;
77    print"</tr>". NEWLINE;
78
79	print"<input type='hidden' name='release_id' value='$release_id'>". NEWLINE;
80
81	util_add_spacer();
82
83    print"<tr><td class=center colspan=2><input type=submit name='submit' value='". lang_get('submit_btn') ."'></td></tr>". NEWLINE;
84
85    print"</table>". NEWLINE;
86print"</td>". NEWLINE;
87print"</tr>". NEWLINE;
88print"</table>". NEWLINE;
89
90print"</form>". NEWLINE;
91
92print"</div>". NEWLINE;
93
94
95html_print_footer();
96
97# ---------------------------------------------------------------------
98# $Log: release_signoff_page.php,v $
99# Revision 1.3  2006/08/05 22:08:37  gth2
100# adding NEWLINE constant to support multiple OS newline chars - gth
101#
102# Revision 1.2  2006/06/10 01:55:06  gth2
103# no message
104#
105# Revision 1.1  2006/04/05 12:38:41  gth2
106# updates to release sign-off - th
107#
108# ---------------------------------------------------------------------
109?>