Cheetah
ChSitesFormSearch.php
Go to the documentation of this file.
1 <?php
2 
9 {
10  function __construct ($oConfig)
11  {
12  $aCustomForm = array(
13 
14  'form_attrs' => array(
15  'name' => 'form_search_events',
16  'action' => $oConfig->getBaseUri() . 'search',
17  'method' => 'post',
18  ),
19 
20  'params' => array (
21  'db' => array(
22  'submit_name' => 'submit_form',
23  ),
24  ),
25 
26  'inputs' => array(
27  'Keyword' => array(
28  'type' => 'text',
29  'name' => 'Keyword',
30  'caption' => _t('_ch_sites_caption_keyword'),
31  'required' => true,
32  'checker' => array (
33  'func' => 'length',
34  'params' => array(3,100),
35  'error' => _t ('_ch_sites_err_keyword'),
36  ),
37  'db' => array (
38  'pass' => 'Xss',
39  ),
40  ),
41  'Submit' => array (
42  'type' => 'submit',
43  'name' => 'submit_form',
44  'value' => _t('_Submit'),
45  ),
46  ),
47  );
48 
49  parent::__construct ($aCustomForm);
50  }
51 }
ChTemplFormView
Definition: ChTemplFormView.php:11
ChSitesFormSearch\__construct
__construct($oConfig)
Definition: ChSitesFormSearch.php:10
php
_t
_t($key, $arg0="", $arg1="", $arg2="")
Definition: languages.inc.php:509
ChSitesFormSearch
Definition: ChSitesFormSearch.php:9