| | |
| | | var $id;
|
| | | var $idx_key;
|
| | | var $DataRowColor;
|
| | | var $SQLExtWhere = '';
|
| | |
|
| | | function onLoad() {
|
| | | global $app, $conf, $list_def_file;
|
| | |
| | |
|
| | | // Load list definition
|
| | | $app->listform->loadListDef($list_def_file);
|
| | | |
| | | if(!is_file('templates/'.$app->listform->listDef["name"].'_list.htm')) {
|
| | | $app->uses('listform_tpl_generator');
|
| | | $app->listform_tpl_generator->buildHTML($app->listform->listDef);
|
| | | }
|
| | |
|
| | | $app->tpl->newTemplate("form.tpl.htm");
|
| | | $app->tpl->setInclude('content_tpl','templates/'.$app->listform->listDef["name"].'_list.htm');
|
| | |
| | | $sql_where = $app->tform->getAuthSQL('r')." and";
|
| | | }
|
| | | }
|
| | | |
| | | if($this->SQLExtWhere != '') {
|
| | | $sql_where .= " ".$this->SQLExtWhere." and";
|
| | | }
|
| | |
|
| | | $sql_where = $app->listform->getSearchSQL($sql_where);
|
| | | $app->tpl->setVar($app->listform->searchValues);
|