Subversion Repositories Applications.papyrus

Rev

Rev 1988 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1988 Rev 2058
Line 149... Line 149...
149
        /** Inclusion de la classe Recherche_Projet.*/
149
        /** Inclusion de la classe Recherche_Projet.*/
150
        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. */
151
        /** inclusion de la classe Recheche Bazar. */
152
        require_once MORE_CHEMIN_BIBLIO.'more_recherche_bazar.class.php';
152
        require_once MORE_CHEMIN_BIBLIO.'more_recherche_bazar.class.php';
153
        $moteur = new More_Recherche($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
153
        $moteur = new More_Recherche($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
-
 
154
    
154
        $recherche_papyrus_menu = new More_Recherche_Papyrus_Menu($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
155
    	$recherche_papyrus_menu = new More_Recherche_Papyrus_Menu($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
-
 
156
		$moteur->ajouterRecherche($recherche_papyrus_menu);
-
 
157
		
-
 
158
        if (!empty($GLOBALS['_MOTEUR_RECHERCHE_']['spip']))	{
155
        $recherche_spip_article = new More_Recherche_Spip_Article($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
159
        	$recherche_spip_article = new More_Recherche_Spip_Article($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
-
 
160
        	$moteur->ajouterRecherche($recherche_spip_article);	
-
 
161
        }
-
 
162
        
156
        $recherche_projet = new More_Recherche_Projet($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
163
        if (!empty($GLOBALS['_MOTEUR_RECHERCHE_']['bazar'][0]))	{
157
        $recherche_bazar = new More_Recherche_Bazar($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
164
        	$recherche_bazar = new More_Recherche_Bazar($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
158
        $moteur->ajouterRecherche($recherche_papyrus_menu);
165
        	$moteur->ajouterRecherche($recherche_bazar);		
-
 
166
        }
-
 
167
        
159
        $moteur->ajouterRecherche($recherche_spip_article);
168
        if ($GLOBALS['_MOTEUR_RECHERCHE_']['projet']['url']!="")	{
160
        $moteur->ajouterRecherche($recherche_projet);
169
        	$recherche_projet = new More_Recherche_Projet($_SESSION['_MOTEUR_RECHERCHE_']['rechercher']['more_motif']);
161
        $moteur->ajouterRecherche($recherche_bazar);
170
        	$moteur->ajouterRecherche($recherche_projet);
-
 
171
        }
-
 
172
        
162
        $GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'] = $moteur->rechercherMotif();
173
        $GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'] = $moteur->rechercherMotif();
163
        //$GLOBALS['_DEBOGAGE_'] = '<pre>'.print_r($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'], true).'</pre>';
174
        //$GLOBALS['_DEBOGAGE_'] = '<pre>'.print_r($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats'], true).'</pre>';
164
        $nbre_pages = count($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats']);
175
        $nbre_pages = count($GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['resultats']);
165
		$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['nbre_pages'] = $nbre_pages;
176
		$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['nbre_pages'] = $nbre_pages;
166
		$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['vide'] = MORE_LG_RESULTAT_VIDE;
177
		$GLOBALS['_MOTEUR_RECHERCHE_']['resultat']['vide'] = MORE_LG_RESULTAT_VIDE;