ajout pompier

This commit is contained in:
pierre renaudot
2023-10-19 11:53:17 +02:00
parent aa0701334e
commit 443c0225ae
5 changed files with 91 additions and 25 deletions

View File

@@ -4,6 +4,7 @@
<head>
<title>SDIS29</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link href="./styles/styles.css" rel="stylesheet" type="text/css" />
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link rel="shortcut icon" type="image/x-icon" href="./images/favicon.ico" />

View File

@@ -64,18 +64,18 @@
");
}
if ($_REQUEST['action'] == "ajouter") {
// <input name='pId' class='infoPompier' value='" . $lesInfosPompier['id'] . "' >
echo ("
<tr><th style='width:130px;'>Nom</th> <td style='width:130px;'><input name='ztNom' type='text' class='infoPompier' ></td> </tr>
<tr><th>Pr&eacute;nom</th> <td> <input name='ztPrenom' type='text' class='infoPompier infoPompier-chef' ></td> </tr>
<tr><th>Adresse</th> <td> <input name='ztAdresse' type='text' class='infoPompier infoPompier-chef' ></td> </tr>
<tr><th>Code postal</th> <td> <input name='ztCodePostal' type='text' class='infoPompier infoPompier-chef' ></td> </tr>
<tr><th style='width:130px;'>Nom*</th> <td style='width:130px;'><input name='ztNom' id='newName' type='text' class='infoPompier' required></td> </tr>
<tr><th>Pr&eacute;nom*</th> <td> <input name='ztPrenom' id='newUsername' type='text' class='infoPompier infoPompier-chef' required></td> </tr>
<tr><th>Adresse</th> <td> <input name='ztAdresse' type='text' class='infoPompier infoPompier-chef' ></td> </tr>
<tr><th>Code postal</th> <td> <input name='ztCodePostal' type='text' class='infoPompier infoPompier-chef' ></td> </tr>
<tr><th>Ville</th> <td> <input name='ztVille' type='text' class='infoPompier infoPompier-chef' ></td> </tr>
<tr><th>T&eacute;l&eacute;phone</th> <td> <input name='ztTel' type='text' class='infoPompier-chef' ></td> </tr>
<tr><th>Adresse &eacute;lectronique</th> <td> <input name='ztMail' type='text' class='infoPompier infoPompier-chef' ></td> </tr>
<tr><th>Nom de compte</th> <td><input name='ztMail' type='text' class='infoPompier infoPompier-chef' ></td></tr>
<input name='pId' type='hidden' class='infoPompier' value='" . $lesInfosPompier['id'] . "' >
<tr><th style='width:130px;'>Code</th> <td><input name='zCis' type='text' class='infoPompier-chef' value='" . $lesInfosPompier['pCis'] . "' ></td> </tr>
<tr><th>T&eacute;l&eacute;phone*</th> <td> <input name='ztTel' type='text' class='infoPompier-chef' required></td> </tr>
<tr><th>Adresse &eacute;lectronique*</th> <td> <input name='ztMail' type='text' class='infoPompier infoPompier-chef' required></td> </tr>
<tr><th>Nom de compte*</th> <td><input name='ztLogin' id='newLogin' type='text' class='infoPompier infoPompier-chef' required></td></tr>
<tr><th style='width:130px;'>Code</th> <td><input name='zCis' id='inputDisabled' type='text' class='infoPompier-chef' value='" . $lesInfosPompier['pCis'] . "' disabled></td> </tr>
<tr><th>Nom</th> <td>" . $lesInfosPompier['cNom'] . "</td> </tr>
<tr><th>Adresse</th> <td>" . $lesInfosPompier['cAdresse'] . "</td> </tr>
<tr><th>T&eacute;l&eacute;phone</th> <td>" . $lesInfosPompier['cTel'] . "</td> </tr>
@@ -121,8 +121,9 @@
</table>
</fieldset>
<div style='text-align:center; '>
<input type= 'image' class='validerAjout' alt='Valider' src= 'images/Valider.jpg'>
<p class='notif-ajout' style:'margin: 10px'></p>
<input type= 'image' class='btAnnulerAjout' alt='Annuler' src= 'images/Annuler.jpg'>
<input type= 'image' class='validerAjout' alt='Valider' src= 'images/Valider.jpg'>
</div>
</form>
</div>
@@ -135,7 +136,8 @@
<tr>
<td style='border: 0px solid white; witdh:130px; text-align:right;'>
<input type="hidden" name="zTypeAdm"
value="<? php // if ($type=="adm") {echo ("true");} else {echo ("false");} ?>">
value="">
<? // if ($type=="adm") {echo ("true");} else {echo ("false");} ?>
<input type="hidden" name="zOk" value="OK">
</td>