1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
13:
14: class Whups_Form_Admin_DeleteReply extends Horde_Form
15: {
16: public function __construct(&$vars)
17: {
18: parent::__construct($vars, _("Delete Form Reply Confirmation"));
19:
20: $reply = $vars->get('reply');
21: $info = $GLOBALS['whups_driver']->getReply($reply);
22:
23: $this->addHidden('', 'type', 'int', true, true);
24: $this->addHidden('', 'reply', 'int', true, true);
25: $pname = &$this->addVariable(
26: _("Form Reply Name"), 'reply_name', 'text', false, true);
27: $pname->setDefault($info['reply_name']);
28: $ptext = &$this->addVariable(
29: _("Form Reply Text"), 'reply_text', 'text', false, true);
30: $ptext->setDefault($info['reply_text']);
31: $this->addVariable(
32: _("Really delete this form reply?"), 'yesno', 'enum', true, false,
33: null, array(array(0 => _("No"), 1 => _("Yes"))));
34: }
35:
36: }
37: