Premier commit
This commit is contained in:
41
vues/v_choixCaserne.php
Normal file
41
vues/v_choixCaserne.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<!-- choix d'une Caserne / Derniere modification le 23 mai 2019 par Pascal Blain -->
|
||||
<?php
|
||||
$nbA=count($lesCasernes);
|
||||
echo '
|
||||
<div id="contenu">
|
||||
<form name="choixC" action="index.php" method="post">
|
||||
<h2>'.$titre; ?>
|
||||
<select name="lstCasernes" STYLE="width:350px;" onchange="submit();">
|
||||
<?php
|
||||
if (!isset($_REQUEST['lstCasernes'])) {$choix = 'premier';} else {$choix =$_REQUEST['lstCasernes'];}
|
||||
|
||||
$i=1;
|
||||
foreach ($lesCasernes as $uneCaserne)
|
||||
{
|
||||
if($uneCaserne['cId'] == $choix or $choix == 'premier')
|
||||
{echo "<option selected value=\"".$uneCaserne['cId']."\">".$uneCaserne['cNom']." ".$uneCaserne['cAdresse'].")</option>\n ";
|
||||
$choix = $uneCaserne['cId'];
|
||||
$noA=$i;}
|
||||
else
|
||||
{echo "<option value=\"".$uneCaserne['cId']."\">".$uneCaserne['cNom']." ".$uneCaserne['cAdresse'].")</option>\n ";
|
||||
$i=$i+1;}
|
||||
}
|
||||
echo '
|
||||
</select>
|
||||
</h2>
|
||||
<input type="hidden" name="choixTraitement" value="interventions">
|
||||
<input type="hidden" name="action" value="'.$_REQUEST['action'].'">';
|
||||
?>
|
||||
<!-- ============================================================== navigation dans la liste -->
|
||||
<div id='navigation'>
|
||||
<input type="image" id="zNouveau" title="Ajouter une Intervention" src="images/ajout.gif" onclick="ajouter('choixC')">
|
||||
<input type="image" id="zModif" title="Modifier une Intervention" src="images/modif.gif" onclick="modifier('choixC')">
|
||||
<input type="image" id="zSupprime" title="Supprimer une Intervention" src="images/supprimer.gif" onclick="supprimer('choixC')">
|
||||
<input type="image" id="zPremier" title="premier" src="images/goPremier.gif" onclick="premier('choixC','lstCasernes')">
|
||||
<input type="image" id="zPrecedent" title="précédent" src="images/goPrecedent.gif" onclick="precedent('choixC','lstCasernes')">
|
||||
<?php echo ' <input type="text" id="zNumero" value="'.$noA.'/'.$nbA.'" disabled="true" size="5" style="text-align:center;vertical-align:top;">'; ?>
|
||||
<input type="image" id="zSuivant" title="suivant" src="images/goSuivant.gif" onclick="suivant('choixC','lstCasernes')">
|
||||
<input type="image" id="zDernier" title="dernier" src="images/goDernier.gif" onclick="dernier('choixC','lstCasernes')">
|
||||
</div>
|
||||
</form>
|
||||
<!-- fin liste de choix -->
|
44
vues/v_choixParam.php
Normal file
44
vues/v_choixParam.php
Normal file
@@ -0,0 +1,44 @@
|
||||
<!-- choix d'un parametre / Derniere modification le 18 septembre 2023 par Pascal Blain -->
|
||||
<?php
|
||||
$nbP=count($lesParametres);
|
||||
echo '
|
||||
<div id="contenu">
|
||||
<form name="choixP" action="index.php?choixTraitement=parametres&action=voir" method="post">
|
||||
<h2>' ?>
|
||||
<select name="lstParam" STYLE="width:350px;" onchange="submit();">
|
||||
<?php
|
||||
if (!isset($_REQUEST['lstParam'])) {$choix = 'premier';} else {$choix =$_REQUEST['lstParam'];}
|
||||
|
||||
$i=1;
|
||||
foreach ($lesParametres as $unParametre)
|
||||
{
|
||||
if($unParametre['tpId'] == $choix or $choix == 'premier')
|
||||
{echo "<option selected value=\"".$unParametre['tpId']."\">".$unParametre['tpLibelle']."</option>\n ";
|
||||
$choix = $unParametre['tpId'];
|
||||
$titre1= $unParametre['tpLibelle'];
|
||||
$noP=$i;
|
||||
}
|
||||
else
|
||||
{echo "<option value=\"".$unParametre['tpId']."\">".$unParametre['tpLibelle']."</option>\n ";
|
||||
$i=$i+1;}
|
||||
}
|
||||
if ($_REQUEST['action']<>"liste") {$action = $_REQUEST['action'];} else {$action = "voir";}
|
||||
echo '
|
||||
</select></h2>
|
||||
<input type="hidden" name="uc" value="param">
|
||||
<input type="hidden" name="action" value="'.$action.'">
|
||||
<input type="hidden" name="zType" value="*">
|
||||
<input type="hidden" name="zIndice" value="0">
|
||||
<input type="hidden" name="zColonne" value="0">';
|
||||
?>
|
||||
<!-- ============================================================== navigation dans la liste -->
|
||||
<div id='navigation'>
|
||||
<input type="image" id="zPremier" title="premier" src="images/goPremier.gif" onclick="premier('choixP','lstParam')">
|
||||
<input type="image" id="zPrecedent" title="précédent" src="images/goPrecedent.gif" onclick="precedent('choixP','lstParam')">
|
||||
<?php echo ' <input type="text" id="zNumero" value="'.$noP.'/'.$nbP.'" disabled="true" size="5" style="text-align:center;vertical-align:top;">'; ?>
|
||||
<input type="image" id="zSuivant" title="suivant" src="images/goSuivant.gif" onclick="suivant('choixP','lstParam')">
|
||||
<input type="image" id="zDernier" title="dernier" src="images/goDernier.gif" onclick="dernier('choixP','lstParam')">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<!-- fin liste de choix -->
|
69
vues/v_choixPompier.php
Normal file
69
vues/v_choixPompier.php
Normal file
@@ -0,0 +1,69 @@
|
||||
<!-- choix d'un pompier / Dernière modification le 18 septembre 2023 par Pascal Blain -->
|
||||
<?php
|
||||
$nbL = count($lesLignes); // Liste des pompiers
|
||||
echo '<div id="contenu">
|
||||
<form name="choixP" action="index.php?choixTraitement=pompiers&action=voir" method="post">
|
||||
<h2>';
|
||||
|
||||
if ($_SESSION['statut'] == 1) {
|
||||
echo '
|
||||
<input type="text" value="' . $_SESSION['prenom'] . ' ' . $_SESSION['nom'] . '" disabled>
|
||||
<input type="hidden" name="lstPompiers" value="' . $_SESSION['idUtilisateur'] . '">';
|
||||
$choix = $_SESSION['idUtilisateur'];
|
||||
} else {
|
||||
echo '
|
||||
<select name="lstPompiers" STYLE="width:350px;" onchange="submit();">';
|
||||
|
||||
if (!isset($_REQUEST['lstPompiers'])) {
|
||||
$choix = $_SESSION['idUtilisateur'];
|
||||
} else {
|
||||
$choix = $_REQUEST['lstPompiers'];
|
||||
}
|
||||
$i = 1;
|
||||
|
||||
foreach ($lesLignes as $uneLigne) {
|
||||
if ($uneLigne['pId'] == $choix) {
|
||||
echo "<option selected value=\"" . $uneLigne['pId'] . "\">" . $uneLigne['pNom'] . " " . $uneLigne['pPrenom'] . "</option>\n ";
|
||||
$choix = $uneLigne['pId'];
|
||||
$noL = $i;
|
||||
} else {
|
||||
if ($_SESSION['statut'] == 2) {
|
||||
echo "<option value=\"" . $uneLigne['pId'] . "\">" . $uneLigne['pNom'] . " " . $uneLigne['pPrenom'] . "</option>\n ";
|
||||
}
|
||||
$i = $i + 1;
|
||||
}
|
||||
}
|
||||
echo '</select>';
|
||||
}
|
||||
echo ('
|
||||
</h2>
|
||||
<!-- ============================================================== navigation dans la liste -->
|
||||
<div id="navigation">
|
||||
');
|
||||
|
||||
if ($_SESSION['statut'] == 2) {?>
|
||||
|
||||
<input type="image" id="zNouveau" title="Ajouter" src="images/ajout.gif" onclick="faire('choixP', 'ajouter')">
|
||||
<input type="image" id="zModif" title="Modifier" src="images/modif.gif" onclick="faire('choixP', 'modifier')">
|
||||
<input type="image" id="zSupprime" title="Supprimer" src="images/supprimer.gif" onclick="faire('choixP', 'supprimer')">
|
||||
<input type="image" id="zPremier" title="premier" src="images/goPremier.gif" onclick="premier('choixP','lstPompiers')">
|
||||
<input type="image" id="zPrecedent" title="précédent" src="images/goPrecedent.gif" onclick="precedent('choixP','lstPompiers')">
|
||||
<?php
|
||||
echo '
|
||||
<input type="text" id="zNumero" value="'.$noL.'/'.$nbL.'" disabled="true" size="5" style="text-align:center;vertical-align:top;">'; ?>
|
||||
<input type="image" id="zSuivant" title="suivant" src="images/goSuivant.gif" onclick="suivant('choixP','lstPompiers')">
|
||||
<input type="image" id="zDernier" title="dernier" src="images/goDernier.gif" onclick="dernier('choixP','lstPompiers')">
|
||||
<?php
|
||||
} else {
|
||||
echo '
|
||||
<input type="image" id="zModif" title="Modifier" src="images/modif.gif" onclick="faire(\'choixP\', \'modifier\')">';
|
||||
}?>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="action" value="<?php if($_REQUEST['action']=="liste") {echo "voir";} else {echo $_REQUEST['action'];}?>">
|
||||
<input type="hidden" name="type" value="<?= isset($_REQUEST['type']) ? $_REQUEST['type'] : '';?>">
|
||||
<input type="hidden" name="zType" value="*">
|
||||
<input type="hidden" name="zIndice" value="*">
|
||||
<input type="hidden" name="zColonne" value="*">
|
||||
</form>
|
||||
<!-- fin liste de choix -->
|
20
vues/v_connexion.php
Normal file
20
vues/v_connexion.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<!-- vue v_connexion.php / Derniere modification le 18 septembre 2023 par Pascal Blain -->
|
||||
<div id="contenu">
|
||||
<h2>Merci de vous identifier pour accéder aux dossiers</h2>
|
||||
<form name="frmIdentification" method="POST" action="index.php?choixTraitement=connexion&action=valideConnexion">
|
||||
<fieldset><legend>Identification utilisateur</legend>
|
||||
<br /><br />
|
||||
<label for="nom">Nom du compte*</label>
|
||||
<input id="login" type="text" name="login" size="30" maxlength="45" placeholder="Entrez votre nom d'Utilisateur">
|
||||
</p>
|
||||
<p>
|
||||
<label for="mdp">Mot de passe *</label>
|
||||
<input id="mdp" type="password" name="mdp" size="30" maxlength="45" placeholder="Entrez votre Mot de Passe">
|
||||
</p><br /><br />
|
||||
<input type="submit" name="valider" value="Valider">
|
||||
<input type="reset" name="annuler" value="Annuler">
|
||||
</p>
|
||||
</fieldset>
|
||||
</form>
|
||||
<br /><br />
|
||||
</div>
|
61
vues/v_entete.php
Normal file
61
vues/v_entete.php
Normal file
@@ -0,0 +1,61 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||
<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" />
|
||||
<script src="include/proceduresJava.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<?php
|
||||
//version du code : le 18 septembre 2023 -------------------------------------
|
||||
if (isset($_REQUEST['zFormulaire'])) {
|
||||
$formulaire=$_REQUEST['zFormulaire'];
|
||||
}
|
||||
if (isset($_REQUEST['zChamp'])) {
|
||||
$champ = $_REQUEST['zChamp'];
|
||||
}
|
||||
?>
|
||||
<body onload="donner_focus('<?= $formulaire."','".$champ;?>');">
|
||||
<div id="page">
|
||||
<div id="entete">
|
||||
<img src="./images/logo.png" id="logo" alt="SDIS29" title="SDIS 29" />
|
||||
<div id="sommaire">
|
||||
<?php
|
||||
if (isset($_SESSION['idUtilisateur'])) {
|
||||
echo '<ul>';
|
||||
|
||||
if ($_SESSION['statut'] == 2) {
|
||||
echo '
|
||||
<li><a href="index.php?choixTraitement=parametres&action=voir" title="parametres">parametres</a>|</li>
|
||||
<li><a href="index.php?choixTraitement=gardes&action=voir" title="gardes">gardes</a>|</li>';
|
||||
}
|
||||
if ($_SESSION['statut'] == 3) {
|
||||
echo '<li><a href="index.php?choixTraitement=interventions&action=voir" title="interventions">interventions</a>|</li>';
|
||||
}
|
||||
echo '
|
||||
<li><a href="index.php?choixTraitement=pompiers&action=voir&type=a">pompiers</a>|</li>
|
||||
<li><b>Bienvenue ' . $_SESSION['prenom'] . ' ' . strtoupper($_SESSION['nom']) . ' </b></li>
|
||||
<li style="text-align:left;"><a href="index.php?choixTraitement=connexion&action=demandeConnexion" title="Se déconnecter"><img alt="déconnexion" src="images/deconnexion.png" border="0" height="26px"></a></li>
|
||||
</ul>';
|
||||
}
|
||||
?>
|
||||
<h1>Gestion des gardes et des interventions</h1>
|
||||
</div>
|
||||
<?php
|
||||
if (isset($_SESSION['adr1'])) {
|
||||
echo ('
|
||||
<div><small><p style="text-align:left;">'
|
||||
. $_SESSION['adr1'] . '<br />'
|
||||
. $_SESSION['adr2']
|
||||
. '<br />' . $_SESSION['adr3']
|
||||
. '<br />' . $_SESSION['adr4']
|
||||
. '</p></small>
|
||||
</div>
|
||||
');
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
<!-- fin affichage du menu -->
|
10
vues/v_erreurs.php
Normal file
10
vues/v_erreurs.php
Normal file
@@ -0,0 +1,10 @@
|
||||
<div class ="erreur">
|
||||
<ul>
|
||||
<?php
|
||||
foreach($_REQUEST['erreurs'] as $erreur)
|
||||
{
|
||||
echo "<li>$erreur</li>";
|
||||
}
|
||||
?>
|
||||
</ul>
|
||||
</div>
|
66
vues/v_ficheGardes.php
Normal file
66
vues/v_ficheGardes.php
Normal file
@@ -0,0 +1,66 @@
|
||||
<!-- affichage de la feuille de gardes / Derniere modification le 18/09/2023 à 16h50 par Pascal Blain -->
|
||||
<div style='display: block;' class='unOnglet' id='contenuOnglet1'>
|
||||
<fieldset><legend>Feuille de gardes</legend>
|
||||
<form name="frmDispos" action="index.php?choixTraitement=gardes&action=voir" method="post">
|
||||
<input type="hidden" name="zSemaine" value='<?php echo $semaine;?>'>
|
||||
<input type="hidden" name="zAnnee" value='<?php echo $annee;?>'>
|
||||
<input type="hidden" name="ztLaDate" value="">
|
||||
<input type="hidden" name="ztLaTranche" value="">
|
||||
<input type="hidden" name="ztExGarde" value="">
|
||||
<input type="hidden" name="ztPompier" value="">
|
||||
</form>
|
||||
<table id="tableau" class="tableau">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th><input id="sPrecedente" name="gauche" title="semaine précédente" src="images/gauche.gif" onclick="autreSemaine('<?php echo date('W',strtotime("-7 days",$premierJour))."', '".date('Y',strtotime("-7 days",$premierJour))?>')" onmouseover="document.gauche.src='images/gauche_.gif'" onmouseout="document.gauche.src='images/gauche.gif'"type="image"></th>
|
||||
|
||||
<th colspan="27"><b><big>Semaine <?php echo $semaine." : du lundi ".date('d/m/Y',$premierJour)." au dimanche ".date('d/m/Y',strtotime("6 days",$premierJour))."</big></b></th>";?>
|
||||
|
||||
<th><input id="sSuivante" name="droite" title="semaine suivante" src="images/droite.gif" onclick="autreSemaine('<?php echo date('W',strtotime("+7 day",$premierJour))."', '".date('Y',strtotime("+7 day",$premierJour));?>')" onmouseover="document.droite.src='images/droite_.gif'" onmouseout="document.droite.src='images/droite.gif'"type="image"></th>
|
||||
</tr>
|
||||
<tr><th> </th>
|
||||
<?php
|
||||
$nomJour = array('Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi','Dimanche');
|
||||
for($jour=0; $jour<= 6; $jour++)
|
||||
{
|
||||
echo ('<th colspan="4">'.$nomJour[$jour].' '.date('d/m',strtotime('+'.$jour.' day',$premierJour)).'</th>');
|
||||
}
|
||||
|
||||
echo "</tr>".PHP_EOL." <tr><th width='100'>Volontaires</th>";
|
||||
for($jour=0; $jour<= 6; $jour++)
|
||||
{
|
||||
foreach ($lesTranches as $uneTranche)
|
||||
{echo '<th class="semaine" style="text-align : center;">'.$uneTranche["pIndice"].'</th>';}
|
||||
}
|
||||
echo PHP_EOL." </tr>";
|
||||
|
||||
foreach ($lesPompiers as $unPompier)
|
||||
{
|
||||
echo "<tr><td><small><small>".$unPompier['pNom']." ".$unPompier['pPrenom']."</small></small></td>";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
echo "</tr>".PHP_EOL." ";
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
101
vues/v_ficheParametre.php
Normal file
101
vues/v_ficheParametre.php
Normal file
@@ -0,0 +1,101 @@
|
||||
<!-- affichage du detail d'un parametre / Derniere modification le 18 septembre 2023 par Pascal Blain -->
|
||||
<?php
|
||||
echo('
|
||||
<div id="fiche">
|
||||
');
|
||||
/*================================================================================================== */
|
||||
echo("
|
||||
<div>
|
||||
<fieldset><legend>Parametre</legend>
|
||||
<table>
|
||||
<tr><th style='width:25px;text-align:center;'><a href='index.php?choixTraitement=parametres&action=ajouter&type=".$enteteParametre['tpId']."&valeur=NULL'><img title='Ajouter une valeur' src='images/ajout.gif'></a></th><th style='width:30px;'>Code</th><th>Description</th></tr>
|
||||
<tr><td> </td><td>".$enteteParametre['tpId']."</td><td>".$enteteParametre['tpLibelle']."</td></tr>
|
||||
</table>
|
||||
</fieldset><br />
|
||||
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td style='border :0px;'>
|
||||
<fieldset><legend>Valeurs</legend>
|
||||
<table>");
|
||||
$numPa=1;
|
||||
foreach ($lesInfosParametre as $uneLigne)
|
||||
{
|
||||
if ($numPa<9)
|
||||
{$numPa=$numPa+1;
|
||||
$type = $choix;
|
||||
$indice = $uneLigne['pIndice'];
|
||||
|
||||
echo("<tr> <th style='width:25px;text-align:center;'>".$uneLigne['pIndice']."</th> <td>".$uneLigne['pLibelle']."</td>
|
||||
<td style='width:25px;text-align:center;'>");
|
||||
if ($uneLigne['nb']<>0)
|
||||
{echo("<a onclick=\"javascript:voirListe('$type','$indice','voir'); return false;\" class='stNb'>".$uneLigne['nb']."</a>");}
|
||||
else
|
||||
{echo($uneLigne['nb']);}
|
||||
echo("</td>
|
||||
<td style='width:20px;text-align:center;'><a href='index.php?choixTraitement=parametres&action=modifier&type=".$enteteParametre['tpId']."&valeur=".$uneLigne['pIndice']."'><img src='images/modif.gif' title='modifier'></a></td>
|
||||
<td style='width:20px;text-align:center;'>");
|
||||
if ($uneLigne['nb']!=0) {echo " ";}
|
||||
else {echo ("
|
||||
<a href='index.php?choixTraitement=parametres&action=supprimer&type=".$enteteParametre['tpId']."&valeur=".$uneLigne['pIndice']."'><img title='Supprimer' src='images/supprimer.gif'></a>");}
|
||||
echo ("
|
||||
</td></tr>");
|
||||
}
|
||||
}
|
||||
while ($numPa<9)
|
||||
{
|
||||
echo("<tr> <th style='width:25px;'>...</th> <td> </td> </tr>");
|
||||
$numPa=$numPa+1;
|
||||
}
|
||||
|
||||
echo(" </table>
|
||||
</fieldset></td>
|
||||
<td style='border :0px;'>
|
||||
<fieldset><legend>(suite)</legend>
|
||||
<table>");
|
||||
$numP=1;
|
||||
foreach ($lesInfosParametre as $uneLigne)
|
||||
{
|
||||
if ($numP>=9)
|
||||
{
|
||||
$type = $choix;
|
||||
$indice = $uneLigne['pIndice'];
|
||||
|
||||
echo("<tr> <th style='width:25px;text-align:center;'>".$uneLigne['pIndice']."</th> <td>".$uneLigne['pLibelle']."</td>
|
||||
<td style='width:25px;text-align:center;'>");
|
||||
if ($uneLigne['nb']<>0)
|
||||
{echo("<a onclick=\"javascript:voirListe('$type','$indice','voir'); return false;\" class='stNb'>".$uneLigne['nb']."</a>");}
|
||||
else
|
||||
{echo($uneLigne['nb']);}
|
||||
echo("</td>
|
||||
<td style='width:20px;text-align:center;'><a href='index.php?choixTraitement=parametres&action=modifier&type=".$enteteParametre['tpId']."&valeur=".$uneLigne['pIndice']."'><img src='images/modif.gif' title='modifier'></a></td>
|
||||
<td style='width:20px;text-align:center;'>");
|
||||
if ($uneLigne['nb']!=0) {echo " ";}
|
||||
else {echo ("
|
||||
<a href='index.php?choixTraitement=parametres&action=supprimer&type=".$enteteParametre['tpId']."&valeur=".$uneLigne['pIndice']."'><img title='Supprimer' src='images/supprimer.gif'></a>");}
|
||||
echo ("
|
||||
</td></tr>");
|
||||
}
|
||||
$numP=$numP+1;
|
||||
}
|
||||
if ($numP<9) {$numP=9;}
|
||||
while ($numP<17)
|
||||
{
|
||||
echo("<tr> <th style='width:25px;text-align:center;'>...</th> <td> </td> </tr>");
|
||||
$numP=$numP+1;
|
||||
}
|
||||
echo(" </table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<fieldset><legend>Observations</legend>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td>...</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>");
|
||||
?>
|
282
vues/v_fichePompier.php
Normal file
282
vues/v_fichePompier.php
Normal file
@@ -0,0 +1,282 @@
|
||||
|
||||
<!-- affichage du detail de la fiche pompier / Derniere modification le 18 septembre 2023 par Pascal Blain -->
|
||||
<!-- ------------------------------------------------ fenetre modale en CSS -->
|
||||
<style>
|
||||
.fModale {
|
||||
position : fixed;
|
||||
font-family : Arial, Helvetica, sans-serif;
|
||||
top : 0;
|
||||
right : 0;
|
||||
bottom : 0;
|
||||
left : 0;
|
||||
background : rgba(0,0,0,0.8);
|
||||
z-index : 99999;
|
||||
//display : none;
|
||||
opacity : 0;
|
||||
-webkit-transition: opacity 400ms ease-in;
|
||||
-moz-transition: opacity 400ms ease-in;
|
||||
transition : opacity 400ms ease-in;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.fModale:target {
|
||||
//display : block;
|
||||
opacity : 1;
|
||||
pointer-events: auto;
|
||||
}
|
||||
|
||||
.fModale > div {
|
||||
width : 200px;
|
||||
position : relative;
|
||||
margin : 10% auto;
|
||||
padding : 5px 20px 13px 20px;
|
||||
border-radius: 10px;
|
||||
background : #fff;
|
||||
background : -moz-linear-gradient(#fff, #999);
|
||||
background : -webkit-linear-gradient(#fff, #999);
|
||||
background : -o-linear-gradient(#fff, #999);
|
||||
}
|
||||
|
||||
.fermer {
|
||||
background : #606061;
|
||||
color : #FFFFFF;
|
||||
line-height : 25px;
|
||||
position : absolute;
|
||||
right : -12px;
|
||||
text-align : center;
|
||||
top : -10px;
|
||||
width : 24px;
|
||||
text-decoration: none;
|
||||
font-weight : bold;
|
||||
-webkit-border-radius: 12px;
|
||||
-moz-border-radius: 12px;
|
||||
border-radius: 12px;
|
||||
-moz-box-shadow: 1px 1px 3px #000;
|
||||
-webkit-box-shadow: 1px 1px 3px #000;
|
||||
box-shadow : 1px 1px 3px #000;
|
||||
}
|
||||
|
||||
.fermer:hover { background: #00d9ff; }
|
||||
</style>
|
||||
<?php
|
||||
/*-----------------------------------------------------------------
|
||||
Il existe en PHP un opérateur conditionnel dit opérateur ternaire ("?:")
|
||||
Exemple d'utilisation pour l'opérateur ternaire : Affectation d'une valeur par défaut
|
||||
<?php
|
||||
$action = (empty($_POST['action'])) ? 'default' : $_POST['action'];
|
||||
|
||||
// La ligne ci-dessus est identique à la condition suivante :
|
||||
if (empty($_POST['action'])) {
|
||||
$action = 'default';
|
||||
} else {
|
||||
$action = $_POST['action'];
|
||||
}
|
||||
-----------------------------------------------------------------------*/
|
||||
$titre1 = ($_SESSION['statut'] == 1) ? "Mes disponibilités" : "Disponibilités";
|
||||
$titre2 = ($_SESSION['statut'] == 1) ? "Mes gardes" : "Gardes";
|
||||
$titre3 = ($_SESSION['statut'] == 1) ? "Mon profil" : "Profil";
|
||||
echo ('
|
||||
<div id="fiche">
|
||||
<ul class="lesOnglets">
|
||||
<li class="actif onglet" id="onglet1" onclick="javascript:Affiche(\'1\',3);">'.$titre1.'</li>
|
||||
<li class="inactif onglet" id="onglet2" onclick="javascript:Affiche(\'2\',3);">'.$titre2.'</li>
|
||||
<li class="inactif onglet" id="onglet3" onclick="javascript:Affiche(\'3\',3);">'.$titre3.'</li>
|
||||
</ul>');
|
||||
/*================================================================================================== DISPONIBILITEES (1) */
|
||||
echo ("
|
||||
<div style='display: block;' class='unOnglet' id='contenuOnglet1'>
|
||||
<fieldset><legend>X indique une garde</legend>"); ?>
|
||||
<!-- div class="boite" style="margin: 0px 10px;" -->
|
||||
|
||||
<form name="frmDispos" action="index.php?choixTraitement=pompiers&action=voir" method="post">
|
||||
<input type="hidden" maxlength="2" name="zSemaine" value='<?php echo $semaine;?>'>
|
||||
<input type="hidden" maxlength="2" name="zAnnee" value='<?php echo $annee;?>'>
|
||||
</form>
|
||||
<table id="tableau" class="tableau">
|
||||
<tbody>
|
||||
<!-- PARTIE SELCTION SEMAINE -->
|
||||
<tr>
|
||||
<th><input id="sPrecedente" name="gauche" title="semaine précédente" src="images/gauche.gif" onclick="autreSemaine('<?php echo date('W',strtotime("-7 days",$premierJour))."', '".date('Y',strtotime("-7 days",$premierJour))?>')" onmouseover="document.gauche.src='images/gauche_.gif'" onmouseout="document.gauche.src='images/gauche.gif'"type="image"></th>
|
||||
|
||||
<th colspan="26"><b><big>Semaine <?php echo $semaine." : du lundi ".date('d/m/Y',$premierJour)." au dimanche ".date('d/m/Y',strtotime("6 days",$premierJour))."</big></b></th>";?>
|
||||
|
||||
<th><input id="sSuivante" name="droite" title="semaine suivante" src="images/droite.gif" onclick="autreSemaine('<?php echo date('W',strtotime("+7 day",$premierJour))."', '".date('Y',strtotime("+7 day",$premierJour));?>')" onmouseover="document.droite.src='images/droite_.gif'" onmouseout="document.droite.src='images/droite.gif'"type="image"></th>
|
||||
</tr>
|
||||
|
||||
<!-- PARTIE AFFICHAGE DES JOURS -->
|
||||
<tr>
|
||||
<?php
|
||||
$nomJour = array('Lundi', 'Mardi', 'Mercredi', 'Jeudi', 'Vendredi', 'Samedi', 'Dimanche');
|
||||
for($jour = 0; $jour <= 6; $jour++) {
|
||||
echo ('<th colspan="4">'
|
||||
. $nomJour[$jour] . ' '
|
||||
. date('d/m', strtotime('+' . $jour . ' day', $premierJour)) . '</th>'
|
||||
);
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
|
||||
<!-- PARTIE AFFICHAGE DES TRANCHES DANS CHAQUE JOURS -->
|
||||
<tr>
|
||||
<?php
|
||||
for($jour = 0; $jour <= 6; $jour++) {
|
||||
for($tranche = 1; $tranche <= 4; $tranche++) {
|
||||
echo '<th class="semaine" style="text-align : center;">' . $tranche . '</th>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
|
||||
<!-- PARTIE SELCTION DES DISPO -->
|
||||
<tr>
|
||||
<?php
|
||||
foreach ($lesDispos as $uneLigne) { // $pdo->getDisposHebdo() return les dispo
|
||||
for($jour = 0; $jour <= 6; $jour++) {
|
||||
$leJour = date('Y-m-d', strtotime('+' . $jour . ' day', $premierJour));
|
||||
$dateTab = date('d/m/Y', strtotime('+' . $jour . ' day', $premierJour));
|
||||
for($tranche = 1; $tranche <= 4; $tranche++){
|
||||
$couleur = 'c' . $tranche;
|
||||
$garde = 'g' . $tranche;
|
||||
$dispo = 'd' . $tranche;
|
||||
echo('
|
||||
<td style="height: 20px; background-color: ' . $uneLigne[$dateTab][$couleur] . ';" class="select-dispo" id="' . $leJour . '/' . $tranche . '">' . (($uneLigne[$dateTab][$garde] == 1) ? 'X' : '') . '</td>
|
||||
');
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div id="fenetreDispo" class="fModale">
|
||||
<div>
|
||||
<a href="#" title="Fermer" class="fermer">X</a>
|
||||
<h2>ma disponibilité<br>pour le <label id="ztJour"> </label></h2>
|
||||
<form name="frmActivites" action="index.php?choixTraitement=pompiers&action=majActivite" method="post">
|
||||
<input type="hidden" name="zSemaine" value='<?php echo $semaine;?>'>
|
||||
<input type="hidden" name="zAnnee" value='<?php echo $annee;?>'>
|
||||
<input type="hidden" name="ztLaDate" value=''>
|
||||
<input type="hidden" name="ztLaTranche" value=''>
|
||||
<input type="hidden" name="ztExDispo" value=''>
|
||||
<br>
|
||||
<?php
|
||||
$i=0;
|
||||
foreach ($lesTypesDispos as $uneLigne)
|
||||
{
|
||||
if ($uneLigne["pIndice"]<>3) {
|
||||
echo '<input type="radio" name="brDispo" id="brDispo'.$i.'" value="'.$uneLigne["pIndice"].'"/><label for="brDispo'.$i.'">'.$uneLigne["pLibelle"].'</label><br>';}
|
||||
$i++;
|
||||
}
|
||||
?>
|
||||
<br>
|
||||
<button onclick="document.forms['frmActivites'].submit()">Valider</button>
|
||||
<button href="#contenuOnglet1">Annuler</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /div -->
|
||||
<?php
|
||||
echo ("
|
||||
</fieldset>
|
||||
</div>");
|
||||
/*================================================================================================== GARDES (2)*/
|
||||
echo ("
|
||||
<div style='display: none;' class='unOnglet' id='contenuOnglet2'>
|
||||
<fieldset><legend>Gardes réalisées ");
|
||||
if (count($lesGardes)==0) {echo "<i>(aucune garde enregistrée)</i></legend>";} else
|
||||
{
|
||||
echo ("<i>(".count($lesGardes)." gardes)</i></legend>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr><th class='controleLong'>Date de la garde</th>");
|
||||
foreach ($lesTranches as $uneLigne) { echo ("<th>".$uneLigne['pLibelle']."</th>");}
|
||||
$dateGarde="premiere";
|
||||
$colonne=1;
|
||||
echo "</tr>";
|
||||
foreach ($lesGardes as $uneLigne)
|
||||
{
|
||||
if ($dateGarde != $uneLigne['wDate'])
|
||||
{
|
||||
if ($dateGarde != "premiere")
|
||||
{
|
||||
while ($colonne<=count($lesTranches)) {echo "<td class='controle' style='text-align : center;'> </td>"; $colonne++;}
|
||||
echo "</tr>
|
||||
";
|
||||
}
|
||||
echo "<tr><td class='controle' style='text-align : center;'>".$uneLigne['wDate']."</td>";
|
||||
$dateGarde = $uneLigne['wDate'];
|
||||
$colonne=1;
|
||||
}
|
||||
while ($colonne<$uneLigne['aTranche']) {echo "<td class='controle' style='text-align : center;'> </td>"; $colonne++;}
|
||||
echo ("<td class='controle' style='text-align : center;background-color : lime;'> </td>");
|
||||
$colonne=$uneLigne['aTranche']+1;
|
||||
}
|
||||
while ($colonne<=count($lesTranches)) {echo "<td class='controle' style='text-align : center;'> </td>"; $colonne++;}
|
||||
echo "</tr>";
|
||||
echo ("</table>");
|
||||
}
|
||||
echo ("
|
||||
</fieldset>
|
||||
</div>");
|
||||
/*================================================================================================== COORDONNEES (3) */
|
||||
echo ("
|
||||
<div style='display: none;' class='unOnglet' id='contenuOnglet3'>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td style='border :0px;'>
|
||||
<fieldset><legend>Coordonnées</legend>
|
||||
<table>
|
||||
<tr><th style='width:130px;'>Nom</th> <td style='width:130px;'>".$lesInfosPompier['nom']."</td> </tr>
|
||||
<tr><th>Prénom</th> <td>".$lesInfosPompier['prenom']."</td> </tr>
|
||||
<tr><th>Adresse</th> <td>".$lesInfosPompier['pAdresse']."</td> </tr>
|
||||
<tr><th>Code postal</th> <td>".$lesInfosPompier['pCp']."</td> </tr>
|
||||
<tr><th>Ville</th> <td>".$lesInfosPompier['pVille']."</td> </tr>
|
||||
<tr><th>Téléphone</th> <td>".$lesInfosPompier['pBip']."</td> </tr>
|
||||
<tr><th>Adresse électronique</th> <td>".$lesInfosPompier['pMail']."</td> </tr>
|
||||
<tr><th>Nom de compte</th> <td>".$lesInfosPompier['pLogin']."</td></tr>
|
||||
<tr><th> </th> <td> </td> </tr>
|
||||
<br />");
|
||||
echo (" </table>
|
||||
</fieldset>
|
||||
</td>
|
||||
<td style='border :0px;'>
|
||||
<fieldset><legend>Centre d'Incendie et de Secours</legend>
|
||||
<table>
|
||||
<tr><th style='width:130px;'>Code</th> <td>".$lesInfosPompier['pCis']."</td> </tr>
|
||||
<tr><th>Nom</th> <td>".$lesInfosPompier['cNom']."</td> </tr>
|
||||
<tr><th>Adresse</th> <td>".$lesInfosPompier['cAdresse']."</td> </tr>
|
||||
<tr><th>Téléphone</th> <td>".$lesInfosPompier['cTel']."</td> </tr>
|
||||
<tr><th>Groupement</th> <td>".$lesInfosPompier['cGroupement']."</td> </tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<fieldset><legend>Fonction</legend>
|
||||
<table>
|
||||
<tr><th>Type</th> <td>".$lesInfosPompier['wType']."</td> </tr>
|
||||
<tr><th>Grade</th> <td>".$lesInfosPompier['wGrade']."</td> </tr>
|
||||
<tr><th>Statut</th> <td>".$lesInfosPompier['wStatut']."</td> </tr> </table>
|
||||
</fieldset></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<fieldset><legend>Observations</legend>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td>.".$lesInfosPompier['pCommentaire']."</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>");
|
||||
|
||||
/*================================================================================================== Onglet X */
|
||||
echo ("
|
||||
<div style='display: none;' class='unOnglet' id='contenuOngletX'>
|
||||
<fieldset><legend>XXXX</legend>
|
||||
<table>
|
||||
<tr><th style='width:130px;'>.....</th></tr>
|
||||
<tr><td>xxxx</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>");
|
||||
?>
|
98
vues/v_intervention.php
Normal file
98
vues/v_intervention.php
Normal file
@@ -0,0 +1,98 @@
|
||||
|
||||
<!-- affichage d'une intervention / Derniere modification le 23 mai 2019 par Pascal Blain -->
|
||||
<?php
|
||||
$nbi=count($lesInterventions);
|
||||
|
||||
$titre="Ajout";
|
||||
echo ('
|
||||
<div id="fiche">
|
||||
<ul class="lesOnglets">
|
||||
<li class="actif onglet" id="onglet1" onclick="javascript:Affiche(\'1\',3);">'.$titre.'</li>
|
||||
<li class="inactif onglet" id="onglet2" onclick="javascript:Affiche(\'2\',3);">onglet 2</li>
|
||||
<li class="inactif onglet" id="onglet3" onclick="javascript:Affiche(\'3\',3);">onglet 3</li>
|
||||
</ul>');
|
||||
|
||||
/*================================================================================================== nouvelle intervention (1) */
|
||||
echo("
|
||||
<div style='display: block;' class='unOnglet' id='contenuOnglet1'>
|
||||
<fieldset><legend>Nouvelle intervention</legend>
|
||||
<table>
|
||||
<tr><th style='width:180px;'>Description</th><th>Date</th><th>Lieu</th><th>Horaires</th></th></tr>
|
||||
<tr><td>".$infosIntervention['iDescription']."</td><td>".$infosIntervention['iDdate']."</td><td>".$infosIntervention['iLieu']."</td><td>de ".$infosIntervention['iHeureDebut']." à ".$infosIntervention['iHeureFin']."</td></tr>
|
||||
<tr><td colspan='4'>".$infosIntervention['programme1']."</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td style='border :0px;'>
|
||||
<fieldset><legend><a href='index.php?uc=intervention&action=ajouterIntervenants&atelier=20132115&reunion=1' title='ajouter les participants'><img alt='ajouter des intervenants' src='images/group.png'>Intervenants</a></legend>
|
||||
<table>");
|
||||
$numPa = 0;
|
||||
|
||||
foreach ($lesParticipants as $unParticipant) {
|
||||
if ( $unParticipant['rOrdre'] == 1 AND $numPa < 7) {
|
||||
$numPa = $numPa+1;
|
||||
$participant=$unParticipant['uNom'] . " " . $unParticipant['uPrenom'];
|
||||
echo("<tr> <th style='width:180px;'>" . $participant . "</th> <td>x</td> </tr>");
|
||||
}
|
||||
}
|
||||
echo(" </table>
|
||||
</fieldset></td>
|
||||
<td style='border :0px;'>
|
||||
<fieldset><legend>(suite)</legend>
|
||||
<table>");
|
||||
$numP = 0;
|
||||
foreach ($lesParticipants as $unParticipant) {
|
||||
if ($unParticipant['rOrdre'] == 1 ) {
|
||||
$numP = $numP+1;
|
||||
if ($numP > 7) {
|
||||
$participant = $unParticipant['uNom'] . " " . $unParticipant['uPrenom'];
|
||||
echo("<tr> <th style='width:180px;'>".$participant."</th> <td>x</td> </tr>");
|
||||
}
|
||||
}
|
||||
}
|
||||
while ($numP<14) {
|
||||
echo("<tr> <th>...</th>
|
||||
|
||||
<td> </td> </tr>");
|
||||
$numP = $numP+1;
|
||||
}
|
||||
echo(" </table>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<fieldset><legend>Observations</legend>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td>".$infosIntervention['commentaire1']."</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>");
|
||||
/*================================================================================================== Onglet (2) */
|
||||
|
||||
echo ("
|
||||
<div style='display: none;' class='unOnglet' id='contenuOnglet2'>
|
||||
<fieldset><legend>XXXX</legend>
|
||||
<table>
|
||||
<tr><th style='width:130px;'>.....</th></tr>
|
||||
<tr><td>xxxx</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>");
|
||||
|
||||
/*================================================================================================== Onglet 3 */
|
||||
echo ("
|
||||
<div style='display: none;' class='unOnglet' id='contenuOnglet3'>
|
||||
<fieldset><legend>XXXX</legend>
|
||||
<table>
|
||||
<tr><th style='width:130px;'>.....</th></tr>
|
||||
<tr><td>xxxx</td></tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>");
|
||||
?>
|
47
vues/v_listeStat.php
Normal file
47
vues/v_listeStat.php
Normal file
@@ -0,0 +1,47 @@
|
||||
<!-- affichage du détail d'une statistique / Dernière modification le 20 novembre 2013 par Pascal BLAIN -->
|
||||
<?php
|
||||
echo('<div id="fiche">
|
||||
<div>');
|
||||
echo("<fieldset><legend>" . $titre1 . "</legend>
|
||||
<h2> ".$titre2."</h2><p><i>(" . count($lesStatistiques) . " usagers ");
|
||||
|
||||
if ($colonne == 'B') {
|
||||
echo ("déjà présents durant la période précédente");
|
||||
}
|
||||
if ($colonne == 'D') {
|
||||
echo ("arrivés en cours de période");
|
||||
}
|
||||
if ($colonne == 'F') {
|
||||
echo ("sortis en cours de période");
|
||||
}
|
||||
if ($colonne == 'S') {
|
||||
echo ("en cours d'instruction ou suivis");
|
||||
}
|
||||
if ($colonne == 'C') {
|
||||
echo ("sortis ou réorientés");
|
||||
}
|
||||
echo (")</i></p>
|
||||
<table>
|
||||
<tr><th class='controleLong'>Nom de l'usager</th><th>Genre</th><th class='controleLong'>Ville</th><th>né(e) le</th><th>No CAF</th>
|
||||
<th>Entrée le</th><th>Sortie le</th></tr>");
|
||||
|
||||
foreach ($lesStatistiques as $uneLigne) {
|
||||
if ($uneLigne['uHomme'] == 1) {
|
||||
$sexe = "M";
|
||||
} else {
|
||||
$sexe = "F";
|
||||
}
|
||||
echo("<tr><td class='controleLong'><a href='index.php?uc=usagers&action=voir&lstUsagers=" .$uneLigne['uId']."' style='text-decoration:none;'>".$uneLigne['uNom']." ".$uneLigne['uPrenom']."</a></td>
|
||||
<td style='text-align : center;'>".$sexe."</td>
|
||||
<td class='controleLong'>".$uneLigne['uCp']." ".$uneLigne['uVille']."</td>
|
||||
<td class='controle' style='text-align : center;'>".$uneLigne['uDateNaissance']."</td>
|
||||
<td class='controle' style='text-align : center;'>".$uneLigne['uNumCaf']."</td>
|
||||
<td class='controle' style='text-align : center;'>".$uneLigne['wEntree']."</td>
|
||||
<td class='controle' style='text-align : center;'>".$uneLigne['wSortie']."</td>
|
||||
</tr>");
|
||||
}
|
||||
echo ("</table>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>");
|
||||
?>
|
9
vues/v_pied.php
Normal file
9
vues/v_pied.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<!-- Derniere modification le 18/09/2023 par Pascal Blain -->
|
||||
<!-- Division pour le pied de page -->
|
||||
<div>
|
||||
<hr /><p style="text-align:center;">
|
||||
<img src="images/castel.png" style="vertical-align: middle;">
|
||||
<?php echo "Lycée Le Castel à Dijon - BTS SIO - <img src='images/copyleft.png' style='text-align: center; vertical-align: middle;'> 2023 Pierre Renaudot";?></p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
48
vues/v_unParam.php
Normal file
48
vues/v_unParam.php
Normal file
@@ -0,0 +1,48 @@
|
||||
<!-- v_unParam.php / Derniere modification le 18 septembre 2023 par Pascal Blain -->
|
||||
<div id="contenu">
|
||||
<?php
|
||||
if ($action==="supprimer")
|
||||
{echo '<h2>SUPPRESSION DE LA VALEUR D\'UN PARAMETRE</h2>';
|
||||
echo "<form name='frmParam' action='index.php?choixTraitement=parametres&action=validerSupprimer&type=".$infosParam['pType']."&valeur=".$infosParam['pIndice']."' method='post'>";}
|
||||
if ($action==="modifier")
|
||||
{echo '<h2>MODIFICATION DE LA VALEUR D\'UN PARAMETRE</h2>';
|
||||
echo "<form name='frmParam' action='index.php?choixTraitement=parametres&action=validerModifier&type=".$infosParam['pType']."&valeur=".$infosParam['pIndice']."' method='post'>";}
|
||||
if ($action==="ajouter")
|
||||
{echo '<h2>AJOUT DE LA VALEUR D\'UN PARAMETRE</h2>';
|
||||
echo "<form name='frmParam' action='index.php?choixTraitement=parametres&action=validerAjouter&type=".$infosParam['pType']."' method='post'>";}
|
||||
?>
|
||||
<!-- Affichage des valeurs dans un tableau récapitulatif. -->
|
||||
<div>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr><td style='border :0px;'>
|
||||
<fieldset><legend><?php echo $infosParam['tlLibelle'] ?></legend>
|
||||
<?php
|
||||
echo (" <table>
|
||||
<tr> <th>Indice</th> <td>");
|
||||
if ($action==="ajouter") {echo "<input class='controle' type='text' name='valeur' value='".$infosParam['pIndice']."'>";}
|
||||
else {echo $infosParam['pIndice'];}
|
||||
echo (" </td> </tr>
|
||||
<tr> <th>Valeur</th> <td>");
|
||||
if ($action==="ajouter") {echo "<input class='controle' type='text' name='zLibelle'>";$actif=null;}
|
||||
if ($action==="modifier") {echo "<input class='controleLong' type='text' name='zLibelle' value='".$infosParam['pLibelle']."'>";$actif=null;}
|
||||
if ($action==="supprimer") {echo $infosParam['pLibelle'];$actif="disabled='disabled'";}
|
||||
echo (" </td> </tr>");
|
||||
echo ("
|
||||
<tr> <th>Plancher</th> <td><input class='controle' type='text' name='zPlancher' value='".$infosParam['pPlancher']."'></td> </tr>
|
||||
<tr> <th>Plafond</th> <td><input class='controle' type='text' name='zPlafond' value='".$infosParam['pPlafond']."'></td> </tr>");
|
||||
echo ("
|
||||
</table>
|
||||
<input type='hidden' name='zTerritoire' value='NULL'><input type='hidden' name='zDep' value='NULL'>"); ?>
|
||||
</fieldset>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<p align="right">
|
||||
<input type="hidden" name="zOk" value="OK">
|
||||
<input type="image" name="btValider" alt="Valider" src="images/valider.jpg" onclick="this.form.submit();">
|
||||
<input type="image" name="btAnnuler" alt="Annuler" src="images/annuler.jpg" onclick="annuler('frmParam');">
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
67
vues/v_unPompier.php
Normal file
67
vues/v_unPompier.php
Normal file
@@ -0,0 +1,67 @@
|
||||
<!-- v_unPompier.php / Derniere modification le 18 septembre 2023 par Pascal Blain -->
|
||||
<div id="contenu">
|
||||
<?php
|
||||
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">';
|
||||
}
|
||||
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)">';
|
||||
}
|
||||
echo ("
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
<td style='border :0px;'>
|
||||
<fieldset><legend>Coordonnées</legend>
|
||||
<table>
|
||||
");
|
||||
|
||||
if ($_REQUEST['action']=="supprimer"){ //-------------------------------------------------------- cas suppression
|
||||
echo ("
|
||||
<div style='display: none;' class='unOnglet' id='contenuOnglet3'>
|
||||
<table style='border: 0px solid white;'>
|
||||
<tr>
|
||||
|
||||
</tr>
|
||||
</table>
|
||||
");
|
||||
}
|
||||
//------------------------------------------------------------------------------------ cas ajout ou modification
|
||||
|
||||
if ($_REQUEST['action'] == "modifier") {
|
||||
echo (" <tr>
|
||||
</tr>
|
||||
</table>
|
||||
");
|
||||
}
|
||||
if ($_REQUEST['action'] == "ajouter") {
|
||||
echo (" <tr><th style='width:130px;'>Nom</th> <td style='width:130px;'><input id='ztNom' type='text' name='ztNom'></td> </tr>
|
||||
|
||||
<br />");
|
||||
}
|
||||
?>
|
||||
<table style='border: 0px solid white; '>
|
||||
<tr>
|
||||
<td style='border: 0px solid white;'>
|
||||
<fieldset><legend>Observations</legend>
|
||||
<textarea name='ztObs' cols='70' rows='1'></textarea>
|
||||
</fieldset>
|
||||
</td>
|
||||
<td>
|
||||
<input type="image" name="btValider" alt="Valider" src="images/valider.jpg" value="OK" >
|
||||
<input type="image" name="btAnnuler" alt="Annuler" src="images/annuler.jpg" value="nonOK" onclick="annuler('frmA');">
|
||||
</td>
|
||||
<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");} ?>">
|
||||
<input type="hidden" name="zOk" value="OK">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
Reference in New Issue
Block a user