当前位置: 首页>>代码示例>>PHP>>正文


PHP search::unserialize_search方法代码示例

本文整理汇总了PHP中search::unserialize_search方法的典型用法代码示例。如果您正苦于以下问题:PHP search::unserialize_search方法的具体用法?PHP search::unserialize_search怎么用?PHP search::unserialize_search使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在search的用法示例。


在下文中一共展示了search::unserialize_search方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: generate_rss

 public function generate_rss($context, $hash)
 {
     global $opac_url_base, $dbh;
     $this->notices_list = array();
     $mc = unserialize($context);
     $search = new search($mc["search_type"]);
     $search->unserialize_search(serialize($mc["serialized_search"]));
     $table = $search->make_search();
     $q = "select distinct notice_id from {$table} ";
     $res = pmb_mysql_query($q, $dbh);
     if (pmb_mysql_num_rows($res)) {
         while ($row = pmb_mysql_fetch_object($res)) {
             $this->notices_list[] = $row->notice_id;
         }
     }
     $flux = new newrecords_flux(0);
     $flux->setRecords($this->notices_list);
     $flux->setLink($opac_url_base . "s.php?h={$hash}");
     $flux->setDescription(strip_tags($mc["human_query"]));
     $flux->xmlfile();
     if (!$flux->envoi) {
         return;
     }
     @header('Content-type: text/xml');
     echo $flux->envoi;
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:26,代码来源:shorturl_type_search.class.php

示例2: get_value

 public function get_value()
 {
     global $dbh;
     if (!count($this->value)) {
         if ($this->parameters['equation']) {
             $equ = new equation($this->parameters['equation']);
             $search = new search();
             $search->unserialize_search($equ->requete);
             $table = $search->make_search();
             $result = pmb_mysql_query("select * from " . $table, $dbh);
             if (pmb_mysql_num_rows($result)) {
                 while ($row = pmb_mysql_fetch_object($result)) {
                     $this->value[] = $row->notice_id;
                 }
             }
         }
     }
     return $this->value;
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:19,代码来源:docwatch_selector_notices_equation.class.php

示例3: get_datas

 public function get_datas()
 {
     //on commence par récupérer l'identifiant retourné par le sélecteur...
     if ($this->parameters['selector'] != "") {
         for ($i = 0; $i < count($this->selectors); $i++) {
             if ($this->selectors[$i]['name'] == $this->parameters['selector']) {
                 $selector = new $this->parameters['selector']($this->selectors[$i]['id']);
                 break;
             }
         }
         $values = $selector->get_value();
         $searcher = new search(false);
         $current_search = $searcher->serialize_search();
         $searcher->destroy_global_env();
         global $search;
         $search = array();
         $search[] = "d_" . $values['cp'];
         $op = "op_0_d_" . $values['cp'];
         $field = "field_0_d_" . $values['cp'];
         global ${$op}, ${$field};
         ${$op} = "EQ";
         ${$field} = $values['cp_val'];
         $table = $searcher->make_search();
         $query = "select notice_id from " . $table;
         $result = pmb_mysql_query($query);
         $records = array();
         if (pmb_mysql_num_rows($result)) {
             while ($row = pmb_mysql_fetch_object($result)) {
                 $records[] = $row->notice_id;
             }
         }
         $searcher->unserialize_search($current_search);
         $records = $this->filter_datas("notices", $records);
         if ($this->parameters['nb_max_elements'] > 0) {
             $records = array_slice($records, 0, $this->parameters['nb_max_elements']);
         }
         $return = array('title' => 'Liste de Notices', 'records' => $records);
         return $return;
     }
     return false;
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:41,代码来源:cms_module_common_datasource_records_by_cp_val.class.php

示例4: search

 function make_hidden_search_form($serialized_search)
 {
     global $search;
     global $charset;
     global $page;
     $url = "./catalog.php?categ=search&mode=6";
     // remplir $search
     $sc = new search(false);
     $sc->unserialize_search($serialized_search);
     $r = "<form name='modif_requete_form_' action='{$url}' style='display:none' method='post'>";
     for ($i = 0; $i < count($search); $i++) {
         $inter = "inter_" . $i . "_" . $search[$i];
         global ${$inter};
         $op = "op_" . $i . "_" . $search[$i];
         global ${$op};
         $field_ = "field_" . $i . "_" . $search[$i];
         global ${$field_};
         $field = ${$field_};
         //Récupération des variables auxiliaires
         $fieldvar_ = "fieldvar_" . $i . "_" . $search[$i];
         global ${$fieldvar_};
         $fieldvar = ${$fieldvar_};
         if (!is_array($fieldvar)) {
             $fieldvar = array();
         }
         $r .= "<input type='hidden' name='search[]' value='" . htmlentities($search[$i], ENT_QUOTES, $charset) . "'/>";
         $r .= "<input type='hidden' name='" . $inter . "' value='" . htmlentities(${$inter}, ENT_QUOTES, $charset) . "'/>";
         $r .= "<input type='hidden' name='" . $op . "' value='" . htmlentities(${$op}, ENT_QUOTES, $charset) . "'/>";
         for ($j = 0; $j < count($field); $j++) {
             $r .= "<input type='hidden' name='" . $field_ . "[]' value='" . htmlentities($field[$j], ENT_QUOTES, $charset) . "'/>";
         }
         reset($fieldvar);
         while (list($var_name, $var_value) = each($fieldvar)) {
             for ($j = 0; $j < count($var_value); $j++) {
                 $r .= "<input type='hidden' name='" . $fieldvar_ . "[" . $var_name . "][]' value='" . htmlentities($var_value[$j], ENT_QUOTES, $charset) . "'/>";
             }
         }
     }
     $r .= "<input type='hidden' name='id_connector_set' value='{$this->id}'/>";
     $r .= "</form>";
     return $r;
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:42,代码来源:connecteurs_out_sets.class.php

示例5: 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;
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:14,代码来源:search_persopac.class.php

示例6: remplir

 function remplir()
 {
     global $dbh;
     global $msg;
     global $gestion_acces_active, $gestion_acces_empr_notice;
     if (!$this->id_bannette) {
         return $msg[dsi_ban_no_access];
     }
     // impossible d'accéder à cette bannette
     // récupérer les équations associées à la bannette
     $equations = $this->get_equations();
     $res_affichage = "<ul>";
     if ($this->update_type == "C") {
         $colonne_update_create = "create_date";
     } else {
         $colonne_update_create = "update_date";
     }
     for ($i = 0; $i < sizeof($equations); $i++) {
         // pour chaque équation ajouter les notices trouvées au contenu de la bannette
         $equ = new equation($equations[$i]);
         $search = new search();
         $search->unserialize_search($equ->requete);
         $table = $search->make_search();
         $temp_requete = "insert into bannette_contenu (num_bannette, num_notice) (select " . $this->id_bannette . " , notices.notice_id from {$table} , notices, notice_statut where notices.{$colonne_update_create}>='" . $this->date_last_envoi . "' and {$table}.notice_id=notices.notice_id and statut=id_notice_statut and ((notice_visible_opac=1 and notice_visible_opac_abon=0) or (notice_visible_opac_abon=1 and notice_visible_opac=1)) limit 300) ";
         $res = @pmb_mysql_query($temp_requete, $dbh);
         $res_affichage .= "<li>" . $equ->human_query . "</li>";
         $temp_requete = "drop table {$table} ";
         $res = @pmb_mysql_query($temp_requete, $dbh);
     }
     $res_affichage .= "</ul>";
     $this->compte_elements();
     $temp_requete = "update bannettes set date_last_remplissage=sysdate() where id_bannette='" . $this->id_bannette . "' ";
     $res = @pmb_mysql_query($temp_requete, $dbh);
     //purge pour les bannettes privees des notices ne devant pas etre diffusees
     if ($this->proprio_bannette && $gestion_acces_active == 1 && $gestion_acces_empr_notice == 1) {
         $ac = new acces();
         $dom_2 = $ac->setDomain(2);
         $acces_j = $dom_2->getJoin($this->proprio_bannette, '4=0', 'num_notice');
         $q = "delete from bannette_contenu using bannette_contenu {$acces_j} WHERE num_bannette='{$this->id_bannette}' ";
         pmb_mysql_query($q, $dbh);
     }
     return $res_affichage;
 }
开发者ID:hogsim,项目名称:PMB,代码行数:43,代码来源:bannette.class.php

示例7: 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;
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:14,代码来源:search_perso.class.php

示例8: import_noticesearch_into_multicritere_set

function import_noticesearch_into_multicritere_set()
{
    global $dbh, $toset_search, $set_id;
    $set_id += 0;
    //Pas de set spécifié?
    if (!$set_id) {
        return;
    }
    //Vérifions que le set spécifié est bien un bon set multicritère
    $the_set = new connector_out_set($set_id, true);
    if ($the_set->type != 2) {
        return;
    }
    $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();
    //Mettons à jour le set
    $the_set_m = new connector_out_set_noticemulticritere($set_id, true);
    $the_set_m->config["search"] = $serialized_search;
    $the_set_m->commit_to_db();
    $the_set_m->clear_cache(true);
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:24,代码来源:out_sets.inc.php

示例9: 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;
}
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:75,代码来源:bannette_func.inc.php

示例10: 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;
 }
开发者ID:hogsim,项目名称:PMB,代码行数:30,代码来源:search_persopac.class.php

示例11: _get_search_query

 protected function _get_search_query()
 {
     global $es, $msg;
     if (!is_object($es)) {
         $es = new search();
     }
     if ($this->serialized_query) {
         $es->unserialize_search($this->serialized_query);
     } else {
         global $search;
         //Vérification des champs vides
         for ($i = 0; $i < count($search); $i++) {
             if ($i == 0) {
                 //On supprime le premier opérateur inter (il est renseigné pour les recherches prédéfinies avec plusieurs champs et une recherche avec le premier champ vide
                 $inter = "inter_" . $i . "_" . $search[$i];
                 global ${$inter};
                 ${$inter} = "";
             }
             $op = "op_" . $i . "_" . $search[$i];
             global ${$op};
             $field_ = "field_" . $i . "_" . $search[$i];
             global ${$field_};
             $field = ${$field_};
             $s = explode("_", $search[$i]);
             if ($s[0] == "f") {
                 $champ = $es->fixedfields[$s[1]]["TITLE"];
             } elseif ($s[0] == "s") {
                 $champ = $es->specialfields[$s[1]]["TITLE"];
             } else {
                 $champ = $es->pp->t_fields[$s[1]]["TITRE"];
             }
             if ((string) $field[0] == "" && !$es->op_empty[${$op}]) {
                 $search_error_message = sprintf($msg["extended_empty_field"], $champ);
                 $flag = true;
                 break;
             }
         }
     }
     //$es->remove_forbidden_fields();
     $this->table = $es->make_search();
     return "select notice_id as id_notice from " . $this->table;
 }
开发者ID:bouchra012,项目名称:PMB,代码行数:42,代码来源:searcher.class.php

示例12: make_human_query

 function make_human_query()
 {
     //Récupération de la valeur de saisie
     $valeur_ = "field_" . $this->n_ligne . "_s_" . $this->id;
     global ${$valeur_};
     $valeur = ${$valeur_};
     $litteral = array();
     //on stocke l'environnement courant
     $current_search = search::serialize_search();
     //on le détruit
     search::destroy_global_env();
     //et on se met dans le contexte de la requete OpenURL
     $this->s = new search("search_openurl");
     $this->s->unserialize_search($valeur[0]);
     global $search;
     //on génère une human_query
     $litteral[0] = $this->s->make_human_query();
     //et on détruit le contexte d'OpenURL pour revenir en mode normal
     search::destroy_global_env();
     search::unserialize_search($current_search);
     return $litteral;
 }
开发者ID:noble82,项目名称:proyectos-ULS,代码行数:22,代码来源:search.class.php

示例13: 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;
 }
开发者ID:bouchra012,项目名称:PMB,代码行数:32,代码来源:pmbesOPACEmpr.class.php

示例14: get_last_history

function get_last_history()
{
    global $search_type;
    global $opac_search_other_function;
    global $facette_test;
    global $reinit_facette;
    if ($reinit_facette == 1) {
        unset($_SESSION["lq_facette"]);
        unset($_SESSION["lq_facette_search"]);
        unset($_SESSION["lq_facette_test"]);
    }
    $search_type = $_SESSION["search_type" . $_SESSION["last_query"]];
    $facette_test = $_SESSION["lq_facette_test"];
    switch ($search_type) {
        case "simple_search":
            if (!$facette_test) {
                global $user_query, $mode, $count, $typdoc, $clause, $clause_bull, $clause_bull_num_notice, $tri, $pert, $page, $l_typdoc, $join, $id_thes;
                $user_query = $_SESSION["lq_user_query"];
                $mode = $_SESSION["lq_mode"];
                $count = $_SESSION["lq_count"];
                $typdoc = $_SESSION["lq_typdoc"];
                $clause = $_SESSION["lq_clause"];
                $clause_bull = $_SESSION["lq_clause_bull"];
                $clause_bull_num_notice = $_SESSION["lq_clause_bull_num_notice"];
                $tri = $_SESSION["lq_tri"];
                $pert = $_SESSION["lq_pert"];
                $page = $_SESSION["lq_page"];
                $affiliate_page = $_SESSION["lq_affiliate_page"];
                $catalog_page = $_SESSION["lq_catalog_page"];
                $l_typdoc = $_SESSION["lq_l_typdoc"];
                $join = $_SESSION["lq_join"];
                $id_thes = $_SESSION["lq_id_thes"];
                $_SESSION["facette"] = $_SESSION["lq_facette"];
                $_SESSION["level1"] = $_SESSION["lq_level1"];
                if ($opac_search_other_function) {
                    search_other_function_get_history($_SESSION["last_query"]);
                }
            }
            break;
        case "extended_search":
            global $page, $mode, $catalog_page, $affiliate_page;
            get_history($_SESSION["last_query"]);
            $page = $_SESSION["lq_page"];
            $affiliate_page = $_SESSION["lq_affiliate_page"];
            $catalog_page = $_SESSION["lq_catalog_page"];
            $mode = $_SESSION["lq_mode"];
            break;
    }
    if ($facette_test) {
        global $page, $mode, $catalog_page, $affiliate_page;
        $_SESSION["facette"] = $_SESSION["lq_facette"];
        $page = $_SESSION["lq_facette_search"]["lq_page"];
        $affiliate_page = $_SESSION["lq_facette_search"]["lq_affiliate_page"];
        $catalog_page = $_SESSION["lq_facette_search"]["lq_catalog_page"];
        $mode = $_SESSION["lq_facette_search"]["lq_mode"];
        search::unserialize_search($_SESSION["lq_facette_search"]["lq_search"]);
        $_SESSION["notice_view" . $_SESSION["last_query"]] = $_SESSION["lq_facette_search"]["lq_notice_view"];
    }
}
开发者ID:bouchra012,项目名称:PMB,代码行数:59,代码来源:rec_history.inc.php

示例15: simple_search_content


//.........这里部分代码省略.........
                            // instanciation de la classe indexation
                            $r1 = $msg["indexint_search"];
                            $ourIndexint = new indexint($_SESSION["last_module_search"]["search_id"]);
                            $r = $r1 . " '" . $ourIndexint->name . " " . $ourIndexint->comment . "'";
                            break;
                        case 'section_see':
                            $resultat = mysql_query("select location_libelle from docs_location where idlocation='" . addslashes($_SESSION["last_module_search"]["search_location"]) . "'");
                            $j = mysql_fetch_array($resultat);
                            $localisation_ = $j["location_libelle"];
                            mysql_free_result($resultat);
                            $resultat = mysql_query("select section_libelle from docs_section where idsection='" . addslashes($_SESSION["last_module_search"]["search_id"]) . "'");
                            $j = mysql_fetch_array($resultat);
                            $section_ = $j["section_libelle"];
                            mysql_free_result($resultat);
                            $r1 = $localisation_ . " => " . $msg["section"];
                            $r = $r1 . " '" . $section_ . "'";
                            break;
                    }
                    $_SESSION["human_query" . $n] = $r;
                    $_SESSION["search_type" . $n] = "module";
                } else {
                    if ($_SESSION["last_query"]) {
                        $n = $_SESSION["last_query"];
                        if ($_SESSION["lq_facette"]) {
                            $facette = true;
                        }
                    } else {
                        $n = $_SESSION["nb_queries"];
                    }
                }
                //générer les critères de la multi_critères
                //Attention ! si on est déjà dans une facette !
                if ($facette) {
                    search::unserialize_search($_SESSION["lq_facette_search"]["lq_search"]);
                } else {
                    global $search;
                    $search[0] = "s_1";
                    $op_ = "EQ";
                    //operateur
                    $op = "op_0_" . $search[0];
                    global ${$op};
                    ${$op} = $op_;
                    //contenu de la recherche
                    $field = "field_0_" . $search[0];
                    $field_ = array();
                    $field_[0] = $n;
                    global ${$field};
                    ${$field} = $field_;
                    //opérateur inter-champ
                    $inter = "inter_0_" . $search[0];
                    global ${$inter};
                    ${$inter} = "";
                    //variables auxiliaires
                    $fieldvar_ = "fieldvar_0_" . $search[0];
                    global ${$fieldvar_};
                    ${$fieldvar_} = "";
                    $fieldvar = ${$fieldvar_};
                }
            }
            if ($search_in_perio) {
                global $search;
                $search[0] = "f_34";
                //opérateur
                $op = "op_0_" . $search[0];
                global ${$op};
                $op_ = "EQ";
开发者ID:bouchra012,项目名称:PMB,代码行数:67,代码来源:simple_search.inc.php


注:本文中的search::unserialize_search方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。