| 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_classif_xhtml.php,v 1.1 2005-02-09 13:07:16 jpm Exp $
|
24 |
// CVS : $Id: recherche_classif_xhtml.php,v 1.2 2005-02-14 18:11:43 jpm Exp $
|
| 25 |
/**
|
25 |
/**
|
| 26 |
* Vue affichant la liste des taxons d'un projet.
|
26 |
* Vue affichant la liste des taxons d'un projet.
|
| 27 |
*
|
27 |
*
|
| 28 |
* Permet de retourner le xhtml correspondant à une liste hiérarchisées des taxons d'un projet.
|
28 |
* Permet de retourner le xhtml correspondant à une liste hiérarchisées des taxons d'un projet.
|
| 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.1 $ $Date: 2005-02-09 13:07:16 $
|
37 |
*@version $Revision: 1.2 $ $Date: 2005-02-14 18:11:43 $
|
| 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 taxons'.'</h1>'."\n";
|
| 76 |
$retour .= '<h1>'.'Liste des taxons'.'</h1>'."\n";
|
77 |
$retour .= '<!-- BEGIN liste -->'."\n";
|
| - |
|
78 |
$retour .= $this->leBlock->afficherPatternRecursivement('afficherTaxon', 'TAXON_RECHERCHE_CLASSIFICATION');
|
| 77 |
$retour .= $this->leBlock->afficherPatternRecursivement('afficherTaxon', 'TAXON_RECHERCHE_CLASSIFICATION');
|
79 |
$retour .= '<!-- END liste -->'."\n";
|
| 78 |
$retour .= '<!-- END corps -->'."\n";
|
80 |
$retour .= '<!-- END corps -->'."\n";
|
| 79 |
$retour .= '</body>'."\n";
|
81 |
$retour .= '</body>'."\n";
|
| Line 80... |
Line 82... |
| 80 |
$retour .= '</html>'."\n";
|
82 |
$retour .= '</html>'."\n";
|
| Line 91... |
Line 93... |
| 91 |
function afficherTaxon($donnees, $parametre)
|
93 |
function afficherTaxon($donnees, $parametre)
|
| 92 |
{
|
94 |
{
|
| 93 |
//echo '<pre>'.print_r($donnees, true).'</pre>';
|
95 |
//echo '<pre>'.print_r($donnees, true).'</pre>';
|
| 94 |
if (isset($donnees['eni_intitule_nom'])) {
|
96 |
if (isset($donnees['eni_intitule_nom'])) {
|
| 95 |
if (!empty($donnees['eni_intitule_nom'])) {
|
97 |
if (!empty($donnees['eni_intitule_nom'])) {
|
| 96 |
$retour .= '<li><a href="{UrlFicheNom}'.$donnees['en_id_nom'].'">';
|
98 |
$retour .= '<a href="func_remplacerUrlClassif('.$donnees['etr_id_taxon_1'].')">';
|
| - |
|
99 |
$retour .= '<img src="#" alt="+"/>';
|
| - |
|
100 |
$retour .= '</a><a id="eflore_taxon_'.$donnees['etr_id_taxon_1'].'" href="{UrlFicheNom}'.$donnees['en_id_nom'].'">';
|
| 97 |
$retour .= $donnees['eni_intitule_nom'];
|
101 |
$retour .= $donnees['eni_intitule_nom'];
|
| 98 |
$retour .= '</a>'."\n";
|
102 |
$retour .= '</a>'."\n";
|
| Line 99... |
Line 103... |
| 99 |
|
103 |
|
| 100 |
$retour_tax = '';
|
104 |
$retour_tax = '';
|
| Line 107... |
Line 111... |
| 107 |
}
|
111 |
}
|
| 108 |
if ($nbre_taxon > 0) {
|
112 |
if ($nbre_taxon > 0) {
|
| 109 |
$retour .= '<ol>'."\n";
|
113 |
$retour .= '<ol>'."\n";
|
| 110 |
$retour .= $retour_tax;
|
114 |
$retour .= $retour_tax;
|
| 111 |
$retour .= '</ol>'."\n";
|
115 |
$retour .= '</ol>'."\n";
|
| - |
|
116 |
} else {
|
| - |
|
117 |
$retour .= 'func_ajouterArboressenceClassif('.$donnees['etr_id_taxon_1'].')';
|
| 112 |
}
|
118 |
}
|
| Line 113... |
Line 119... |
| 113 |
|
119 |
|
| 114 |
$retour .= '</li>'."\n";
|
120 |
$retour .= '</li>'."\n";
|
| 115 |
}
|
121 |
}
|
| 116 |
} else {
|
122 |
} else {
|
| 117 |
$retour .= '<ol>'."\n";
|
123 |
$retour .= '<ol>'."\n";
|
| 118 |
foreach ($donnees as $cle0 => $valeur0) {
|
124 |
foreach ($donnees as $cle0 => $valeur0) {
|
| 119 |
if (strstr($cle0, $parametre)) {
|
125 |
if (strstr($cle0, $parametre)) {
|
| - |
|
126 |
if (!empty($valeur0['eni_intitule_nom'])) {
|
| 120 |
if (!empty($valeur0['eni_intitule_nom'])) {
|
127 |
$retour .= '<li>'."\n";
|
| - |
|
128 |
$retour .= '<a href="func_remplacerUrlClassif('.$valeur0['etr_id_taxon_1'].')">';
|
| - |
|
129 |
$retour .= '<img src="#" alt="+"/>';
|
| 121 |
$retour .= '<li><a href="{UrlFicheNom}'.$valeur0['en_id_nom'].'">';
|
130 |
$retour .= '</a><a id="eflore_taxon_'.$valeur0['etr_id_taxon_1'].'" href="{UrlFicheNom}'.$valeur0['en_id_nom'].'">';
|
| 122 |
$retour .= $valeur0['eni_intitule_nom'];
|
131 |
$retour .= $valeur0['eni_intitule_nom'];
|
| Line 123... |
Line 132... |
| 123 |
$retour .= '</a>'."\n";
|
132 |
$retour .= '</a>'."\n";
|
| 124 |
|
133 |
|
| Line 132... |
Line 141... |
| 132 |
}
|
141 |
}
|
| 133 |
if ($nbre_taxon > 0) {
|
142 |
if ($nbre_taxon > 0) {
|
| 134 |
$retour .= '<ol>'."\n";
|
143 |
$retour .= '<ol>'."\n";
|
| 135 |
$retour .= $retour_tax;
|
144 |
$retour .= $retour_tax;
|
| 136 |
$retour .= '</ol>'."\n";
|
145 |
$retour .= '</ol>'."\n";
|
| - |
|
146 |
} else {
|
| - |
|
147 |
$retour .= 'func_ajouterArboressenceClassif('.$valeur0['etr_id_taxon_1'].')';
|
| 137 |
}
|
148 |
}
|
| Line 138... |
Line 149... |
| 138 |
|
149 |
|
| 139 |
$retour .= '</li>'."\n";
|
150 |
$retour .= '</li>'."\n";
|
| 140 |
}
|
151 |
}
|
| Line 151... |
Line 162... |
| 151 |
|
162 |
|
| 152 |
|
163 |
|
| 153 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
164 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| - |
|
165 |
*
|
| - |
|
166 |
* $Log: not supported by cvs2svn $
|
| - |
|
167 |
* Revision 1.1 2005/02/09 13:07:16 jpm
|
| 154 |
*
|
168 |
* Permet de voir la classification d'un taxon.
|
| 155 |
* $Log: not supported by cvs2svn $
|
169 |
*
|
| 156 |
* Revision 1.1 2005/01/28 19:45:44 jpm
|
170 |
* Revision 1.1 2005/01/28 19:45:44 jpm
|
| 157 |
* Début recheche taxons.
|
171 |
* Début recheche taxons.
|
| 158 |
*
|
172 |
*
|