本文整理汇总了PHP中search::make_human_query方法的典型用法代码示例。如果您正苦于以下问题:PHP search::make_human_query方法的具体用法?PHP search::make_human_query怎么用?PHP search::make_human_query使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类search
的用法示例。
在下文中一共展示了search::make_human_query方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
//le tableau est addslashé automatiquement
foreach ($check_facette as $k => $v) {
$check_facette[$k] = stripslashes($v);
}
}
facettes::checked_facette_search($check_facette);
$_SESSION["lq_facette"] = $_SESSION["facette"];
$_SESSION["lq_facette_search"]["lq_search"] = search::serialize_search();
} else {
if ($from_see == 1 && $filtre_compare == "compare") {
//from_see est un élément posté dans un formulaire d'une page d'autorité
//il flage l'origine qui nécessite une reconstruction de l'environnement de la multi-critère pour faire les filtres multiples ou le comparateur
facettes::make_facette_search_env();
}
}
$lib_recherche = $es->make_human_query();
$searcher = new searcher_extended();
if ($opac_visionneuse_allow) {
$nbexplnum_to_photo = $searcher->get_nb_explnums();
}
$count = $searcher->get_nb_results();
$l_typdoc = implode(",", $searcher->get_typdocs());
// La variable global $l_typdoc est utilisée pour la photothèque
//Enregistrement des stats
if ($pmb_logs_activate) {
global $nb_results_tab;
$nb_results_tab['extended'] = $count;
}
if ($count) {
if (isset($_SESSION["last_sortnotices"]) && $_SESSION["last_sortnotices"] !== "") {
$notices = $searcher->get_sorted_result($_SESSION["last_sortnotices"], $debut, $opac_search_results_per_page);
示例2: count
$sc->link_serial = './catalog.php?categ=serials&sub=view&serial_id=!!id!!';
$sc->link_analysis = './catalog.php?categ=serials&sub=bulletinage&action=view&bul_id=!!bul_id!!&art_to_show=!!id!!';
$sc->link_bulletin = './catalog.php?categ=serials&sub=bulletinage&action=view&bul_id=!!id!!';
$sc->link_explnum_serial = "./catalog.php?categ=serials&sub=explnum_form&serial_id=!!serial_id!!&explnum_id=!!explnum_id!!";
$sc->link_explnum_analysis = "./catalog.php?categ=serials&sub=analysis&action=explnum_form&bul_id=!!bul_id!!&analysis_id=!!analysis_id!!&explnum_id=!!explnum_id!!";
$sc->link_explnum_bulletin = "./catalog.php?categ=serials&sub=bulletinage&action=explnum_form&bul_id=!!bul_id!!&explnum_id=!!explnum_id!!";
switch ($sub) {
case "launch":
if ((string) $page == "") {
$_SESSION["CURRENT"] = count($_SESSION["session_history"]);
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["URI"] = "./catalog.php?categ=search&mode=8";
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["POST"] = $_POST;
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["GET"] = $_GET;
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["GET"]["sub"] = "";
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["POST"]["sub"] = "";
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["HUMAN_QUERY"] = $sc->make_human_query();
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["HUMAN_TITLE"] = $msg["search_exemplaire"];
$_SESSION["session_history"][$_SESSION["CURRENT"]]["QUERY"]["SEARCH_TYPE"] = "EXPL";
$_POST["page"] = 0;
$page = 0;
}
$table = $sc->get_results("./catalog.php?categ=search&mode=8&sub=launch", "./catalog.php?categ=search&mode=8&option_show_notice_fille={$option_show_notice_fille}&option_show_expl={$option_show_expl}", true);
print_results($sc, $table, "./catalog.php?categ=search&mode=8&sub=launch&option_show_notice_fille={$option_show_notice_fille}&option_show_expl={$option_show_expl}", "./catalog.php?categ=search&mode=8&option_show_notice_fille={$option_show_notice_fille}&option_show_expl={$option_show_expl}", true);
if ($_SESSION["CURRENT"] !== false) {
$_SESSION["session_history"][$_SESSION["CURRENT"]]["EXPL"]["URI"] = "./catalog.php?categ=search&mode=8";
$_SESSION["session_history"][$_SESSION["CURRENT"]]["EXPL"]["POST"] = $_POST;
$_SESSION["session_history"][$_SESSION["CURRENT"]]["EXPL"]["GET"] = $_GET;
$_SESSION["session_history"][$_SESSION["CURRENT"]]["EXPL"]["PAGE"] = $page + 1;
$_SESSION["session_history"][$_SESSION["CURRENT"]]["EXPL"]["HUMAN_QUERY"] = $sc->make_human_query();
$_SESSION["session_history"][$_SESSION["CURRENT"]]["EXPL"]["SEARCH_TYPE"] = "expl";
$_SESSION["session_history"][$_SESSION["CURRENT"]]["EXPL"]["TEXT_QUERY"] = "";
示例3: switch
if ($tab == "affiliate") {
switch ($search_type) {
case "simple_search":
$search_file = "search_fields_unimarc";
break;
default:
$search_file = "search_simple_fields_unimarc";
break;
}
} else {
$search_file = "";
}
}
$search_stat = new search($search_file);
$log->add_log('multi_search', $search_stat->serialize_search());
$log->add_log('multi_human_query', $search_stat->make_human_query());
}
//Enregistrement vue
if ($opac_opac_view_activate) {
$log->add_log('opac_view', $_SESSION["opac_view"]);
}
$log->save();
}
//insertions des liens du bas dans le $footer si $opac_show_liensbas
if ($opac_show_liensbas == 1) {
$footer = str_replace("!!div_liens_bas!!", $liens_bas, $footer);
} else {
$footer = str_replace("!!div_liens_bas!!", "", $footer);
}
//affichage du bandeau_2 si $opac_show_bandeau_2 = 1
if ($opac_show_bandeau_2 == 0) {
示例4: search
function do_form()
{
global $msg, $tpl_search_perso_form, $charset;
// titre formulaire
if ($this->id) {
$libelle = $msg["search_perso_form_edit"];
$link_delete = "<input type='button' class='bouton' value='" . $msg[63] . "' onClick=\"confirm_delete();\" />";
} else {
$libelle = $msg["search_perso_form_add"];
$link_delete = "";
/*
foreach($_POST as $key =>$val) {
if($val) {
if(is_array($val)) {
foreach($val as $val_array) {
$memo_search.= "<input type='hidden' name='".$key."[]' value='$val_array'/>";
}
}
else $memo_search.="<input type='hidden' name='$key' value='$val'/>";
}
}
$this->query=$memo_search;
global $search;
for ($i=0; $i<count($search); $i++) {
$op="op_".$i."_".$search[$i];
global $$op;
$field_="field_".$i."_".$search[$i];
global $$field_;
} */
$my_search = new search();
$this->query = $my_search->serialize_search();
$this->human = $my_search->make_human_query();
}
// Champ éditable
$tpl_search_perso_form = str_replace('!!id!!', htmlentities($this->id, ENT_QUOTES, $charset), $tpl_search_perso_form);
$tpl_search_perso_form = str_replace('!!name!!', htmlentities($this->name, ENT_QUOTES, $charset), $tpl_search_perso_form);
$tpl_search_perso_form = str_replace('!!shortname!!', htmlentities($this->shortname, ENT_QUOTES, $charset), $tpl_search_perso_form);
if ($this->directlink) {
$checked = " checked='checked' ";
}
$tpl_search_perso_form = str_replace('!!directlink!!', $checked, $tpl_search_perso_form);
if ($this->id) {
$tpl_search_perso_form = str_replace('!!autorisations_users!!', $this->aff_form_autorisations($this->autorisations, 0), $tpl_search_perso_form);
} else {
$tpl_search_perso_form = str_replace('!!autorisations_users!!', $this->aff_form_autorisations("", 1), $tpl_search_perso_form);
}
$tpl_search_perso_form = str_replace('!!query!!', htmlentities($this->query, ENT_QUOTES, $charset), $tpl_search_perso_form);
$tpl_search_perso_form = str_replace('!!human!!', htmlentities($this->human, ENT_QUOTES, $charset), $tpl_search_perso_form);
$action = "./catalog.php?categ=serials&sub=collstate_update&serial_id=" . $this->serial_id . "&id=" . $this->id;
$tpl_search_perso_form = str_replace('!!action!!', $action, $tpl_search_perso_form);
$tpl_search_perso_form = str_replace('!!delete!!', $link_delete, $tpl_search_perso_form);
$tpl_search_perso_form = str_replace('!!libelle!!', htmlentities($libelle, ENT_QUOTES, $charset), $tpl_search_perso_form);
$link_annul = "onClick=\"unload_off();history.go(-1);\"";
$tpl_search_perso_form = str_replace('!!annul!!', $link_annul, $tpl_search_perso_form);
return $tpl_search_perso_form;
}
示例5: search
function get_config_form(&$out_of_form_result)
{
global $dbh, $msg, $charset;
$config_form = "";
if (!isset($this->config["search"])) {
$this->config["search"] = "";
}
$serialized_search = $this->config["search"];
if ($serialized_search) {
$sc = new search(false);
$sc->unserialize_search($serialized_search);
$human_query = $sc->make_human_query();
} else {
$human_query = $msg["admin_connecteurs_set_multicritere_searchis_none"];
}
//Recherche humaine
$button_modif_requete = "<input type='button' class='bouton' value=\"{$msg['admin_connecteurs_set_multicritere_editsearch']}\" onClick=\"document.modif_requete_form_.submit();\">";
$config_form .= '<div class=row><label class="etiquette" for="set_included_caddies">' . $msg["admin_connecteurs_set_multicritere_searchis"] . '</label><br />';
$config_form .= $human_query . " " . $button_modif_requete;
$config_form .= '</div><br />';
//Changer la recherche
$config_form .= '<div class=row><label class="etiquette" for="set_included_caddies">' . $msg["search_notice_to_connector_out_set_editsearch"] . '</label><br />';
$config_form .= '<blockquote>';
//Garder la recherche actuelle
$config_form .= '<input name="search_updateaction" value="none" checked type="radio" id="search_updateaction_none"><label class="etiquette" for="search_updateaction_none">' . $msg["search_notice_to_connector_out_set_editsearch_keepit"] . '</label><br />';
$config_form .= '<br />';
//Copier une équation DSI
$sql = "SELECT id_equation, nom_equation FROM equations WHERE proprio_equation = 0";
$res = pmb_mysql_query($sql, $dbh);
while ($row = pmb_mysql_fetch_assoc($res)) {
$config_form .= '<input name="search_updateaction" value="dsieq_' . $row["id_equation"] . '" type="radio" id="search_updateaction_dsieq_' . $row["id_equation"] . '"><label class="etiquette" for="search_updateaction_dsieq_' . $row["id_equation"] . '">' . $msg["search_notice_to_connector_out_set_editsearch_copydsiequation"] . '</label>: ' . htmlentities($row["nom_equation"], ENT_QUOTES, $charset);
$config_form .= '<br />';
}
$config_form .= '</blockquote>';
$config_form .= '</div>';
//Form caché de la recherche
$form_modif_requete = $this->make_hidden_search_form($serialized_search);
//Mettons le dans $out_of_form_result comme ça il sera placé en dehors du formulaire
$out_of_form_result = $form_modif_requete;
return $config_form;
}
示例6: gerer_abon_bannette
function gerer_abon_bannette($priv_pub = "PUB", $link_to_bannette = "", $htmldiv_id = "bannette-container", $htmldiv_class = "bannette-container", $htmldiv_zindex = "")
{
global $dbh;
global $charset;
global $msg;
global $opac_allow_resiliation;
// récupération des bannettes
$tableau_bannettes = tableau_gerer_bannette($priv_pub);
if (!sizeof($tableau_bannettes)) {
return "";
}
// préparation du tableau
$retour_aff = "<div id='{$htmldiv_id}' class='{$htmldiv_class}'";
if ($htmldiv_zindex) {
$retour_aff .= " zindex='{$htmldiv_zindex}' ";
}
$retour_aff .= " >";
$retour_aff .= "<form name='bannette_abonn' method='post' >";
$retour_aff .= "<input type='hidden' name='lvl' value='bannette_gerer' />";
$retour_aff .= "<input type='hidden' name='enregistrer' value='{$priv_pub}' />";
$retour_aff .= "<table cellpadding='3px' cellspacing='5px'><tr>\n\t\t\t\t\t\t\t<th align='right' valign='bottom'>" . $msg[dsi_bannette_gerer_abonn] . "</th>\n\t\t\t\t\t\t\t<th align='left' valign='bottom'>" . $msg[dsi_bannette_gerer_nom_liste] . "</th>\n\t\t\t\t\t\t\t<th align='center' valign='bottom'>" . $msg[dsi_bannette_gerer_date] . "</th>\n\t\t\t\t\t\t\t<th align='center' valign='bottom'>" . $msg[dsi_bannette_gerer_nb_notices] . "</th>\n\t\t\t\t\t\t\t<th align='center' valign='bottom'>" . $msg[dsi_bannette_gerer_periodicite] . "</th>\n\t\t\t\t\t\t\t</tr>";
for ($i = 0; $i < sizeof($tableau_bannettes); $i++) {
$id_bannette = $tableau_bannettes[$i]['id_bannette'];
$comment_public = $tableau_bannettes[$i]['comment_public'];
$aff_date_last_envoi = $tableau_bannettes[$i]['aff_date_last_envoi'];
$retour_aff .= "\n<tr><td align='right' valign='top'>";
if (!$opac_allow_resiliation && $tableau_bannettes[$i]['categorie_lecteurs']) {
$retour_aff .= "\n<input type='checkbox' name='dummy[]' value='' " . $tableau_bannettes[$i]['abonn'] . " disabled />";
$retour_aff .= "<input type='hidden' name='bannette_abon[{$id_bannette}]' value='1' " . $tableau_bannettes[$i]['abonn'] . " style='display:none'/>";
} else {
$retour_aff .= "\n<input type='checkbox' name='bannette_abon[{$id_bannette}]' value='1' " . $tableau_bannettes[$i]['abonn'] . " />";
}
$retour_aff .= "\n</td><td align='left' valign='top'>";
if ($link_to_bannette) {
// Construction de l'affichage de l'info bulle de la requette
$requete = "select * from bannette_equation, equations where num_equation=id_equation and num_bannette={$id_bannette}";
$resultat = pmb_mysql_query($requete);
if ($r = pmb_mysql_fetch_object($resultat)) {
$recherche = $r->requete;
$equ = new equation($r->num_equation);
if (!is_object($search)) {
$search = new search();
}
$search->unserialize_search($equ->requete);
$recherche = $search->make_human_query();
$zoom_comment = "<div id='zoom_comment" . $id_bannette . "' style='border: solid 2px #555555; background-color: #FFFFFF; position: absolute; display:none; z-index: 2000;'>";
$zoom_comment .= $recherche;
$zoom_comment .= "</div>";
$java_comment = " onmouseover=\"z=document.getElementById('zoom_comment" . $id_bannette . "'); z.style.display=''; \" onmouseout=\"z=document.getElementById('zoom_comment" . $id_bannette . "'); z.style.display='none'; \"";
}
$retour_aff .= "<a href=\"" . str_replace("!!id_bannette!!", $id_bannette, $link_to_bannette) . "\" {$java_comment} >";
}
$retour_aff .= htmlentities($comment_public, ENT_QUOTES, $charset);
if ($link_to_bannette) {
$retour_aff .= "</a>";
$retour_aff .= $zoom_comment;
}
$retour_aff .= "\n</td><td align='center' valign='top'>";
$retour_aff .= htmlentities($aff_date_last_envoi, ENT_QUOTES, $charset);
$retour_aff .= "\n</td><td align='center' valign='top'>";
$retour_aff .= htmlentities($tableau_bannettes[$i]['nb_contenu'], ENT_QUOTES, $charset);
$retour_aff .= "\n</td><td align='center' valign='top'>";
$retour_aff .= htmlentities($tableau_bannettes[$i]['periodicite'], ENT_QUOTES, $charset);
$retour_aff .= "</td></tr>";
}
// fermeture du tableau
$retour_aff .= "</table>\n\t\t\t\t\t<INPUT type='submit' class='bouton' value=\"";
if ($priv_pub == "PUB") {
$retour_aff .= $msg[dsi_bannette_gerer_sauver];
} else {
$retour_aff .= $msg[dsi_bannette_gerer_supprimer];
}
$retour_aff .= "\" />\n\t\t\t\t\t</form></div><!-- fin id='{$htmldiv_id}' class='{$htmldiv_class}' -->";
return $retour_aff;
}
示例7: array
function make_human_query()
{
$litteral = array();
//Récupération de la valeur de saisie
$valeur_ = "field_" . $this->n_ligne . "_s_" . $this->id;
global ${$valeur_};
$valeur = ${$valeur_};
//enregistrement de l'environnement courant
$this->search->push();
//et on se met dans le contexte de la recherche simple
$mc = unserialize($valeur[0]);
$es = new search(false, $mc["search_type"]);
$es->unserialize_search($mc["serialized_search"]);
//on récupère le human query...
$litteral[0] = $es->make_human_query();
//restauration de l'environnement courant
$this->search->pull();
return $litteral;
}
示例8: search
function do_form()
{
global $msg, $tpl_search_persopac_form, $charset, $base_path;
global $thesaurus_liste_trad;
global $id_search_persopac;
$this->load_xml();
// titre formulaire
$my_search = new search(false, "search_fields_opac", "{$base_path}/temp/");
if ($this->id) {
$libelle = $msg["search_persopac_form_edit"];
$link_delete = "<input type='button' class='bouton' value='" . $msg[63] . "' onClick=\"confirm_delete();\" />";
$button_modif_requete = "<input type='button' class='bouton' value=\"" . $msg["search_perso_modif_requete"] . "\" onClick=\"document.modif_requete_form_" . $this->id . ".submit();\">";
//Mémorisation de recherche prédéfinie en édition
if ($id_search_persopac) {
$this->query = $my_search->serialize_search();
$this->human = $my_search->make_human_query();
$my_search->unserialize_search($this->query);
} else {
$my_search->unserialize_search($this->query);
$this->query = $my_search->serialize_search();
$this->human = $my_search->make_human_query();
}
$form_modif_requete = $this->make_hidden_search_form();
} else {
$libelle = $msg["search_persopac_form_add"];
$link_delete = "";
$button_modif_requete = "";
$form_modif_requete = "";
$this->query = $my_search->serialize_search();
$this->human = $my_search->make_human_query();
}
// Champ éditable
$tpl_search_persopac_form = str_replace('!!id!!', htmlentities($this->id, ENT_QUOTES, $charset), $tpl_search_persopac_form);
$trans = new translation($this->id, "search_persopac", "search_name", $thesaurus_liste_trad);
$field_name = $trans->get_form($msg["search_persopac_form_name"], "form_nom", "name", $this->name, "saisie-80em");
$tpl_search_persopac_form = str_replace('!!name!!', $field_name, $tpl_search_persopac_form);
$trans = new translation($this->id, "search_persopac", "search_shortname", $thesaurus_liste_trad);
$field_name = $trans->get_form($msg["search_persopac_form_shortname"], "shortname", "shortname", $this->shortname, "saisie-80em");
$tpl_search_persopac_form = str_replace('!!shortname!!', $field_name, $tpl_search_persopac_form);
$checked = '';
if ($this->directlink) {
$checked = " checked='checked' ";
}
$tpl_search_persopac_form = str_replace('!!directlink!!', $checked, $tpl_search_persopac_form);
$checked = '';
if ($this->limitsearch) {
$checked = " checked='checked' ";
}
$tpl_search_persopac_form = str_replace('!!limitsearch!!', $checked, $tpl_search_persopac_form);
$tpl_search_persopac_form = str_replace('!!query!!', htmlentities($this->query, ENT_QUOTES, $charset), $tpl_search_persopac_form);
$tpl_search_persopac_form = str_replace('!!human!!', htmlentities($this->human, ENT_QUOTES, $charset), $tpl_search_persopac_form);
$action = "./admin.php?categ=opac&sub=search_persopac§ion=liste&action=collstate_update&serial_id=" . $this->serial_id . "&id=" . $this->id;
$tpl_search_persopac_form = str_replace('!!action!!', $action, $tpl_search_persopac_form);
$tpl_search_persopac_form = str_replace('!!delete!!', $link_delete, $tpl_search_persopac_form);
$tpl_search_persopac_form = str_replace('!!libelle!!', htmlentities($libelle, ENT_QUOTES, $charset), $tpl_search_persopac_form);
$link_annul = "onClick=\"unload_off();history.go(-1);\"";
$tpl_search_persopac_form = str_replace('!!annul!!', $link_annul, $tpl_search_persopac_form);
//restriction aux catégories de lecteur
$requete = "SELECT id_categ_empr, libelle FROM empr_categ ORDER BY libelle ";
$res = pmb_mysql_query($requete);
if (pmb_mysql_num_rows($res) > 0) {
$categ = "\n\t\t\t<label for='empr_restrict'>" . $msg['search_perso_form_user_restrict'] . "</label><br />\n\t\t\t<select id='empr_restrict' name='empr_restrict[]' multiple>";
while ($obj = pmb_mysql_fetch_object($res)) {
$categ .= "\n\t\t\t\t<option value='" . $obj->id_categ_empr . "' " . (in_array($obj->id_categ_empr, $this->empr_categ_restrict) ? "selected=selected" : "") . ">" . $obj->libelle . "</option>";
}
$categ .= "\n\t\t\t</select>";
} else {
$categ = "";
}
$tpl_search_persopac_form = str_replace('!!categorie!!', $categ, $tpl_search_persopac_form);
$tpl_search_persopac_form = str_replace('!!requete!!', htmlentities($this->query, ENT_QUOTES, $charset), $tpl_search_persopac_form);
$tpl_search_persopac_form = str_replace('!!requete_human!!', $this->human, $tpl_search_persopac_form);
$tpl_search_persopac_form = str_replace('!!bouton_modif_requete!!', $button_modif_requete, $tpl_search_persopac_form);
$tpl_search_persopac_form = str_replace('!!form_modif_requete!!', $form_modif_requete, $tpl_search_persopac_form);
return $tpl_search_persopac_form;
}
示例9: array
function list_abonnements($session_id)
{
global $dbh, $msg;
if (!$session_id) {
return array();
}
$session_info = $this->retrieve_session_information($session_id);
$empr_id = $session_info["empr_id"];
if (!$empr_id) {
return array();
}
$empr = new emprunteur($empr_id);
global $opac_allow_resiliation, $opac_allow_bannette_priv;
$results = array();
$tableau_bannette_pub = tableau_gerer_bannette($empr_id, $empr->categ, "PUB");
$tableau_bannette_priv = tableau_gerer_bannette($empr_id, $empr->categ, "PRI");
$tableau_bannettes = array_merge($tableau_bannette_pub, $tableau_bannette_priv);
$search = new search();
foreach ($tableau_bannettes as $abanette) {
// Construction de l'affichage de l'info bulle de la requette
$requete = "select * from bannette_equation, equations where num_equation=id_equation and num_bannette=" . $abanette["id_bannette"];
$resultat = mysql_query($requete);
if ($r = mysql_fetch_object($resultat)) {
$equ = new equation($r->num_equation);
$search->unserialize_search($equ->requete);
$recherche = $search->make_human_query();
}
$a_abonnement = array('abonnement_id' => $abanette["id_bannette"], 'abonnement_type' => $abanette["priv_pub"] == 'PUB' ? "PUBLIC" : 'PRIVATE', 'abonnement_title' => utf8_normalize($abanette["comment_public"]), 'abonnement_lastsentdate' => utf8_normalize($abanette["aff_date_last_envoi"]), 'abonnement_notice_count' => $abanette["nb_contenu"], 'abonnement_equation_human' => utf8_normalize($recherche), 'empr_subscriber' => $abanette["priv_pub"] == 'PUB' ? $abanette["abonn"] == 'checked' : true);
$results[] = $a_abonnement;
}
return $results;
}
示例10: show_import_noticesearch_into_multicritere_set_form
function show_import_noticesearch_into_multicritere_set_form()
{
global $charset, $toset_search, $msg, $candidate_id;
$candidate_id += 0;
$serialized_search = stripslashes($toset_search);
//Un petit tour dans la classe search histoire de filtrer la recherche
$sc = new search(false);
$sc->unserialize_search($serialized_search);
$serialized_search = $sc->serialize_search();
$human_query = $sc->make_human_query();
print '<form method="POST" action="admin.php?categ=connecteurs&sub=out_sets&action=import_notice_search_into_set_do" name="form_outset">';
print '<h3>' . $msg['search_notice_to_connector_out_set_formtitle'] . '</h3>';
print '<div class="form-contenu">';
//la recherche
print '<input type="hidden" name="toset_search" value="' . htmlentities($serialized_search, ENT_QUOTES, $charset) . '">';
//caption
print '<div class=row><label class="etiquette" for="set_caption">' . $msg["search_notice_to_connector_out_set_search"] . ':</label><br />';
print $human_query;
print '</div><br />';
//set d'acceuil
$set_list = '<select name="set_id">';
$sets = new connector_out_sets();
foreach ($sets->sets as &$aset) {
if ($aset->type != 2) {
continue;
}
$set_list .= '<option ' . ($candidate_id == $aset->id ? 'selected' : '') . ' value="' . $aset->id . '">' . htmlentities($aset->caption, ENT_QUOTES, $charset) . '</option>';
}
$set_list .= '</select>';
//caption
print '<div class=row><label class="etiquette" for="set_caption">' . $msg["search_notice_to_connector_out_set_set"] . ':</label><br />';
print $set_list;
print '</div><br />';
//buttons
print "</div><div class='row'>\n\t<div class='left'>";
print "<input class='bouton' type='button' value=' {$msg['76']} ' onClick=\"history.go(-1)\" /> ";
print '<input class="bouton" type="submit" value="' . $msg[77] . '">';
print "</div>\n\t<div class='right'>";
print "</div>\n\t<br /><br /></div>";
print '</form>';
}