/trunk/papyrus/applications/afficheur/afficheur.php |
---|
19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: afficheur.php,v 1.12 2006-11-21 15:50:05 jp_milcent Exp $ |
// CVS : $Id: afficheur.php,v 1.13 2006-11-21 18:52:20 jp_milcent Exp $ |
/** |
* Application réalisant l'affichage du contenu stocké dans Papyrus. |
* |
31,7 → 31,7 |
//Autres auteurs : |
*@author Alexandre GRANIER <alexandrel@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.12 $ $Date: 2006-11-21 15:50:05 $ |
*@version $Revision: 1.13 $ $Date: 2006-11-21 18:52:20 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
302,7 → 302,10 |
if (isset($_GET['var_recherche'])) { |
$tab_mots = explode(' ', rawurldecode($_GET['var_recherche'])); |
foreach ($tab_mots as $mot) { |
$retour = str_replace($mot, '<span class="surlignage">'.$mot.'</span>', $retour); |
if (strlen($mot) >= 2) { |
$regexp = '/(>[^<]*)('.$mot.'\b)/Uis'; |
$retour = preg_replace($regexp, '$1<span class="surlignage">$2</span>', $retour); |
} |
} |
} |
325,6 → 328,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.12 2006/11/21 15:50:05 jp_milcent |
* Ajout du surlignage des mots passé dans la query string via la variable var_recherche. |
* |
* Revision 1.11 2006/10/16 15:49:07 ddelon |
* Refactorisation code mulitlinguisme et gestion menu invisibles |
* |
/trunk/papyrus/applettes/moteur_recherche/bibliotheque/more_recherche_papyrus_menu.class.php |
---|
21,7 → 21,7 |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: more_recherche_papyrus_menu.class.php,v 1.10 2006-11-20 09:36:59 jp_milcent Exp $ |
// CVS : $Id: more_recherche_papyrus_menu.class.php,v 1.11 2006-11-21 18:52:20 jp_milcent Exp $ |
/** |
* Classe permettant d'effectuer des recherches sur les informations des menus de Papyrus. |
* |
38,7 → 38,7 |
//Autres auteurs : |
*@author aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.10 $ $Date: 2006-11-20 09:36:59 $ |
*@version $Revision: 1.11 $ $Date: 2006-11-21 18:52:20 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
105,7 → 105,9 |
$une_url =& new Pap_URL(PAP_URL); |
$une_url->setId($menu_id); |
$aso_resultat['url_simple'] = $une_url->getURL(); |
$une_url->addQueryString('var_recherche', $motif); |
$aso_resultat['url'] = $une_url->getURL(); |
$une_url->removeQueryString('var_recherche'); |
// Récupération du titre de la page |
if (trim($aso_menu_info['gm_nom']) != '') { |
146,6 → 148,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.10 2006/11/20 09:36:59 jp_milcent |
* Correction bogue zéro résultat et ajout d'url simple pour indiquer la page de l'article. |
* |
* Revision 1.9 2006/10/17 09:21:40 jp_milcent |
* Mise en commun des spécifications de la recherche. |
* |