sauvegarde 05/10/2023

This commit is contained in:
pierre renaudot
2023-10-05 08:54:15 +02:00
parent 9aa3a1dbf4
commit 438ab2f077
6 changed files with 90 additions and 59 deletions

View File

@@ -1,6 +1,6 @@
<!-- choix d'une Caserne / Derniere modification le 23 mai 2019 par Pascal Blain -->
<?php
$nbA=count($lesCasernes);
$nbA = count($lesCasernes);
echo '
<div id="contenu">
<form name="choixC" action="index.php" method="post">

View File

@@ -1,18 +1,39 @@
<!-- v_unPompier.php / Derniere modification le 18 septembre 2023 par Pascal Blain -->
<div id="contenu">
<?php
if ($_REQUEST['action']=="supprimer") {
/**
* Boutons d'action a coté du nom
* *lesInfosPompiers = pdo->getInfosPompier());
*/
if ($_REQUEST['action'] == "supprimer") {
echo '<h2>SUPPRESSION DU POMPIER '.$lesInfosPompier['nom'].' '.$lesInfosPompier['prenom'].'</h2>';
echo '<form name="frmA" action="index.php?choixTraitement=pompiers&action=validerSupprimer&type='.$lesInfosPompier['pType'].'&agent='.$lesInfosPompier['id'].'&caserne='.$lesInfosPompier['pCis'].'" method="post">';
}
if ($_REQUEST['action']=="modifier") {
echo '<h2>MODIFICATION DU POMPIER '.$lesInfosPompier['nom'].' '.$lesInfosPompier['prenom'].'</h2>';
echo '<form name="frmA" action="index.php?choixTraitement=pompiers&action=validerModifier&type='.$lesInfosPompier['pType'].'&agent='.$lesInfosPompier['id'].'&caserne='.$lesInfosPompier['pCis'].'" method="post">';
echo (
'<form name="frmA" action="index.php?choixTraitement=pompiers&action=validerSupprimer&type='
. $lesInfosPompier['pType']
. '&agent=' . $lesInfosPompier['id']
. '&caserne=' . $lesInfosPompier['pCis']
. '" method="post">');
}
if ($_REQUEST['action']=="ajouter") {
if ($_REQUEST['action'] == "modifier") {
var_dump($lesInfosPompier);
echo ('
<h2>MODIFICATION DU POMPIER '
. $lesInfosPompier['nom'] . ' '
. $lesInfosPompier['prenom'] . '</h2>'
);
echo ('
<form name="frmA" action="index.php?choixTraitement=pompiers&action=validerModifier&type='
. $lesInfosPompier['pType'] . '&agent='
. $lesInfosPompier['id']
. '&caserne=' . $lesInfosPompier['pCis']
. '" method="post">'
);
}
if ($_REQUEST['action'] == "ajouter") {
echo "<h2>AJOUT D'UN NOUVEAU POMPIER</h2>";
echo '
<form name="frmA" action="index.php?choixTraitement=pompiers&action=validerAjouter&type='.$lesInfosPompier['pType'].'" method="post" onsubmit="return valider(this)">';
<form name="frmA" action="index.php?choixTraitement=pompiers&action=validerAjouter&type='
. $lesInfosPompier['pType'].'" method="post" onsubmit="return valider(this)">';
}
echo ("
<table style='border: 0px solid white;'>
@@ -21,10 +42,9 @@
<fieldset><legend>Coordonn&eacute;es</legend>
<table>
");
if ($_REQUEST['action']=="supprimer"){ //-------------------------------------------------------- cas suppression
echo ("
<div style='display: none;' class='unOnglet' id='contenuOnglet3'>
if ($_REQUEST['action'] == "supprimer"){ //-------------------------------------------------------- cas suppression
echo ("
<div style='display: none;' class='unOnglet' id='contenuOnglet3'>
<table style='border: 0px solid white;'>
<tr>