2009-11-01 14:55:15 +00:00
|
|
|
<?php
|
2008-04-23 09:33:54 +00:00
|
|
|
/**
|
|
|
|
* prints the form to confirm delete a completed
|
|
|
|
*
|
|
|
|
* @author Andreas Grabs
|
|
|
|
* @license http://www.gnu.org/copyleft/gpl.html GNU Public License
|
|
|
|
* @package feedback
|
|
|
|
*/
|
|
|
|
|
|
|
|
require_once $CFG->libdir.'/formslib.php';
|
|
|
|
|
|
|
|
class mod_feedback_delete_completed_form extends moodleform {
|
|
|
|
function definition() {
|
|
|
|
$mform =& $this->_form;
|
|
|
|
|
|
|
|
//headline
|
|
|
|
//$mform->addElement('header', 'general', '');
|
2009-11-01 14:55:15 +00:00
|
|
|
|
2008-04-23 09:33:54 +00:00
|
|
|
// hidden elements
|
|
|
|
$mform->addElement('hidden', 'id');
|
2009-09-26 17:07:08 +00:00
|
|
|
$mform->setType('id', PARAM_INT);
|
2008-04-23 09:33:54 +00:00
|
|
|
$mform->addElement('hidden', 'completedid');
|
2009-09-26 17:07:08 +00:00
|
|
|
$mform->setType('completeid', PARAM_INT);
|
2008-04-23 09:33:54 +00:00
|
|
|
$mform->addElement('hidden', 'do_show');
|
2009-09-26 17:07:08 +00:00
|
|
|
$mform->setType('do_show', PARAM_INT);
|
2008-04-23 09:33:54 +00:00
|
|
|
$mform->addElement('hidden', 'confirmdelete');
|
2009-09-26 17:07:08 +00:00
|
|
|
$mform->setType('confirmdelete', PARAM_INT);
|
2008-04-23 09:33:54 +00:00
|
|
|
|
|
|
|
//-------------------------------------------------------------------------------
|
|
|
|
// buttons
|
|
|
|
$this->add_action_buttons(true, get_string('yes'));
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
2009-11-01 14:55:15 +00:00
|
|
|
|