format($value)){ if($ontology_search_field) $ontology_search_field.=", "; $ontology_search_field.=$msg["ontology_".$tmp2]; } } print str_replace("!!ontology_search_field!!",$ontology_search_field,$sel_header); // traitement en entree des requetes utilisateur if ($deb_rech) { $f_user_input = $deb_rech ; } if(isset($f_user_input) && $f_user_input==''){ $f_user_input="*"; } 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; } } // nombre de references par pages $nb_per_page = 10; if ($nb_per_page_a_select != "") { $nb_per_page = $nb_per_page_a_select ; } // affichage des membres de la page $sel_search_form = str_replace("!!deb_rech!!", stripslashes($f_user_input), $sel_search_form); print $sel_search_form; print $jscript; //show_results($dbh, $user_input, $nbr_lignes, $page); $params['objects'] = $t_objs; $params['user_input'] = $user_input; $res = $sh->search_objects($params); if(!is_array($res)){ print $res; print "
"; }else{ $nbr_lignes = count($res); if(!$page) $page=1; $debut =($page-1)*$nb_per_page; if($nbr_lignes){ for ($i = $debut; $i < ($nb_per_page+$debut); $i++) { $label=$sh->get_object_label($res[$i]["subject_type"], $res[$i]["subject_uri"]); print pmb_bidi(" ". htmlentities($label,ENT_QUOTES, $charset)."
"); } // constitution des liens $nbepages = ceil($nbr_lignes/$nb_per_page); $suivante = $page+1; $precedente = $page-1; // affichage pagination print "
 
"; $url_base = $base_url."&user_input=".rawurlencode(stripslashes($user_input)); $nav_bar = aff_pagination ($url_base, $nbr_lignes, $nb_per_page, $page, 10, false, true) ; print $nav_bar; print "
"; } } print $sel_footer; ?>