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.10 2006-02-28 14:02:20 alexandre_tb Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.10 2006-02-28 14:02:20 alexandre_tb Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.11 2006-03-02 16:57:31 alexandre_tb Exp $ |
// CVS : $Id: inscription.fonct.php,v 1.11 2006-03-02 16:57:31 alexandre_tb Exp $ |
/** |
* Fonctions du module inscription |
* |
32,8 → 32,8 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.10 $ $Date: 2006-02-28 14:02:20 $ |
*@version $Revision: 1.10 $ $Date: 2006-02-28 14:02:20 $ |
*@version $Revision: 1.11 $ $Date: 2006-03-02 16:57:31 $ |
*@version $Revision: 1.11 $ $Date: 2006-03-02 16:57:31 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
210,12 → 210,8 |
foreach (array ('adresse_1', 'adresse_2', 'ville', 'telephone', 'fax', 'site') as $val) { |
if (!isset ($valeur[$val])) $valeur[$val] = '' ; |
} |
if (isset($valeur['prenom'])) { |
$req .= INS_CHAMPS_PRENOM.'="'.$valeur['prenom'].'", '; |
if (INS_UTILISE_WIKINI) $req .= INS_CHAMPS_NOM_WIKINI.'="'.genere_nom_wiki($valeur['prenom'],$valeur['nom']).'", ' ; |
} elseif (INS_UTILISE_WIKINI) { |
$req .= INS_CHAMPS_NOM_WIKINI.'="'.genere_nom_wiki('Structure',$valeur['nom']).'", ' ; |
} |
|
$req .= INS_CHAMPS_NOM_WIKINI.'="'.$valeur['nom_wiki'].'", ' ; |
$req .= INS_CHAMPS_MAIL.'="'.addslashes($valeur['email']).'", ' ; |
$req .= INS_CHAMPS_PASSE.'="'.md5($valeur['mot_de_passe']).'", '. |
INS_CHAMPS_PAYS.'="'.addslashes($valeur['pays']).'", '. |
291,7 → 287,10 |
$valeurs_par_defaut['adresse_2'] = $ligne[INS_CHAMPS_ADRESSE_2] ; |
$valeurs_par_defaut['telephone'] = $ligne[INS_CHAMPS_TELEPHONE] ; |
$valeurs_par_defaut['fax'] = $ligne[INS_CHAMPS_FAX] ; |
if (INS_CHAMPS_STRUCTURE != '') $valeurs_par_defaut['structure'] = $ligne[INS_CHAMPS_STRUCTURE] ; |
if (INS_CHAMPS_STRUCTURE != '') { |
$valeurs_par_defaut['structure'] = $ligne[INS_CHAMPS_STRUCTURE] ; |
$valeurs_par_defaut['type_structure'] = $ligne['a_type_structure']; |
} |
$valeurs_par_defaut['site'] = $ligne[INS_CHAMPS_SITE_INTERNET] ; |
$valeurs_par_defaut['lettre'] = $ligne[INS_CHAMPS_LETTRE] ; |
$valeurs_par_defaut['visible'] = $ligne[INS_CHAMPS_VISIBLE] ; |
325,6 → 324,7 |
$res .= '<h2>'.$ligne[INS_CHAMPS_PRENOM].' '.$ligne[INS_CHAMPS_NOM].'</h2>'."\n"; |
$res .= '<dl class="affiche_infos">'."\n"; |
} |
|
$res .= ligne_inscription(INS_ADRESSE_1, $ligne[INS_CHAMPS_ADRESSE_1]) ; |
$res .= ligne_inscription(INS_ADRESSE_2, $ligne[INS_CHAMPS_ADRESSE_2]) ; |
$res .= ligne_inscription(INS_CODE_POSTAL, $ligne[INS_CHAMPS_CODE_POSTAL]) ; |
644,6 → 644,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.10 2006/02/28 14:02:20 alexandre_tb |
* suppression des insertion dans les tables du bazar |
* |
* Revision 1.9 2006/02/14 10:19:10 alexandre_tb |
* Mise en place des templates |
* CREATE TABLE `inscription_template` ( |