| 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: formulaire_taxonomique_xhtml.php,v 1.1 2005-01-28 19:45:44 jpm Exp $
|
24 |
// CVS : $Id: formulaire_taxonomique_xhtml.php,v 1.2 2005-02-09 13:06:52 jpm Exp $
|
| 25 |
/**
|
25 |
/**
|
| 26 |
* Vue affichant le formulaire de recherche taxonomique.
|
26 |
* Vue affichant le formulaire de recherche taxonomique.
|
| 27 |
*
|
27 |
*
|
| 28 |
* Permet de retourner le xhtml correspondant au formulaire de recherche taxonomique.
|
28 |
* Permet de retourner le xhtml correspondant au formulaire de recherche taxonomique.
|
| 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-01-28 19:45:44 $
|
37 |
*@version $Revision: 1.2 $ $Date: 2005-02-09 13:06:52 $
|
| 38 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
| 39 |
*/
|
39 |
*/
|
| Line 40... |
Line 40... |
| 40 |
|
40 |
|
| 41 |
// +------------------------------------------------------------------------------------------------------+
|
41 |
// +------------------------------------------------------------------------------------------------------+
|
| Line 78... |
Line 78... |
| 78 |
$retour .= '<form id="eflore_form_taxonomie" name="eflore_form_taxonomie" action="{UrlProjetTaxon}" method="post">'."\n";
|
78 |
$retour .= '<form id="eflore_form_taxonomie" name="eflore_form_taxonomie" action="{UrlProjetTaxon}" method="post">'."\n";
|
| 79 |
$retour .= '<fieldset>'."\n".'<legend>'.'Recherche par taxon'.'</legend>'."\n";
|
79 |
$retour .= '<fieldset>'."\n".'<legend>'.'Recherche par taxon'.'</legend>'."\n";
|
| 80 |
$retour .= '<p>'."\n";
|
80 |
$retour .= '<p>'."\n";
|
| 81 |
$retour .= '<label for="eflore_projet">'.'Projet : '.'</label>'."\n";
|
81 |
$retour .= '<label for="eflore_projet">'.'Projet : '.'</label>'."\n";
|
| 82 |
$retour .= '<select id="eflore_projet" name="eflore_projet">'."\n";
|
82 |
$retour .= '<select id="eflore_projet" name="eflore_projet">'."\n";
|
| 83 |
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_TAXONOMIQUE>PROJET_VERSION','afficherProjets');
|
83 |
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_TAXONOMIQUE>PROJET_VERSION_TOUS','afficherProjets', null, TRUE);
|
| 84 |
$retour .= '</select>'."\n";
|
84 |
$retour .= '</select>'."\n";
|
| 85 |
$retour .= '<label for="eflore_ordre">'.'afficher les taxons '.'</label>'."\n";
|
85 |
$retour .= '<label for="eflore_ordre">'.'afficher les taxons '.'</label>'."\n";
|
| 86 |
$retour .= '<select id="eflore_ordre" name="eflore_ordre">'."\n";
|
86 |
$retour .= '<select id="eflore_ordre" name="eflore_ordre">'."\n";
|
| 87 |
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_TAXONOMIQUE','afficherOrdre');
|
87 |
$retour .= $this->leBlock->afficherPattern('FORMULAIRE_TAXONOMIQUE','afficherOrdre');
|
| 88 |
$retour .= '</select>'."\n";
|
88 |
$retour .= '</select>'."\n";
|
| Line 108... |
Line 108... |
| 108 |
// +------------------------------------------------------------------------------------------------------+
|
108 |
// +------------------------------------------------------------------------------------------------------+
|
| 109 |
// | LISTE des FONCTIONS |
|
109 |
// | LISTE des FONCTIONS |
|
| 110 |
// +------------------------------------------------------------------------------------------------------+
|
110 |
// +------------------------------------------------------------------------------------------------------+
|
| 111 |
function afficherProjets($donnees)
|
111 |
function afficherProjets($donnees)
|
| 112 |
{
|
112 |
{
|
| - |
|
113 |
//$retour .= '<pre>'.print_r($donnees, true).'</pre>';
|
| 113 |
if ($donnees['eprv_id_version'] == $donnees['evp']) {
|
114 |
if ($donnees['PROJET_VERSION_TOUS']['eprv_id_version'] == $donnees['FORMULAIRE_TAXONOMIQUE']['nvp']) {
|
| 114 |
$retour .= ' <option value="'.$donnees['eprv_id_version'].'" selected="selected">';
|
115 |
$retour .= ' <option value="'.$donnees['PROJET_VERSION_TOUS']['eprv_id_version'].'" selected="selected">';
|
| 115 |
} else {
|
116 |
} else {
|
| 116 |
$retour .= ' <option value="'.$donnees['eprv_id_version'].'">';
|
117 |
$retour .= ' <option value="'.$donnees['PROJET_VERSION_TOUS']['eprv_id_version'].'">';
|
| 117 |
}
|
118 |
}
|
| 118 |
$retour .= $donnees['eprv_nom'].' - '.$donnees['epr_intitule_projet'];
|
119 |
$retour .= $donnees['PROJET_VERSION_TOUS']['eprv_nom'].' - '.$donnees['PROJET_VERSION_TOUS']['epr_intitule_projet'];
|
| 119 |
$retour .= '</option>'."\n";
|
120 |
$retour .= '</option>'."\n";
|
| 120 |
return $retour;
|
121 |
return $retour;
|
| 121 |
}
|
122 |
}
|
| Line 122... |
Line 123... |
| 122 |
|
123 |
|
| Line 204... |
Line 205... |
| 204 |
|
205 |
|
| 205 |
|
206 |
|
| 206 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
207 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
| - |
|
208 |
*
|
| - |
|
209 |
* $Log: not supported by cvs2svn $
|
| - |
|
210 |
* Revision 1.1 2005/01/28 19:45:44 jpm
|
| 207 |
*
|
211 |
* Début recheche taxons.
|
| 208 |
* $Log: not supported by cvs2svn $
|
212 |
*
|
| 209 |
* Revision 1.1 2005/01/26 10:45:33 jpm
|
213 |
* Revision 1.1 2005/01/26 10:45:33 jpm
|
| 210 |
* Ajout des résultats de recherche par noms vernaculaires.
|
214 |
* Ajout des résultats de recherche par noms vernaculaires.
|
| 211 |
*
|
215 |
*
|