File: helper.php3

package info (click to toggle)
irm 1.0.3-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 816 kB
  • ctags: 753
  • sloc: php: 3,440; sh: 346; makefile: 40
file content (71 lines) | stat: -rw-r--r-- 2,988 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?
#    IRM - The Information Resource Manager
#    Copyright (C) 1999 Yann Ramin
#
#    This program is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 2 of the License, or
#    (at your option) any later version.
#
#    This program is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License (in file COPYING) for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program; if not, write to the Free Software
#    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#    $Id: helper.php3,v 1.8 2000/03/17 05:48:34 atrus Exp $
#
################################################################################
#                                  CHANGELOG                                   #
################################################################################
#  7/22/99 - Keith Schoenefeld:	Added CHANGELOG                                #
#  8/20/99 - Yann Ramin: More search options, limited though                   #
#  9/11/99 - Keith Schoenefeld:	Added group functionality                      #
#  9/11/99 - Keith Schoenefeld:	Set up the configuration option for name       #
#			searches                                               #
################################################################################

include("../irm.inc");

AuthCheck("post-only");
$db = new DB;
commonHeader("IRM Help Desk");
?>
Welcome to the IRM Help Desk.  This is where you can request help with a
computing resource problem. The report a problem, just enter the IRM ID 
<? if($cfg_trackingbyname == 1){ PRINT " or name "; } ?> of the computer below.
<? 
if($cfg_groups == 1)
{
  PRINT "Alternately, you can report problems with entire groups of \n";
  PRINT "computers by selecting it below.\n";
}
PRINT "<hr noshade>\n";
PRINT "<form method=get action=helper-add.php3>\n";
PRINT "IRM ID: <input type=text name=ID size=10>&nbsp;&nbsp;\n";
PRINT "<input type=hidden name=is_group value=\"no\">\n";
PRINT "<input type=submit value=\"Continue with IRM ID\">\n";
PRINT "</form>\n";
PRINT "<br>\n";
if($cfg_usenamesearch == 1)
{
  PRINT "Or, you can enter the name of the computer:<br>";
  PRINT "<form method=get action=helper-search.php3>\n";
  PRINT "Name: <input type=text name=name size=15> ";
  PRINT "<input type=submit value=\"Continue with Name\">\n</form>";
  PRINT "<br>\n";
}
if($cfg_groups == 1)
{
  PRINT "Or, you can select a group of computers:<br>";
  PRINT "<form method=get action=helper-add.php3>\n";
  Dropdown("groups", "groupname");
  PRINT "<input type=hidden name=is_group value=\"yes\">\n";
  PRINT "<input type=submit value=\"Continue with group selection\">";
  PRINT "</form>";
}
commonFooter();
?>