73 lines
4.1 KiB
PHP
Executable File
73 lines
4.1 KiB
PHP
Executable File
<form id="formData">
|
|
<legend id="titre_formData">Modification des données</legend>
|
|
<INPUT class="sr-only" TYPE="text" id = "id" name = "id" value="<?=$commerciaux['id']?>">
|
|
<table class="table table-responsive table-condensed">
|
|
<tbody>
|
|
<tr>
|
|
<td width="5%" align="center" class="required">Code</td>
|
|
<td width="20%"><INPUT class="form-control majuscule" TYPE="text" id="codeApporteur" NAME="codeApporteur" required AUTOCOMPLETE="OFF" autofocus value="<?= $this->nettoyer($commerciaux['codeApporteur']); ?>" ></td>
|
|
|
|
<td width="5%" align="center" class="required">Libellé</td>
|
|
<td width="30%"><INPUT class="form-control majuscule" TYPE="text" id="libelle" NAME="libelle" required AUTOCOMPLETE="OFF" value="<?= $this->nettoyer($commerciaux['libelle']); ?>"></td>
|
|
|
|
<td width="5%" align="center" class="required">Type</td>
|
|
<td width="25%">
|
|
<select name="codeTypeApporteur" id="codeTypeApporteur" class="form-control" required AUTOCOMPLETE="OFF" >
|
|
<?= liste_options($typeapp,$this->nettoyer($commerciaux['codeTypeApporteur']),true) ?>
|
|
</select>
|
|
</td>
|
|
|
|
<td width="5%" align="center">Déduire Com</td>
|
|
<td width="5%">
|
|
<?php
|
|
if($this->nettoyer($commerciaux['deduireComm']) == 0){
|
|
$check ='';
|
|
}
|
|
else{
|
|
$check = 'checked';
|
|
}
|
|
?>
|
|
<INPUT class="form-control" TYPE="checkbox" id="deduireComm" NAME="deduireComm" value="<?=(($this->nettoyer($commerciaux['deduireComm'])==0)? 0 : 1);?>"<?= $check ;?> onclick="if (this.checked) this.value=1; else this.value=0;" >
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="5%" align="center" class="required">Bureau</td>
|
|
<td width="20%">
|
|
<select name="codeBureau" id="codeBureau" class="form-control" value="<?= $this->nettoyer($commerciaux['codeBureau']); ?>" required AUTOCOMPLETE="OFF" >
|
|
<?= liste_options($bureau,$this->nettoyer($commerciaux['codeBureau']),true) ?>
|
|
</select>
|
|
</td>
|
|
|
|
<td width="5%" align="center">Email</td>
|
|
<td width="30%"><INPUT class="form-control" TYPE="email" id="email" NAME="email" value="<?= $this->nettoyer($commerciaux['email']); ?>"></td>
|
|
|
|
<td width="5%" align="center">Téléphone</td>
|
|
<td width="25%"><INPUT class="form-control" TYPE="tel" id="telephone" NAME="telephone" value="<?= $this->nettoyer($commerciaux['telephone']); ?>"></td>
|
|
|
|
<td width="5%" align="center">Type Système</td>
|
|
<td width="5%">
|
|
<?php
|
|
if($this->nettoyer($commerciaux['typeSysteme']) == 0){
|
|
$check ='';
|
|
}
|
|
else{
|
|
$check = 'checked';
|
|
}
|
|
?>
|
|
<INPUT class="form-control" TYPE="checkbox" id="typeSysteme" NAME="typeSysteme" value="<?=(($this->nettoyer($commerciaux['typeSysteme'])==0)? 0 : 1);?>"<?= $check ;?> onclick="if (this.checked) this.value=1; else this.value=0;">
|
|
</td>
|
|
|
|
</tr>
|
|
<tr>
|
|
<td width="5%" align="center">Responsable</td>
|
|
<td width="20%" ><INPUT class="form-control majuscule" TYPE="text" id="nomResponsable" NAME="nomResponsable" value="<?= $this->nettoyer($commerciaux['nomResponsable']); ?>"></td>
|
|
|
|
<td width="5%" align="center">Adr. Géo.</td>
|
|
<td width="30%"><INPUT class="form-control majuscule" TYPE="text" id="adresseGeo" NAME="adresseGeo" value="<?= $this->nettoyer($commerciaux['adresseGeo']); ?>"></td>
|
|
|
|
<td width="5%" align="center">Adr. Post.</td>
|
|
<td colspan="3"><INPUT class="form-control majuscule" TYPE="text" id="adressePost" NAME="adressePost" value="<?= $this->nettoyer($commerciaux['adressePost']); ?>"></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</form>
|