/htdocs/customscripts/systime/custom_course_form.php
PHP | 12 lines | 9 code | 0 blank | 3 comment | 0 complexity | a82152c8b7364a49af4fc9af3dbfb2d3 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, GPL-3.0, BSD-3-Clause, LGPL-2.0
- <?php
- # print('included: ' . __FILE__);
- $mform->addElement('text', 'systime_coursemasterbackup', 'systime_coursemasterbackup');
- # $mform->disabledIf('systime_coursemasterbackup', 'systime_coursetype', 'neq', 'anakonda');
- $mform->addElement('text', 'systime_courseid', 'systime_courseid');
- $mform->setHelpButton('option', array('systime_courseid', 'systime_courseid'), true);
- $mform->setType('systime_courseid',PARAM_RAW);
- # $mform->addRule('systime_courseid', 'Fejl', 'numeric', 'extraruledata', 'server', false, false);
- $mform->addElement('select', 'systime_coursetype', 'systime_coursetype', array('masterkopi'=>'masterkopi', 'master'=>'master', 'selvtest'=>'selvtest', 'andet'=>'andet'));
- $mform->setHelpButton('option', array('systime_coursetype', 'systime_coursetype'), true);
- $mform->setType('systime_coursetype',PARAM_RAW);
- ?>