\n";
echo "\n";
echo "\n";
echo "
\n";
echo "Search Results For: " . $which . "
\n";
echo "
\n";
echo "";
echo "| Total: $rowcount | "
. "<< Back |
";
echo "| User | Activity | From Host | Date |
";
$c = 0;
for($i = 0 ; $i < $rowcount ; $i++) {
if($c == 0)
$color = $color1;
else
$color = $color2;
$user = mysql_result($result, $i, $usernameField) . "    ";
$activity = mysql_result($result, $i, $eventField);
$fromHost = mysql_result($result, $i, $addrField) . "    ";
$dateOccured = mysql_result($result, $i, $dateField);
$comments = mysql_result($result, $i, $commentsField);
if(mysql_result($result, $i, $eventField) == 'INVALID')
$color = 'ff2727';
$popupScript = "newwin=window.open(\"\", \"comments\", \"scrollbars=yes, resizable=yes, width=600, height=400\"); newwin.document.open(); newwin.document.write(\"Log Comments/Details" . $comments . "\"); newwin.document.close(); return false;";
echo "| " . $user . " | " . $activity ." | " . $fromHost . " | " . $dateOccured . " |
\n";
if($c == 1)
$c = 0;
else
$c = 1;
}
echo "
";
echo "";
echo "";
echo "