$params['tName'] = $strTableName; $params['includes_js'] = $includes_js; $params['includes_jsreq'] = $includes_jsreq; $params['includes_css'] = $includes_css; $params['locale_info'] = $locale_info; $params['pageType'] = PAGE_SEARCH; $pageObject = new RunnerPage($params); // create reusable searchControl builder instance $searchControllerId = postvalue('searchControllerId') ? postvalue('searchControllerId') : $pageObject->id; // Before Process event if ($eventObj->exists("BeforeProcessSearch")) { $eventObj->BeforeProcessSearch($conn, $pageObject); } // add constants and files for simple view if ($mode == SEARCH_SIMPLE) { $searchControlBuilder = new AdvancedSearchControl($searchControllerId, $strTableName, $pageObject->searchClauseObj, $pageObject); // add button events if exist $pageObject->addButtonHandlers(); $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n"; //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n"; $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>"; // if not simple, this div already exist on page if (!isMobile()) { $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>"; } // search panel radio button assign $searchRadio = $searchControlBuilder->getSearchRadio(); $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]); $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]); $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']); $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
$params['includes_js'] = $includes_js; $params['includes_jsreq'] = $includes_jsreq; $params['includes_css'] = $includes_css; $params['locale_info'] = $locale_info; $params['pageType'] = PAGE_SEARCH; //PAGE_SEARCH,$id,$calendar $pageObject = new RunnerPage($params); // create reusable searchControl builder instance $searchControllerId = postvalue('searchControllerId') ? postvalue('searchControllerId') : $pageObject->id; // Before Process event if ($eventObj->exists("BeforeProcessSearch")) { $eventObj->BeforeProcessSearch($conn); } // add constants and files for simple view if ($mode == SEARCH_SIMPLE) { $searchControlBuilder = new AdvancedSearchControl($searchControllerId, $strTableName, $pageObject->searchClauseObj, $pageObject); // add button events if exist $pageObject->addButtonHandlers(); $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n"; //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n"; $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>"; // if not simple, this div already exist on page $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>"; // search panel radio button assign $searchRadio = $searchControlBuilder->getSearchRadio(); $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]); $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]); $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']); $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']); // search fields data if (GetLookupTable("ID", $strTableName)) {
function DoProcessMessages() { if (GetOperation() != OPERATION_RSS) { //if (isset($this->AdvancedSearchControl) && $this->OpenAdvancedSearchByDefault()) //if (!$this->AdvancedSearchControl->HasCondition()) // GetApplication()->SetOperation(OPERATION_ADVANCED_SEARCH); $this->grid->SetState(GetOperation()); $advancedSearchApplied = false; if (isset($this->AdvancedSearchControl)) { $advancedSearchApplied = $this->AdvancedSearchControl->ProcessMessages(); } $this->grid->ProcessMessages(); if (isset($this->pageNavigator)) { $this->pageNavigator->ProcessMessages(); } if ($advancedSearchApplied) { $link = $this->CreateLinkBuilder(); header('Location: ' . $link->GetLink()); exit; } } }
$params['includes_js'] = $includes_js; $params['includes_jsreq'] = $includes_jsreq; $params['includes_css'] = $includes_css; $params['locale_info'] = $locale_info; $params['pageType'] = PAGE_SEARCH; //PAGE_SEARCH,$id,$calendar $pageObject = new RunnerPage($params); // create reusable searchControl builder instance $searchControllerId = postvalue('searchControllerId') ? postvalue('searchControllerId') : $pageObject->id; // Before Process event if ($eventObj->exists("BeforeProcessSearch")) { $eventObj->BeforeProcessSearch($conn); } // add constants and files for simple view if ($mode == SEARCH_SIMPLE) { $searchControlBuilder = new AdvancedSearchControl($searchControllerId, $strTableName, $pageObject->searchClauseObj, $pageObject); // add button events if exist $pageObject->addButtonHandlers(); $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n"; //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n"; $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>"; // if not simple, this div already exist on page $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>"; // search panel radio button assign $searchRadio = $searchControlBuilder->getSearchRadio(); $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]); $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]); $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']); $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']); // search fields data if (GetLookupTable("Record ID", $strTableName)) {
$params['includes_js'] = $includes_js; $params['includes_jsreq'] = $includes_jsreq; $params['includes_css'] = $includes_css; $params['locale_info'] = $locale_info; $params['pageType'] = PAGE_SEARCH; //PAGE_SEARCH,$id,$calendar $pageObject = new RunnerPage($params); // create reusable searchControl builder instance $searchControllerId = postvalue('searchControllerId') ? postvalue('searchControllerId') : $pageObject->id; // Before Process event if ($eventObj->exists("BeforeProcessSearch")) { $eventObj->BeforeProcessSearch($conn); } // add constants and files for simple view if ($mode == SEARCH_SIMPLE) { $searchControlBuilder = new AdvancedSearchControl($searchControllerId, $strTableName, $pageObject->searchClauseObj, $pageObject); // add button events if exist $pageObject->addButtonHandlers(); $includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n"; //$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n"; $includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>"; // if not simple, this div already exist on page $includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>"; // search panel radio button assign $searchRadio = $searchControlBuilder->getSearchRadio(); $xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]); $xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]); $xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']); $xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']); // search fields data if (GetLookupTable("Units", $strTableName)) {