merge the items dropdown, radio and check to multiplechoice item
[moodle.git] / mod / feedback / item / captcha / captcha_form.php
CommitLineData
6ee09cfe 1<?php
2
3require_once $CFG->libdir.'/formslib.php';
4
5class feedback_captcha_form extends moodleform {
6 var $type = "captcha";
7 var $requiredcheck;
8 var $itemname;
9 var $select;
10
11 function definition() {
12 $mform =& $this->_form;
13
14 $mform->addElement('header', 'general', get_string($this->type, 'feedback'));
15 $this->requiredcheck = $mform->addElement('checkbox', 'required', get_string('required', 'feedback'));
16
17 $this->itemname = $mform->addElement('text', 'itemname', get_string('item_name', 'feedback'), array('size="40"','maxlength="255"'));
18
19 $this->select = $mform->addElement('select',
20 'count_of_nums',
21 get_string('count_of_nums', 'feedback').'&nbsp;',
22 array_slice(range(0,10),3,10,true));
23
24 }
25}
26?>