add_register("selectors_class",true); //L'usager a demandé à voir plus de résultats dans sa liste paginée if(isset($nb_per_page_custom) && $nb_per_page_custom*1) { $nb_per_page = $nb_per_page_custom; } if(!isset($nb_per_page) || !$nb_per_page) { $nb_per_page = 10; } print ""; switch($what) { case 'editeur': $bt_ajouter ="no"; $selector_instance = new selector_publisher(stripslashes($user_input)); break; case 'collection': $bt_ajouter ="no"; $selector_instance = new selector_collection(stripslashes($user_input)); break; case 'subcollection': $bt_ajouter ="no"; $selector_instance = new selector_subcollection(stripslashes($user_input)); break; case 'auteur': $bt_ajouter ="no"; $selector_instance = new selector_author(stripslashes($user_input)); break; case 'country': $selector_instance = new selector_country(stripslashes($user_input)); break; case 'lang': $selector_instance = new selector_lang(stripslashes($user_input)); break; case 'function': $selector_instance = new selector_func(stripslashes($user_input)); break; case 'categorie': $bt_ajouter ="no"; $selector_instance = new selector_category(stripslashes($user_input)); break; case 'serie': $bt_ajouter ="no"; $selector_instance = new selector_serie(stripslashes($user_input)); break; case 'indexint': $bt_ajouter ="no"; $selector_instance = new selector_indexint(stripslashes($user_input)); break; case 'calendrier': require_once('./selectors/calendrier.inc.php'); break; case 'perso': include('./selectors/perso.inc.php'); break; case 'titre_uniforme': $bt_ajouter ="no"; $selector_instance = new selector_titre_uniforme(stripslashes($user_input)); break; case 'music_key' : $selector_instance = new selector_music_key(stripslashes($user_input)); break; case 'music_form' : $selector_instance = new selector_music_form(stripslashes($user_input)); break; case 'query_list': $selector_instance = new selector_query_list(stripslashes($user_input)); $selector_instance->set_search_xml_file($search_xml_file); $selector_instance->set_search_field_id($search_field_id); break; case 'list': $selector_instance = new selector_list(stripslashes($user_input)); $selector_instance->set_search_xml_file($search_xml_file); $selector_instance->set_search_field_id($search_field_id); break; case 'marc_list': $selector_instance = new selector_marc_list(stripslashes($user_input)); $selector_instance->set_search_xml_file($search_xml_file); $selector_instance->set_search_field_id($search_field_id); break; case 'authperso' : require("./selectors/classes/selector_authperso.class.php"); $selector_instance = new selector_authperso(stripslashes($user_input)); break; case 'ontology' : if (!isset($range)) $range = 0; if (!isset($page)) $page = 1; if(isset($parent_id) && $parent_id){ $deb_rech= ""; } $base_url = selector_ontology::get_base_url(); require_once($class_path."/autoloader.class.php"); $autoloader = new autoloader(); $autoloader->add_register("onto_class",true); $selector_instance = new selector_ontology(stripslashes($deb_rech)); break; case 'keyword': $selector_instance = new selector_keyword(stripslashes($user_input)); break; case 'contribution': $selector_instance = new selector_contribution(stripslashes($user_input)); break; default: print ""; break; } if(isset($selector_instance) && is_object($selector_instance)) { global $selector_data; if (isset($selector_data)) { $selector_instance->set_data(stripslashes($selector_data)); } $selector_instance->proceed(); } if($what != 'categorie') { print $popup_footer; } pmb_mysql_close($dbh);