本文整理汇总了PHP中search::make_hidden_search_form方法的典型用法代码示例。如果您正苦于以下问题:PHP search::make_hidden_search_form方法的具体用法?PHP search::make_hidden_search_form怎么用?PHP search::make_hidden_search_form使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类search
的用法示例。
在下文中一共展示了search::make_hidden_search_form方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: search
function do_list()
{
global $tpl_search_persopac_liste_tableau, $tpl_search_persopac_liste_tableau_ligne;
// liste des lien de recherche directe
$liste = "";
// pour toute les recherche de l'utilisateur
$my_search = new search();
for ($i = 0; $i < count($this->search_persopac_list); $i++) {
if ($i % 2) {
$pair_impair = "even";
} else {
$pair_impair = "odd";
}
//composer le formulaire de la recherche
$my_search->unserialize_search($this->search_persopac_list[$i]->query);
$forms_search .= $my_search->make_hidden_search_form("./index.php?search_type_asked=extended_search&limitsearch=" . $this->search_persopac_list[$i]->limitsearch, "search_form" . $this->search_persopac_list[$i]->id);
$td_javascript = " onmousedown=\"javascript:document.forms['search_form" . $this->search_persopac_list[$i]->id . "'].submit();\" ";
$tr_surbrillance = "onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='" . $pair_impair . "'\" ";
$line = str_replace('!!td_javascript!!', $td_javascript, $tpl_search_persopac_liste_tableau_ligne);
$line = str_replace('!!tr_surbrillance!!', $tr_surbrillance, $line);
$line = str_replace('!!pair_impair!!', $pair_impair, $line);
$line = str_replace('!!id!!', $this->search_persopac_list[$i]->id, $line);
$line = str_replace('!!name!!', $this->search_persopac_list[$i]->name, $line);
$line = str_replace('!!human!!', $this->search_persopac_list[$i]->human, $line);
$line = str_replace('!!shortname!!', $this->search_persopac_list[$i]->shortname, $line);
$liste .= $line;
}
$tpl_search_persopac_liste_tableau = str_replace('!!lignes_tableau!!', $liste, $tpl_search_persopac_liste_tableau);
return $forms_search . $tpl_search_persopac_liste_tableau;
}
示例2: getSearch
function getSearch()
{
global $opac_url_base;
global $search;
$search = array();
$openurl_referent_search = $this->generateEntitySearch($this->referent);
if ($this->referring_entity) {
$openurl_referring_entity_search = $this->generateEntitySearch($this->referring_entity);
} else {
$openurl_referring_entity_search = "";
}
global $search;
$search = array();
//id recherche OpenURL
$search[0] = "s_2";
global $op_0_s_2;
$op_0_s_2 = $rft_search[$i][$j]['op'];
global $field_0_s_2;
$field_0_s_2[0] = $openurl_referent_search;
global $inter_0_s_2;
$inter_0_s_2 = "and";
if ($openurl_referring_entity_search != "") {
$search[1] = "s_2";
global $op_1_s_2;
$op_1_s_2 = $rfe_search[$i][$j]['op'];
global $field_1_s_2;
$field_1_s_2[0] = $openurl_referring_entity_search;
global $inter_1_s_2;
$inter_1_s_2 = "and";
}
$s = new search();
print $s->make_hidden_search_form($opac_url_base . "index.php?lvl=search_result&search_type_asked=extended_search", "search_form", "", false);
print "\n\t\t\t<input type='hidden' name='launch_search' value='1' />\n\t\t\t<input type='hidden' name='page' value='' />\n\t\t</form>\n\t\t\n\t\t<img src='" . $opac_url_base . "images/ajax-loader.gif' />\n\t\t<style>\n\t\t\timg{\n\t\t\t\tposition : absolute;\n\t\t\t\ttop : 20%;\n\t\t\t\tleft : 50%;\n\t\t\t\tmargin-left : -16px;\n\t\t\t\tz-index:1000;\n\t\t\t}\t\t\t\n\t\t</style>\n\t\t<script type='text/javascript'>\n\t\t\twindow.onload = function (){\n\t\t\t\tdocument.search_form.launch_search.value=1;\n\t\t\t\tdocument.search_form.submit();\n\t\t\t}\n\t\t</script>";
}
示例3:
$form .= $f_values;
$form .= "<input type=\"hidden\" name=\"page\" value=\"{$page}\">\n";
if ($opac_allow_affiliate_search) {
$form .= "<input type=\"hidden\" name=\"catalog_page\" value=\"{$catalog_page}\">\n";
$form .= "<input type=\"hidden\" name=\"affiliate_page\" value=\"{$affiliate_page}\">\n";
}
$form .= "<input type=\"hidden\" name=\"nbexplnum_to_photo\" value=\"" . $nbexplnum_to_photo . "\">\n";
$form .= "</form>";
if ($opac_cart_allow && !$opac_cart_only_for_subscriber || $opac_cart_allow && $_SESSION["user_code"]) {
$form .= "<form name='cart_values' action='./cart_info.php?lvl=more_results' method='post' target='cart_info'>\n";
$form .= $f_values;
$form .= "</form>";
}
break;
case 'extended_search':
$form = $es->make_hidden_search_form("./index.php?lvl=more_results&mode=extended", "form_values", "", false);
if ($opac_allow_affiliate_search) {
$form .= "<input type=\"hidden\" name=\"catalog_page\" value=\"{$catalog_page}\">\n";
$form .= "<input type=\"hidden\" name=\"affiliate_page\" value=\"{$affiliate_page}\">\n";
}
if ($facette_test) {
$form .= "<input type=\"hidden\" name=\"facette_test\" value=\"2\">\n";
}
$form .= "</form>";
if ($opac_cart_allow && !$opac_cart_only_for_subscriber || $opac_cart_allow && $_SESSION["user_code"]) {
$form .= $es->make_hidden_search_form("./cart_info.php?lvl=more_results&mode=extended", "cart_values", "cart_info", "", false);
if ($opac_allow_affiliate_search) {
$form .= "<input type=\"hidden\" name=\"catalog_page\" value=\"{$catalog_page}\">\n";
$form .= "<input type=\"hidden\" name=\"affiliate_page\" value=\"{$affiliate_page}\">\n";
}
$form .= "</form>";
示例4: get_forms_list
public function get_forms_list()
{
$my_search = new search();
$forms_search = '';
$links = '';
for ($i = 0; $i < count($this->search_persopac_list); $i++) {
//composer le formulaire de la recherche
$my_search->unserialize_search($this->search_persopac_list[$i]->query);
$forms_search .= $my_search->make_hidden_search_form("./index.php?search_type_asked=extended_search&limitsearch=" . $this->search_persopac_list[$i]->limitsearch, "search_form" . $this->search_persopac_list[$i]->id);
$libelle = $this->search_persopac_list[$i]->name;
$links .= "\n\t\t\t<span>\n\t\t\t\t<a href=\"javascript:document.forms['search_form" . $this->search_persopac_list[$i]->id . "'].submit();\">{$libelle}</a>\n\t\t\t\t</span><br/>";
}
return $forms_search . $links;
}
示例5: count
$debut = ($page - 1) * $nb_per_page;
$requete = "select count(1) from {$table}";
$res = mysql_query($requete);
if ($res) {
$nbr_lignes = mysql_result($res, 0, 0);
} else {
$nbr_lignes = 0;
}
if ($nbr_lignes) {
$requete = "select {$table}.* from " . $table . ", empr where empr.id_empr={$table}.id_empr";
//Y-a-t-il une erreur lors de la recherche ?
if ($sc->error_message) {
error_message_history("", $sc->error_message, 1);
exit;
}
print $sc->make_hidden_search_form($url, "form_filters");
$res = mysql_query($requete, $dbh);
$human_requete = $sc->make_human_query();
print "<strong>" . $msg["search_search_emprunteur"] . "</strong> : " . $human_requete;
if ($nbr_lignes) {
print " => " . $nbr_lignes . " " . $msg["search_empr_nb_result"] . "<br />\n";
$tab_id_empr = array();
while ($row = mysql_fetch_object($res)) {
$tab_id_empr[] = $row->id_empr;
}
$clause = "WHERE id_empr in('" . implode("','", $tab_id_empr) . "')";
} else {
print "<br />" . $msg["1915"] . " ";
}
}
break;
示例6: get_forms_list
public function get_forms_list()
{
$my_search = new search();
$forms_search = '';
$links = '';
for ($i = 0; $i < count($this->search_perso_user); $i++) {
//composer le formulaire de la recherche
$my_search->unserialize_search($this->search_perso_user[$i]->query);
$forms_search .= $my_search->make_hidden_search_form("./catalog.php?categ=search&mode=6", "search_form" . $this->search_perso_user[$i]->id);
$libelle = $this->search_perso_user[$i]->name;
$links .= "\n\t\t\t<span>\n\t\t\t\t<a href=\"javascript:document.forms['search_form" . $this->search_perso_user[$i]->id . "'].submit();\">{$libelle}</a>\n\t\t\t</span><br/>";
}
return $forms_search . $links;
}
示例7: die
// +-------------------------------------------------+
// $Id: alert_see.inc.php,v 1.4 2015-04-03 11:16:17 jpermanne Exp $
if (stristr($_SERVER['REQUEST_URI'], ".inc.php")) {
die("no access");
}
// fonctions de conversion simple2mc
require_once $include_path . "/search_queries/specials/combine/search.class.php";
// Gestion des alertes à partir de la recherche simple
$mc = combine_search::simple2mc($_SESSION['last_query']);
$field_0_s_4[] = serialize(array('serialized_search' => $mc['serialized_search'], 'search_type' => $mc['search_type']));
unset($search);
$op_0_s_4 = "EQ";
$inter_0_s_4 = "";
$search[0] = "s_4";
if ($_SESSION['opac_view']) {
$query = "select opac_view_query from opac_views where opac_view_id = " . $_SESSION['opac_view'];
$result = pmb_mysql_query($query, $dbh);
if ($result && pmb_mysql_num_rows($result)) {
$row = pmb_mysql_fetch_object($result);
$serialized = $row->opac_view_query;
}
if ($serialized) {
$field_1_s_4[] = serialize(array('serialized_search' => $serialized, 'search_type' => "search_fields"));
$op_1_s_4 = "EQ";
$inter_1_s_4 = "and";
$search[1] = "s_4";
}
}
$es = new search();
$alert_see_mc_values = $es->make_hidden_search_form("./index.php?lvl=more_results", "mc_values", "", true);
示例8: search
function do_list()
{
global $tpl_search_perso_liste_tableau, $tpl_search_perso_liste_tableau_ligne;
// liste des lien de recherche directe
$tpl_search_perso_liste_tableau = str_replace('!!preflink!!', $this->directlink_user, $tpl_search_perso_liste_tableau);
$liste = "";
// pour toute les recherche de l'utilisateur
$my_search = new search();
for ($i = 0; $i < count($this->search_perso_user); $i++) {
if ($i % 2) {
$pair_impair = "even";
} else {
$pair_impair = "odd";
}
//composer le formulaire de la recherche
$my_search->unserialize_search($this->search_perso_user[$i]->query);
$forms_search .= $my_search->make_hidden_search_form("./catalog.php?categ=search&mode=6", "search_form" . $this->search_perso_user[$i]->id);
$td_javascript = " onmousedown=\"document.forms['search_form" . $this->search_perso_user[$i]->id . "'].submit();\" ";
$tr_surbrillance = "onmouseover=\"this.className='surbrillance'\" onmouseout=\"this.className='" . $pair_impair . "'\" ";
$line = str_replace('!!td_javascript!!', $td_javascript, $tpl_search_perso_liste_tableau_ligne);
$line = str_replace('!!tr_surbrillance!!', $tr_surbrillance, $line);
$line = str_replace('!!pair_impair!!', $pair_impair, $line);
$line = str_replace('!!id!!', $this->search_perso_user[$i]->id, $line);
$line = str_replace('!!name!!', $this->search_perso_user[$i]->name, $line);
$line = str_replace('!!human!!', $this->search_perso_user[$i]->human, $line);
$line = str_replace('!!shortname!!', $this->search_perso_user[$i]->shortname, $line);
if ($this->search_perso_user[$i]->directlink) {
$directlink = "<img src='./images/tick.gif' border='0' hspace='0' align='middle' class='bouton-nav' value='=' />";
} else {
$directlink = "";
}
$line = str_replace('!!directlink!!', $directlink, $line);
$liste .= $line;
}
$tpl_search_perso_liste_tableau = str_replace('!!lignes_tableau!!', $liste, $tpl_search_perso_liste_tableau);
return $forms_search . $tpl_search_perso_liste_tableau;
}