include("../include/irm.inc");
AuthCheck("3");
commonHeader("IRM User Info on $ID");
$user = new User($ID);
$fullname = $user->getFullname();
$user->displayLong();
$query = "SELECT tracking_order FROM prefs WHERE (user = '$IRMName')";
$sth = $adb->prepare($query);
if($sth)
{
$res = $sth->execute();
$result = $sth->fetchrow_hash();
$tracking_order = $result["tracking_order"];
$sth->finish();
} else
{
PRINT "Could not prepare query: ".$sth->errstr."
\n";
}
if($tracking_order == "yes")
{
$tracking_order = "ASC";
} else
{
$tracking_order = "DESC";
}
PRINT "
Requests entered by $fullname | \n"; PRINT "
---|
\n"; $notClosed = Tracking::getNotClosedBy("ASC", $ID); $notClosedSize = sizeof($notClosed); PRINT "$fullname has entered $notClosedSize "; PRINT "request(s) that have not yet been completed."; if ($cfg_showjobsonlogin == 1) { Tracking::displayHeader(); for($i=0;$i<$notClosedSize;$i++) { $track = new Tracking($notClosed[$i]); $track->display(); } Tracking::displayFooter(); } $type = $user->getTypeU(); if($type < 5) { PRINT " |
Requests assigned to $fullname |
\n"; # # Show how many jobs you have assigned to you currently :) # $notClosed = Tracking::getNotClosed("yes", "individual", $tracking_order, "$ID"); $notClosedSize = sizeof($notClosed); PRINT "$fullname has $notClosedSize job(s) assigned."; if ($cfg_showjobsonlogin == 1) { Tracking::displayHeader(); for($i=0;$i<$notClosedSize;$i++) { $track = new Tracking($notClosed[$i]); $track->display(); } Tracking::displayFooter(); } } PRINT " |