Nicer display of earth plot now contains user's name as well

This commit is contained in:
martin
2002-08-26 09:25:24 +00:00
parent 9268aa19ec
commit 57fa46e2a2
2 changed files with 7 additions and 2 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ function print_log($course, $user=0, $date=0, $order="ORDER BY l.time ASC") {
echo "<TD NOWRAP ALIGN=right><FONT SIZE=2>".userdate($log->time, "%A")."</TD>";
echo "<TD NOWRAP><FONT SIZE=2>".userdate($log->time, "%e %B %Y, %I:%M %p")."</TD>";
echo "<TD NOWRAP><FONT SIZE=2>";
link_to_popup_window("$CFG->wwwroot/lib/ipatlas/plot.php?address=$log->ip", "ipatlas","$log->ip", 400, 600);
link_to_popup_window("$CFG->wwwroot/lib/ipatlas/plot.php?address=$log->ip&user=$log->user", "ipatlas","$log->ip", 400, 600);
echo "</TD>";
echo "<TD NOWRAP><FONT SIZE=2><A HREF=\"../user/view.php?id=$log->user&course=$log->course\"><B>$log->firstname $log->lastname</B></TD>";
echo "<TD NOWRAP><FONT SIZE=2>";
+6 -1
View File
@@ -3,6 +3,11 @@
include("plotconf.inc");
include("plot.inc");
if (isset($user)) {
$user = get_record("user", "id", $user);
$username = "<B>$user->firstname $user->lastname</B>";
}
if($warnings == "1") {
error_reporting(E_ALL);
} else {
@@ -105,7 +110,7 @@ print '
';
if(isset($address)) {
print "$values[desc]";
print "$username, $values[desc]";
}
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];