1: <?php
2: 3: 4: 5: 6:
7:
8:
9: require_once 'Horde/Form.php';
10:
11: 12: 13:
14: class SearchForm extends Horde_Form {
15:
16: function SearchForm(&$vars)
17: {
18: parent::Horde_Form($vars, _("Search Bookmarks"), 'Search_Bookmarks');
19:
20: $this->setButtons(_("Search"));
21: $this->addVariable(_("Title"), 'title', 'text', false);
22: $this->addVariable(_("Description"), 'description', 'text', false);
23: $this->addVariable(_("URL"), 'url', 'text', false);
24: $this->addVariable(_("Combine"), 'combine', 'enum', false, false, null, array(array('OR' => _("OR"), 'AND' => _("AND"))));
25: $this->addVariable(_("Match"), 'op', 'enum', false, false, null, array(array('LIKE' => _("Any Part of the field"), '=' => _("Whole Field"))));
26: }
27:
28: }
29: