Permalink
Browse files

Slight interface tweaks

  • Loading branch information...
1 parent 253ae7d commit f3ecd2c8da243eeec9a06ad98cee4612c2781512 martin committed Jun 5, 2002
Showing with 6 additions and 6 deletions.
  1. +2 −2 course/lib.php
  2. +2 −2 course/log.php
  3. +2 −2 lib/weblib.php
View
@@ -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>";
View
@@ -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");
View
@@ -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";
}

0 comments on commit f3ecd2c

Please sign in to comment.