~budgester/irm/trunk

« back to all changes in this revision

Viewing changes to users/computers-groups-batch.php

  • Committer: budgester at budgester
  • Date: 2008-03-05 23:14:13 UTC
  • Revision ID: budgester@budgester.com-20080305231413-k5vqfuckfo09ju42
Initial import of IRM codebase

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
#    IRM - The Information Resource Manager
 
3
#    Copyright (C) 1999 Yann Ramin
 
4
#
 
5
#    This program is free software; you can redistribute it and/or modify
 
6
#    it under the terms of the GNU General Public License as published by
 
7
#    the Free Software Foundation; either version 2 of the License, or
 
8
#    (at your option) any later version.
 
9
#
 
10
#    This program is distributed in the hope that it will be useful,
 
11
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
13
#    GNU General Public License (in file COPYING) for more details.
 
14
#
 
15
#    You should have received a copy of the GNU General Public License
 
16
#    along with this program; if not, write to the Free Software
 
17
#    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
#
 
19
################################################################################
 
20
 
 
21
require_once '../include/irm.inc';
 
22
require_once 'include/i18n.php';
 
23
 
 
24
$outquery = $aquery;
 
25
AuthCheck("tech");
 
26
commonHeader(_("Computers") . " - " . _("Setup computers in groups"));
 
27
__("Use this utility to Setup computers in groups.");
 
28
PRINT "<br>";
 
29
PRINT "<hr noshade>";
 
30
 
 
31
PRINT "<table>\n";
 
32
 
 
33
PRINT '<tr class="computerheader">';
 
34
PRINT "<td colspan=\"2\">\n";
 
35
__("Add all computers from previous search to group");
 
36
PRINT '<form method=post action="'.Config::AbsLoc('users/computers-groups-batch-add.php').'">';
 
37
Dropdown_groups("groups", "sID");
 
38
PRINT "</td>";
 
39
PRINT "</tr>\n";
 
40
 
 
41
PRINT '<tr class="computerupdate">';
 
42
PRINT "<td align=center>";
 
43
PRINT '<form method=post action="'.Config::AbsLoc('users/computers-groups-batch-add.php').'">';
 
44
PRINT "<input type=hidden name=outquery value=\"$outquery\">";
 
45
PRINT "<input type=submit value=\""._("Add")."\">";
 
46
PRINT "</form>";
 
47
PRINT "</td>\n";
 
48
PRINT "<td align=center>";
 
49
PRINT '<form method=post action="'.Config::AbsLoc('users/computers-groups-batch-del.php').'">';
 
50
PRINT "<input type=hidden name=outquery value=\"$outquery\">";
 
51
PRINT "<input type=hidden name=sID value=$sID>";
 
52
PRINT "<input type=submit value=\""._("Delete")."\">";
 
53
PRINT "</form>";
 
54
PRINT "</td>\n";
 
55
PRINT "</tr>";
 
56
 
 
57
PRINT "</table>";
 
58
 
 
59
PRINT "<br>";
 
60
__("NOTE: Sometimes this may take a while, depending on the number of 
 
61
                computers you have (upwards of 10 seconds).");
 
62
 
 
63
commonFooter();