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(); $tranche = $pdo->getCurrentTranche(); $date = date('Y-m-d'); $lesPompiers = $pdo->getPompiersDispo($date, $tranche, 2904); include("vues/v_nouvelleIntervention.php"); break; } case 'listePompier': require_once ("../include/class.pdo.php"); $pdo = PdoBD::getPdoBD(); $tranche = $pdo->getCurrentTranche(); $date = date('Y-m-d'); $lesPompiers = $pdo->getPompiersDispo($date, $tranche, $_GET['cis']); echo(json_encode($lesPompiers)); break; case 'nouvelleInter': require_once ("../include/class.pdo.php"); $pdo = PdoBD::getPdoBD(); //var_dump($_REQUEST); $listePompier = $_POST['listePompier']; $data = $_POST['dataForm']; $pdo->newIntervention( intval($data['motif']), intval($data['caserne']), $data['adresse'], $data['commentaire'], $listePompier ); //var_dump($listePompier); 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 */ ?>