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# Project Edit Machine Page
10#
11# $RCSfile: project_edit_machine_page.php,v $  $Revision: 1.3 $
12# ------------------------------------
13
14include"./api/include_api.php";
15auth_authenticate_user();
16
17$page           		= basename(__FILE__);
18$s_project_properties   = session_get_project_properties();
19$project_name           = $s_project_properties['project_name'];
20$project_id 			= $s_project_properties['project_id'];
21$row_style              = '';
22
23session_set_properties("project_manage", $_GET);
24$selected_project_properties 	= session_get_properties("project_manage");
25$selected_project_id 			= $selected_project_properties['project_id'];
26$machine_id 					= $selected_project_properties['machine_id'];
27
28html_window_title();
29html_print_body();
30html_page_title($project_name ." - ". lang_get('edit_machine_page') );
31html_page_header( $db, $project_name );
32html_print_menu();
33
34html_project_manage_map( Array("project_manage_link", "machine_link", "Edit") );
35
36print"<br>". NEWLINE;
37
38error_report_check( $_GET );
39
40print"<div align=center>";
41
42########################################################################################
43# Edit Area Tested
44
45$row = project_get_machine($selected_project_id, $machine_id);
46
47print"<form method=post action='project_edit_machine_action.php'>". NEWLINE;
48print"<input type=hidden name=project_id value=$selected_project_id>";
49print"<input type=hidden name=machine_id value=$machine_id>";
50print"<span class='required'>*</span><span class='print'>" . lang_get('must_complete_field') . "</span>". NEWLINE;
51print"<table class='width70'>". NEWLINE;
52print"<tr>". NEWLINE;
53print"<td>". NEWLINE;
54print"<table class=inner>". NEWLINE;
55print"<tr>". NEWLINE;
56print"<td class=form-header-l>".lang_get('machine')."</td>". NEWLINE;
57print"</tr>". NEWLINE;
58print"<tr>". NEWLINE;
59print"<td>". NEWLINE;
60print"<table class=hide90>". NEWLINE;
61print"<tr>". NEWLINE;
62print"<td class='form-lbl-c'>". lang_get('machine_name') ." <span class='required'>*</span>". NEWLINE;
63print"<input type=text size=20 maxlength=20 name='machine_name_required' value='".session_validate_form_get_field( 'machine_name_required', $row[MACH_NAME] )."'>". NEWLINE;
64print"</td>". NEWLINE;
65print"<td class='form-lbl-c'>". lang_get('machine_location') ." <span class='required'>*</span>". NEWLINE;
66print"<input type=text size=25 maxlength=25 name='machine_location_required' value='".session_validate_form_get_field( 'machine_location_required', $row[MACH_LOCATION] )."'>". NEWLINE;
67print"</td>". NEWLINE;
68print"<td class='form-lbl-c'>". lang_get('machine_ip') ." <span class='required'>*</span>". NEWLINE;
69print"<input type=text size=15 maxlength=15 name='machine_ip_required' value='".session_validate_form_get_field( 'machine_ip_required', $row[MACH_IP_ADDRESS] )."'>". NEWLINE;
70print"</td>". NEWLINE;
71print"</tr>". NEWLINE;
72print"</table>". NEWLINE;
73print"</td>". NEWLINE;
74print"</tr>". NEWLINE;
75print"<tr>". NEWLINE;
76print"<td class=center><input type=submit name='new_area_tested' value='".lang_get("save")."'></td>". NEWLINE;
77print"</tr>". NEWLINE;
78print"</table>". NEWLINE;
79print"</td>". NEWLINE;
80print"</tr>". NEWLINE;
81print"</table>". NEWLINE;
82print"</form>". NEWLINE;
83
84print"</div>";
85
86html_print_footer();
87
88# ------------------------------------
89# $Log: project_edit_machine_page.php,v $
90# Revision 1.3  2006/08/05 22:08:24  gth2
91# adding NEWLINE constant to support multiple OS newline chars - gth
92#
93# Revision 1.2  2006/02/24 11:37:48  gth2
94# update to div - class=div-c not working in firefox - gth
95#
96# Revision 1.1.1.1  2005/11/30 23:00:57  gth2
97# importing initial version - gth
98#
99# ------------------------------------
100?>