function SearchPageDash(&$params) { parent::SearchPage($params); if ($this->mode == SEARCH_DASHBOARD) { $this->jsSettings['tableSettings'][$this->tName]['isDashSearchPage'] = true; } }
public function getMain() { $output = ""; $output .= "<h2>Search</h2>"; $output .= SearchPage::getSearchForm(); return $output; }
public function getMain() { $output = ""; $output .= "<h2>Search</h2>"; $output .= SearchPage::getSearchForm($this->options["keywords"], $this->options); $results = $this->search($this->options); $output .= "<p>There are " . sizeof($results) . " results</p>"; $output .= "<div id='allResults'><ul class='results'>"; $chapter = 0; foreach ($results as $result) { $currentChapter = implode(".", array_slice(explode(".", $result["book_id"]), 0, 1)); if ($result["type"] != "item" and $chapter != $currentChapter) { $chapter = $currentChapter; $chapterInformation = getChapter($currentChapter); $output .= "</ul>"; $output .= "<h3>Chapter " . $currentChapter . ": " . parseAccents($chapterInformation["title"]) . "</h3>"; $output .= "<ul class='results'>"; } $output .= $this->printResult($result, false); // we never show the proofs in the preview, although it would be possible } $output .= "</div>"; return $output; }
$mode = SEARCH_LOAD_CONTROL; } } $params = array(); $params["id"] = $id; $params['xt'] =& $xt; $params["mode"] = $mode; $params['chartName'] = $cname; $params['reportName'] = $rname; $params['tName'] = $strTableName; $params['pageType'] = PAGE_SEARCH; $params['templatefile'] = $templatefile; $params['shortTableName'] = 'CompanyMaster'; $params['searchControllerId'] = postvalue('searchControllerId') ? postvalue('searchControllerId') : $id; $params['ctrlField'] = postvalue('ctrlField'); //crosstab report params $params['axis_x'] = postvalue('axis_x'); $params['axis_y'] = postvalue('axis_y'); $params['field'] = postvalue('field'); $params['group_func'] = postvalue('group_func'); if ($mode == SEARCH_DASHBOARD) { $params["dashTName"] = postvalue("table"); $params["dashElementName"] = postvalue("dashelement"); } $pageObject = new SearchPage($params); if ($mode == SEARCH_LOAD_CONTROL) { $pageObject->displaySearchControl(); return; } $pageObject->init(); $pageObject->process();
$criteria['salary_end'] = 5000; break; default: $criteria['salary'] = 3001; $criteria['salary_end'] = 4000; break; } break; default: $criteria['special'] = $_GET['special']; break; } $_SESSION['yel']['job_search']['criteria'] = $criteria; } else { $criteria = $_SESSION['yel']['job_search']['criteria']; } } } // 2. Generate page $search = ''; if (isset($_SESSION['yel']['member']) && !empty($_SESSION['yel']['member']['id']) && !empty($_SESSION['yel']['member']['sid']) && !empty($_SESSION['yel']['member']['hash'])) { $search = new SearchPage($_SESSION['yel']['member'], $criteria); } else { $search = new SearchPage(NULL, $criteria); } $search->header(array('title' => 'Searched Jobs')); $search->insert_search_css(); $search->insert_search_scripts(); $search->insert_inline_scripts(); $search->show(); $search->footer();
} if (!empty($get['t'])) { $this->is_theme = true; } if (!empty($get['a'])) { $this->is_area = true; } if (!empty($get['u'])) { $this->is_you = true; } } else { $this->is_search = true; } } } $sp = new SearchPage(); $sp->prepare_get(); $sp->meta_query(); function get_file_size($filename) { if (!file_exists($filename)) { return null; } $size = filesize($filename); $sizes = array('Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB'); $ext = $sizes[0]; for ($i = 1; $i < count($sizes) && $size >= 1024; $i++) { $size = $size / 1024; $ext = $sizes[$i]; } return round($size, 2) . $ext;
private static function PCSearch($data) { require_once 'search/SearchPage.php'; SearchPage::showDefaultSearchForm(); //echo "Cerca"; }
<?php include "require.php"; require_once DATA_PATH . "class/pages/search.php"; $page = new SearchPage(); $page->process(); ?>