/trunk/papyrus/applettes/moteur_recherche/moteur_recherche.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: moteur_recherche.php,v 1.4 2005-04-14 17:39:34 jpm Exp $ |
// CVS : $Id: moteur_recherche.php,v 1.5 2005-05-19 12:46:12 jpm Exp $ |
/** |
* Applette : moteur de recherche |
* |
38,7 → 38,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.4 $ $Date: 2005-04-14 17:39:34 $ |
*@version $Revision: 1.5 $ $Date: 2005-05-19 12:46:12 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
144,7 → 144,7 |
$aso_resultats = $moteur->rechercherMotif(); |
//$GLOBALS['_DEBOGAGE_'] = '<pre>'.print_r($aso_resultats, true).'</pre>'; |
$retour_resultats .= '<h1>'.MORE_LG_RESULTAT_TITRE.'</h1>'."\n"; |
$retour_resultats .= '<ul>'."\n"; |
$retour_resultats .= '<ul id="more_resultat">'."\n"; |
foreach ($aso_resultats as $val) { |
if (!empty($val['url'])) { |
$retour_resultats .= '<li>'."\n"; |
237,6 → 237,11 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.4 2005/04/14 17:39:34 jpm |
* Amélioration du moteur de rechercher : |
* - pourcentage |
* - ajout d'info |
* |
* Revision 1.3 2005/02/22 19:27:21 jpm |
* Changement de nom de variables. |
* Suppression de l'attribut nam de la balise form via une méthode de HTML_Common. |
/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.2 2005-04-14 17:39:34 jpm Exp $ |
// CVS : $Id: more_recherche_papyrus_menu.class.php,v 1.3 2005-05-19 12:46:12 jpm 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.2 $ $Date: 2005-04-14 17:39:34 $ |
*@version $Revision: 1.3 $ $Date: 2005-05-19 12:46:12 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
99,9 → 99,11 |
$aso_resultat['hreflang'] = htmlentities($aso_menu_info['gm_ce_i18n']); |
$raccourci_txt = ''; |
$aso_resultat['accesskey'] = htmlentities($aso_menu_info['gm_raccourci_clavier']); |
$raccourci_txt = MORE_LG_RESULTAT_CADRE_OUVRIR. |
MORE_LG_RESULTAT_RACCOURCI.$menu_accesskey.' '. |
MORE_LG_RESULTAT_CADRE_FERMER.MORE_LG_RESULTAT_POINT.' '; |
if ($aso_resultat['accesskey'] != '') { |
$raccourci_txt = MORE_LG_RESULTAT_CADRE_OUVRIR. |
MORE_LG_RESULTAT_RACCOURCI.$aso_resultat['accesskey'].' '. |
MORE_LG_RESULTAT_CADRE_FERMER.MORE_LG_RESULTAT_POINT.' '; |
} |
$aso_resultat['title'] = htmlentities($raccourci_txt.$aso_menu_info['gm_description_resume']); |
$aso_resultat['description'] = htmlentities($aso_menu_info['gm_description_libre']); |
139,6 → 141,11 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2005/04/14 17:39:34 jpm |
* Amélioration du moteur de rechercher : |
* - pourcentage |
* - ajout d'info |
* |
* Revision 1.1 2004/12/07 10:24:06 jpm |
* Moteur de recherche version de départ. |
* |
/trunk/papyrus/applettes/moteur_recherche/bibliotheque/more_recherche.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.class.php,v 1.2 2005-04-14 17:39:34 jpm Exp $ |
// CVS : $Id: more_recherche.class.php,v 1.3 2005-05-19 12:46:12 jpm Exp $ |
/** |
* Classe permettant d'effectuer des recherches sur les métas informations des menus. |
* |
34,7 → 34,7 |
//Autres auteurs : |
*@author aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.2 $ $Date: 2005-04-14 17:39:34 $ |
*@version $Revision: 1.3 $ $Date: 2005-05-19 12:46:12 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
119,7 → 119,7 |
usort($aso_resultats, 'comparer'); |
$pds_max = $aso_resultats[0]['poids']; |
for ($i = 0 ; $i < count($aso_resultats) ; $i++) { |
$aso_resultats[$i]['score'] = (100 / $pds_max) * $aso_resultats[$i]['poids']; |
$aso_resultats[$i]['score'] = round((100 / $pds_max) * $aso_resultats[$i]['poids'], 1); |
} |
return $aso_resultats; |
174,6 → 174,11 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.2 2005/04/14 17:39:34 jpm |
* Amélioration du moteur de rechercher : |
* - pourcentage |
* - ajout d'info |
* |
* Revision 1.1 2004/12/07 10:24:06 jpm |
* Moteur de recherche version de départ. |
* |