Subversion Repositories eFlore/Archives.eflore-consultation-v2

Rev

Rev 163 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 163 Rev 170
Line 19... Line 19...
19
// |                                                                                                      |
19
// |                                                                                                      |
20
// | You should have received a copy of the GNU General Public License                                    |
20
// | You should have received a copy of the GNU General Public License                                    |
21
// | along with Foobar; if not, write to the Free Software                                                |
21
// | along with Foobar; if not, write to the Free Software                                                |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
22
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
23
// +------------------------------------------------------------------------------------------------------+
23
// +------------------------------------------------------------------------------------------------------+
24
// CVS : $Id: recherche_nom_latin_xhtml.php,v 1.5 2005-03-15 13:45:42 tam Exp $
24
// CVS : $Id: recherche_nom_latin_xhtml.php,v 1.6 2005-06-09 18:09:52 jpm Exp $
25
/**
25
/**
26
* Vue affichant la liste des noms latins correspondant à un radical recherché.
26
* Vue affichant la liste des noms latins correspondant à un radical recherché.
27
*
27
*
28
* Permet de retourner le html correspondant à la liste des noms latins correspondant à un radical recherché.
28
* Permet de retourner le html correspondant à la liste des noms latins correspondant à un radical recherché.
29
*
29
*
Line 32... Line 32...
32
//Auteur original :
32
//Auteur original :
33
*@author        Frédéric LEGENS <flegens@free.fr>
33
*@author        Frédéric LEGENS <flegens@free.fr>
34
//Autres auteurs :
34
//Autres auteurs :
35
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
35
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
36
*@copyright     Tela-Botanica 2000-2004
36
*@copyright     Tela-Botanica 2000-2004
37
*@version       $Revision: 1.5 $ $Date: 2005-03-15 13:45:42 $
37
*@version       $Revision: 1.6 $ $Date: 2005-06-09 18:09:52 $
38
// +------------------------------------------------------------------------------------------------------+
38
// +------------------------------------------------------------------------------------------------------+
39
*/
39
*/
Line 40... Line 40...
40
 
40
 
41
// +------------------------------------------------------------------------------------------------------+
41
// +------------------------------------------------------------------------------------------------------+
Line 72... Line 72...
72
        $retour .= '</head>'."\n";
72
        $retour .= '</head>'."\n";
Line 73... Line 73...
73
        
73
        
74
        $retour .= '<body>'."\n";
74
        $retour .= '<body>'."\n";
75
        $retour .= '<!-- BEGIN corps -->'."\n";
75
        $retour .= '<!-- BEGIN corps -->'."\n";
-
 
76
        $retour .= '<h1>'.'Liste des noms trouvés'.'</h1>'."\n";
-
 
77
        $retour .= '<h2>'.'Résumé de la recherche :'.'</h2>'."\n";
-
 
78
        $retour .= '<dl>'."\n";
76
        $retour .= '<h1>'.'Liste des noms trouvés'.'</h1>'."\n";
79
        $retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS','afficherRadicalRang');
-
 
80
        $retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>PROJET_VERSION','afficherResumerRecherche');
77
        $retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS','afficherResumerRecherche');
81
        $retour .= '</dl>'."\n";
78
        $retour .= '<ol>'."\n";
82
        $retour .= '<ol>'."\n";
79
        $retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_RECHERCHE','afficherNom');
83
        $retour .= $this->leBlock->afficherPattern('FICHE_LISTE_NOMS>NOM_RECHERCHE','afficherNom');
80
        $retour .= '</ol>'."\n";
84
        $retour .= '</ol>'."\n";
81
        $retour .= '<!-- END corps -->'."\n";
85
        $retour .= '<!-- END corps -->'."\n";
Line 88... Line 92...
88
}
92
}
Line 89... Line 93...
89
 
93
 
