|
@ -62,12 +62,13 @@ class mod_attendance_export_form extends moodleform { |
|
|
|
|
|
|
|
|
$ident = array(); |
|
|
$ident = array(); |
|
|
$ident[] =& $mform->createElement('checkbox', 'id', '', get_string('studentid', 'attendance')); |
|
|
$ident[] =& $mform->createElement('checkbox', 'id', '', get_string('studentid', 'attendance')); |
|
|
|
|
|
|
|
|
$ident[] =& $mform->createElement('checkbox', 'uname', '', get_string('username')); |
|
|
$ident[] =& $mform->createElement('checkbox', 'uname', '', get_string('username')); |
|
|
|
|
|
$ident[] =& $mform->createElement('checkbox', 'idnumber', '', get_string('idnumber')); |
|
|
$mform->addGroup($ident, 'ident', get_string('identifyby', 'attendance'), array('<br />'), true); |
|
|
$mform->addGroup($ident, 'ident', get_string('identifyby', 'attendance'), array('<br />'), true); |
|
|
$mform->setDefaults(array('ident[id]' => true, 'ident[uname]' => true)); |
|
|
$mform->setDefaults(array('ident[id]' => true, 'ident[uname]' => true, 'ident[idnumber]' => false)); |
|
|
$mform->setType('id', PARAM_INT); |
|
|
$mform->setType('id', PARAM_INT); |
|
|
$mform->setType('uname', PARAM_INT); |
|
|
$mform->setType('uname', PARAM_INT); |
|
|
|
|
|
$mform->setType('idnumber', PARAM_NOTAGS); |
|
|
|
|
|
|
|
|
$mform->addElement('checkbox', 'includeallsessions', get_string('includeall', 'attendance'), get_string('yes')); |
|
|
$mform->addElement('checkbox', 'includeallsessions', get_string('includeall', 'attendance'), get_string('yes')); |
|
|
$mform->setDefault('includeallsessions', true); |
|
|
$mform->setDefault('includeallsessions', true); |
|
|