summaryrefslogtreecommitdiff
path: root/sqlbox/view.php
diff options
context:
space:
mode:
Diffstat (limited to 'sqlbox/view.php')
-rw-r--r--sqlbox/view.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/sqlbox/view.php b/sqlbox/view.php
index 601459e..e522a75 100644
--- a/sqlbox/view.php
+++ b/sqlbox/view.php
@@ -52,8 +52,6 @@ $context = get_context_instance(CONTEXT_MODULE, $cm->id);
add_to_log($course->id, 'sqlbox', 'view', "view.php?id={$cm->id}", $sqlbox->name, $cm->id);
-/// Print the page header
-
$PAGE->set_url('/mod/sqlbox/view.php', array('id' => $cm->id));
$PAGE->set_title(format_string($sqlbox->name));
$PAGE->set_heading(format_string($course->fullname));
@@ -64,15 +62,12 @@ $PAGE->set_context($context);
$PAGE->set_focuscontrol('id_sqlbox_query');
//$PAGE->add_body_class('sqlbox-'.$somevar);
-// Output starts here
echo $OUTPUT->header();
if ($sqlbox->intro) { // Conditions to show the intro can change to look for own settings or whatever
echo $OUTPUT->box(format_module_intro('sqlbox', $sqlbox, $cm->id), 'generalbox mod_introbox', 'sqlboxintro');
}
-// Replace the following lines with you own code
-
$form = new mod_sqlbox_form($PAGE->url->out(false));
$data = $form->get_data();
$current = $DB->get_record('sqlbox_solutions', array('sqlboxid' => $sqlbox->id, 'userid' => $USER->id));
@@ -112,7 +107,4 @@ if (isset($data->sqlbox_query) || $current) {
echo $OUTPUT->heading("Incorrect!");
}
-// Finish the page
echo $OUTPUT->footer();
-
-