Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 372 → Rev 373

/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.5 2005-05-19 12:46:12 jpm Exp $
// CVS : $Id: moteur_recherche.php,v 1.6 2005-05-25 13:49:22 jpm Exp $
/**
* Applette : moteur de recherche
*
38,7 → 38,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.5 $ $Date: 2005-05-19 12:46:12 $
*@version $Revision: 1.6 $ $Date: 2005-05-25 13:49:22 $
// +------------------------------------------------------------------------------------------------------+
*/
 
144,43 → 144,47
$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 id="more_resultat">'."\n";
foreach ($aso_resultats as $val) {
if (!empty($val['url'])) {
$retour_resultats .= '<li>'."\n";
$retour_resultats .= '<h2><a href="'.$val['url'].'" ';
if ($val['hreflang'] != '') {
$retour_resultats .= 'hreflang="'.$val['hreflang'].'" ';
if (count($aso_resultats) == 0) {
$retour_resultats .= '<p class="information">'.MORE_LG_RESULTAT_VIDE.'</p>'."\n";
} else {
$retour_resultats .= '<ul id="more_resultat">'."\n";
foreach ($aso_resultats as $val) {
if (!empty($val['url'])) {
$retour_resultats .= '<li>'."\n";
$retour_resultats .= '<h2><a href="'.$val['url'].'" ';
if ($val['hreflang'] != '') {
$retour_resultats .= 'hreflang="'.$val['hreflang'].'" ';
}
if ($val['accesskey'] != '') {
$retour_resultats .= 'accesskey="'.$val['accesskey'].'" ';
}
if ($val['title'] != '') {
$retour_resultats .= 'title="'.$val['title'].'" ';
}
$retour_resultats .= '>'.$val['titre'].'</a></h2>';
$retour_resultats .= '<dl>'."\n";
//if (trim($val['poids']) != '') {
// $retour_resultats .= '<dt>'.MORE_LG_RESULTAT_POIDS.'</dt>'."\n";
// $retour_resultats .= '<dd>'.$val['poids'].'</dd>'."\n";
//}
if (trim($val['score']) != '') {
$retour_resultats .= '<dt>'.MORE_LG_RESULTAT_SCORE.'</dt>'."\n";
$retour_resultats .= '<dd>'.$val['score'].MORE_LG_RESULTAT_POURCENT.'</dd>'."\n";
}
if (trim($val['date_creation']) != '') {
$retour_resultats .= '<dt>'.MORE_LG_RESULTAT_DATE_CREATION.'</dt>'."\n";
$retour_resultats .= '<dd>'.$val['date_creation'].'</dd>'."\n";
}
if (trim($val['description']) != '') {
$retour_resultats .= '<dt>'.MORE_LG_RESULTAT_DESCRIPTION.'</dt>'."\n";
$retour_resultats .= '<dd>'.$val['description'].'</dd>'."\n";
}
$retour_resultats .= '</dl>'."\n";
$retour_resultats .= '</li>'."\n";
}
if ($val['accesskey'] != '') {
$retour_resultats .= 'accesskey="'.$val['accesskey'].'" ';
}
if ($val['title'] != '') {
$retour_resultats .= 'title="'.$val['title'].'" ';
}
$retour_resultats .= '>'.$val['titre'].'</a></h2>';
$retour_resultats .= '<dl>'."\n";
//if (trim($val['poids']) != '') {
// $retour_resultats .= '<dt>'.MORE_LG_RESULTAT_POIDS.'</dt>'."\n";
// $retour_resultats .= '<dd>'.$val['poids'].'</dd>'."\n";
//}
if (trim($val['score']) != '') {
$retour_resultats .= '<dt>'.MORE_LG_RESULTAT_SCORE.'</dt>'."\n";
$retour_resultats .= '<dd>'.$val['score'].MORE_LG_RESULTAT_POURCENT.'</dd>'."\n";
}
if (trim($val['date_creation']) != '') {
$retour_resultats .= '<dt>'.MORE_LG_RESULTAT_DATE_CREATION.'</dt>'."\n";
$retour_resultats .= '<dd>'.$val['date_creation'].'</dd>'."\n";
}
if (trim($val['description']) != '') {
$retour_resultats .= '<dt>'.MORE_LG_RESULTAT_DESCRIPTION.'</dt>'."\n";
$retour_resultats .= '<dd>'.$val['description'].'</dd>'."\n";
}
$retour_resultats .= '</dl>'."\n";
$retour_resultats .= '</li>'."\n";
}
$retour_resultats .= '</ul>'."\n";
}
$retour_resultats .= '</ul>'."\n";
$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_NAVIGATION'] = '';
$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_TETE'] = '';
$GLOBALS['_PAPYRUS_']['rendu']['CONTENU_CORPS'] = $retour_resultats;
208,7 → 212,7
$id = 'more_motif';
$aso_attributs = array( 'id'=>$id, 'tabindex' => $tab_index++, 'size' => MORE_FORM_MOTIF_SIZE, 'maxlength' => MORE_FORM_MOTIF_MAXLENGTH,
'onclick' => "javascript: this.value='';");
'accesskey' => MORE_LG_FORM_ACCESSKEY, 'onclick' => "javascript: this.value='';");
$label = '<label for="'.$id.'">'.MORE_LG_FORM_MOTIF.'</label>';
$more_form->addElement('text', $id, $label, $aso_attributs);
237,6 → 241,11
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.5 2005/05/19 12:46:12 jpm
* Correction bogue accesskey.
* Ajout d'un id à la liste.
* Arrondissement des score.
*
* Revision 1.4 2005/04/14 17:39:34 jpm
* Amélioration du moteur de rechercher :
* - pourcentage