Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 815 → Rev 816

/trunk/client/bottin/bibliotheque/inscription.class.php
19,7 → 19,7
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: inscription.class.php,v 1.11 2006-04-10 14:01:36 florian Exp $
// CVS : $Id: inscription.class.php,v 1.12 2006-04-11 08:41:19 alexandre_tb Exp $
/**
* Inscription
*
31,7 → 31,7
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
//Autres auteurs :
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.11 $ $Date: 2006-04-10 14:01:36 $
*@version $Revision: 1.12 $ $Date: 2006-04-11 08:41:19 $
// +------------------------------------------------------------------------------------------------------+
*/
 
176,6 → 176,10
$this->addRule('nom', INS_NOM_REQUIS, 'required', '', 'client') ;
$this->addElement('text', 'prenom', INS_PRENOM) ;
$this->addRule('prenom', INS_PRENOM_REQUIS, 'required', '', 'client') ;
if (INS_UTILISE_WIKINI && !INS_NOM_WIKINI_GENERE) {
$this->addElement ('text', 'nomwiki', INS_NOM_WIKI) ;
$this->addRule ('nomwiki', INS_NOM_WIKI_REQUIS, 'required', '', 'client');
}
$this->addElement('text', 'adresse_1', INS_ADRESSE_1) ;
$this->addElement('text', 'adresse_2', INS_ADRESSE_2) ;
$this->addElement('text', 'cp', INS_CODE_POSTAL) ;
/trunk/client/bottin/bibliotheque/inscription.fonct.php
19,8 → 19,8
// | License along with this library; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: inscription.fonct.php,v 1.15 2006-04-10 14:01:36 florian Exp $
// CVS : $Id: inscription.fonct.php,v 1.15 2006-04-10 14:01:36 florian Exp $
// CVS : $Id: inscription.fonct.php,v 1.16 2006-04-11 08:41:41 alexandre_tb Exp $
// CVS : $Id: inscription.fonct.php,v 1.16 2006-04-11 08:41:41 alexandre_tb Exp $
/**
* Fonctions du module inscription
*
32,8 → 32,8
//Autres auteurs :
*@author Florian Schmitt <florian@ecole-et-nature.org>
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.15 $ $Date: 2006-04-10 14:01:36 $
*@version $Revision: 1.15 $ $Date: 2006-04-10 14:01:36 $
*@version $Revision: 1.16 $ $Date: 2006-04-11 08:41:41 $
*@version $Revision: 1.16 $ $Date: 2006-04-11 08:41:41 $
// +------------------------------------------------------------------------------------------------------+
*/
 
164,8 → 164,12
function insertion($valeur) {
// =========== Insertion dans l'annuaire gen_annuaire ===================
// Génération du nom wikini à partir du nom et du prénom
if (INS_UTILISE_WIKINI) {
if (INS_UTILISE_WIKINI && INS_NOM_WIKINI_GENERE) {
$valeur['nom_wiki'] = genere_nom_wiki ($valeur['nom'], isset ($valeur['prenom']) ? $valeur['prenom'] : '') ;
} else {
if (!INS_NOM_WIKINI_GENERE) {
$valeur['nom_wiki'] = $valeur['nomwiki'];
}
}
$id_utilisateur = nextId(INS_ANNUAIRE, INS_CHAMPS_ID, $GLOBALS['ins_db']) ;
$requete = 'insert into '.INS_ANNUAIRE.' set '.
269,6 → 273,7
}
$req .= ",".INS_CHAMPS_DEPARTEMENT."='$n_dpt'";
}
if (INS_UTILISE_WIKINI) $req .= ','.INS_CHAMPS_NOM_WIKINI.'="'.$valeur['nomwiki'].'"';
return $req ;
}
 
686,6 → 691,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.15 2006/04/10 14:01:36 florian
* uniformisation de l'appli bottin: plus qu'un fichier de fonctions
*
* Revision 1.14 2006/04/04 12:23:05 florian
* modifs affichage fiches, généricité de la carto, modification totale de l'appli annuaire
*