<p> <label>Adresse</label> <input name="adresse" type="text" value="<?php echo $adresse?>" /> </p> <p> <label>Code postal</label> <input name="cp" type="text" value="<?php echo $cp ?>" /> </p> <p> <label>Ville </label> <input name="ville" type="text" value="<?php echo $ville ?>" /> </p> <p> <label>Pays</label> <select id="pays" name="pays"> <?php echo CFormPays::get_option($pays) ?> </select> </p> <p> <label>Email </label> <input name="email" type="text" value="<?php echo $email?>" /> </p> <p> <label>Téléphone fixe</label> <input name="telephone" type="text" value="<?php echo $telephone?>" /> </p> <p> <label>Téléphone mobile</label> <input name="mobile" type="text" value="<?php echo $mobile?>" /> </p> <p>
<label>Résponsable </label> <input name="responsable" type="text" value="<?php echo utf8_decode($toUsers['resp_ent']) ?>" /> </p> <p> <label>Société</label> <input name="societe" type="text" value="<?php echo $toUsers['nom_ent'] ?>" /> </p> <p> <label>Adresse</label> <input name="adresse" type="text" value="<?php echo $toUsers['rue_adr']?>" /> </p> <p> <label>Pays</label> <select name="pays" onchange="load_pays(document.forms['form_modif'].elements['pays'].options[document.forms['form_modif'].elements['pays'].selectedIndex].value, 'form_modif');"> <option value="0" >Choisir pays</option> <?php echo CFormPays::get_option($toUsers['pays_ent']) ?> </select> </p> <p id="pays"> <label>Commune</label> <select name="ville" onchange="load_cp(document.forms['form_modif'].elements['ville'].options[document.forms['form_modif'].elements['ville'].selectedIndex].value, 'form_modif');"> <option value="0">Choisir commune</option> <? $xsql = "SELECT * FROM commune WHERE pays_com LIKE '%".$toUsers['pays_ent']."%' ORDER BY nom_com ASC"; $oRes_ = CBdd::select($xsql) ; while ($oCat = mysql_fetch_assoc($oRes_)): ?> <option value="<?php echo $oCat['id_com'] ?>" <? if ($toUsers['commune_alias'] == $oCat['id_com']) echo 'selected="selected"'; ?>><?php echo $oCat['nom_com']; ?></option> <?php endwhile; ?> </select> </p> <p id="cp"> <label>Code postal</label>
<p> <label>Adresse</label> <input name="adresse" type="text" value="<?=$adresse?>" /> </p> <p> <label>Code postal</label> <input name="cp" type="text" value="<?=$cp ?>" /> </p> <p> <label>Ville </label> <input name="ville" type="text" value="<?= $ville ?>" /> </p> <p> <label>Pays</label> <select id="pays" name="pays"> <?=CFormPays::get_option($pays) ?> </select> </p> <p> <label>Email </label> <input name="email" type="text" value="<?= $email?>" /> </p> <p> <label>Téléphone fixe</label> <input name="telephone" type="text" value="<?=$telephone?>" /> </p> <p> <label>Téléphone mobile</label> <input name="mobile" type="text" value="<?=$mobile?>" /> </p> <p>