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: recherche_nom_latin_xhtml.php,v 1.5 2005-03-15 13:45:42 tam Exp $ |
// CVS : $Id: recherche_nom_latin_xhtml.php,v 1.6 2005-06-09 18:09:52 jpm Exp $ |
/** |
* Vue affichant la liste des noms latins correspondant à un radical recherché. |
* |
34,7 → 34,7 |
//Autres auteurs : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.5 $ $Date: 2005-03-15 13:45:42 $ |
*@version $Revision: 1.6 $ $Date: 2005-06-09 18:09:52 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
74,7 → 74,11 |
$retour .= '<body>'."\n"; |
$retour .= '<!-- BEGIN corps -->'."\n"; |
$retour .= '<h1>'.'Liste des noms trouvés'.'</h1>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS','afficherResumerRecherche'); |
$retour .= '<h2>'.'Résumé de la recherche :'.'</h2>'."\n"; |
$retour .= '<dl>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS','afficherRadicalRang'); |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>PROJET_VERSION','afficherResumerRecherche'); |
$retour .= '</dl>'."\n"; |
$retour .= '<ol>'."\n"; |
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_RECHERCHE','afficherNom'); |
$retour .= '</ol>'."\n"; |
90,21 → 94,44 |
// +------------------------------------------------------------------------------------------------------+ |
// | LISTE des FONCTIONS | |
// +------------------------------------------------------------------------------------------------------+ |
function afficherResumerRecherche($donnees) |
function afficherRadicalRang($donnees) |
{ |
$retour .= '<h2>'.'Résumé de la recherche :'.'</h2>'."\n"; |
$retour .= '<p>'."\n"; |
$retour .= 'Radical : '.$donnees['radical']."\n"; |
//$retour = '<pre>'.print_r($donnees, true).'</pre>'; |
$retour = '<dt>'.'Radical : '.'</dt>'."\n"; |
$retour .= '<dd>'.$donnees['radical'].'</dd>'."\n"; |
if ($donnees['rang'] != '' || $donnees['rang'] != 0) { |
$retour .= ' - Rang : '.$donnees['rang']."\n"; |
$retour .= '<dt>'.'Rang : '.'</dt>'."\n"; |
$retour .= '<dd>'.$donnees['rang'].'</dd>'."\n"; |
} |
$retour .= '</p>'."\n"; |
|
return $retour; |
} |
|
function afficherResumerRecherche($donnees) |
{ |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>'; |
$retour = ''; |
if ($donnees['epr_intitule_projet'] != '' || $donnees['epr_intitule_projet'] != 0) { |
$retour .= '<dt>'.'Référentiel : '.'</dt>'."\n"; |
$retour .= '<dd>'.$donnees['epr_intitule_projet'].' - Version : '.$donnees['eprv_code_version'].'</dd>'."\n"; |
} |
return $retour; |
} |
|
function afficherNom($donnees) |
{ |
$retour .= '<li><a href="{UrlFicheNom}'.$donnees['en_id_nom'].'">'.$donnees['eni_intitule_nom'].'</a></li>'."\n"; |
//$retour = '<pre>'.print_r($donnees, true).'</pre>'; |
$retour = '<li>'; |
if (isset($donnees['esn_ce_statut'])) { |
if ($donnees['esn_ce_statut'] == 3) {//Nom retenu |
$retour .= '<strong><a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['esn_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a></strong>'; |
} else { |
$retour .= '<a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['esn_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a>'; |
} |
} else { |
$retour .= '<a href="{UrlFicheNom}'.$donnees['en_id_nom'].'">'.$donnees['eni_intitule_nom'].'</a>'; |
} |
$retour .= '</li>'."\n"; |
return $retour; |
} |
|
116,6 → 143,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.5 2005/03/15 13:45:42 tam |
* modifs labels |
* |
* Revision 1.4 2005/01/28 19:47:09 jpm |
* Amélioration du rendu par ajout d'entité à la place des caractères posant pb et changement de l'encodage. |
* |