New file |
0,0 → 1,61 |
/*vim: set expandtab tabstop=4 shiftwidth=4: */ |
// +------------------------------------------------------------------------------------------------------+ |
// | Javascript version 1.5 | |
// +------------------------------------------------------------------------------------------------------+ |
// | Copyright (C) Tela Botanica (accueil@tela-botanica.org), 2005. | |
// +------------------------------------------------------------------------------------------------------+ |
// | This file is part of Herbiers. | |
// | | |
// | Foobar is free software; you can redistribute it and/or modify | |
// | it under the terms of the GNU General Public License as published by | |
// | the Free Software Foundation; either version 2 of the License, or | |
// | (at your option) any later version. | |
// | | |
// | Foobar is distributed in the hope that it will be useful, | |
// | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
// | GNU General Public License for more details. | |
// | | |
// | You should have received a copy of the GNU General Public License | |
// | along with Foobar; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: hb_admin.js,v 1.1 2005-11-23 10:32:32 jp_milcent Exp $ |
/** |
* Javascript de Herbier-Administration |
* |
* Cntient les fonctions Javascript nécessaire pour les interfaces d'administration. |
* |
* |
*@package Herbier-Administration |
*@subpackage Javascript |
//Auteur original : |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org> |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2005 |
*@version $Revision: 1.1 $ $Date: 2005-11-23 10:32:32 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
function validateAndSubmitAdd(HERBIERS_ORGANISATION) |
{ |
if (HERBIERS_ORGANISATION.INSTITUTION_NAME.value == "") { |
alert ("Vous devez saisir un nom pour l'institution"); |
return false; |
} |
if (HERBIERS_ORGANISATION.ZIP.value == "") { |
alert ("Vous devez saisir un code postal valide, ex 75000"); |
return false; |
} |
} |
|
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.1 2005/04/06 13:30:13 jpm |
* Ajout du script vérifiant les formulaires. |
* |
* |
* +-- Fin du code ----------------------------------------------------------------------------------------+ |
*/ |