Subversion Repositories Applications.papyrus

Rev

Rev 1051 | Rev 1090 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1051 Rev 1052
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.15 2006-11-14 16:10:13 jp_milcent Exp $
24
// CVS : $Id: moteur_recherche.php,v 1.16 2006-11-20 09:36:59 jp_milcent 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.15 $ $Date: 2006-11-14 16:10:13 $
41
*@version       $Revision: 1.16 $ $Date: 2006-11-20 09:36:59 $
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
*/
43
*/
Line 44... Line 44...
44
 
44
 
45
// +------------------------------------------------------------------------------------------------------+
45
// +------------------------------------------------------------------------------------------------------+
Line 147... Line 147...
147
        $moteur->ajouterRecherche($recherche_papyrus_menu);
147
        $moteur->ajouterRecherche($recherche_papyrus_menu);
148
        $moteur->ajouterRecherche($recherche_spip_article);
148
        $moteur->ajouterRecherche($recherche_spip_article);
149
        $GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'] = $moteur->rechercherMotif();
149
        $GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'] = $moteur->rechercherMotif();
150
        //$GLOBALS['_DEBOGAGE_'] = '<pre>'.print_r($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'], true).'</pre>';
150
        //$GLOBALS['_DEBOGAGE_'] = '<pre>'.print_r($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'], true).'</pre>';
151
        $nbre_pages = count($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats']);
151
        $nbre_pages = count($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats']);
-
 
152
		$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['nbre_pages'] = $nbre_pages;
152
		$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['vide'] = MORE_LG_RESULTAT_VIDE;
153
		$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['vide'] = MORE_LG_RESULTAT_VIDE;
153
        if ($nbre_pages <= 1) {
154
        if ($nbre_pages <= 1) {
154
        	$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['titre'] = sprintf(MORE_LG_RESULTAT_TITRE, $nbre_pages);
155
        	$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['titre'] = sprintf(MORE_LG_RESULTAT_TITRE, $nbre_pages);
155
        } else {
156
        } else {
156
        	$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['titre'] = sprintf(MORE_LG_RESULTAT_TITRE_PLURIEL, $nbre_pages);
157
        	$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['titre'] = sprintf(MORE_LG_RESULTAT_TITRE_PLURIEL, $nbre_pages);
Line 206... Line 207...
206
 
207
 
207
 
208
 
208
/* +--Fin du code ----------------------------------------------------------------------------------------+
209
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
210
*
-
 
211
* $Log: not supported by cvs2svn $
-
 
212
* Revision 1.15  2006/11/14 16:10:13  jp_milcent
-
 
213
* Extraction du XHTML et utilisation de squelettes à la place.
209
*
214
* Possibilité de configurer le squlette voulu via le fichier de conf.
210
* $Log: not supported by cvs2svn $
215
*
211
* Revision 1.14  2006/10/10 13:28:14  jp_milcent
216
* Revision 1.14  2006/10/10 13:28:14  jp_milcent
212
* Suppression d'une variable et utilisation de la constante PAP_URL
217
* Suppression d'une variable et utilisation de la constante PAP_URL
213
*
218
*