32 lines
692 B
PHP
32 lines
692 B
PHP
<?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
|
|
}
|
|
}
|
|
|
|
?>
|
|
|