1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13:
14:
15: class Whups_Form_SendReminder extends Horde_Form
16: {
17: public function __construct(&$vars)
18: {
19: global $whups_driver;
20:
21: parent::__construct($vars, _("Send Reminders"));
22:
23: $queues = Whups::permissionsFilter(
24: $whups_driver->getQueues(), 'queue', Horde_Perms::EDIT);
25: if (count($queues)) {
26: $modtype = 'enum';
27: $type_params = array($queues);
28: } else {
29: $modtype = 'invalid';
30: $type_params = array(_("There are no queues available."));
31: }
32:
33: $this->addVariable(
34: _("Send only for this list of ticket ids"), 'id', 'intlist', false);
35: $this->addVariable(
36: _("For tickets from these queues"),
37: 'queue',
38: $modtype,
39: false,
40: false,
41: null,
42: $type_params);
43:
44: $cats = $whups_driver->getCategories();
45: unset($cats['resolved']);
46: $categories = &$this->addVariable(
47: _("For tickets which are"), 'category', 'multienum', false, false, null, array($cats, 3));
48: $categories->setDefault(array('assigned'));
49:
50: $this->addVariable(
51: _("Unassigned tickets"),
52: 'unassigned',
53: 'email',
54: false,
55: false,
56: _("If you select any tickets that do not have an owner, who should we send email to?"));
57: }
58:
59: }
60: