mirrored from git://git.moodle.org/moodle.git
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For overview report - MDL-14185 "Switch to using formslib and improve…
… the interface" and MDL-14186 "Switch to using moodle_url and eliminate the use of $SESSION global"
- Loading branch information
jamiesensei
committed
May 5, 2008
1 parent
9df9473
commit beb6d00
Showing
4 changed files
with
106 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?php // $Id$ | ||
require_once "$CFG->libdir/formslib.php"; | ||
class mod_quiz_report_overview_settings extends moodleform { | ||
|
||
function definition() { | ||
global $COURSE; | ||
$mform =& $this->_form; | ||
//------------------------------------------------------------------------------- | ||
$mform->addElement('header', 'general', get_string('preferencespage', 'quiz_overview')); | ||
|
||
$options = array(0 => get_string('attemptsonly','quiz_overview', $COURSE->students)); | ||
if ($COURSE->id != SITEID) { | ||
$options[1] = get_string('noattemptsonly', 'quiz_overview', $COURSE->students); | ||
$options[2] = get_string('allstudents','quiz_overview', $COURSE->students); | ||
$options[3] = get_string('allattempts','quiz_overview'); | ||
} | ||
$mform->addElement('select', 'attemptsmode', get_string('show', 'quiz_overview'), $options); | ||
|
||
//------------------------------------------------------------------------------- | ||
$mform->addElement('header', 'general', get_string('preferencesuser', 'quiz_overview')); | ||
|
||
$mform->addElement('text', 'pagesize', get_string('pagesize', 'quiz')); | ||
$mform->setType('pagesize', PARAM_INT); | ||
|
||
$mform->addElement('selectyesno', 'detailedmarks', get_string('showdetailedmarks', 'quiz')); | ||
|
||
$this->add_action_buttons(false, get_string('preferencessave', 'quiz_overview')); | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters