Permalink
Browse files

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

  • Loading branch information...
martin
martin committed Aug 26, 2002
1 parent 9268aa1 commit 57fa46e2a2bf8cf9686ed97260f454adcdf2c04a
Showing with 7 additions and 2 deletions.
  1. +1 −1 course/lib.php
  2. +6 −1 lib/ipatlas/plot.php
View
@@ -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>";
View
@@ -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 @@
';
if(isset($address)) {
-print "$values[desc]";
+print "$username, $values[desc]";
}
$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

0 comments on commit 57fa46e

Please sign in to comment.