1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10:
11: class Autogenerate extends Horde_Form
12: {
13: 14:
15: function Autogenerate(&$vars)
16: {
17: require BEATNIK_BASE . '/config/autogenerate.php';
18:
19: parent::Horde_Form($vars, _("Choose a template for autogenerating the records:"), 'autogenerate');
20: $this->setButtons(array(_("Autogenerate"), _("Cancel")));
21:
22:
23: $template_keys = array_keys($templates);
24: foreach ($template_keys as $template) {
25: $t[$template] = $templates[$template]['description'];
26: }
27: $this->addVariable(_("Template"), 'template', 'enum', true, false, null, array($t, true));
28:
29: return true;
30: }
31: }
32: