2 |
jp_milcent |
1 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */
|
|
|
2 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
3 |
// | Javascript version 1.5 |
|
|
|
4 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
5 |
// | Copyright (C) Tela Botanica (accueil@tela-botanica.org), 2005. |
|
|
|
6 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
7 |
// | This file is part of Herbiers. |
|
|
|
8 |
// | |
|
|
|
9 |
// | Foobar is free software; you can redistribute it and/or modify |
|
|
|
10 |
// | it under the terms of the GNU General Public License as published by |
|
|
|
11 |
// | the Free Software Foundation; either version 2 of the License, or |
|
|
|
12 |
// | (at your option) any later version. |
|
|
|
13 |
// | |
|
|
|
14 |
// | Foobar is distributed in the hope that it will be useful, |
|
|
|
15 |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
|
|
16 |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
|
|
17 |
// | GNU General Public License for more details. |
|
|
|
18 |
// | |
|
|
|
19 |
// | You should have received a copy of the GNU General Public License |
|
|
|
20 |
// | along with Foobar; if not, write to the Free Software |
|
|
|
21 |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
|
|
|
22 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
23 |
// CVS : $Id: hb_admin.js,v 1.1 2005-11-23 10:32:32 jp_milcent Exp $
|
|
|
24 |
/**
|
|
|
25 |
* Javascript de Herbier-Administration
|
|
|
26 |
*
|
|
|
27 |
* Cntient les fonctions Javascript nécessaire pour les interfaces d'administration.
|
|
|
28 |
*
|
|
|
29 |
*
|
|
|
30 |
*@package Herbier-Administration
|
|
|
31 |
*@subpackage Javascript
|
|
|
32 |
//Auteur original :
|
|
|
33 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
|
|
34 |
//Autres auteurs :
|
|
|
35 |
*@author Aucun
|
|
|
36 |
*@copyright Tela-Botanica 2000-2005
|
|
|
37 |
*@version $Revision: 1.1 $ $Date: 2005-11-23 10:32:32 $
|
|
|
38 |
// +------------------------------------------------------------------------------------------------------+
|
|
|
39 |
*/
|
|
|
40 |
|
|
|
41 |
function validateAndSubmitAdd(HERBIERS_ORGANISATION)
|
|
|
42 |
{
|
|
|
43 |
if (HERBIERS_ORGANISATION.INSTITUTION_NAME.value == "") {
|
|
|
44 |
alert ("Vous devez saisir un nom pour l'institution");
|
|
|
45 |
return false;
|
|
|
46 |
}
|
|
|
47 |
if (HERBIERS_ORGANISATION.ZIP.value == "") {
|
|
|
48 |
alert ("Vous devez saisir un code postal valide, ex 75000");
|
|
|
49 |
return false;
|
|
|
50 |
}
|
|
|
51 |
}
|
|
|
52 |
|
|
|
53 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
|
|
54 |
*
|
|
|
55 |
* $Log: not supported by cvs2svn $
|
|
|
56 |
* Revision 1.1 2005/04/06 13:30:13 jpm
|
|
|
57 |
* Ajout du script vérifiant les formulaires.
|
|
|
58 |
*
|
|
|
59 |
*
|
|
|
60 |
* +-- Fin du code ----------------------------------------------------------------------------------------+
|
|
|
61 |
*/
|