Subversion Repositories eFlore/Archives.eflore-consultation-v1

Rev

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

Rev 2 Rev 5
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: eflore_affichage_xhtml.fonct.php,v 1.1 2005-05-24 15:57:48 jpm Exp $
24
// CVS : $Id: eflore_affichage_xhtml.fonct.php,v 1.2 2005-06-01 18:24:48 jpm Exp $
25
/**
25
/**
26
* Fonctions pour l'affichage XHTML.
26
* Fonctions pour l'affichage XHTML.
27
*
27
*
28
*@package eFlore
28
*@package eFlore
29
*@subpackage Ancien
29
*@subpackage Ancien
30
//Auteur original :
30
//Auteur original :
31
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
31
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@author        Aucun
33
*@author        Aucun
34
*@copyright     Tela-Botanica 2000-2005
34
*@copyright     Tela-Botanica 2000-2005
35
*@version       $Revision: 1.1 $ $Date: 2005-05-24 15:57:48 $
35
*@version       $Revision: 1.2 $ $Date: 2005-06-01 18:24:48 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
*/
37
*/
Line 38... Line 38...
38
 
38
 
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
Line 51... Line 51...
51
{
51
{
52
    $message_renvoyer="";
52
    $message_renvoyer="";
Line 53... Line 53...
53
 
53
 
54
    switch ($type_message){
54
    switch ($type_message){
-
 
55
        case '01' :
55
        case '01' :
56
            $message_renvoyer = inclusion_html('debut_ligne_alerte').
-
 
57
                                "Veuillez saisir un radical avant d'effectuer la recherche !".
56
            $message_renvoyer = inclusion_html("debut_ligne_alerte")."Veuillez saisir un radical avant d'effectuer la recherche !".inclusion_html("fin_ligne_alerte");
58
                                inclusion_html('fin_ligne_alerte');
57
            break;
59
            break;
-
 
60
        case '02' :
58
        case '02' :
61
            $message_renvoyer = inclusion_html('debut_ligne_alerte').
-
 
62
                                "Veuillez saisir un radical contenant au moins 3 caract&egrave;res alphab&eacute;tiques !".
59
            $message_renvoyer = inclusion_html("debut_ligne_alerte")."Veuillez saisir un radical contenant au moins 3 caract&egrave;res alphab&eacute;tiques !".inclusion_html("fin_ligne_alerte");
63
                                inclusion_html("fin_ligne_alerte");
60
            break;
64
            break;
-
 
65
        case '03' :
61
        case '03' :
66
            $message_renvoyer = inclusion_html('debut_ligne_alerte').
-
 
67
                                "Le symbole % ne peut pas ĂȘtre utilis&eacute; sans au moins trois caract&egrave;res alphab&eacute;tiques !".
62
            $message_renvoyer = inclusion_html("debut_ligne_alerte")."Le symbole % ne peut pas ĂȘtre utilis&eacute; sans au moins trois caract&egrave;res alphab&eacute;tiques !".inclusion_html("fin_ligne_alerte");
68
                                inclusion_html('fin_ligne_alerte');
63
            break;
69
            break;
-
 
70
        case '04' :
64
        case '04' :
71
            $message_renvoyer = inclusion_html('debut_ligne_alerte').
-
 
72
                                "Les symboles suivant ne doivent pas &ecirc;tre utilis&eacute;s : & < > \" ".
65
            $message_renvoyer = inclusion_html("debut_ligne_alerte")."Les symboles suivant ne doivent pas &ecirc;tre utilis&eacute;s : & < > \" ".inclusion_html("fin_ligne_alerte");
73
                                inclusion_html('fin_ligne_alerte');
66
            break;
74
            break;
67
    }//fin du switch
-
 
68
 
75
    }//fin du switch
69
    return $message_renvoyer;
76
    return $message_renvoyer;
Line 70... Line 77...
70
}
77
}
71
 
78
 
Line 90... Line 97...
90
                                '<fieldset>'."\n".
