1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12:
13:
14: class Whups_Form_Admin_DeleteVersion extends Horde_Form
15: {
16: public function __construct(&$vars)
17: {
18: global $whups_driver;
19:
20: parent::__construct($vars, _("Delete Version Confirmation"));
21:
22: $version = $vars->get('version');
23: $info = $whups_driver->getVersion($version);
24:
25: $this->addHidden('', 'queue', 'int', true, true);
26: $this->addHidden('', 'version', 'int', true, true);
27:
28: $vname = &$this->addVariable(_("Version Name"), 'name', 'text', false, true);
29: $vname->setDefault($info['name']);
30:
31: $vdesc = &$this->addVariable(_("Version Description"), 'description', 'text', false, true);
32: $vdesc->setDefault($info['description']);
33:
34: $yesno = array(array(0 => _("No"), 1 => _("Yes")));
35: $this->addVariable(_("Really delete this version? This may cause data problems!"), 'yesno', 'enum', true, false, null, $yesno);
36: }
37:
38: }
39: