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# Results Group Action Page
10#
11# $RCSfile: results_group_action.php,v $  $Revision: 1.1.1.1 $
12# ---------------------------------------------------------------------
13
14include"./api/include_api.php";
15auth_authenticate_user();
16
17$page                   = basename(__FILE__);
18$redirect_page			= 'results_page.php';
19$project_properties     = session_get_project_properties();
20$project_name           = $project_properties['project_name'];
21$project_id				= $project_properties['project_id'];
22$s_properties			= session_get_properties("results");
23$testset_id				= $s_properties['testset_id'];
24$s_user					= session_get_user_properties();
25$s_username				= $s_user['username'];
26
27$ids					= explode(":", $_POST['ids']);
28$comments				= $_POST['test_result_comments'];
29$status					= $_POST['action'];
30$update_db				= true;
31$test_ids				= "";
32$finished				= '1';
33
34
35foreach( $ids as $row_test_id ) {
36
37	if( $row_test_id != '' ) {
38		$test_ids .= $row_test_id .", ";
39	}
40	$test_ids = substr($test_ids, 0, -1);
41}
42
43results_mass_update_test_result($testset_id, $test_ids, $s_username, $status, $comments, $finished );
44
45html_print_operation_successful( "test_results_page", $redirect_page );
46
47# ---------------------------------------------------------------------
48# $Log: results_group_action.php,v $
49# Revision 1.1.1.1  2005/11/30 23:00:58  gth2
50# importing initial version - gth
51#
52# ---------------------------------------------------------------------
53
54?>