Line 19... |
Line 19... |
19 |
// | |
|
19 |
// | |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
20 |
// | You should have received a copy of the GNU General Public License |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
21 |
// | along with Foobar; if not, write to the Free Software |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
22 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
23 |
// +------------------------------------------------------------------------------------------------------+
|
24 |
// CVS : $Id: moteur_recherche.php,v 1.4 2005-04-14 17:39:34 jpm Exp $
|
24 |
// CVS : $Id: moteur_recherche.php,v 1.5 2005-05-19 12:46:12 jpm Exp $
|
25 |
/**
|
25 |
/**
|
26 |
* Applette : moteur de recherche
|
26 |
* Applette : moteur de recherche
|
27 |
*
|
27 |
*
|
28 |
* Génère un formulaire contenant une zone de saisie permettant de taper un texte à rechercher sur l'ensemble
|
28 |
* Génère un formulaire contenant une zone de saisie permettant de taper un texte à rechercher sur l'ensemble
|
29 |
* des sites gérés par Papyrus.
|
29 |
* des sites gérés par Papyrus.
|
Line 36... |
Line 36... |
36 |
//Auteur original :
|
36 |
//Auteur original :
|
37 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
37 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
38 |
//Autres auteurs :
|
38 |
//Autres auteurs :
|
39 |
*@author Aucun
|
39 |
*@author Aucun
|
40 |
*@copyright Tela-Botanica 2000-2004
|
40 |
*@copyright Tela-Botanica 2000-2004
|
41 |
*@version $Revision: 1.4 $ $Date: 2005-04-14 17:39:34 $
|
41 |
*@version $Revision: 1.5 $ $Date: 2005-05-19 12:46:12 $
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
43 |
*/
|
43 |
*/
|
Line 44... |
Line 44... |
44 |
|
44 |
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
Line 142... |
Line 142... |
142 |
$recherche_papyrus_menu = new Recherche_Papyrus_Menu($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
|
142 |
$recherche_papyrus_menu = new Recherche_Papyrus_Menu($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
|
143 |
$moteur->ajouterRecherche($recherche_papyrus_menu);
|
143 |
$moteur->ajouterRecherche($recherche_papyrus_menu);
|
144 |
$aso_resultats = $moteur->rechercherMotif();
|
144 |
$aso_resultats = $moteur->rechercherMotif();
|
145 |
//$GLOBALS['_DEBOGAGE_'] = '<pre>'.print_r($aso_resultats, true).'</pre>';
|
145 |
//$GLOBALS['_DEBOGAGE_'] = '<pre>'.print_r($aso_resultats, true).'</pre>';
|
146 |
$retour_resultats .= '<h1>'.MORE_LG_RESULTAT_TITRE.'</h1>'."\n";
|
146 |
$retour_resultats .= '<h1>'.MORE_LG_RESULTAT_TITRE.'</h1>'."\n";
|
147 |
$retour_resultats .= '<ul>'."\n";
|
147 |
$retour_resultats .= '<ul id="more_resultat">'."\n";
|
148 |
foreach ($aso_resultats as $val) {
|
148 |
foreach ($aso_resultats as $val) {
|
149 |
if (!empty($val['url'])) {
|
149 |
if (!empty($val['url'])) {
|
150 |
$retour_resultats .= '<li>'."\n";
|
150 |
$retour_resultats .= '<li>'."\n";
|
151 |
$retour_resultats .= '<h2><a href="'.$val['url'].'" ';
|
151 |
$retour_resultats .= '<h2><a href="'.$val['url'].'" ';
|
152 |
if ($val['hreflang'] != '') {
|
152 |
if ($val['hreflang'] != '') {
|
Line 235... |
Line 235... |
235 |
|
235 |
|
236 |
|
236 |
|
237 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
237 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
238 |
*
|
- |
|
239 |
* $Log: not supported by cvs2svn $
|
- |
|
240 |
* Revision 1.4 2005/04/14 17:39:34 jpm
|
- |
|
241 |
* Amélioration du moteur de rechercher :
|
- |
|
242 |
* - pourcentage
|
238 |
*
|
243 |
* - ajout d'info
|
239 |
* $Log: not supported by cvs2svn $
|
244 |
*
|
240 |
* Revision 1.3 2005/02/22 19:27:21 jpm
|
245 |
* Revision 1.3 2005/02/22 19:27:21 jpm
|
241 |
* Changement de nom de variables.
|
246 |
* Changement de nom de variables.
|
242 |
* Suppression de l'attribut nam de la balise form via une méthode de HTML_Common.
|
247 |
* Suppression de l'attribut nam de la balise form via une méthode de HTML_Common.
|