Skip to content

Commit

Permalink
Nicer display of earth plot now contains user's name as well
Browse files Browse the repository at this point in the history
  • Loading branch information
martin committed Aug 26, 2002
1 parent 9268aa1 commit 57fa46e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion course/lib.php
Expand Up @@ -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 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>".userdate($log->time, "%e %B %Y, %I:%M %p")."</TD>";
echo "<TD NOWRAP><FONT SIZE=2>"; 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>";
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><A HREF=\"../user/view.php?id=$log->user&course=$log->course\"><B>$log->firstname $log->lastname</B></TD>";
echo "<TD NOWRAP><FONT SIZE=2>"; echo "<TD NOWRAP><FONT SIZE=2>";
Expand Down
7 changes: 6 additions & 1 deletion lib/ipatlas/plot.php
Expand Up @@ -3,6 +3,11 @@
include("plotconf.inc"); include("plotconf.inc");
include("plot.inc"); include("plot.inc");


if (isset($user)) {
$user = get_record("user", "id", $user);
$username = "<B>$user->firstname $user->lastname</B>";
}

if($warnings == "1") { if($warnings == "1") {
error_reporting(E_ALL); error_reporting(E_ALL);
} else { } else {
Expand Down Expand Up @@ -105,7 +110,7 @@
'; ';


if(isset($address)) { if(isset($address)) {
print "$values[desc]"; print "$username, $values[desc]";
} }


$PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF']; $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];
Expand Down

0 comments on commit 57fa46e

Please sign in to comment.