<?php # --------------------------------------------------------------------- # rth is a requirement, test, and bugtracking system # Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net # This program is distributed under the terms and conditions of the GPL # See the README and LICENSE files for details #---------------------------------------------------------------------- # ------------------------------------ # Project Add Req Area Covered Action # # $RCSfile: project_add_reqareacovered_action.php,v $ $Revision: 1.1.1.1 $ # ------------------------------------ include "./api/include_api.php"; auth_authenticate_user(); $project_id = session_get_project_id(); $redirect_page = 'project_manage_reqareacovered_page.php'; $proj_properties = session_get_properties("project_manage"); session_validate_form_set($_POST, $redirect_page); if (project_req_area_covered_exists($proj_properties['project_id'], session_validate_form_get_field('req_area_covered_required'))) { error_report_show($redirect_page, DUPLICATE_AREANAME); } project_add_req_area_covered($proj_properties['project_id'], session_validate_form_get_field('req_area_covered_required')); session_validate_form_reset(); html_print_operation_successful("add_req_area_covered_page", $redirect_page); # ------------------------------------ # $Log: project_add_reqareacovered_action.php,v $ # Revision 1.1.1.1 2005/11/30 23:00:57 gth2 # importing initial version - gth # # ------------------------------------
auth_authenticate_user(); $page = basename(__FILE__); $s_test_details = session_get_properties("test"); $project_prop = session_get_project_properties(); $test_id = $s_test_details['test_id']; $project_id = $project_prop['project_id']; $redirect_page = "test_detail_page.php?test_id={$test_id}&project_id={$project_id}&tab=2"; $redirect_on_error = "test_detail_page.php?test_id={$test_id}&project_id={$project_id}&tab=2"; session_validate_form_set($_POST, $redirect_page); $project_properties = session_get_project_properties(); $upload_path = $project_properties['test_upload_path']; $s_user = session_get_user_properties(); $username = $s_user['username']; $test_name = test_get_name($test_id); $comments = session_validate_form_get_field('comments'); $doc_type = session_validate_form_get_field('doc_type'); $upload_file_name = $_FILES['uploadfile']['name']; $_FILES['uploadfile']['name'] = str_replace(" ", "_", $upload_file_name); # ------------------------------------------------ # FILE UPLOAD # ------------------------------------------------ if ($_FILES['uploadfile']['size'] != '0' && is_uploaded_file($_FILES['uploadfile']['tmp_name'])) { file_add_supporting_test_doc($_FILES['uploadfile']['tmp_name'], $_FILES['uploadfile']['name'], $test_id, $comments, $doc_type); } else { error_report_show($redirect_on_error, NO_FILE_SPECIFIED); } html_print_operation_successful('file_upload_page', $redirect_page); # --------------------------------------------------------------------- # $Log: test_detail_new_upload_action.php,v $ # Revision 1.8 2008/08/07 10:57:51 peter_thal # Now blanks are replaced with underscores by adding a new supporting doc
# ---------------------------------------------------------------------------------- # Test Doc Type Form # ---------------------------------------------------------------------------------- if ($project_manager) { print "<form method=post action='project_add_testdoctype_action.php'>" . NEWLINE; print "<span class='required'>*</span><span class='print'>" . lang_get('must_complete_field') . "</span>" . NEWLINE; print "<table class='width70'>" . NEWLINE; print "<tr>" . NEWLINE; print "<td>" . NEWLINE; print "<table class=inner>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class=form-header-l>" . lang_get('add_test_doc_type') . "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class='form-lbl-c'>" . lang_get('test_doc_type') . " <span class='required'>*</span>" . NEWLINE; print "<input type=text size=60 maxlength=50 name='test_doc_type_required' value='" . session_validate_form_get_field('test_doc_type_required') . "'>" . NEWLINE; print " <input type=submit name='new_area_tested' value='" . lang_get("add") . "'>"; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; } # ---------------------------------------------------------------------------------- # Test Doc Type Table # ---------------------------------------------------------------------------------- print "<br>" . NEWLINE; print "<form method=post action='{$page}?order_by={$order_by}&order_dir={$order_dir}'>" . NEWLINE; print "<input type=hidden name=table value=project_manage_test_doc_type>" . NEWLINE;
$row = project_get_bug_component($selected_project_id, $bug_component_id); $component = $row[COMPONENT_NAME]; print "<form method=post action='project_edit_bug_component_action.php'>" . NEWLINE; print "<input type=hidden name=project_id value={$selected_project_id}>" . NEWLINE; print "<input type=hidden name=bug_component_id value={$bug_component_id}>"; print "<span class='required'>*</span><span class='print'>" . lang_get('must_complete_field') . "</span>" . NEWLINE; print "<table class='width70'>" . NEWLINE; print "<tr>" . NEWLINE; print "<td>" . NEWLINE; print "<table class=inner>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class=form-header-l>" . lang_get('edit_bug_component') . "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class='form-lbl-c'>" . lang_get('bug_component') . "<span class='required'>*</span>" . NEWLINE; print "<input type=text size=60 maxlength=64 name='bug_component_required' value='" . session_validate_form_get_field('bug_component_required', $component) . "'>" . NEWLINE; print " <input type=submit value='" . lang_get("save") . "'>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; print "</div>" . NEWLINE; html_print_footer(); # ------------------------------------ # $Log: project_edit_bug_component_page.php,v $ # Revision 1.3 2006/08/05 22:08:24 gth2 # adding NEWLINE constant to support multiple OS newline chars - gth #
# Edit Area Tested $row = project_get_test_type($selected_project_id, $test_type_id); print "<form method=post action='project_edit_testtype_action.php'>" . NEWLINE; print "\t<input type=hidden name=project_id value={$selected_project_id}>"; print "\t<input type=hidden name=test_type_id value={$test_type_id}>"; print "\t<span class='required'>*</span><span class='print'>" . lang_get('must_complete_field') . "</span>" . NEWLINE; print "\t<table class='width70'>" . NEWLINE; print "\t<tr>" . NEWLINE; print "\t\t<td>" . NEWLINE; print "\t\t<table class=inner>" . NEWLINE; print "\t\t<tr>" . NEWLINE; print "\t\t\t<td class=form-header-l>" . lang_get('testtype') . "</td>" . NEWLINE; print "\t\t</tr>" . NEWLINE; print "\t\t<tr>" . NEWLINE; print "\t\t\t<td class='form-lbl-c'><span class='required'>*</span>" . NEWLINE; print "\t\t\t<input type=text size=60 maxlength=50 name='testtype_required' value='" . session_validate_form_get_field('testtype_required', $row[TEST_TYPE_TYPE]) . "'>" . NEWLINE; print "\t\t\t <input type=submit name='new_area_tested' value='" . lang_get("save") . "'>"; print "\t\t\t</td>" . NEWLINE; print "\t\t</tr>" . NEWLINE; print "\t\t</table>" . NEWLINE; print "\t\t</td>" . NEWLINE; print "\t</tr>" . NEWLINE; print "\t</table>" . NEWLINE; print "</form>" . NEWLINE; print "</div>"; html_print_footer(); # ------------------------------------ # $Log: project_edit_testtype_page.php,v $ # Revision 1.3 2006/08/05 22:08:24 gth2 # adding NEWLINE constant to support multiple OS newline chars - gth #
<?php # --------------------------------------------------------------------- # rth is a requirement, test, and bugtracking system # Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net # This program is distributed under the terms and conditions of the GPL # See the README and LICENSE files for details #---------------------------------------------------------------------- # ------------------------------------ # Project Edit Machine Action # # $RCSfile: project_edit_machine_action.php,v $ $Revision: 1.1.1.1 $ # ------------------------------------ include "./api/include_api.php"; auth_authenticate_user(); $redirect_page = 'project_manage_testmachines_page.php'; $edit_page = 'project_edit_machine_page.php'; $proj_properties = session_set_properties("project_manage", $_POST); session_validate_form_set($_POST, $edit_page); project_edit_machine($_POST['project_id'], $_POST['machine_id'], session_validate_form_get_field('machine_name_required'), session_validate_form_get_field('machine_ip_required'), session_validate_form_get_field('machine_location_required')); session_validate_form_reset(); html_print_operation_successful("edit_machine_page", $redirect_page); # ------------------------------------ # $Log: project_edit_machine_action.php,v $ # Revision 1.1.1.1 2005/11/30 23:00:57 gth2 # importing initial version - gth # # ------------------------------------
# Edit Area Tested $row = project_get_req_doc_type($selected_project_id, $req_doc_type_id); print "<form method=post action='project_edit_reqdoctype_action.php'>" . NEWLINE; print "<input type=hidden name=project_id value={$selected_project_id}>" . NEWLINE; print "<input type=hidden name=req_doc_type_id value={$req_doc_type_id}>" . NEWLINE; print "<span class='required'>*</span><span class='print'>" . lang_get('must_complete_field') . "</span>" . NEWLINE; print "<table class='width70'>" . NEWLINE; print "<tr>" . NEWLINE; print "<td>" . NEWLINE; print "<table class=inner>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class=form-header-l>" . lang_get('req_doc_type') . "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class='form-lbl-c'><span class='required'>*</span>" . NEWLINE; print "<input type=text size=60 maxlength=50 name='req_doc_type_required' value='" . session_validate_form_get_field('req_doc_type_required', $row[REQ_DOC_TYPE_NAME]) . "'>" . NEWLINE; print " <input type=submit name='new_area_tested' value='" . lang_get("save") . "'>"; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; print "</div>" . NEWLINE; html_print_footer(); # ------------------------------------ # $Log: project_edit_reqdoctype_page.php,v $ # Revision 1.3 2006/08/05 22:08:24 gth2 # adding NEWLINE constant to support multiple OS newline chars - gth #
$dateexpcomplete = session_validate_form_get_field('dateexpcomplete'); $dateactcomplete = session_validate_form_get_field('dateactcomplete'); //$datebasignoff = session_validate_form_get_field('datebasignoff'); //$signoff_by = session_validate_form_get_field('signoff_by'); $autopass = session_validate_form_get_field('chk_autopass'); #is not needed from now on, because of new field "chk_automanu",which validates if step XOR auto is set to YES //$steps = session_validate_form_get_field('chk_steps'); //$auto = session_validate_form_get_field('chk_auto'); $performance = session_validate_form_get_field('chk_performance'); $email = session_validate_form_get_field('email'); $duration = session_validate_form_get_field('test_duration'); $email_ba_owner = session_validate_form_get_field('chk_email_ba_owner'); $email_qa_owner = session_validate_form_get_field('chk_email_qa_owner'); $current_status = session_validate_form_get_field('current_test_status'); $send_email = false; $automanu = session_validate_form_get_field('chk_automanu'); $steps = ''; $auto = ''; if (!util_date_isvalid($dateassigned) || !util_date_isvalid($dateexpcomplete) || !util_date_isvalid($dateactcomplete)) { error_report_show("test_detail_update_page.php", INVALID_DATE); } if (test_name_exists_with_id($project_id, $testname, $test_id)) { error_report_show("test_detail_update_page.php", DUPLICATE_TESTNAME); } // set value of $steps XOR $auto to YES if ($automanu == 'man') { $steps = 'YES'; } else { if ($automanu == 'auto') { $auto = 'YES'; }
function test_edit_assoc_requirements($test_id, $session_records_name, $pc_covered_text_input_name) { global $db; $tbl_req = REQ_TBL; $f_req_proj_id = $tbl_req . "." . REQ_PROJECT_ID; $f_req_id = $tbl_req . "." . REQ_ID; $f_req_filename = $tbl_req . "." . REQ_FILENAME; $tbl_test_req_assoc = TEST_REQ_ASSOC_TBL; $f_test_req_assoc_req_id = $tbl_test_req_assoc . "." . TEST_REQ_ASSOC_REQ_ID; $f_test_req_assoc_test_id = $tbl_test_req_assoc . "." . TEST_REQ_ASSOC_TEMPEST_TEST_ID; $f_test_req_assoc_covered = $tbl_test_req_assoc . "." . TEST_REQ_ASSOC_PERCENT_COVERED; $tbl_test = TEST_TBL; $f_test_name = $tbl_test . "." . TEST_NAME; $f_test_id = $tbl_test . "." . TEST_ID; $s_project_properties = session_get_project_properties(); $project_id = $s_project_properties['project_id']; $req_ids = requirement_get_all_ids($project_id); foreach ($req_ids as $row) { $req_id = $row[REQ_ID]; $q = "\tSELECT {$f_test_req_assoc_req_id}\n\t\t\t\tFROM {$tbl_test_req_assoc}\n\t\t\t\tWHERE {$f_test_req_assoc_req_id} = {$req_id}\n\t\t\t\t\tAND\t{$f_test_req_assoc_test_id} = {$test_id}"; $rs = db_query($db, $q); $record_exists = db_num_rows($db, $rs); if (session_records_ischecked($session_records_name, $req_id)) { $pc_covered = session_validate_form_get_field($pc_covered_text_input_name . $req_id); if ($pc_covered == '') { $pc_covered = 0; } //print"pc_covered = $pc_covered<br>"; if (!$record_exists) { # Add new record $q = "\tINSERT INTO {$tbl_test_req_assoc}\n\t\t\t\t\t\t\t({$f_test_req_assoc_req_id}, {$f_test_req_assoc_test_id}, {$f_test_req_assoc_covered})\n\t\t\t\t\t\tVALUES\n\t\t\t\t\t\t\t({$req_id}, {$test_id}, '{$pc_covered}')"; } else { # Update current record $q = "\tUPDATE {$tbl_test_req_assoc}\n\t\t\t\t\t\tSET\n\t\t\t\t\t\t\t{$f_test_req_assoc_covered} = '{$pc_covered}'\n\t\t\t\t\t\tWHERE\n\t\t\t\t\t\t\t{$f_test_req_assoc_req_id} = {$req_id}\n\t\t\t\t\t\t\tAND {$f_test_req_assoc_test_id} = {$test_id}"; } } else { if ($record_exists) { $q = "\tDELETE FROM {$tbl_test_req_assoc}\n\t\t\t\t\t\tWHERE {$f_test_req_assoc_req_id} = {$req_id}\n\t\t\t\t\t\t\tAND\t{$f_test_req_assoc_test_id} = {$test_id}"; } } db_query($db, $q); } }
print"<tr>"; print"<td class=form-lbl-r>". lang_get('qa_owner') ."</td>"; print"<td class=form-data-l>"; $selected_value = session_validate_form_get_field( 'qa_owner'); print"<select name='qa_owner' size=1>"; $qa_owner = user_get_qaowners_by_project($project_id, $blank=true); html_print_list_box_from_array( $qa_owner, $selected_value ); print"</select>"; print "</td>"; print"</tr>"; */ print "<tr>"; print "<td class=form-lbl-r>" . lang_get('test_assigned_to') . "</td>"; print "<td class=form-data-l>"; $selected_value = session_validate_form_get_field('assigned_to'); print "<select name='assigned_to' size=1>"; $assign_to_users = user_get_usernames_by_project($project_id, $blank = true); html_print_list_box_from_array($assign_to_users, $selected_value); //html_print_list_box_with_join( $db, USER_TBL, PROJECT_USER_ASSOC_TBL, USER_UNAME, USER_ID, PROJECT_USER_ASSOC_TBL, PROJ_ID, $project_id, $selected_value); print "</select>"; print "</td>"; print "</tr>"; /* print"<tr>"; print"<td class=form-lbl-r>". lang_get('test_assigned_by') ."</td>"; print"<td class=form-data-l>"; $selected_value = session_validate_form_get_field( 'assigned_by' ); print"<select name='assigned_by' size=1>"; $assign_by_users = user_get_usernames_by_project($project_id, $blank=true); html_print_list_box_from_array( $assign_by_users, $selected_value);
<?php # --------------------------------------------------------------------- # rth is a requirement, test, and bugtracking system # Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net # This program is distributed under the terms and conditions of the GPL # See the README and LICENSE files for details #---------------------------------------------------------------------- # ------------------------------------ # Project Edit Environment Action # # $RCSfile: project_edit_environment_action.php,v $ $Revision: 1.1.1.1 $ # ------------------------------------ include "./api/include_api.php"; auth_authenticate_user(); $redirect_page = 'project_manage_testenvironment_page.php'; $edit_page = 'project_edit_environment_page.php'; $proj_properties = session_set_properties("project_manage", $_POST); session_validate_form_set($_POST, $edit_page); project_edit_environment($_POST['project_id'], $_POST['environment_id'], session_validate_form_get_field('environment_name_required')); session_validate_form_reset(); html_print_operation_successful("edit_environment_page", $redirect_page); # ------------------------------------ # $Log: project_edit_environment_action.php,v $ # Revision 1.1.1.1 2005/11/30 23:00:57 gth2 # importing initial version - gth # # ------------------------------------
print "<td class='form-lbl-r'>" . lang_get('step_action') . " <span class='required'>*</span></td>" . NEWLINE; print "<td align=left>"; html_FCKeditor("step_action_required", 600, 200, $action); print "</td>" . NEWLINE; print "</tr>"; # TEST INPUTS $test_inputs = session_validate_form_get_field("step_test_inputs", "", session_use_FCKeditor()); print "<tr>"; print "<td class='form-lbl-r'>" . lang_get('test_inputs'); //<span class='required'>*</span></td>". NEWLINE; print "<td align=left>"; html_FCKeditor("step_test_inputs", 600, 200, $action); print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # EXPTECTED RESULT $expected_result = session_validate_form_get_field("step_expected_required", "", session_use_FCKeditor()); print "<tr>"; print "<td class='form-lbl-r'>" . lang_get('step_expected') . " <span class='required'>*</span></td>" . NEWLINE; print "<td align=left>"; html_FCKeditor("step_expected_required", 600, 200, $expected_result); print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "<tr>" . NEWLINE; print "<td><input type='hidden' name='test_id' value='{$test_id}'></td>" . NEWLINE; print "</tr>" . NEWLINE; util_add_spacer(); # SUBMIT BUTTON print "<tr>" . NEWLINE; print "<td colspan='3' class=center><input type='submit' value='" . lang_get('add_step') . "'></td>" . NEWLINE; print "</tr>" . NEWLINE; util_add_spacer();
# Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net # This program is distributed under the terms and conditions of the GPL # See the README and LICENSE files for details #---------------------------------------------------------------------- # ------------------------------------ # Page name # # $RCSfile: screen_edit_action.php,v $ # $Revision: 1.1 $ # ------------------------------------ include "./api/include_api.php"; auth_authenticate_user(); $s_project_properties = session_get_project_properties(); $project_id = $s_project_properties['project_id']; $redirect_page = 'screen_page.php'; $redirect_on_error = 'screen_edit_page.php'; session_validate_form_set($_POST, $redirect_on_error); # Make sure the screen name doesn't already exist for this project $num = test_screen_name_exists($project_id, session_validate_form_get_field('screen_name_required')); if ($num > 1) { error_report_show($redirect_page, DUPLICATE_SCREEN_NAME); } test_update_screen(session_validate_form_get_field('screen_id'), session_validate_form_get_field('screen_name_required'), session_validate_form_get_field('screen_desc'), session_validate_form_get_field('screen_order')); session_validate_form_reset(); html_print_operation_successful('screen_page', $redirect_page); # ------------------------------------ # $Log: screen_edit_action.php,v $ # Revision 1.1 2006/05/03 20:24:01 gth2 # no message # # ------------------------------------
} # ------------------------------------------------ # TEST SUITE RESULTS # ------------------------------------------------ results_edit_testsuite_result($test_run_id, $testset_id, $test_id, $test_name, $test_status, $username, $time_started, $time_finished, $comments, $root_cause, $environment, $os); # PREPARE TO UPDATE THE VERIFY_RESULTS TABLE $vr_tbl = VERIFY_RESULTS_TBL; $f_vr_id = VERIFY_RESULTS_ID; $f_run_id = VERIFY_RESULTS_TS_UNIQUE_RUN_ID; $f_timestamp = VERIFY_RESULTS_LOG_TIME_STAMP; $f_actual = VERIFY_RESULTS_ACTUAL_RESULT; $f_status = VERIFY_RESULTS_TEST_STATUS; # UPDATE VERIFY_RESULTS foreach (results_get_verify_results_detail($test_run_id) as $row_test_step) { $verify_results_id = $row_test_step[VERIFY_RESULTS_ID]; $q = "\tUPDATE {$vr_tbl}\n\t\t\tSET\n\t\t\t\t{$f_timestamp} = '{$time_finished}',\n\t\t\t\t{$f_actual} = '" . session_validate_form_get_field("actual_result_{$verify_results_id}") . "',\n\t\t\t\t{$f_status} = '" . session_validate_form_get_field("step_status_{$verify_results_id}") . "'\n\t\t\tWHERE\n\t\t\t\t{$f_run_id} = '{$test_run_id}'\n\t\t\tAND \n\t\t\t\t{$f_vr_id} = '{$verify_results_id}'"; #print"$q<br>"; db_query($db, $q); } # ------------------------------------------------ # UPDATE TEST RUN STATUS # ------------------------------------------------ if ($test_status == "Passed") { $finished = '1'; } else { $finished = '0'; } #results_update_test_run( $test_run_id, $username, session_validate_form_get_field("test_run_status"), $finished, session_validate_form_get_field("comments"), $root_cause ); results_update_test_result($testset_id, $test_id, $username, $test_status, $root_cause, $finished, $comments); ############################################################################ # EMAIL NOTIFICATION
# Edit environment Tested $row = project_get_environment($selected_project_id, $environment_id); print "<form method=post action='project_edit_environment_action.php'>" . NEWLINE; print "\t<input type=hidden name=project_id value={$selected_project_id}>"; print "\t<input type=hidden name=environment_id value={$environment_id}>"; print "\t<span class='required'>*</span><span class='print'>" . lang_get('must_complete_field') . "</span>" . NEWLINE; print "\t<table class='width70'>" . NEWLINE; print "\t<tr>" . NEWLINE; print "\t<td>" . NEWLINE; print "\t\t<table class=inner>" . NEWLINE; print "\t\t<tr>" . NEWLINE; print "\t\t\t<td class=form-header-l>" . lang_get('edit_environment') . "</td>" . NEWLINE; print "\t\t</tr>" . NEWLINE; print "\t\t<tr>" . NEWLINE; print "\t\t\t<td class='form-lbl-c'><span class='required'>*</span>" . NEWLINE; print "\t\t\t<input type=text size=60 maxlength=50 name='environment_name_required' value='" . session_validate_form_get_field('environment_name_required', $row[ENVIRONMENT_NAME]) . "'>" . NEWLINE; print "\t\t\t <input type=submit name='new_area_tested' value='" . lang_get("save") . "'>"; print "\t\t\t</td>" . NEWLINE; print "\t\t</tr>" . NEWLINE; print "\t\t</table>" . NEWLINE; print "\t\t</td>" . NEWLINE; print "\t</tr>" . NEWLINE; print "\t</table>" . NEWLINE; print "</form>" . NEWLINE; print "</div>"; html_print_footer(); # ------------------------------------ # $Log: project_edit_environment_page.php,v $ # Revision 1.3 2006/08/05 22:08:24 gth2 # adding NEWLINE constant to support multiple OS newline chars - gth #
print "<td class=left>" . NEWLINE; print "<input type='text' maxlength='20' name='build_edit_name_required' size=30 value='" . session_validate_form_get_field('build_edit_name_required', $build_name) . "'>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # BUILD DATE print "<tr>" . NEWLINE; print "<td class='form-lbl-r'>" . lang_get('date_received') . "</td>" . NEWLINE; print "<td class=left>" . NEWLINE; print "<input type='text' maxlength='19' name='build_edit_date' size=30 value='" . session_validate_form_get_field("build_edit_date", $build_date_received) . "'>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # DESCRIPTION print "<tr>" . NEWLINE; print "<td class='form-lbl-r'>" . lang_get('description') . "</td>" . NEWLINE; print "<td class=left>" . NEWLINE; print "<textarea name='build_edit_description' rows=5 cols=30 >" . session_validate_form_get_field("build_edit_description", $build_description) . "</textarea>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # SUBMIT BUTTON print "<tr>" . NEWLINE; print "<td colspan='2' class=center><input type='submit' value='" . lang_get('update') . "'></td>" . NEWLINE; print "</tr>" . NEWLINE; print "</form>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</div>" . NEWLINE; html_print_footer();
print "<table class=width80>" . NEWLINE; print "<tr>" . NEWLINE; print "<td>" . NEWLINE; print "<table class=inner>" . NEWLINE; # SUBJECT print "<tr>" . NEWLINE; print "<td class=right>" . lang_get('subject') . " <span class='required'>*</span></td>" . NEWLINE; print "<td class=left>" . NEWLINE; print "<input type='text' maxlength='100' name='subject_required' size=100 value='" . session_validate_form_get_field('subject_required') . "'>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # DESCRIPTION print "<tr>" . NEWLINE; print "<td class=right>" . lang_get('description') . " <span class='required'>*</span></td>" . NEWLINE; print "<td class=left>" . NEWLINE; print "<textarea name='body_required' rows=10 cols=80 >" . session_validate_form_get_field('body_required') . "</textarea>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # SUBMIT BUTTON print "<tr>" . NEWLINE; print "<td colspan='2' class=center><input type='submit' value='" . lang_get('submit_btn') . "'></td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; print "</div>" . NEWLINE; html_print_footer(); # ------------------------------------ # $Log: news_add_page.php,v $
# Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net # This program is distributed under the terms and conditions of the GPL # See the README and LICENSE files for details #---------------------------------------------------------------------- # ------------------------------------ # $RCSfile: field_add_action.php,v $ # $Revision $ # ------------------------------------ include "./api/include_api.php"; auth_authenticate_user(); $s_project_properties = session_get_project_properties(); $project_id = $s_project_properties['project_id']; $redirect_page = 'field_add_page.php'; $redirect_on_error = 'field_add_page.php'; $screen_id = session_validate_form_get_field('screen_id'); # Make sure user completed required fields session_validate_form_set($_POST, $redirect_page); # Make sure the screen name doesn't already exist for this project $num = test_field_name_exists(session_validate_form_get_field('field_name_required'), session_validate_form_get_field('screen_id')); if ($num > 0) { error_report_show($redirect_page, DUPLICATE_FIELD_NAME); } test_add_field(session_validate_form_get_field('field_name_required'), session_validate_form_get_field('screen_id'), session_validate_form_get_field('field_desc'), session_validate_form_get_field('field_order'), session_validate_form_get_field('text_box')); session_validate_form_reset(); html_print_operation_successful('field_page', $redirect_page); # ------------------------------------ # $Log: field_add_action.php,v $ # Revision 1.1 2006/05/03 20:18:31 gth2 # no message # # ------------------------------------
print "<form method=post name='add_screen' action='screen_add_action.php'>" . NEWLINE; print "<table class=inner>" . NEWLINE; # FORM TITLE print "<tr>" . NEWLINE; print "<td colspan='2'><h4>" . lang_get('add_screen') . "</h4></td>" . NEWLINE; print "</tr>" . NEWLINE; # SCREEN NAME print "<tr>" . NEWLINE; print "<td class='form-lbl-r'>" . lang_get('screen_name') . " <span class='required'>*</span></td>" . NEWLINE; print "<td class='form-data-l'><input type='text' size='50' maxlength='50' name='screen_name_required' value='" . session_validate_form_get_field("screen_name_required") . "'></td>" . NEWLINE; print "</tr>" . NEWLINE; # DESCRIPTION print "<tr>" . NEWLINE; print "<td class='form-lbl-r'>" . lang_get('description') . "</td>" . NEWLINE; print "<td class='form-data-l'>"; print "<textarea name='screen_desc' rows=5 cols=50 >" . session_validate_form_get_field("screen_desc") . "</textarea>"; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # SCREEN ORDER $order_numbers = test_get_screen_order_numbers(); print "<tr>" . NEWLINE; print "<td class='form-lbl-r'>" . lang_get('order') . "</td>" . NEWLINE; print "<td align=left>" . NEWLINE; print "<select name='screen_order'>"; print "<option value='end'>At end of table</option>"; if (!empty($order_numbers)) { html_print_list_box_from_key_array($order_numbers); } print "</select>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>";
#---------------------------------------------------------------------- # ------------------------------------ # Project Add Action # # $RCSfile: project_add_action.php,v $ $Revision: 1.5 $ # ------------------------------------ include "./api/include_api.php"; auth_authenticate_user(); $project_id = session_get_project_id(); $add_page = 'project_add_page.php'; $redirect_page = 'admin_page.php'; $proj_properties = session_get_properties("project_manage"); session_validate_form_set($_POST, $add_page); $project_name = session_validate_form_get_field('project_name_required'); $project_folder_name = str_replace(" ", "", $project_name); $project_description = session_validate_form_get_field('project_description'); $req_docs = FILE_UPLOAD_PATH . $project_folder_name . "_req_docs/"; $test_docs = FILE_UPLOAD_PATH . $project_folder_name . "_test_docs/"; $test_run_docs = FILE_UPLOAD_PATH . $project_folder_name . "_test_run_docs/"; $test_plan_docs = FILE_UPLOAD_PATH . $project_folder_name . "_test_plan_docs/"; $defect_docs = FILE_UPLOAD_PATH . $project_folder_name . "_defect_docs/"; # check username unique if (!is_null(project_get_id($project_name))) { error_report_show($add_page, PROJECT_NOT_UNIQUE); } if (mkdir($req_docs, 0700) && mkdir($test_docs, 0700) && mkdir($test_run_docs, 0700) && mkdir($test_plan_docs, 0700) && mkdir($defect_docs, 0700)) { project_add($project_name, $project_description, $_POST['project_status'], isset($_POST['show_custom_1']) ? "Y" : "N", isset($_POST['show_custom_2']) ? "Y" : "N", isset($_POST['show_custom_3']) ? "Y" : "N", isset($_POST['show_custom_4']) ? "Y" : "N", isset($_POST['show_custom_5']) ? "Y" : "N", isset($_POST['show_custom_6']) ? "Y" : "N", isset($_POST['show_window']) ? "Y" : "N", isset($_POST['show_object']) ? "Y" : "N", isset($_POST['show_memory_stats']) ? "Y" : "N", isset($_POST['show_priority']) ? "Y" : "N", isset($_POST['show_test_input']) ? "Y" : "N", $req_docs, $test_docs, $test_run_docs, $test_plan_docs, $defect_docs); } else { error_report_show($add_page, UNABLE_TO_CREATE_PROJECT_FOLDERS); } // add new project to user settings
print "<td>" . NEWLINE; print "<form method=post name={$form_name} action={$action_page}>" . NEWLINE; print "<table class='inner'>" . NEWLINE; # FORM TITLE print "<tr>" . NEWLINE; print "<td colspan='2'><h4>" . lang_get('add_build') . " - {$release_name}</h4></td>" . NEWLINE; print "</tr>" . NEWLINE; # BUILD NAME print "<tr>" . NEWLINE; print "<td class='form-lbl-r'>" . lang_get('build_name') . " <span class='required'>*</span></td>" . NEWLINE; print "<td class='form-data-l'><input type='text' maxlength='20' name='build_name_required' size=30 value='" . session_validate_form_get_field("build_name_required") . "'></td>" . NEWLINE; print "</tr>" . NEWLINE; # DESCRIPTION print "<tr>" . NEWLINE; print "<td class='form-lbl-r'>" . lang_get('description') . "</td>" . NEWLINE; print "<td class='form-data-l'><textarea name='build_description' rows=5 cols=30>" . session_validate_form_get_field("build_description") . "</textarea></td>" . NEWLINE; print "</tr>" . NEWLINE; # SUBMIT BUTTON print "<tr>" . NEWLINE; print "<td colspan='2' class='form-data-c'><input type='submit' value='" . lang_get('add') . "'></td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "<br><br>" . NEWLINE; $build_details = admin_get_builds($release_id, $order_by, $order_dir); if (!empty($build_details)) { print "<table id='sortabletable' class='sortable' rules=cols>" . NEWLINE; print "<thead>" . NEWLINE;
# rth is a requirement, test, and bugtracking system # Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net # This program is distributed under the terms and conditions of the GPL # See the README and LICENSE files for details #---------------------------------------------------------------------- # ------------------------------------ # Project Add Users Action # # $RCSfile: project_add_machine_action.php,v $ $Revision: 1.1.1.1 $ # ------------------------------------ include "./api/include_api.php"; auth_authenticate_user(); $project_id = session_get_project_id(); $redirect_page = 'project_manage_testmachines_page.php'; $proj_properties = session_get_properties("project_manage"); session_validate_form_set($_POST, $redirect_page); if (project_machine_exists($proj_properties['project_id'], session_validate_form_get_field('machine_name_required'))) { error_report_show($redirect_page, DUPLICATE_MACHINE_NAME); } if (project_ip_address_exists($proj_properties['project_id'], session_validate_form_get_field('machine_ip_required'))) { error_report_show($redirect_page, DUPLICATE_IP_ADDRESS); } project_add_machine($proj_properties['project_id'], session_validate_form_get_field('machine_name_required'), session_validate_form_get_field('machine_location_required'), session_validate_form_get_field('machine_ip_required')); session_validate_form_reset(); html_print_operation_successful("add_machine_page", $redirect_page); # ------------------------------------ # $Log: project_add_machine_action.php,v $ # Revision 1.1.1.1 2005/11/30 23:00:57 gth2 # importing initial version - gth # # ------------------------------------
# ADD BUGNOTE TABLE print "<table class=width75>"; print "<tr>"; print "<td>"; print "<form method=post action={$action_page}>"; print "<input type=hidden name='bug_id' value='{$bug_id}'>" . NEWLINE; print "<table class=inner rules=none border=0>"; # FORM TITLE print "<tr>"; print "<td class=form-header-l colspan=2>" . lang_get('close_bug') . "</td>"; print "</tr>"; # IMPLEMENTED IN RELEASE print "<tr>" . NEWLINE; print "<td class=form-lbl-r nowrap>" . lang_get('closed_reason_code') . "<span class='required'>*</span></td>" . NEWLINE; print "<td class=form-data-l>" . NEWLINE; $selected_value = session_validate_form_get_field('closed_reason_code', $closed_reason_code); print "<select name='closed_reason_code_required' size=1>" . NEWLINE; $closed_reasons = bug_get_closed_reason_code(); html_print_list_box_from_array($closed_reasons, $selected_value); print "</select>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # BUGNOTE print "<tr>" . NEWLINE; print "<td class=form-lbl-r nowrap>" . lang_get('bug_note') . "</td>" . NEWLINE; print "<td class=form-data-l>" . NEWLINE; print "<textarea rows='6' cols='50' name='bugnote'></textarea>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; util_add_spacer(); # BUTTON
<?php # --------------------------------------------------------------------- # rth is a requirement, test, and bugtracking system # Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net # This program is distributed under the terms and conditions of the GPL # See the README and LICENSE files for details #---------------------------------------------------------------------- # ------------------------------------ # Project Add Test Type Action # # $RCSfile: project_add_testtype_action.php,v $ $Revision: 1.1.1.1 $ # ------------------------------------ include "./api/include_api.php"; auth_authenticate_user(); $project_id = session_get_project_id(); $redirect_page = 'project_manage_testtype_page.php'; $proj_properties = session_get_properties("project_manage"); session_validate_form_set($_POST, $redirect_page); if (project_testtype_exists($proj_properties['project_id'], session_validate_form_get_field('testtype_required'))) { error_report_show($redirect_page, DUPLICATE_TESTTYPE_NAME); } project_add_testtype($proj_properties['project_id'], session_validate_form_get_field('testtype_required')); session_validate_form_reset(); html_print_operation_successful("add_testtype_page", $redirect_page); # ------------------------------------ # $Log: project_add_testtype_action.php,v $ # Revision 1.1.1.1 2005/11/30 23:00:57 gth2 # importing initial version - gth # # ------------------------------------
html_print_list_box_from_key_array($list_box, session_validate_form_get_field('req_type', $req_doc_type)); print "</select>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # ASSIGNED TO RELEASE print "<tr>" . NEWLINE; print "<td class=form-lbl-r nowrap>" . lang_get('assigned_to_release') . "</td>" . NEWLINE; print "<td class=form-data-l>" . NEWLINE; print "<select name=assigned_release size=1>" . NEWLINE; $list_box = array(); $rows_rel = admin_get_releases($project_id); foreach ($rows_rel as $row_rel) { $list_box[$row_rel[RELEASE_ID]] = $row_rel[RELEASE_NAME]; } $list_box[""] = ""; html_print_list_box_from_key_array($list_box, session_validate_form_get_field('req_area', $selected_release)); print "</select>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; # SUBMIT BUTTON print "<tr>" . NEWLINE; print "<td colspan='2' class=center><input type='submit' value='" . lang_get('submit_btn') . "'></td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</div>" . NEWLINE; print "</form>" . NEWLINE; html_print_footer(); # ---------------------------------------------------------------------
<?php # --------------------------------------------------------------------- # rth is a requirement, test, and bugtracking system # Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net # This program is distributed under the terms and conditions of the GPL # See the README and LICENSE files for details #---------------------------------------------------------------------- # ------------------------------------ # Project Add Req Doc Type Action # # $RCSfile: project_add_reqfunctionality_action.php,v $ $Revision: 1.1.1.1 $ # ------------------------------------ include "./api/include_api.php"; auth_authenticate_user(); $project_id = session_get_project_id(); $redirect_page = 'project_manage_reqfunctionality_page.php'; $proj_properties = session_get_properties("project_manage"); session_validate_form_set($_POST, $redirect_page); if (project_reqfunctionality_exists($proj_properties['project_id'], session_validate_form_get_field('req_functionality_required'))) { error_report_show($redirect_page, DUPLICATE_REQUIREMENT_FUNCTIONALITY); } project_add_req_functionality($proj_properties['project_id'], session_validate_form_get_field('req_functionality_required')); session_validate_form_reset(); html_print_operation_successful("add_req_functionality_page", $redirect_page); # ------------------------------------ # $Log: project_add_reqfunctionality_action.php,v $ # Revision 1.1.1.1 2005/11/30 23:00:57 gth2 # importing initial version - gth # # ------------------------------------
# ---------------------------------------------------------------------------------- # Environment Form # ---------------------------------------------------------------------------------- if ($project_manager) { print "<form method=post action='project_add_environment_action.php'>" . NEWLINE; print "<span class='required'>*</span><span class='print'>" . lang_get('must_complete_field') . "</span>" . NEWLINE; print "<table class='width70'>" . NEWLINE; print "<tr>" . NEWLINE; print "<td>" . NEWLINE; print "<table class=inner>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class=form-header-l>" . lang_get('add_environment') . "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class='form-lbl-c'>" . lang_get('environment') . " <span class='required'>*</span>" . NEWLINE; print "<input type=text size=60 maxlength=50 name='environment_name_required' value='" . session_validate_form_get_field('environment_required') . "'>" . NEWLINE; print " <input type=submit name='new_area_tested' value='" . lang_get("add") . "'>"; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; } # ---------------------------------------------------------------------------------- # Environment Table # ---------------------------------------------------------------------------------- print "<br>" . NEWLINE; print "<form method=post action='{$page}?order_by={$order_by}&order_dir={$order_dir}'>" . NEWLINE; print "<input type=hidden name=table value=project_manage_environment>" . NEWLINE;
# Edit Area Tested $row = project_get_req_area_covered($selected_project_id, $req_area_covered_id); print "<form method=post action='project_edit_reqareacovered_action.php'>" . NEWLINE; print "<input type=hidden name=project_id value={$selected_project_id}>" . NEWLINE; print "<input type=hidden name=req_area_covered_id value={$req_area_covered_id}>"; print "<span class='required'>*</span><span class='print'>" . lang_get('must_complete_field') . "</span>" . NEWLINE; print "<table class='width70'>" . NEWLINE; print "<tr>" . NEWLINE; print "<td>" . NEWLINE; print "<table class=inner>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class=form-header-l>" . lang_get('req_area_covered') . "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "<tr>" . NEWLINE; print "<td class='form-lbl-c'><span class='required'>*</span>" . NEWLINE; print "<input type=text size=60 maxlength=50 name='req_area_covered_required' value='" . session_validate_form_get_field('req_area_covered_required', $row[REQ_AREA_COVERAGE]) . "'>" . NEWLINE; print " <input type=submit value='" . lang_get("save") . "'>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</td>" . NEWLINE; print "</tr>" . NEWLINE; print "</table>" . NEWLINE; print "</form>" . NEWLINE; print "</div>" . NEWLINE; html_print_footer(); # ------------------------------------ # $Log: project_edit_reqareacovered_page.php,v $ # Revision 1.3 2006/08/05 22:08:24 gth2 # adding NEWLINE constant to support multiple OS newline chars - gth #
<?php # --------------------------------------------------------------------- # rth is a requirement, test, and bugtracking system # Copyright (C) 2005 George Holbrook - rth@lists.sourceforge.net # This program is distributed under the terms and conditions of the GPL # See the README and LICENSE files for details #---------------------------------------------------------------------- # --------------------------------------------------------------------- # Test Set Edit Description Page # # $RCSfile: testset_edit_description_action.php,v $ $Revision: 1.1.1.1 $ # --------------------------------------------------------------------- include "./api/include_api.php"; auth_authenticate_user(); $redirect_page = 'testset_page.php'; $edit_page = 'testset_edit_description_page.php'; session_validate_form_set($_POST, $edit_page); #### Call api function to add/update database passing in form field values #### admin_edit_testset(util_clean_post_vars('testset_id'), session_validate_form_get_field('testset_edit_name_required'), session_validate_form_get_field('testset_edit_date'), session_validate_form_get_field('testset_edit_description')); session_validate_form_reset(); html_print_operation_successful('release_page', $redirect_page); # --------------------------------------------------------------------- # $Log: testset_edit_description_action.php,v $ # Revision 1.1.1.1 2005/11/30 23:00:58 gth2 # importing initial version - gth # # ---------------------------------------------------------------------
# See the README and LICENSE files for details #---------------------------------------------------------------------- # ------------------------------------ # Page name # # $RCSfile: build_edit_action.php,v $ $Revision: 1.2 $ # ------------------------------------ include "./api/include_api.php"; auth_authenticate_user(); #### Change to correct redirect page #### $redirect_page = 'build_page.php'; $edit_page = 'build_edit_page.php'; $s_release_properties = session_set_properties("release"); session_validate_form_set($_POST, $edit_page); if (admin_build_name_exists($s_release_properties['release_id'], session_validate_form_get_field('build_edit_name_required'))) { error_report_show($edit_page, DUPLICATE_BUILD_NAME); } #### Call api function to add/update database passing in form field values #### admin_edit_build(session_validate_form_get_field('build_id'), session_validate_form_get_field('build_edit_name_required'), session_validate_form_get_field('build_edit_date'), session_validate_form_get_field('build_edit_description')); session_validate_form_reset(); html_print_operation_successful('build_page', $redirect_page); # ------------------------------------ # $Log: build_edit_action.php,v $ # Revision 1.2 2008/08/08 11:22:10 peter_thal # disabled update buildname to an existing buildname # test_detail_update_action.php: changed redirect page on error # # Revision 1.1.1.1 2005/11/30 23:00:56 gth2 # importing initial version - gth # # ------------------------------------