window.close();";
} else if ($n==1) { //1 seul plan de classement
$id_pclass = mysql_result($r,0,0);
$tpl_pclass = "";
} else { //plusieurs plans de classements
$tpl_pclass = "";
}
} else {
$id_pclass=$thesaurus_classement_defaut;
$tpl_pclass = "";
}
$base_url.= "&id_pclass=$id_pclass";
// contenu popup sélection plan de classement
require('./selectors/templates/sel_indexint.tpl.php');
$sel_search_form = str_replace('!!pclassement!!', $tpl_pclass, $sel_search_form);
// affichage du header
print $sel_header;
// traitement en entrée des requêtes utilisateur
if ($deb_rech) $f_user_input = $deb_rech ;
if($f_user_input=='' && $user_input=='') {
$user_input='';
} else {
// traitement de la saisie utilisateur
if ($user_input) $f_user_input=$user_input;
if (($f_user_input)&&(!$user_input)) $user_input=$f_user_input;
}
// affichage des membres de la page
$sel_search_form = str_replace('!!deb_rech!!', htmlentities(stripslashes($f_user_input),ENT_QUOTES,$charset), $sel_search_form);
if ((string)$exact=='') $exact=1;
if ($exact) {
$sel_search_form = str_replace('!!check1!!', "checked='checked' ", $sel_search_form);
$sel_search_form = str_replace('!!check0!!', '', $sel_search_form);
} else {
$sel_search_form = str_replace('!!check1!!', '', $sel_search_form);
$sel_search_form = str_replace('!!check0!!', "checked='checked' ", $sel_search_form);
}
print $sel_search_form;
print $jscript;
show_results($dbh, $user_input, $nbr_lignes, $page);
function show_results($dbh, $user_input, $nbr_lignes=0, $page=0, $id=0) {
global $dbh,$msg,$charset;
global $nb_per_page;
global $base_url;
global $caller;
global $no_display;
global $exact;
global$thesaurus_classement_mode_pmb;
global $id_pclass,$typdoc;
$pclass_and_req=" num_pclass='$id_pclass' and id_pclass = num_pclass ";
// on récupère le nombre de lignes qui vont bien
if (!$id) {
if($user_input=='') {
$requete = "SELECT COUNT(1) FROM indexint,pclassement where $pclass_and_req ";
} else {
if (!$exact) {
$aq=new analyse_query(stripslashes($user_input));
if ($aq->error) {
print '