本文整理汇总了PHP中search::reduct_search方法的典型用法代码示例。如果您正苦于以下问题:PHP search::reduct_search方法的具体用法?PHP search::reduct_search怎么用?PHP search::reduct_search使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类search
的用法示例。
在下文中一共展示了search::reduct_search方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: simple_search_content
//.........这里部分代码省略.........
$field = "field_0_" . $search[0];
$field_ = array();
$field_[0] = $search_in_perio;
global ${$field};
${$field} = $field_;
$search[1] = "f_42";
//opérateur
$op = "op_1_" . $search[0];
global ${$op};
$op_ = "BOOLEAN";
${$op} = $op_;
} else {
if ($get_query) {
if ($_SESSION["last_query"] == $get_query && $_SESSION["lq_facette_test"]) {
search::unserialize_search($_SESSION["lq_facette_search"]["lq_search"]);
} else {
get_history($get_query);
}
}
}
$es = new search();
if ($onglet_persopac) {
$search_form = $search_form_perso;
global $search;
if (!$search) {
$search_p_direct = new search_persopac($onglet_persopac);
$es->unserialize_search($search_p_direct->query);
}
}
if ($limitsearch) {
$search_form = $search_form_perso_limitsearch;
}
if ($onglet_persopac && $lvl == "search_result") {
$es->reduct_search();
}
$result = $es->show_form("./index.php?lvl={$lvl}&search_type_asked=extended_search", "./index.php?lvl=search_result&search_type_asked=extended_search");
$others = "<li><a href=\"./index.php?search_type_asked=simple_search\">" . $msg["simple_search"] . "</a></li>\n";
if ($opac_allow_personal_search) {
$others .= "<li><a href=\"./index.php?search_type_asked=search_perso\">" . $msg["search_perso_menu"] . "</a></li>";
}
$others .= $onglets_search_perso;
if ($opac_allow_term_search) {
$others2 = "<li><a href=\"./index.php?search_type_asked=term_search\">" . $msg["term_search"] . "</a></li>\n";
} else {
$others2 = "";
}
if ($opac_allow_tags_search) {
$others2 .= "<li><a href=\"./index.php?search_type_asked=tags_search\">" . $msg["tags_search"] . "</a></li>";
}
if ($opac_show_onglet_perio_a2z) {
$others2 .= "<li><a href=\"./index.php?search_type_asked=perio_a2z\">" . $msg["a2z_onglet"] . "</a></li>";
}
if ($opac_show_onglet_empr == 1 || $opac_show_onglet_empr == 2 && $_SESSION["user_code"]) {
if (!$_SESSION["user_code"]) {
$others2 .= "<li><a href=\"./index.php?search_type_asked=connect_empr\">" . $msg["onglet_empr_connect"] . "</a></li>";
} else {
$others2 .= "<li><a href=\"{$empr_link_onglet}\">" . $msg["onglet_empr_compte"] . "</a></li>";
}
}
if ($opac_allow_external_search) {
$others2 .= "<li><a href=\"./index.php?search_type_asked=external_search&external_type=simple\">" . $msg["connecteurs_external_search"] . "</a></li>";
}
$result = str_replace("!!others!!", $others, $result);
$result = str_replace("!!others2!!", $others2, $result);
$result = "<div id='search'>" . $result . "</div>";
$result .= $onglets_search_perso_form;