/** * @desc Prints the questions buttons. * @param $question object The question object. * @param $state object The state object. * @param $cmoptions object The quizzes or other mods options * @param $options object The questions options. */ function print_question_submit_buttons(&$question, &$state, $cmoptions, $options) { $courseid = $cmoptions->course; $seed = $state->responses['seed']; $attempt = $state->attempt; echo "<table><tr><td>"; parent::print_question_submit_buttons($question, $state, $cmoptions, $options); echo "</td><td>"; if (!$options->readonly && $courseid != 1) { echo link_to_popup_window('/question/type/webwork/emailinstructor.php?qid=' . $question->id . '&aid=' . $attempt, 'emailinstructor', "<input type=\"button\" value=\"Email Instructor\" class=\"submit btn\">", 600, 700, "Email Instructor"); } echo "</td></tr></table>"; }