90
// +------------------------------------------------------------------------------------------------------+
94
// +------------------------------------------------------------------------------------------------------+
91
// |                                            LISTE des FONCTIONS                                       |
95
// |                                            LISTE des FONCTIONS                                       |
92
// +------------------------------------------------------------------------------------------------------+
96
// +------------------------------------------------------------------------------------------------------+
93
function afficherResumerRecherche($donnees)
97
function afficherRadicalRang($donnees)
94
{
98
{
95
    $retour .= '<h2>'.'Résumé de la recherche :'.'</h2>'."\n";
99
    //$retour = '<pre>'.print_r($donnees, true).'</pre>';
96
    $retour .= '<p>'."\n";
100
    $retour = '<dt>'.'Radical : '.'</dt>'."\n";
97
    $retour .= 'Radical : '.$donnees['radical']."\n";
101
    $retour .= '<dd>'.$donnees['radical'].'</dd>'."\n";
-
 
102
    if ($donnees['rang'] != '' || $donnees['rang'] != 0) {
98
    if ($donnees['rang'] != '' || $donnees['rang'] != 0) {
103
        $retour .= '<dt>'.'Rang : '.'</dt>'."\n";
-
 
104
        $retour .= '<dd>'.$donnees['rang'].'</dd>'."\n";
-
 
105
    }
-
 
106
 
-
 
107
    return $retour;
-
 
108
}
-
 
109
 
-
 
110
function afficherResumerRecherche($donnees)
-
 
111
{
-
 
112
    //$retour .= '<pre>'.print_r($donnees, true).'</pre>';
-
 
113
    $retour = '';
-
 
114
    if ($donnees['epr_intitule_projet'] != '' || $donnees['epr_intitule_projet'] != 0) {
-
 
115
        $retour .= '<dt>'.'Référentiel : '.'</dt>'."\n";
99
        $retour .= ' - Rang : '.$donnees['rang']."\n";
116
        $retour .= '<dd>'.$donnees['epr_intitule_projet'].' - Version : '.$donnees['eprv_code_version'].'</dd>'."\n";
100
    }
-
 
101
    $retour .= '</p>'."\n";
117
    }
102
    return $retour;
118
    return $retour;
Line 103... Line 119...
103
}
119
}
104
 
120
 
-
 
121
function afficherNom($donnees)
-
 
122
{
-
 
123
    //$retour = '<pre>'.print_r($donnees, true).'</pre>';
-
 
124
    $retour = '<li>';
-
 
125
    if (isset($donnees['esn_ce_statut'])) {
-
 
126
        if ($donnees['esn_ce_statut'] == 3) {//Nom retenu
-
 
127
            $retour .= '<strong><a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['esn_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a></strong>';
-
 
128
        } else {
-
 
129
            $retour .= '<a href="func_UrlFicheNom('.$donnees['en_id_nom'].', '.$donnees['esn_id_version_projet_taxon'].')">'.$donnees['eni_intitule_nom'].'</a>';
105
function afficherNom($donnees)
130
        }
-
 
131
    } else {
-
 
132
        $retour .= '<a href="{UrlFicheNom}'.$donnees['en_id_nom'].'">'.$donnees['eni_intitule_nom'].'</a>';
106
{
133
    }
107
    $retour .= '<li><a href="{UrlFicheNom}'.$donnees['en_id_nom'].'">'.$donnees['eni_intitule_nom'].'</a></li>'."\n";
134
    $retour .= '</li>'."\n";
Line 108... Line 135...
108
    return $retour;
135
    return $retour;
109
}
136
}
Line 114... Line 141...
114
 
141
 
115
 
142
 
116
/* +--Fin du code ----------------------------------------------------------------------------------------+
143
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
144
*
-
 
145
* $Log: not supported by cvs2svn $
-
 
146
* Revision 1.5  2005/03/15 13:45:42  tam
117
*
147
* modifs labels
118
* $Log: not supported by cvs2svn $
148
*
119
* Revision 1.4  2005/01/28 19:47:09  jpm
149
* Revision 1.4  2005/01/28 19:47:09  jpm
120
* Amélioration du rendu par ajout d'entité à la place des caractères posant pb et changement de l'encodage.
150
* Amélioration du rendu par ajout d'entité à la place des caractères posant pb et changement de l'encodage.
121
*
151
*