0byt3m1n1
Path:
/
home
/
kassiope
/
www
/
administrer
/
modeles
/
[
Home
]
File: utilisateur_form.php
<? include $dirroot."/lib/setup/info.inc.php";?> <form name="entryform" method="post" action="<?=$_SERVER['PHP_SELF']?>?start=<?echo (isset($_GET['start'])) ? $_GET['start'] : 0;?>"> <input type="hidden" name="mode" value="<?=$frm['nouveau_mode']?>"> <table border="0" class="tablespace" width="100%" cellpadding="0" cellspacing="0" > <tr> <th class="entete" colspan="2">Ajouter / modifier un utilisateur</th> </tr> <?php if (!empty($frm['date_insert'])) { ?> <tr> <td>Date d'inscription :</td> <td width="60%"><? echo return_date_fr($frm['date_insert']);?></td> </tr> <?php } if (!empty($frm['date_update'])) { ?> <tr> <td>Dernière mise à jour :</td> <td ><?echo return_date_fr($frm['date_update']);?></td> </tr> <? } ?> <tr> <td>Email :</td> <td> <input type="text" name="email" value="<?pv($frm['email'])?>"> <input type="hidden" name="id_utilisateur" value="<?pv($frm['id_utilisateur'])?>"> </td> </tr> <tr> <td>Privilège :</td> <td > <?php $sqlPriv = "SELECT * FROM gaia_profil ORDER BY name"; $resPriv = mysql_query_override($sqlPriv); if ($resPriv) { if (mysql_num_rows_override($resPriv) > 0) { echo "<select class=\"formulaire1\" name=\"priv\">"; while ($Priv = mysql_fetch_array_override($resPriv)) { echo "<option value=\"".$Priv['priv']."\""; if(vb($frm['priv']) == $Priv['priv']) {echo "selected";} echo ">".stripslashes($Priv['name'])."</option>"; } echo "</select>"; } } ?> </td> </tr> <? if ($param_group) { ?> <tr> <td>Groupe :<br /> <i>(réservé aux comptes pros)</i></td> <td > <?php $sqlgroup = "SELECT * FROM gaia_groupes ORDER BY nom"; $resgroup = mysql_query_override($sqlgroup); if ($resgroup) { if (mysql_num_rows_override($resgroup) > 0) { echo "<select class=\"formulaire1\" name=\"groupe\">"; echo '<option value="">Rattacher à un groupe</option>'; while ($groupe = mysql_fetch_array_override($resgroup)) { echo "<option value=\"".$groupe['id']."\""; if(vb($frm['groupe']) == $groupe['id']) {echo "selected";} echo ">".stripslashes($groupe['nom'])."</option>"; } echo "</select>"; } } ?> </td> </tr> <?php } else { ?> <input type="hidden" name="groupe" value="" /> <?php } ?> <tr> <td>Code client :</td> <td ><input type="text" name="code_client" value="<?pv($frm['code_client'])?>"></td> </tr> <tr> <td>Société :</td> <td ><input type="text" name="societe" value="<?pv($frm['societe'])?>"></td> </tr> <tr> <td>Fonction :</td> <td ><input type="text" name="portable" value="<?pv($frm['portable']) ?>"></td> </tr> <tr> <td>Prénom:</td> <td ><input type="text" name="prenom" value="<?pv($frm['prenom'])?>"></td> </tr> <tr> <td>Civilité :</td> <td > <input type="radio" name="civilite" value="Mlle" <?php if(vb($frm['civilite'])=="Mlle") {echo "checked";} ?>>Mlle <input type="radio" name="civilite" value="Mme" <?php if(vb($frm['civilite'])=="Mme") {echo "checked";} ?>>Mme <input type="radio" name="civilite" value="M." <?php if(vb($frm['civilite'])=="M.") {echo "checked";} ?>>M. </td> </tr> <tr> <td>Nom de famille :</td> <td ><input type="text" name="nom_famille" value="<?pv($frm['nom_famille'])?>"></td> </tr> <tr> <td>Téléphone :</td> <td ><input type="text" name="telephone" value="<?pv($frm['telephone']) ?>"></td> </tr> <tr> <td>Fax :</td> <td ><input type="text" name="fax" value="<?pv($frm['fax']) ?>"></td> </tr> <tr> <td>Adresse:</td> <td ><textarea class="mceNoEditor" style="width:300px" name="adresse"><?pv($frm['adresse'])?></textarea></td> </tr> <tr> <td>Code Postal :</td> <td><input type="text" name="code_postal" value="<?pv($frm['code_postal']) ?>"></td> </tr> <tr> <td>Ville :</td> <td ><input type="text" name="ville" value="<?pv($frm['ville'])?>"></td> </tr> <tr> <td>Pays :</td> <td > <select name="pays"> <?php $sql_pays = "SELECT id, pays_".$_SESSION['langue']." FROM gaia_pays WHERE etat = '1' ORDER BY pays_".$_SESSION['langue'].""; $res_pays = mysql_query_override($sql_pays); if ($res_pays) { if (mysql_num_rows_override($res_pays)) { while ($tab_pays = mysql_fetch_array_override($res_pays)) { echo "<option value=\"".$tab_pays['id']."\""; if ($frm['pays'] == $tab_pays['id']) echo "selected"; echo ">".stripslashes($tab_pays['pays_'.$_SESSION['langue'].''])."</option>"; } } } ?> </select> </td> </tr> <tr> <td>Date de naissance :</td> <td> <? $frm['naissance'] = preg_replace('<^([0-9]{4})-([0-9]{2})-([0-9]{2})$>' , '\\3/\\2/\\1', $frm['naissance']); ?> <div class="input-group date" rel="datepicker" data-date="12-02-2012" data-date-format="dd/mm/yyyy"> <input class="form-control" name="naissance" size="16" readonly="readonly" type="text" value="<?=vb($frm["naissance"])?>"> <span class="add-on"><i class="icon-calendar icon-large"></i></span> </div> </td> </tr> <? if ($param_promo_client) { ?> <tr> <td>Remise client :</td> <td > <div class="input-group"> <input type="text" name="remise_percent" class="form-control" value="<?pv($frm['remise_percent']) ?>"><span class="add-on">%</span> </div> </td> </tr> <tr> <td>Avoir :</td> <td > <div class="input-group"> <input type="text" name="avoir" class="form-control" value="<?pv($frm['avoir']) ?>"><span class="add-on">€</span> </div> </td> </tr> <? } else { ?> <input type="hidden" name="remise_percent" value="0"> <input type="hidden" name="avoir" value="0"> <? } ?> <? if ($param_cadeau=1) { ?> <tr> <td>Points cadeaux :</td> <td> <div class="input-group"> <input type="text" class="form-control" name="points" value="<?pv($frm['points']) ?>"><span class="add-on">points</span> </div> </td> </tr> <? } else { ?> <input type="hidden" name="points" value="0"> <? } ?> <tr> <td>Siret :</td> <td ><input type="text" name="siret" value="<?pv($frm['siret'])?>"></td> </tr> <tr> <td>APE :</td> <td ><input type="text" name="ape" value="<?pv($frm['ape'])?>"></td> </tr> <tr> <td>Site web :</td> <td ><input type="text" name="url" value="<?pv($frm['url'])?>"></td> </tr> <tr> <td>Description site web :</td> <td ><textarea class="mceNoEditor" style="width:300px" name="description"><?pv($frm['description'])?></textarea></td> </tr> <tr> <td>Code banque :</td> <td ><input type="text" name="code_banque" value="<?pv($frm['code_banque'])?>"></td> </tr> <tr> <td>Code guichet :</td> <td ><input type="text" name="code_guichet" value="<?pv($frm['code_guichet'])?>"></td> </tr> <tr> <td>Numéro de compte :</td> <td ><input type="text" name="numero_compte" value="<?pv($frm['numero_compte'])?>"></td> </tr> <tr> <td>Clé RIB :</td> <td ><input type="text" name="cle_rib" value="<?pv($frm['cle_rib'])?>"></td> </tr> <tr> <td>Domiciliation :</td> <td ><input type="text" name="domiciliation" value="<?pv($frm['domiciliation'])?>"></td> </tr> <tr> <td>BIC :</td> <td ><input type="text" name="bic" value="<?pv($frm['bic'])?>"></td> </tr> <tr> <td>IBAN :</td> <td ><input type="text" name="iban" value="<?pv($frm['iban'])?>"></td> </tr> <tr> <td colspan="2" > <label class="toggle-switch"> <input type="checkbox" name="newsletter" <?=(valide($frm['newsletter'])?'checked':'')?> value="1"> <span data-unchecked="Off" data-checked="On"></span> </label> <label class="form-check-label overflow-hidden ml-2 mb-2">Cochez la case pour abonner l'utilisateur à la newsletter.</label> </td> </tr> <tr><td valign="top" colspan="2"> <label class="toggle-switch"> <input type="checkbox" name="commercial" <?=(valide($frm['commercial'])?'checked':'')?> value="1"> <span data-unchecked="Off" data-checked="On"></span> </label> <label class="form-check-label overflow-hidden ml-2 mb-2">Cochez la case pour abonner l'utilisateur aux offres commerciales</label> </td> </tr> <? if ($param_newsletter) { ?> <input type="hidden" name="format" value="html"> <? } else { ?> <input type="hidden" name="format" value="html"> <? } ?> <tr> <td colspan="2" class="bouton" align="center"><input type="button" onclick="history.go(-1)" value="Annuler"><input class="bouton" type="submit" value="<?=$frm['titre_soumet'] ?>"></td> </tr> </table> <input type="hidden" name="remise_valeur" style="width:80%" value="<?pv($frm['remise_valeur']) ?>"> </form>