| [ Index ] |
PHP Cross Reference of Moodle 1.9.3 [Build 15-Oct-2008] |
[Summary view] [Print] [Text view]
1 <?php // $Id: uploadpicture_form.php,v 1.1.2.1 2008/02/21 05:23:25 moodler Exp $ 2 require_once $CFG->libdir.'/formslib.php'; 3 4 class admin_uploadpicture_form extends moodleform { 5 function definition (){ 6 global $CFG, $USER; 7 global $userfields; 8 9 $mform =& $this->_form; 10 11 $this->set_upload_manager(new upload_manager('userpicturesfile', false, false, null, false, 0, true, true, false)); 12 13 $mform->addElement('header', 'settingsheader', get_string('upload')); 14 15 $mform->addElement('file', 'userpicturesfile', get_string('file'), 'size="40"'); 16 $mform->addRule('userpicturesfile', null, 'required'); 17 18 $choices = $userfields; 19 $mform->addElement('select', 'userfield', get_string('uploadpicture_userfield', 'admin'), $choices); 20 $mform->setType('userfield', PARAM_INT); 21 22 $choices = array( 0 => get_string('no'), 1 => get_string('yes') ); 23 $mform->addElement('select', 'overwritepicture', get_string('uploadpicture_overwrite', 'admin'), $choices); 24 $mform->setType('overwritepicture', PARAM_INT); 25 26 $this->add_action_buttons(false, get_string('uploadpictures', 'admin')); 27 } 28 } 29 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| Generated: Wed Jan 14 11:33:29 2009 | Cross-referenced by PHPXref 0.7 |