1: <?php
2: /**
3: * This class is the search form that will be responsible for finding
4: * everything.
5: *
6: * Copyright 2004-2007 Andrew Coleman <mercury@appisolutions.net>
7: * Copyright 2004-2011 Horde LLC (http://www.horde.org/)
8: *
9: * See the enclosed file COPYING for license information (GPL). If you
10: * did not receive this file, see http://www.horde.org/licenses/gpl.
11: *
12: * @author Andrew Coleman <mercury@appisolutions.net>
13: * @package Sesha
14: */
15: class Sesha_Forms_Search extends Horde_Form {
16:
17: /**
18: * Basic constructor for the SearchForm.
19: *
20: * @param Horde_Variables $vars The default variables to use.
21: */
22: function __construct($vars)
23: {
24: parent::__construct($vars, _("Search The Inventory"));
25:
26: $this->appendButtons(_("Search"));
27: $this->addHidden('', 'actionId', 'text', true);
28:
29: $this->addVariable(_("Search these properties"), 'location', 'multienum', true,
30: false, null, array(array(
31: SESHA_SEARCH_ID => _("Stock ID"),
32: SESHA_SEARCH_NAME => _("Item Name"),
33: SESHA_SEARCH_NOTE => _("Item Note"),
34: SESHA_SEARCH_PROPERTY => _("Property Value"))));
35: $this->addVariable(_("For this value"), 'criteria', 'text', true);
36: }
37:
38: }
39: