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# Release Edit Page
10#
11# $RCSfile: release_edit_page.php,v $  $Revision: 1.4 $
12# ------------------------------------
13
14include"./api/include_api.php";
15auth_authenticate_user();
16
17$page           	 	= basename(__FILE__);
18$form_name				= 'release_name';
19$action_page    	 	= 'release_edit_action.php';
20$build_edit_page		= 'release_edit_page.php';
21$testset_page			= 'testset_page.php';
22$delete_page 			= 'delete_page.php';
23$s_project_properties   = session_get_project_properties();
24$project_name           = $s_project_properties['project_name'];
25$project_id 			= $s_project_properties['project_id'];
26$row_style              = '';
27
28$s_release_properties	= session_set_properties( "release", $_GET );
29$release_id 			= $s_release_properties['release_id'];
30$release_name			= admin_get_release_name($release_id);
31
32html_window_title();
33html_print_body( $form_name, 'release_edit_name_required');
34html_page_title($project_name ." - ". lang_get('release_edit_page') );
35html_page_header( $db, $project_name );
36html_print_menu();
37
38html_release_map( Array("release_link", lang_get("edit") ) );
39
40error_report_check( $_GET );
41
42$release_details = admin_get_all_release_details_by_project( $project_id, $release_id );
43
44extract( $release_details[0], EXTR_PREFIX_ALL, 'v' );
45
46$release_name			= ${'v_' . RELEASE_NAME};
47$release_date_received	= ${'v_' . RELEASE_DATE_RECEIVED};
48$release_description	= ${'v_' . RELEASE_DESCRIPTION};
49
50print"<div align=center>". NEWLINE;
51
52print"<form method=post name=$form_name action=$action_page>". NEWLINE;
53print"<input type=hidden name=release_id value='$release_id'>". NEWLINE;
54
55print"<span class='required'>*</span> <span class='print'>" . lang_get('must_complete_field') . "</span>". NEWLINE;
56
57print"<table class=width60>". NEWLINE;
58print"<tr>". NEWLINE;
59print"<td>". NEWLINE;
60print"<table class=inner>". NEWLINE;
61
62# FORM TITLE
63print"<tr>". NEWLINE;
64print"<td class='form-header-l' colspan='2'>". lang_get('edit_release') ." - $release_name</td>". NEWLINE;
65print"</tr>". NEWLINE;
66
67# RELEASE NAME
68print"<tr>". NEWLINE;
69print"<td class=right>". lang_get('release_name') ." <span class='required'>*</span></td>". NEWLINE;
70print"<td class=left>". NEWLINE;
71print"<input type='text' maxlength='20' name='release_edit_name_required' size=30 value='".
72					session_validate_form_get_field('release_edit_name_required', $release_name).
73					"'>". NEWLINE;
74print"</td>". NEWLINE;
75print"</tr>". NEWLINE;
76
77# RELEASE DATE
78print"<tr>". NEWLINE;
79print"<td class=right>". lang_get('date_received') ."</td>". NEWLINE;
80print"<td class=left>". NEWLINE;
81print"<input type='text' maxlength='19' name='release_edit_date' size=30 value='".
82		session_validate_form_get_field('release_edit_date', $release_date_received).
83		"'>". NEWLINE;
84print"</td>". NEWLINE;
85print"</tr>". NEWLINE;
86
87# DESCRIPTION
88print"<tr>". NEWLINE;
89print"<td class=right>". lang_get('description') ."</td>". NEWLINE;
90print"<td class=left>". NEWLINE;
91print"<textarea name='release_edit_description' rows=5 cols=30 >".
92		session_validate_form_get_field('release_edit_description', $release_description).
93		"</textarea>". NEWLINE;
94print"</td>". NEWLINE;
95print"</tr>". NEWLINE;
96
97# SUBMIT BUTTON
98print"<tr>". NEWLINE;
99print"<td colspan='2' class=center><input type='submit' value='". lang_get('submit_btn') ."'></td>". NEWLINE;
100print"</tr>". NEWLINE;
101print"</table>". NEWLINE;
102
103print"</td>". NEWLINE;
104print"</tr>". NEWLINE;
105print"</table>". NEWLINE;
106
107print"</form>". NEWLINE;
108
109print"</div>". NEWLINE;
110
111html_print_footer();
112
113# ------------------------------------
114# $Log: release_edit_page.php,v $
115# Revision 1.4  2006/08/05 22:08:37  gth2
116# adding NEWLINE constant to support multiple OS newline chars - gth
117#
118# Revision 1.3  2006/06/10 01:55:06  gth2
119# no message
120#
121# Revision 1.2  2006/02/24 11:37:48  gth2
122# update to div - class=div-c not working in firefox - gth
123#
124# Revision 1.1.1.1  2005/11/30 23:00:57  gth2
125# importing initial version - gth
126#
127# ------------------------------------
128
129?>