function resource_user_complete($course, $user, $mod, $resource) {
- global $CFG, $THEME;
+ global $CFG;
if ($logs = get_records_select("log", "userid='$user->id' AND module='resource'
AND action='view' AND info='$resource->id'", "time ASC")) {
function display() {
- global $CFG, $THEME;
+ global $CFG;
/// Set up generic stuff first, including checking for access
parent::display();
exit;
}
- print_simple_box_start("center", "", "$THEME->cellcontent", '0' );
+ print_simple_box_start("center", "", "", '0' );
$strftime = get_string('strftimedatetime');
$strname = get_string("name");
* Output depends on type of file resource.
*
* @param CFG global object
-* @param THEME global object
*/
function display() {
- global $CFG, $THEME;
+ global $CFG;
/// Set up generic stuff first, including checking for access
parent::display();
function display() {
- global $CFG, $THEME;
+ global $CFG;
/// Set up generic stuff first, including checking for access
parent::display();
add_to_log($course->id, "resource", "view", "view.php?id={$cm->id}", $resource->id, $cm->id);
print_header();
print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id),
- "center", "", "$THEME->cellcontent", "20");
+ "center", "", "", "20");
print_footer($course);
} else { /// Make a page and a pop-up window
"", "", true, update_module_button($cm->id, $course->id, $this->strresource),
navmenu($course, $cm));
- print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), "center", "", "$THEME->cellcontent", "20");
+ print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), "center", "", "", "20");
$strlastmodified = get_string("lastmodified");
echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</font></p></center>";
}
function display() {
- global $CFG, $THEME;
+ global $CFG;
/// Set up generic stuff first, including checking for access
parent::display();
$resource->id, $cm->id);
print_header();
print_simple_box(format_text($resource->alltext, $resource->options, $formatoptions, $course->id),
- "center", "", "$THEME->cellcontent", "20");
+ "center", "", "", "20");
print_footer($course);
} else { /// Make a page and a pop-up window
navmenu($course, $cm));
print_simple_box(format_text($resource->alltext, $resource->options, $formatoptions, $course->id),
- "center", "", "$THEME->cellcontent", "20");
+ "center", "", "", "20");
$strlastmodified = get_string("lastmodified");
echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</font></p></center>";