Библиотека для cis, online, cms1
This commit is contained in:
commit
3c2e614d87
269 changed files with 39854 additions and 0 deletions
32
core/widgets/search.php
Normal file
32
core/widgets/search.php
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
<?php
|
||||
|
||||
require_once 'core/widgets/dialog.php';
|
||||
|
||||
class SearchDialog extends Dialog
|
||||
{
|
||||
private $fields;
|
||||
|
||||
function setUp()
|
||||
{
|
||||
$this->template = "search";
|
||||
}
|
||||
|
||||
function addFields($fields)
|
||||
{
|
||||
$this->fields = $fields;
|
||||
}
|
||||
|
||||
function postMake()
|
||||
{
|
||||
$form = new TForm (); // Ïîêàçûâåì ôîðìó
|
||||
$form->addFieldList ($this->fields); // Ðàçäåëèòü ôîðìó ïîèñêà è ðåäàêòèðîâàíèÿ
|
||||
$this->view->form = $form;
|
||||
|
||||
$this->view->action = $this->action;
|
||||
$this->view->title = $this->title;
|
||||
$this->view->addScriptRaw($this->getPostCode(), true); // CompositeView
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue