include $assn; return; } // View $OUTPUT->header(); $OUTPUT->bodyStart(); // Settings button and dialog echo '<span style="position: fixed; right: 10px; top: 5px;">'; if ($USER->instructor) { echo '<a href="grades.php" target="_blank"><button class="btn btn-info">Grade detail</button></a> ' . "\n"; } SettingsForm::button(); $OUTPUT->exitButton(); echo '</span>'; SettingsForm::start(); SettingsForm::select("exercise", __('Please select an assignment'), $assignments); SettingsForm::dueDate(); SettingsForm::done(); SettingsForm::end(); $OUTPUT->flashMessages(); $OUTPUT->welcomeUserCourse(); if ($assn && isset($assignments[$assn])) { include $assn; } else { if ($USER->instructor) { echo "<p>Please use settings to select an assignment for this tool.</p>\n"; } else { echo "<p>This tool needs to be configured - please see your instructor.</p>\n"; } } $OUTPUT->footer();
</script> <style> pre { white-space: -moz-pre-wrap; /* Mozilla, supported since 1999 */ white-space: -pre-wrap; /* Opera 4 - 6 */ white-space: -o-pre-wrap; /* Opera 7 */ white-space: pre-wrap; /* CSS3 */ word-wrap: break-word; /* IE 5.5+ */ } </style> <?php $OUTPUT->bodyStart(); if ( $USER->instructor ) { SettingsForm::start(); SettingsForm::select('exercise', __('No Exercise - Python Playground'), array_keys($EXERCISES)); SettingsForm::dueDate(); SettingsForm::done(); SettingsForm::end(); } // end isInstructor() ?> <div class="modal fade" id="info"> <div class="modal-dialog"> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button> <h4 class="modal-title"> <?php if ( isset($LINK->title) ) {