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: eflore_recherche_nomenclature.inc.php,v 1.8 2005-02-28 15:38:47 jpm Exp $ |
// CVS : $Id: eflore_recherche_nomenclature.inc.php,v 1.9 2005-03-15 12:57:16 jpm Exp $ |
/** |
* Affichage du moteur de recherche nomenclatural et de ses résultats. |
* |
33,7 → 33,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.8 $ $Date: 2005-02-28 15:38:47 $ |
*@version $Revision: 1.9 $ $Date: 2005-03-15 12:57:16 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
56,7 → 56,6 |
|
// -------------------------------------------------------------------------------------------------------- |
// Création du formulaire |
$sortie .= '<ul>'; |
// Ajout du paramêtre action à l'url courante. |
$GLOBALS['_EFLORE_']['url']->addQueryString(EFLORE_LG_URL_ACTION, EFLORE_LG_URL_ACTION_RECH_NOM); |
// Notes : Quickform semble remplacer les & des & à nouveau par des & solution utiliser str_replace()... |
73,7 → 72,7 |
$eflore_form->accept($eflore_squelette); |
$eflore_form->removeAttribute('name'); |
|
$partie_menu_debut = '<fieldset>'."\n".'<legend>'.EFLORE_LG_RECH_NOM_FORM_TITRE.'</legend>'."\n"; |
$partie_menu_debut = '<fieldset>'."\n".'<legend>'.EFLORE_LG_RECH_NOM_FORM_TITRE.'</legend><ul>'."\n"; |
$eflore_form->addElement('html', $partie_menu_debut); |
|
$id = 'eflore_nom'; |
84,33 → 83,37 |
$label = '<label for="'.$id.'">'.EFLORE_LG_RECH_NOM_FORM_NOM.'</label>'; |
$eflore_form->addElement('text', $id, $label, $aso_attributs); |
|
$liste_type_nom_debut = '<ul>'."\n"; |
$liste_type_nom_debut = '<li><ul>'."\n"; |
$eflore_form->addElement('html', $liste_type_nom_debut); |
|
$id = 'eflore_type_nom'; |
$id = 'eflore_type_nom_scientifique'; |
$name = 'eflore_type_nom'; |
$valeur = 'nom_scientifique'; |
$aso_attributs = array( 'id'=> $id, 'tabindex' => $tab_index++); |
$label = ''; |
$eflore_form->addElement('radio', $id, $label, EFLORE_LG_RECH_NOM_FORM_TYPE_NOM_SCI, $valeur, $aso_attributs); |
$eflore_form->addElement('radio', $name, $label, EFLORE_LG_RECH_NOM_FORM_TYPE_NOM_SCI, $valeur, $aso_attributs); |
|
$id = 'eflore_type_nom_vernaculaire'; |
$name = 'eflore_type_nom'; |
$valeur = 'nom_vernaculaire'; |
$aso_attributs = array( 'id'=> $id, 'tabindex' => $tab_index++); |
$label = ''; |
$eflore_form->addElement('radio', $id, $label, EFLORE_LG_RECH_NOM_FORM_TYPE_NOM_VER, $valeur, $aso_attributs); |
if (isset($_REQUEST[$id])) { |
switch ($_REQUEST[$id]) { |
case 'nom_scientifique': |
$eflore_form->setDefaults(array($id => 'nom_scientifique')); |
$eflore_form->addElement('radio', $name, $label, EFLORE_LG_RECH_NOM_FORM_TYPE_NOM_VER, $valeur, $aso_attributs); |
|
if (isset($_REQUEST[$name])) { |
switch ($_REQUEST[$name]) { |
case 'nom_scientifique' : |
$eflore_form->setDefaults(array($name => 'nom_scientifique')); |
break; |
case 'nom_vernaculaire': |
$eflore_form->setDefaults(array($id => 'nom_vernaculaire')); |
case 'nom_vernaculaire' : |
$eflore_form->setDefaults(array($name => 'nom_vernaculaire')); |
break; |
} |
} else { |
$eflore_form->setDefaults(array($id => 'nom_scientifique')); |
$eflore_form->setDefaults(array($name => 'nom_scientifique')); |
} |
|
$liste_type_nom_fin = '</ul>'."\n"; |
$liste_type_nom_fin = '</ul></li>'."\n"; |
$eflore_form->addElement('html', $liste_type_nom_fin); |
|
$id = 'eflore_valider_nom'; |
117,7 → 120,7 |
$aso_attributs = array('id'=> $id, 'class' => 'champ', 'tabindex' => $tab_index++); |
$eflore_form->addElement('submit', $id, EFLORE_LG_RECH_NOM_FORM_VALIDER, $aso_attributs); |
|
$partie_entete_fin = "\n".'</fieldset>'; |
$partie_entete_fin = "\n".'</ul></fieldset>'; |
$eflore_form->addElement('html', $partie_entete_fin); |
|
// Instanciation avec les valeur par défaut |
127,7 → 130,6 |
|
// Transformation en XHTML du formulaire |
$sortie .= $eflore_form->toHTML()."\n"; |
$sortie .= '</ul>'."\n"; |
|
// -------------------------------------------------------------------------------------------------------- |
// Lancement de la recherche |
178,6 → 180,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.8 2005/02/28 15:38:47 jpm |
* Correction erreur due à un changement de nom. |
* |
* Revision 1.7 2005/02/23 12:39:27 jpm |
* Correction bogue lié à QuickForm. |
* |