Ejemplo n.º 1
0
     while ($r = pmb_mysql_fetch_object($execute_query)) {
         $array_selector[$r->id_mot] = $r->mot;
     }
     pmb_mysql_free_result($execute_query);
     if (count($array_selector)) {
         //dédoublonnage du tableau final
         $array_selector = array_unique($array_selector);
         //tri alphanumérique du tableau
         asort($array_selector);
     }
     $origine = "ARRAY";
     break;
 case 'tags':
     require_once "{$class_path}/tags.class.php";
     $tags = new tags();
     $array_selector = $tags->get_array($start, $pos_cursor);
     $taille_search = $tags->get_taille_search();
     $origine = "ARRAY";
     break;
 case 'perio':
     $requete = "select tit1, notice_id from notices where niveau_biblio='s' and niveau_hierar='1' and tit1 like '" . addslashes($start) . "%' order by 1 limit 20";
     $origine = "SQL";
     break;
 case 'bull':
     $link_bull = " and bulletin_notice ='" . $linkfield . "'";
     $requete = "select bulletin_numero, bulletin_id from bulletins where (bulletin_numero like '" . addslashes($start) . "%' or bulletin_titre like '" . addslashes($start) . "%')  {$link_bull} order by 1 limit 20";
     $origine = "SQL";
     break;
 case 'expl_cote':
     if ($pmb_prefill_cote_ajax) {
         include "./catalog/expl/ajax/{$pmb_prefill_cote_ajax}";