97
                                '<fieldset>'."\n".
91
                                '<legend>'.EFLORE_LG_RECH_NOM_FORM_TITRE.'</legend>'."\n".
98
                                '<legend>'.EFLORE_LG_RECH_NOM_FORM_TITRE.'</legend>'."\n".
92
                                '<ul>'."\n".
99
                                '<ul>'."\n".
93
                                '<li>'."\n".
100
                                '<li>'."\n".
94
                                '<label for="radical">Nom :</label>'."\n".
101
                                '<label for="radical">Nom :</label>'."\n".
95
                                '<input type="text" name="radical" value="';
102
                                '<input type="text" id="radical" name="radical" value="';
96
            $html_renvoyer .= (isset($radical) && !empty($radical))? $radical : '';
103
            $html_renvoyer .= (isset($radical) && !empty($radical))? $radical : '';
97
            $html_renvoyer .=   '" maxlength="100" size="30" />'."\n".
104
            $html_renvoyer .=   '" maxlength="100" size="30" />'."\n".
98
                                '</li>'."\n".
105
                                '</li>'."\n".
99
                                '<li>'."\n".
106
                                '<li>'."\n".
100
                                '<ul>'."\n".
107
                                '<ul>'."\n".
101
                                '<li>'."\n".
108
                                '<li>'."\n".
102
                                '<input type="radio" id="ef_nom_scientifique" name="recherche" value="LATIN" ';
109
                                '<input type="radio" id="ef_nom_scientifique" name="recherche" value="LATIN" ';
-
 
110
            $html_renvoyer .=    (empty($recherche))? 'checked="checked"': '';
103
            $html_renvoyer .=    (!empty($recherche) && $recherche == 'LATIN')? 'checked="checked"': '';
111
            $html_renvoyer .=    (!empty($recherche) && $recherche == 'LATIN')? 'checked="checked"': '';
104
            $html_renvoyer .=    '/>'.
112
            $html_renvoyer .=    '/>'.
105
                                '<label for="ef_nom_scientifique">nom scientifique</label>'."\n".
113
                                '<label for="ef_nom_scientifique">nom scientifique</label>'."\n".
106
                                '</li>'."\n".'<li>'."\n".
114
                                '</li>'."\n".'<li>'."\n".
107
                                '<input type="radio" id="ef_nom_vernaculaire" name="recherche" value="VERNA" ';
115
                                '<input type="radio" id="ef_nom_vernaculaire" name="recherche" value="VERNA" ';
Line 110... Line 118...
110
                                '<label for="ef_nom_vernaculaire">nom vernaculaire</label>'."\n".
118
                                '<label for="ef_nom_vernaculaire">nom vernaculaire</label>'."\n".
111
                                '</li>'."\n".
119
                                '</li>'."\n".
112
                                '</ul>'."\n".
120
                                '</ul>'."\n".
113
                                '</li>'."\n".
121
                                '</li>'."\n".
114
                                '</ul>'."\n".
122
                                '</ul>'."\n".
115
                                '<input type="hidden" name="flore" value="'.$GLOBALS['_EF_ANCIEN_']['type'].'" />'."\n".
123
                                '<input type="hidden" id="flore" name="flore" value="'.$GLOBALS['_EF_ANCIEN_']['type'].'" />'."\n".
116
                                '<input type="hidden" name="numclass" value="1" />'."\n".
124
                                '<input type="hidden" id="numclass" name="numclass" value="1" />'."\n".
117
                                '<input id="eflore_chercher" name="eflore_chercher" type="submit" value="chercher" />'."\n".
125
                                '<input id="eflore_chercher" name="eflore_chercher" type="submit" value="chercher" />'."\n".
118
                                '</fieldset>'."\n".
126
                                '</fieldset>'."\n".
119
                                '</form>';
127
                                '</form>';
120
            break;
128
            break;
121
        case 'ANT_rechercher_titre' :
129
        case 'ANT_rechercher_titre' :