getParametre("tranche"); $lesTypesDispos = $pdo->getParametre("dispo"); $titre = "CIS"; //Centre d'incendie et de secours :"; //include("vues/v_choixCaserne.php"); //$lesPompiers = $pdo->getLesPompiers($choix); //$lesInterventions = $pdo->getLesInterventions($choix); //$intervention = 1; //$lesParticipants = $pdo->getLesParticipants($choix, $intervention); include("vues/v_Intervention.php"); break; } case 'nouvelle': { include("vues/v_entete.php"); $lesCasernes = $pdo->getLesCasernes($_SESSION["adr1"]); $lesMotifs = $pdo->motifIntervention(); $lesPompiers = $pdo->getPompiersDispo('2023-09-23', 2, 2924); include("vues/v_nouvelleIntervention.php"); break; } case 'listePompier': require_once ("../include/class.pdo.php"); $pdo = PdoBD::getPdoBD(); $lesPompiers = $pdo->getPompiersDispo('2023-09-23', 2, $_GET['cis']); echo(json_encode($lesPompiers)); break; //----------------------------------------- case 'majGarde': { $pdo->majGarde($_REQUEST["ztLaDate"], $_REQUEST["ztLaTranche"], $_REQUEST["ztExGarde"], $_REQUEST["ztPompier"]); header('location: index.php?choixTraitement=gardes&action=voir&zSemaine=' . $_REQUEST["zSemaine"] . '&zAnnee=' . $_REQUEST["zAnnee"]); break; } //----------------------------------------- default: { echo 'erreur d\'aiguillage !' . $action; break; } } /* table equipe: eCis smallint(6) ePompier smallint(6) eIntervention smallint(6) table intervention : iCis smallint(6) iId smallint(6) iLieu varchar(50) iDescription varchar(255) iDate datetime iTranche tinyint(3) iHeureDebut datetime iHeureFin datetime */ ?>