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
|
<?
# IRM - The Information Resource Manager
# Copyright (C) 1999,2000 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: index.php3,v 1.11 2000/04/11 05:37:45 atrus Exp $
#
include("../irm.inc");
$db = new DB;
AuthCheck("post-only");
$query = "SELECT * FROM users WHERE (name = '$IRMName')";
$result = $db->query($query);
$type = $db->result($result, 0, "type");
if ($type == "post-only")
{
header("Location: $UPREFIX/users/helper.php3\n\n");
exit();
}
commonHeader("IRM Command Center");
?>
Welcome to IRM, the Information Resource Manager! This is the new command center which is designed to allow a quick overview of recent changes and happenings in IRM. You can navigate to any of the sub modules of IRM by choosing the appropiate entry on the toolbar above.
<p>
<table border=1 width=100%>
<tr><th>Last 20 Events</th></tr>
<tr><td>
<?
$query = "SELECT * FROM event_log ORDER BY date DESC LIMIT 0,20";
$result = $db->query($query);
show_events($result);
?>
</td></tr>
<tr><th>Tracking</th></tr>
<tr><td>
<?
#
# Show how many jobs you have assigned to you currently :)
#
$query = "SELECT ID FROM tracking WHERE (status = 'new') and
(assign = '$IRMName') ORDER BY date $tracking_order";
$result = $db->query($query);
$i = 0;
$number = $db->numrows($result);
PRINT "You have $number ";
PRINT "<A HREF=\"tracking-index.php3?show=individual\">job(s)</A> ";
PRINT "assigned to you.";
if ($cfg_showjobsonlogin == 1)
{
PRINT "<center><table border=1 width=\"100%\">";
PRINT "<tr bgcolor=#DDDDDD><th>ID</th><th>Status</th><th>Date</th><th
width=5>Pri</th>
<th>Author</th><th>Assigned</th><th>Computer</th><th
colspan=2 width=70%>
Description</th></tr>";
while ($i < $number)
{
$ID = $db->result($result, $i, "ID");
Show_tracking($ID, 0);
$i++;
}
PRINT "</table></center>";
}
?>
</td></tr></table>
<?
commonFooter();
?>
|