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.23 2008-08-26 15:31:16 alexandre_tb Exp $
|
24 |
// CVS : $Id: moteur_recherche.php,v 1.24 2008-10-21 15:24:50 aperonnet 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.23 $ $Date: 2008-08-26 15:31:16 $
|
41 |
*@version $Revision: 1.24 $ $Date: 2008-10-21 15:24:50 $
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
42 |
// +------------------------------------------------------------------------------------------------------+
|
43 |
*/
|
43 |
*/
|
Line 44... |
Line 44... |
44 |
|
44 |
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
45 |
// +------------------------------------------------------------------------------------------------------+
|
Line 56... |
Line 56... |
56 |
require_once GEN_CHEMIN_APPLETTE.'moteur_recherche/configuration/more_configuration.inc.php';
|
56 |
require_once GEN_CHEMIN_APPLETTE.'moteur_recherche/configuration/more_configuration.inc.php';
|
57 |
/** Inclusion du fichier de configuration des Spip.*/
|
57 |
/** Inclusion du fichier de configuration des Spip.*/
|
58 |
require_once GEN_CHEMIN_APPLETTE.'moteur_recherche/configuration/more_config_spip.inc.php';
|
58 |
require_once GEN_CHEMIN_APPLETTE.'moteur_recherche/configuration/more_config_spip.inc.php';
|
59 |
/** Inclusion du fichier de configuration de l appli projet.*/
|
59 |
/** Inclusion du fichier de configuration de l appli projet.*/
|
60 |
require_once GEN_CHEMIN_APPLETTE.'moteur_recherche/configuration/more_config_projet.inc.php';
|
60 |
require_once GEN_CHEMIN_APPLETTE.'moteur_recherche/configuration/more_config_projet.inc.php';
|
- |
|
61 |
/** Inclusion du fichier de configuration de l appli bazar.*/
|
- |
|
62 |
require_once GEN_CHEMIN_APPLETTE.'moteur_recherche/configuration/more_config_bazar.inc.php';
|
Line 61... |
Line 63... |
61 |
|
63 |
|
62 |
// Inclusion des fichiers de traduction de l'appli ADME de Papyrus
|
64 |
// Inclusion des fichiers de traduction de l'appli ADME de Papyrus
|
63 |
if (file_exists(MORE_CHEMIN_LANGUE.'more_langue_'.$GLOBALS['_GEN_commun']['i18n'].'.inc.php')) {
|
65 |
if (file_exists(MORE_CHEMIN_LANGUE.'more_langue_'.$GLOBALS['_GEN_commun']['i18n'].'.inc.php')) {
|
64 |
/** Inclusion du fichier de traduction suite à la transaction avec le navigateur.*/
|
66 |
/** Inclusion du fichier de traduction suite à la transaction avec le navigateur.*/
|
Line 144... |
Line 146... |
144 |
require_once MORE_CHEMIN_BIBLIO.'more_recherche_papyrus_menu.class.php';
|
146 |
require_once MORE_CHEMIN_BIBLIO.'more_recherche_papyrus_menu.class.php';
|
145 |
/** Inclusion de la classe Recherche_Spip_Article.*/
|
147 |
/** Inclusion de la classe Recherche_Spip_Article.*/
|
146 |
require_once MORE_CHEMIN_BIBLIO.'more_recherche_spip_article.class.php';
|
148 |
require_once MORE_CHEMIN_BIBLIO.'more_recherche_spip_article.class.php';
|
147 |
/** Inclusion de la classe Recherche_Projet.*/
|
149 |
/** Inclusion de la classe Recherche_Projet.*/
|
148 |
require_once MORE_CHEMIN_BIBLIO.'more_recherche_projet.class.php';
|
150 |
require_once MORE_CHEMIN_BIBLIO.'more_recherche_projet.class.php';
|
- |
|
151 |
/** inclusion de la classe Recheche Bazar. */
|
- |
|
152 |
require_once MORE_CHEMIN_BIBLIO.'more_recherche_bazar.class.php';
|
149 |
$moteur = new More_Recherche($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
|
153 |
$moteur = new More_Recherche($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
|
150 |
$recherche_papyrus_menu = new More_Recherche_Papyrus_Menu($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
|
154 |
$recherche_papyrus_menu = new More_Recherche_Papyrus_Menu($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
|
151 |
$recherche_spip_article = new More_Recherche_Spip_Article($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
|
155 |
$recherche_spip_article = new More_Recherche_Spip_Article($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
|
152 |
$recherche_projet = new More_Recherche_Projet($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
|
156 |
$recherche_projet = new More_Recherche_Projet($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
|
- |
|
157 |
$recherche_bazar = new More_Recherche_Bazar($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
|
153 |
$moteur->ajouterRecherche($recherche_papyrus_menu);
|
158 |
$moteur->ajouterRecherche($recherche_papyrus_menu);
|
154 |
$moteur->ajouterRecherche($recherche_spip_article);
|
159 |
$moteur->ajouterRecherche($recherche_spip_article);
|
155 |
$moteur->ajouterRecherche($recherche_projet);
|
160 |
$moteur->ajouterRecherche($recherche_projet);
|
- |
|
161 |
$moteur->ajouterRecherche($recherche_bazar);
|
156 |
$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'] = $moteur->rechercherMotif();
|
162 |
$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'] = $moteur->rechercherMotif();
|
157 |
//$GLOBALS['_DEBOGAGE_'] = '<pre>'.print_r($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'], true).'</pre>';
|
163 |
//$GLOBALS['_DEBOGAGE_'] = '<pre>'.print_r($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'], true).'</pre>';
|
158 |
$nbre_pages = count($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats']);
|
164 |
$nbre_pages = count($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats']);
|
159 |
$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['nbre_pages'] = $nbre_pages;
|
165 |
$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['nbre_pages'] = $nbre_pages;
|
160 |
$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['vide'] = MORE_LG_RESULTAT_VIDE;
|
166 |
$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['vide'] = MORE_LG_RESULTAT_VIDE;
|
Line 214... |
Line 220... |
214 |
|
220 |
|
215 |
|
221 |
|
216 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
222 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
223 |
*
|
- |
|
224 |
* $Log: not supported by cvs2svn $
|
- |
|
225 |
* Revision 1.23 2008-08-26 15:31:16 alexandre_tb
|
217 |
*
|
226 |
* ajout du moteur de recherche dans l'appli projet
|
218 |
* $Log: not supported by cvs2svn $
|
227 |
*
|
219 |
* Revision 1.22 2007-11-30 14:02:48 alexandre_tb
|
228 |
* Revision 1.22 2007-11-30 14:02:48 alexandre_tb
|
220 |
* Fusion avec la livraison
|
229 |
* Fusion avec la livraison
|
221 |
*
|
230 |
*
|