Subversion Repositories eFlore/Archives.eflore-consultation-v2

Compare Revisions

Ignore whitespace Rev 170 → Rev 169

/trunk/serveur/eflore_mv/vues/formulaire_nomenclatural_xhtml.php
File deleted
\ No newline at end of file
/trunk/serveur/eflore_mv/vues/recherche_nom_latin_xhtml.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: recherche_nom_latin_xhtml.php,v 1.6 2005-06-09 18:09:52 jpm Exp $
// CVS : $Id: recherche_nom_latin_xhtml.php,v 1.5 2005-03-15 13:45:42 tam 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.6 $ $Date: 2005-06-09 18:09:52 $
*@version $Revision: 1.5 $ $Date: 2005-03-15 13:45:42 $
// +------------------------------------------------------------------------------------------------------+
*/
 
74,11 → 74,7
$retour .= '<body>'."\n";
$retour .= '<!-- BEGIN corps -->'."\n";
$retour .= '<h1>'.'Liste des noms trouvés'.'</h1>'."\n";
$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 .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS','afficherResumerRecherche');
$retour .= '<ol>'."\n";
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_RECHERCHE','afficherNom');
$retour .= '</ol>'."\n";
94,44 → 90,21
// +------------------------------------------------------------------------------------------------------+
// | LISTE des FONCTIONS |
// +------------------------------------------------------------------------------------------------------+
function afficherRadicalRang($donnees)
function afficherResumerRecherche($donnees)
{
//$retour = '<pre>'.print_r($donnees, true).'</pre>';
$retour = '<dt>'.'Radical : '.'</dt>'."\n";
$retour .= '<dd>'.$donnees['radical'].'</dd>'."\n";
$retour .= '<h2>'.'Résumé de la recherche :'.'</h2>'."\n";
$retour .= '<p>'."\n";
$retour .= 'Radical : '.$donnees['radical']."\n";
if ($donnees['rang'] != '' || $donnees['rang'] != 0) {
$retour .= '<dt>'.'Rang : '.'</dt>'."\n";
$retour .= '<dd>'.$donnees['rang'].'</dd>'."\n";
$retour .= ' - Rang : '.$donnees['rang']."\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 = '<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";
$retour .= '<li><a href="{UrlFicheNom}'.$donnees['en_id_nom'].'">'.$donnees['eni_intitule_nom'].'</a></li>'."\n";
return $retour;
}
 
143,9 → 116,6
/* +--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.
*
/trunk/serveur/eflore_mv/vues/formulaire_taxonomique_xhtml.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: formulaire_taxonomique_xhtml.php,v 1.7 2005-06-09 18:09:52 jpm Exp $
// CVS : $Id: formulaire_taxonomique_xhtml.php,v 1.6 2005-03-15 15:11:07 jpm Exp $
/**
* Vue affichant le formulaire de recherche taxonomique.
*
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-09 18:09:52 $
*@version $Revision: 1.6 $ $Date: 2005-03-15 15:11:07 $
// +------------------------------------------------------------------------------------------------------+
*/
 
68,7 → 68,7
$retour .= '<meta http-equiv="Content-style-type" content="text/css" />'."\n";
$retour .= '<meta http-equiv="Content-script-type" content="text/javascript />'."\n";
$retour .= '<meta http-equiv="Content-language" content="fr" />'."\n";
$retour .= '<title>Formulaire de recherche taxonomique</title>'."\n";
$retour .= '<title>Liste de noms latins</title>'."\n";
$retour .= '<!-- END entete -->'."\n";
$retour .= '</head>'."\n";
90,7 → 90,7
$retour .= '<select id="eflore_rang" name="eflore_rang">'."\n";
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_TAXONOMIQUE','afficherRang');
$retour .= '</select></li>'."\n";
$retour .= '<li><input id="eflore_taxonomie_submit" type="submit" value="'.'OK'.'" /></li>'."\n";
$retour .= '<li id="eflore_projet_submit"><input type="submit" value="'.'OK'.'" /></li>'."\n";
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_TAXONOMIQUE>TAXON_RECHERCHE','creerAlphabetTaxon');
$retour .= afficherAlphabetTaxon();
$retour .= '</ul>'."\n";
210,9 → 210,6
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.6 2005/03/15 15:11:07 jpm
* Ajout d'une sélection par défaut pour le choix de l'ordre.
*
* Revision 1.5 2005/03/15 14:45:59 tam
* modifs labels
*
/trunk/serveur/eflore_mv/vues/recherche_nom_vernaculaire_xhtml.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: recherche_nom_vernaculaire_xhtml.php,v 1.3 2005-06-09 18:09:52 jpm Exp $
// CVS : $Id: recherche_nom_vernaculaire_xhtml.php,v 1.2 2005-01-28 19:47:09 jpm Exp $
/**
* Vue affichant la liste des noms vernaculaire correspondant à un radical recherché.
*
35,7 → 35,7
//Autres auteurs :
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.3 $ $Date: 2005-06-09 18:09:52 $
*@version $Revision: 1.2 $ $Date: 2005-01-28 19:47:09 $
// +------------------------------------------------------------------------------------------------------+
*/
 
76,7 → 76,7
$retour .= '<body>'."\n";
$retour .= '<!-- BEGIN corps -->'."\n";
$retour .= '<h1>'.'Liste des noms vernaculaires'.'</h1>'."\n";
$retour .= '<table id="eflore_table_resultat_nv">'."\n";
$retour .= '<table>'."\n";
$retour .= '<caption>';
$retour .= 'Liste des noms vernaculaires correspondant au radical "';
$retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS_VERNA','afficherRadical');
109,16 → 109,10
{
$retour .= '<tr>'."\n";
$retour .= '<td>'.$GLOBALS['num_nom_verna']++.'</td>'."\n";
$retour .= '<td><abbr title="'.$donnees['ezg_intitule_principal_zg'].'">'.$donnees['ezg_code_zg'].'</abbr></td>'."\n";
$retour .= '<td><abbr title="'.$donnees['el_nom_langue_principal'].'">'.$donnees['el_code_langue'].'</abbr></td>'."\n";
$retour .= '<td title="'.$donnees['ezg_intitule_principal_zg'].'">'.$donnees['ezg_code_zg'].'</td>'."\n";
$retour .= '<td title="'.$donnees['el_nom_langue_principal'].'">'.$donnees['el_code_langue'].'</td>'."\n";
$retour .= '<td>'.$donnees['ev_intitule_nom_vernaculaire'].'</td>'."\n";
if (isset($donnees['esn_ce_statut'])) {
if ($donnees['esn_ce_statut'] == 3) {//Nom retenu
$retour .= '<td><strong><a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['et_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a></strong></td>';
} else {
$retour .= '<td><a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['esn_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a></td>';
}
}
$retour .= '<td>'.'<a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['et_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a></td>'."\n";
$retour .= '</tr>'."\n";
return $retour;
}
131,9 → 125,6
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.2 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.
*
* Revision 1.1 2005/01/26 10:45:33 jpm
* Ajout des résultats de recherche par noms vernaculaires.
*
/trunk/serveur/eflore_mv/modeles/macro_elements/NOM_SELECTION_PROJETS.php
11,7 → 11,6
nom.en_id_nom,
version.eprv_id_version,
version.eprv_nom,
version.eprv_code_version,
projet.epr_intitule_projet,
projet.epr_abreviation_projet
/trunk/serveur/eflore_mv/modeles/macro_elements/PROJET_VERSION.php
9,8 → 9,7
return
'SELECT DISTINCT
version.eprv_id_version,
version.eprv_nom,
version.eprv_code_version,
version.eprv_nom,
projet.epr_id_projet,
projet.epr_intitule_projet,
projet.epr_abreviation_projet
/trunk/serveur/eflore_mv/modeles/macro_elements/VERNACULAIRE_RECHERCHE.php
15,7 → 15,6
vernaculaire.ev_id_nom_vernaculaire,
vernaculaire.ev_intitule_nom_vernaculaire,
taxon.et_id_version_projet_taxon,
selection.esn_ce_statut,
intitule.eni_intitule_nom,
nom.en_id_nom
/trunk/serveur/eflore_mv/modeles/macro_elements/NOM_RECHERCHE.php
48,31 → 48,6
AND nom.en_ce_rang = '.$contexte['rang'];
}
}
if (array_key_exists('radical', $this->contexteRef) and array_key_exists('nvp', $this->contexteRef) ) {
$contexte['radical'] = $this->contexteRef['radical'];
$contexte['nvp'] = $this->contexteRef['nvp'];
if(!empty($contexte['nvp']) ) {
return
'SELECT
nom.*,
intitule.eni_intitule_nom,
selection.esn_ce_statut,
selection.esn_id_version_projet_taxon
FROM
eflore_nom_intitule AS intitule,
eflore_nom AS nom,
eflore_selection_nom AS selection
WHERE
intitule.eni_intitule_nom LIKE "'.$contexte['radical'].'"
AND intitule.eni_id_categorie_format = 3
AND intitule.eni_id_valeur_format = 4
AND nom.en_id_nom = intitule.eni_id_nom
AND nom.en_id_nom = selection.esn_id_nom
AND selection.esn_id_version_projet_taxon = '.$contexte['nvp'];
}
}
if (array_key_exists('radical', $this->contexteRef) ) {
$contexte['radical'] = $this->contexteRef['radical'];
if(!empty($contexte['radical']) ) {
87,7 → 62,7
WHERE
intitule.eni_intitule_nom LIKE "'.$contexte['radical'].'"
AND intitule.eni_id_categorie_format = 3
AND intitule.eni_id_valeur_format = 4
AND intitule.eni_id_valeur_format = 3
AND nom.en_id_nom = intitule.eni_id_nom';
}
}
/trunk/serveur/eflore_mv/modeles/groupes_macro_elements/formulairenomenclatural.php
File deleted
\ No newline at end of file
/trunk/serveur/eflore_mv/modeles/groupes_macro_elements/recherchenomlatin.php
9,21 → 9,14
{
$this->dblock = new blockdedonnees('FICHE_LISTE_NOMS');
// Radical du nom recherché
if (array_key_exists('radical', $_REQUEST)) {
$this->dblock->ajouterDonnee('radical', $_REQUEST['radical']);
}
// Rang des noms
if (array_key_exists('rang',$_REQUEST)) {
$this->dblock->ajouterDonnee('rang', $_REQUEST['rang']);
}
// Numéro de version du projet
if (array_key_exists('nvp', $_REQUEST)) {
$this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']);
}
$this->construireContexte();
$this->ajouterMacroElement();
}
35,8 → 28,6
function ajouterMacroElement()
{
$un_macro_element = $this->macroElementFactory('PROJET_VERSION', $this->dblock);
$un_macro_element->construire();
$un_macro_element = $this->macroElementFactory('NOM_RECHERCHE', $this->dblock);
$un_macro_element->construire();
}
/trunk/serveur/eflore_mv/modeles/groupes_macro_elements/recherchenomverna.php
9,16 → 9,10
{
$this->dblock = new blockdedonnees('FICHE_LISTE_NOMS_VERNA');
// Radical à rechercher
if (array_key_exists('radical', $_REQUEST)) {
$this->dblock->ajouterDonnee('radical', $_REQUEST['radical']);
}
// Numéro de version du projet
if (array_key_exists('nvp', $_REQUEST)) {
$this->dblock->ajouterDonnee('nvp', $_REQUEST['nvp']);
}
$this->construireContexte();
$this->ajouterMacroElement();
}
/trunk/serveur/eflore_mv/eflore_services.map
6,5 → 6,4
recherche_taxon recherchetaxon recherche_taxon_xhtml null 0 null
recherche_classif rechercheclassification recherche_classif_xhtml null 0 null
fiche_synthese fichesynthese fiche_synthese_xhtml null 0 null
form_taxon formulairetaxonomique formulaire_taxonomique_xhtml null 0 null
form_nom formulairenomenclatural formulaire_nomenclatural_xhtml null 0 null
form_taxon formulairetaxonomique formulaire_taxonomique_xhtml null 0 null