<?php
/*
PAC Pulse (PACS Perfomance optimization tool)
Copyright (C) 2001 Medical College of Wisconsin
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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
include ("pagefunctions.php");
gentop("Summary","$PHP_SELF?Q=0");
switch ($T)
{
case "W":
$Outstr="last 7 days";
break;
case "M":
$Outstr="last 30 days";
break;
case "Y":
$Outstr="last 365 days";
break;
default:
$Outstr="Today";
}
$db = mysql_select_db("pulsetest", $connection) or dir ("Couldn't connect to Pacspulse");
$sql_command="select max(timestamp) from test";
$sql_result=mysql_query($sql_command,$connection) or die (mysql_error());
while ($row=mysql_fetch_array($sql_result)){
$lastupdate=$row[0];
}
echo "<table border=1 cellspacing=1 cellpadding=1>";
echo "<tr><td colspan=2 align=middle><b> Dashboard for $Outstr (last update $lastupdate)</b></td></tr>";
echo "<tr><TD align=middle><img src='chartsumgen.php?Typ=1&D=$T'></td>";
echo "<TD align=middle><img src='chartsumgen.php?Typ=2&D=$T'></td></tr>";
echo "<tr><TD align=middle><img src='chartsumgen.php?Typ=3&D=$T'></td>";
echo "<TD align=middle><img src='chartsumgen.php?Typ=4&D=$T'></td></tr>";
echo "<tr><TD align=middle><img src='chartsumgen.php?Typ=5&D=$T'></td>";
echo "<TD align=middle><img src='chartsumgen.php?Typ=6&D=$T'></td></tr>";
echo "<tr><TD align=middle><img src='chartsumgen.php?Typ=7&D=$T'></td>";
echo "<TD align=middle><img src='chartsumgen.php?Typ=8&D=$T'></td></tr>";
echo "<tr><TD align=middle><img src='chartsumgen.php?Typ=9&D=$T'></td>";
echo "<TD align=middle><img src='chartsumgen.php?Typ=10&D=$T'></td></tr>";
echo "</table>";
genbottom();
?>