Slight interface tweaks
authormartin <martin>
Wed, 5 Jun 2002 06:24:29 +0000 (06:24 +0000)
committermartin <martin>
Wed, 5 Jun 2002 06:24:29 +0000 (06:24 +0000)
course/lib.php
course/log.php
lib/weblib.php

index 5ac4831..109f76a 100644 (file)
@@ -30,7 +30,7 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today"
     asort($users);
 
     // Get all the possible dates
-    $tt = getdate(time());
+    $tt = usergetdate(time());
     $timemidnight = $today = mktime (0, 0, 0, $tt["mon"], $tt["mday"], $tt["year"]);
     $dates = array("$today" => "Today, ".userdate($today, "j F Y") );
 
@@ -104,7 +104,7 @@ function print_log($course, $user=0, $date=0, $order="ORDER BY l.time ASC") {
         echo "<TR>";
         echo "<TD ALIGN=right><FONT SIZE=2>".userdate($log->time, "l")."</TD>";
         echo "<TD><FONT SIZE=2>".userdate($log->time, "j M Y, h:i A")."</TD>";
-        echo "<TD><FONT SIZE=2><B>$log->firstname $log->lastname</B></TD>";
+        echo "<TD><FONT SIZE=2><A TITLE=\"$log->ip\" HREF=\"../user/view.php?id=$log->user&course=$log->course\"><B>$log->firstname $log->lastname</B></TD>";
         echo "<TD><FONT SIZE=2>";
         link_to_popup_window( make_log_url($log->module,$log->url), "fromloglive","$log->module $log->action", 400, 600);
         echo "</TD>";
index d4ddf59..793daec 100644 (file)
@@ -31,7 +31,7 @@
             $dateinfo = userdate($date, "l, j F Y");
         }
 
-        print_header("$course->shortname: Logs", "$course->shortname : Logs", 
+        print_header("$course->shortname: Logs", "$course->fullname", 
                      "<A HREF=\"view.php?id=$course->id\">$course->shortname</A> ->
                       <A HREF=\"log.php?id=$course->id\">Logs</A> -> Logs for $userinfo, $dateinfo", "");
         
@@ -43,7 +43,7 @@
 
 
     } else {
-        print_header("$course->shortname: Logs", "$course->shortname : Logs", 
+        print_header("$course->shortname: Logs", "$course->fullname", 
                  "<A HREF=\"view.php?id=$course->id\">$course->shortname</A> -> Logs", "");
 
         print_heading("Choose which logs you want to look at");
index 0a695c8..409ad29 100644 (file)
@@ -149,10 +149,10 @@ function link_to_popup_window ($url, $name="popup", $linkname="click here", $hei
 
        echo "\n<SCRIPT language=\"Javascript\">";
     echo "\n<!--";
-       echo "\ndocument.write('<A HREF=javascript:openpopup(\"$url\",\"$name\",\"$height\",\"$width\") >$linkname</A>');";
+       echo "\ndocument.write('<A TITLE=\"Popup\" HREF=javascript:openpopup(\"$url\",\"$name\",\"$height\",\"$width\") >$linkname</A>');";
     echo "\n//-->";
        echo "\n</SCRIPT>";
-       echo "\n<NOSCRIPT>\n<A TARGET=\"$name\" HREF=\"$url\">$linkname</A>\n</NOSCRIPT>\n";
+       echo "\n<NOSCRIPT>\n<A TARGET=\"$name\" TITLE=\"Popup\" HREF=\"$url\">$linkname</A>\n</NOSCRIPT>\n";
 
 }