Пример #1
0
 function do_guiBuilder()
 {
     $this->oPage->setBreadcrumbDetails(_kt("Advanced Search"));
     $this->oPage->title = _kt("Advanced Search");
     $result = array();
     // TODO: need to escape the parameters
     $result['fieldsets'] = SearchHelper::getFieldsets();
     $result['fieldset_str'] = SearchHelper::getJSfieldsetStruct($result['fieldsets']);
     $result['workflows'] = SearchHelper::getWorkflows();
     $result['workflow_str'] = SearchHelper::getJSworkflowStruct($result['workflows']);
     $result['fields'] = SearchHelper::getSearchFields();
     $result['fields_str'] = SearchHelper::getJSfieldsStruct($result['fields']);
     $result['users_str'] = SearchHelper::getJSusersStruct();
     $result['mimetypes_str'] = SearchHelper::getJSmimeTypesStruct();
     $result['documenttypes_str'] = SearchHelper::getJSdocumentTypesStruct();
     $oTemplating =& KTTemplating::getSingleton();
     $oTemplate = $oTemplating->loadTemplate("ktcore/search2/adv_query_builder");
     $aTemplateData = array("context" => $this, 'metainfo' => $result);
     return $oTemplate->render($aTemplateData);
 }