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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
|
<?php
################################################################################
# IRM - The Information Resource Manager
# Copyright (C) 2003 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.
#
################################################################################
require_once dirname(__FILE__) . '/include/mdbcheck.php';
require_once dirname(__FILE__) . '/include/installer.php';
require_once dirname(__FILE__) . '/include/irm.inc';
require_once dirname(__FILE__) . '/include/i18n.php';
require_once dirname(__FILE__) . '/lib/Config.php';
require_once dirname(__FILE__) . '/lib/IRMDB.php';
require_once dirname(__FILE__) . '/lib/Databases.php';
$viewRequest = array ( 'Section' => 'menu',
'Header' => _("View Request"),
'Info' => _('If you have put in a help request and you know the ID number you can
view the progress of the request by entering the ID in the box below'),
'Submit' => _('View Request'),
'Fields' => formAction()
. irmConnect()
. '<input type="hidden" name="redirect" value="users/tracking-index.php?action=detail&ID=" />' . "\n"
. '<input type="text" name="ID" value="" />' . "\n"
);
$faq = array ( 'Section' => 'main',
'Header' => _('Frequently Asked Questions'),
'Info' => _('Helpdesk personel get many questions - many of which are
repeated many times. A FAQ, which is a list of frequently asked questions -
and their answers, intends to provide a quick and easy way to help you get
an answer to a questions. If your query isn\'t in this list, feel free to
post a request for help.'),
'Submit' =>_('Read FAQ') ,
'Fields' => formAction()
. irmConnect()
. '<input type="hidden" name="redirect" value="users/faq-index.php" />' . "\n"
);
$request = array ( 'Section' => 'main' ,
'Header' => _('Request Help'),
'Info' =>_('You can request help without logging in to IRM. To do this you
need to select the appropriate department, click the <b>Help</b> button
below and then follow the instructions. Your request will be filed under the
user name of <b>guest</b> so you will need to ensure that the contact
information is correct if you wish to recieve updates and keep in touch with
the helpdesk.') ,
'Submit' => _('Request Help'),
'Fields' => formAction()
. irmConnect()
);
$login = array ( 'Section' => 'menu',
'Header' => _('IRM Login'),
'Submit' => _('Login'),
'Fields' => loginCheck()
. formAction('name="login"')
. "<br />"
. _('Username') . '<br /><input type="text" name="name" value="" /><br />' . "\n"
. _('Password') . '<br /><input type="password" name="password" value="" /><br />' . "\n"
. redirectCheck()
);
$status = array ( 'Section' => 'main',
'Header' => _('Current Status'),
'Info' => currentStatus(),
'Submit' => '',
);
$introduction = array ( 'Section' => 'nav',
'Header' => _('IRM - The Information Resource Manager'),
'Info' =>_('IRM is a multi-user computer, software, peripheral and problem tracking system.
You can use IRM, depending on your user-level, to view, edit, and add
computer systems to a database with an extensive list of fields. You can
also view and post jobs if you have a problem with a computing resource.') ,
'Submit' => '',
'Fields' => ''
);
$Content = array ( $login,
$status,
$viewRequest,
$introduction,
$faq,
$request
);
$allMenuContent = "";
$allMainContent = "";
$allNavContent = "";
$Page = new IrmFactory();
foreach($Content as $content){
$Page->assign('header', $content['Header']);
$Page->assign('body', $content['Info'] . formSubmit($content['Fields'], $content['Submit']));
if($content['Section'] == "menu"){
$allMenuContent .= $Page->fetch('section.html.php');
} elseif($content['Section'] == "main"){
$allMainContent .= $Page->fetch('section.html.php');
} elseif($content['Section'] == "nav"){
$allNavContent .= $Page->fetch('section.html.php');
}
}
$Page->assign('title', _('IRM - The Information Resource Manager'));
$Page->assign('stylesheet', 'styles/default.css');
$Page->assign('content_nav', $allNavContent);
$Page->assign('content_menu', $allMenuContent);
$Page->assign('content_main', $allMainContent);
$Page->display('layout.html.php');
?>
|