echo "<td>"; print_textfield('editkeyword', '', '', 25); echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td colspan='2' align='right'>"; print_button('Edit Keyword', $options); echo "</td>"; echo "</tr>"; echo "</table>"; print_form_end(); print_box_end(); } } } else { displayMainContextPage($course); } } } } print_footer($COURSE); ?> <?php function displayMainContextPage($course) { global $CFG; $url = "{$CFG->wwwroot}/question/context.php"; // Set RecordSets $group_records = get_records('context_key_groups', 'courseid', $course->id); $key_records = get_records('quiz_context_keys', 'courseid', $course->id, "key_id ASC");
update_record('instructions', $record); } echo "The following instructions for 'type " . $form->add . "' were updated:<br/><br/>"; echo $form->instr . "<br/><br/>"; } else { echo "The following instructions for 'type " . $form->add . "' could not be updated.<br/><br/>"; } print_single_button($url, $options); print_box_end(); } else { displayMainContextPage($course, $selects); } } } } else { displayMainContextPage($course, $selects); } } } if ($usehtmleditor) { use_html_editor(); } print_footer($COURSE); ?> <?php function displayMainContextPage($course, $selects) { print_heading($strspecialcategories); // Print the Main Instructions Page echo "<table border='0' cellpadding='5' cellspacing='5' class='boxwidthwide boxaligncenter generalbox questioncategories contextlevel'>";