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.7 2005-06-30 15:25:07 jpm 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.7 $ $Date: 2005-06-30 15:25:07 $ |
*@version $Revision: 1.6 $ $Date: 2005-06-09 18:09:52 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
41,14 → 41,7 |
// +------------------------------------------------------------------------------------------------------+ |
// | ENTETE du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
/* Inclusion du fichier permettant de gérer l'encodage des noms vernaculaires*/ |
require_once EFSE_CHEMIN_FONCTION.'eribo_encodage.fonct.php'; |
/* Variable stockant le nombre de noms latins actuellement affichés*/ |
$GLOBALS['_NOM_LATIN_']['num'] = 0; |
/* Variable permettant de savoir si on a déjà afficher l'entête de la liste des noms latins*/ |
$GLOBALS['_NOM_LATIN_']['tete'] = true; |
/* Variable permettant de savoir si on a déjà afficher le pied de la liste des noms latins*/ |
$GLOBALS['_NOM_LATIN_']['pied'] = true; |
|
// +------------------------------------------------------------------------------------------------------+ |
// | CLASSE de la VUE | |
87,7 → 80,6 |
$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"; |
$retour .= '<!-- END corps -->'."\n"; |
119,25 → 111,16 |
{ |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>'; |
$retour = ''; |
if (!empty($donnees['epr_intitule_projet'])) { |
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 afficherListeEntete($donnees) |
{ |
$retour = ''; |
if ($GLOBALS['_NOM_LATIN_']['tete'] == true) { |
$GLOBALS['_NOM_LATIN_']['tete'] = false; |
$retour .= '<ol>'."\n"; |
} |
return $retour; |
} |
|
function afficherNom($donnees) |
{ |
//$retour = '<pre>'.print_r($donnees, true).'</pre>'; |
++$GLOBALS['_NOM_LATIN_']['num']; |
$retour = '<li>'; |
if (isset($donnees['esn_ce_statut'])) { |
if ($donnees['esn_ce_statut'] == 3) {//Nom retenu |
151,23 → 134,7 |
$retour .= '</li>'."\n"; |
return $retour; |
} |
function afficherListePied($donnees) |
{ |
$retour = ''; |
if ($GLOBALS['_NOM_LATIN_']['pied'] == true) { |
$GLOBALS['_NOM_LATIN_']['pied'] = false; |
$retour .= '</ol>'."\n"; |
} |
return $retour; |
} |
function afficherMessage($donnees = array()) |
{ |
$retour = ''; |
if ($GLOBALS['_NOM_LATIN_']['num'] == 0) { |
$retour .= '<p class="information">'.'Aucun nom latin ne correspond à ce radical!'.'</p>'."\n"; |
} |
return $retour; |
} |
|
// +------------------------------------------------------------------------------------------------------+ |
// | PIED du PROGRAMME | |
// +------------------------------------------------------------------------------------------------------+ |
176,9 → 143,6 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.6 2005/06/09 18:09:52 jpm |
* Début gestion des référenciels dans la recherche nomenclaturale. |
* |
* Revision 1.5 2005/03/15 13:45:42 tam |
* modifs labels |
* |