mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 04:30:15 +01:00
Some cleanups
This commit is contained in:
parent
0cb9ec10ca
commit
6b2f1037b3
@ -36,6 +36,7 @@
|
||||
|
||||
$strlogs = get_string('logs');
|
||||
$stradministration = get_string('administration');
|
||||
$strreports = get_string('reports');
|
||||
|
||||
session_write_close();
|
||||
|
||||
@ -55,31 +56,35 @@
|
||||
|
||||
if ($course->category) {
|
||||
print_header($course->shortname .': '. $strlogs, $course->fullname,
|
||||
"<a href=\"view.php?id=$course->id\">$course->shortname</a> ->
|
||||
<a href=\"log.php?id=$course->id\">$strlogs</a> -> $userinfo, $dateinfo", '');
|
||||
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->
|
||||
<a href=\"$CFG->wwwroot/course/report.php?id=$course->id\">$strreports</a> ->
|
||||
<a href=\"index.php?id=$course->id\">$strlogs</a> -> $userinfo, $dateinfo", '');
|
||||
} else {
|
||||
print_header($course->shortname .': '. $strlogs, $course->fullname,
|
||||
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> ->
|
||||
<a href=\"log.php?id=$course->id\">$strlogs</a> -> $userinfo, $dateinfo", '');
|
||||
"<a href=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</a> ->
|
||||
<a href=\"$CFG->wwwroot/$CFG->admin/report.php\">$strreports</a> ->
|
||||
<a href=\"index.php?id=$course->id\">$strlogs</a> -> $userinfo, $dateinfo", '');
|
||||
}
|
||||
|
||||
print_heading("$course->fullname: $userinfo, $dateinfo (".usertimezone().")");
|
||||
|
||||
print_log_selector_form($course, $user, $date, $modname, $modid, $modaction, $group, $showcourses, $showusers);
|
||||
|
||||
echo '<p align="center">[ <a href="'.$CFG->wwwroot.'/course/stats.php?course='.$course->id.'">'.get_string('seealsostats').'</a> ]</p>';
|
||||
|
||||
print_log($course, $user, $date, 'l.time DESC', $page, $perpage,
|
||||
"log.php?id=$course->id&chooselog=1&user=$user&date=$date&modid=$modid&modaction=$modaction&group=$group",
|
||||
"index.php?id=$course->id&chooselog=1&user=$user&date=$date&modid=$modid&modaction=$modaction&group=$group",
|
||||
$modname, $modid, $modaction, $group);
|
||||
|
||||
} else {
|
||||
if ($course->category) {
|
||||
print_header($course->shortname .': '. $strlogs, $course->fullname,
|
||||
"<a href=\"view.php?id=$course->id\">$course->shortname</a> -> $strlogs", '');
|
||||
"<a href=\"$CFG->wwwroot/course/view.php?id=$course->id\">$course->shortname</a> ->
|
||||
<a href=\"$CFG->wwwroot/course/report.php?id=$course->id\">$strreports</a> ->
|
||||
$strlogs", '');
|
||||
} else {
|
||||
print_header($course->shortname .': '. $strlogs, $course->fullname,
|
||||
"<a href=\"../$CFG->admin/index.php\">$stradministration</a> -> $strlogs", '');
|
||||
"<a href=\"$CFG->wwwroot/$CFG->admin/index.php\">$stradministration</a> ->
|
||||
<a href=\"$CFG->wwwroot/$CFG->admin/report.php\">$strreports</a> ->
|
||||
$strlogs", '');
|
||||
}
|
||||
|
||||
print_heading(get_string('chooselogs') .':');
|
||||
|
@ -142,7 +142,7 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today"
|
||||
}
|
||||
|
||||
echo "<center>\n";
|
||||
echo "<form action=\"log.php\" method=\"get\">\n";
|
||||
echo "<form action=\"index.php\" method=\"get\">\n";
|
||||
echo "<input type=\"hidden\" name=\"chooselog\" value=\"1\" />\n";
|
||||
echo "<input type=\"hidden\" name=\"showusers\" value=\"$showusers\" />\n";
|
||||
echo "<input type=\"hidden\" name=\"showcourses\" value=\"$showcourses\" />\n";
|
||||
@ -154,7 +154,7 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today"
|
||||
$courses[$course->id] = $course->fullname . ((empty($course->category)) ? ' (Site) ' : '');
|
||||
choose_from_menu($courses,"id",$course->id,false);
|
||||
if (isadmin()) {
|
||||
$a->url = "log.php?chooselog=0&group=$selectedgroup&user=$selecteduser"
|
||||
$a->url = "index.php?chooselog=0&group=$selectedgroup&user=$selecteduser"
|
||||
."&id=$course->id&date=$selecteddate&modid=$selectedactivity&showcourses=1&showusers=$showusers";
|
||||
print_string('logtoomanycourses','moodle',$a);
|
||||
}
|
||||
@ -185,7 +185,7 @@ function print_log_selector_form($course, $selecteduser=0, $selecteddate="today"
|
||||
$users[0] = get_string('allparticipants');
|
||||
}
|
||||
choose_from_menu($users,'user',$selecteduser,false);
|
||||
$a->url = "log.php?chooselog=0&group=$selectedgroup&user=$selecteduser"
|
||||
$a->url = "index.php?chooselog=0&group=$selectedgroup&user=$selecteduser"
|
||||
."&id=$course->id&date=$selecteddate&modid=$selectedactivity&showusers=1&showcourses=$showcourses";
|
||||
print_string('logtoomanyusers','moodle',$a);
|
||||
}
|
||||
|
@ -5,7 +5,7 @@
|
||||
}
|
||||
|
||||
$strlogs = get_string('logs');
|
||||
echo "<center><a href=\"{$CFG->wwwroot}/course/report/logs/index.php?id={$course->id}\">";
|
||||
echo "<center><a href=\"{$CFG->wwwroot}/course/report/log/index.php?id={$course->id}\">";
|
||||
echo "$strlogs</a></center>\n";
|
||||
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user