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 Plan Upload New Version Page 10# 11# $RCSfile: testset_upload_new_test_plan_version_page.php,v $ $Revision: 1.3 $ 12# --------------------------------------------------------------------- 13 14include"./api/include_api.php"; 15auth_authenticate_user(); 16 17$page = basename(__FILE__); 18$form_name = 'add_testset'; 19$action_page = 'testset_add_action.php'; 20$testset_edit_page = 'testset_edit_page.php'; 21$testset_add_tests_page = 'testset_add_tests_page.php'; 22$delete_page = 'delete_page.php'; 23$testset_copy_page = 'testset_copy_page.php'; 24$testset_edit_description_page = 'testset_edit_description_page.php'; 25$s_project_properties = session_get_project_properties(); 26$project_name = $s_project_properties['project_name']; 27$project_id = $s_project_properties['project_id']; 28$row_style = ''; 29 30$s_release_properties = session_set_properties( "release", $_GET ); 31$release_id = $s_release_properties['release_id']; 32$release_name = admin_get_release_name($release_id); 33$build_id = $s_release_properties['build_id']; 34$build_name = admin_get_build_name($build_id); 35 36$s_table_display_options = session_set_display_options( "testset", $_POST ); 37$order_by = $s_table_display_options['order_by']; 38$order_dir = $s_table_display_options['order_dir']; 39 40html_window_title(); 41html_print_body(); 42html_page_title($project_name ." - ". lang_get('release_page') ); 43html_page_header( $db, $project_name ); 44html_print_menu(); 45 46html_release_map( Array( "release_link", 47 "build_link", 48 "<a href=testset_page.php>". lang_get("testsets") ."</a>", 49 lang_get('upload_new_test_plan') ) ); 50 51$test_plan_details = testset_get_test_plan_details( $_GET['test_plan_id'] ); 52 53$test_plan_name = $test_plan_details[TEST_PLAN_NAME]; 54$test_plan_version = $test_plan_details[TEST_PLAN_VERSION_VERSION]; 55$test_plan_version_id = $test_plan_details[TEST_PLAN_VERSION_ID]; 56 57print"<br><br>". NEWLINE; 58 59print"<div align=center>". NEWLINE; 60 61print"<form enctype=\"multipart/form-data\" name=\"upload\" action=\"testset_upload_new_test_plan_version_action.php\" method=\"post\">". NEWLINE; 62print"<input type=hidden name=MAX_FILE_SIZE value=25000000>". NEWLINE; 63print"<input type=hidden name=build_id value=$build_id>". NEWLINE; 64print"<input type=hidden name=old_test_plan_id value=$test_plan_version_id>". NEWLINE; 65print"<input type=hidden name=test_plan_name value=$test_plan_name>". NEWLINE; 66print"<table class=width70>". NEWLINE; 67print"<tr>". NEWLINE; 68print" <td>". NEWLINE; 69print" <table class=inner>". NEWLINE; 70print" <tr>". NEWLINE; 71print" <td class=left><h4>". lang_get("uploading_new_version") ." $test_plan_name</h4></td>". NEWLINE; 72print" </tr>". NEWLINE; 73print" <tr>". NEWLINE; 74print" <td>". NEWLINE; 75print" <table>". NEWLINE; 76print" <tr>". NEWLINE; 77print" <td class=right>". lang_get("file_name") ." <span class='required'>*</span></td>". NEWLINE; 78print" <td class=left><input type=file name=upload_file size=90></td>". NEWLINE; 79print" </tr>". NEWLINE; 80print" <tr>". NEWLINE; 81print" <td class=right>". lang_get("comments") ."</td>". NEWLINE; 82print" <td class=left><textarea name=comments rows=6 cols=80></textarea></td>". NEWLINE; 83print" </tr>". NEWLINE; 84print" <tr>". NEWLINE; 85print" <td class=right>". lang_get("version") ." <span class='required'>*</span></td>". NEWLINE; 86print" <td class=left><input type=text name=version value='" . util_increment_version($test_plan_version) . "' size=10></td>". NEWLINE; 87print" </tr>". NEWLINE; 88print" <tr>". NEWLINE; 89print" <td></td>". NEWLINE; 90print" <td><input type=submit value=". lang_get("upload") ."></td>". NEWLINE; 91print" </tr>". NEWLINE; 92print" </table>". NEWLINE; 93print" </td>". NEWLINE; 94print" </tr>". NEWLINE; 95print" </table>". NEWLINE; 96print" </td>". NEWLINE; 97print"</tr>". NEWLINE; 98print"</table>". NEWLINE; 99print"</form>"; 100 101print"</div>". NEWLINE; 102 103html_print_footer(); 104 105# --------------------------------------------------------------------- 106# $Log: testset_upload_new_test_plan_version_page.php,v $ 107# Revision 1.3 2006/08/05 22:09:13 gth2 108# adding NEWLINE constant to support multiple OS newline chars - gth 109# 110# Revision 1.2 2006/02/24 11:36:04 gth2 111# update to div - class=div-c not working in firefox - gth 112# 113# Revision 1.1.1.1 2005/11/30 23:00:58 gth2 114# importing initial version - gth 115# 116# --------------------------------------------------------------------- 117 118?>