summaryrefslogtreecommitdiff
path: root/sqlbox/index.php
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-23 10:03:32 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2012-11-23 10:03:32 +0100
commit93934b0ef0cac682681764050f485e8231838b30 (patch)
tree1b15c018e9460736d2eeaae8193a57583528f628 /sqlbox/index.php
parentcb68bde9de9060e369103a3e5a8d217ed4104b8e (diff)
parent1e7e0ed272a3fa984241314dc01a871d3fa03c35 (diff)
downloadsqltutor-plugin-93934b0ef0cac682681764050f485e8231838b30.tar.gz
sqltutor-plugin-93934b0ef0cac682681764050f485e8231838b30.tar.bz2
sqltutor-plugin-93934b0ef0cac682681764050f485e8231838b30.zip
Merge branch 'master' of ssh://git.bnfr.net/git/sqltutor-plugin
Diffstat (limited to 'sqlbox/index.php')
-rw-r--r--sqlbox/index.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/sqlbox/index.php b/sqlbox/index.php
index b4c9456..eceb6b7 100644
--- a/sqlbox/index.php
+++ b/sqlbox/index.php
@@ -45,12 +45,14 @@ $PAGE->set_title(format_string($course->fullname));
$PAGE->set_heading(format_string($course->fullname));
$PAGE->set_context($coursecontext);
+
echo $OUTPUT->header();
if (! $sqlboxs = get_all_instances_in_course('sqlbox', $course)) {
notice(get_string('nosqlboxs', 'sqlbox'), new moodle_url('/course/view.php', array('id' => $course->id)));
}
+$table = new html_table;
if ($course->format == 'weeks') {
$table->head = array(get_string('week'), get_string('name'));
$table->align = array('center', 'left');
@@ -65,12 +67,12 @@ if ($course->format == 'weeks') {
foreach ($sqlboxs as $sqlbox) {
if (!$sqlbox->visible) {
$link = html_writer::link(
- new moodle_url('/mod/sqlbox.php', array('id' => $sqlbox->coursemodule)),
+ new moodle_url('/mod/sqlbox/view.php', array('id' => $sqlbox->coursemodule)),
format_string($sqlbox->name, true),
array('class' => 'dimmed'));
} else {
$link = html_writer::link(
- new moodle_url('/mod/sqlbox.php', array('id' => $sqlbox->coursemodule)),
+ new moodle_url('/mod/sqlbox/view.php', array('id' => $sqlbox->coursemodule)),
format_string($sqlbox->name, true));
}