sauvegarde 05/10/2023
This commit is contained in:
@@ -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">
|
||||
|
@@ -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é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>
|
||||
|
||||
|
Reference in New Issue
Block a user