Fiche de dispo->done AND début de la selection des gardes pour le chef
This commit is contained in:
@@ -13,7 +13,7 @@ class PdoBD
|
||||
private static $serveur = 'mysql:host=localhost';
|
||||
private static $bdd = 'dbname=sdis29';
|
||||
private static $user = 'root';
|
||||
private static $mdp = '';
|
||||
private static $mdp = 'root';
|
||||
private static $monPdo;
|
||||
private static $monPdoBD = null;
|
||||
|
||||
@@ -109,11 +109,11 @@ class PdoBD
|
||||
afficherErreurSQL("Probleme lors de la mise à jour de l'activité dans la base de données.", $existedTranche, PdoBD::$monPdo->errorInfo());
|
||||
} else {
|
||||
|
||||
if (count($rs->fetch()) !== 2) {
|
||||
if ($rs->fetch() === false) {
|
||||
$req = 'INSERT INTO activite (aCis, aPompier, aDateGarde, aTranche, aDisponibilite, aGarde)
|
||||
VALUES (' . $cis . ',
|
||||
VALUES (' . $cis . ',
|
||||
' . $idUser . ',
|
||||
' . $jour . ',
|
||||
"' . $jour . '",
|
||||
' . $tranche . ',
|
||||
' . $newDispo . ', 0);';
|
||||
} else {
|
||||
@@ -261,10 +261,10 @@ class PdoBD
|
||||
'g2' => 0,
|
||||
'g3' => 0,
|
||||
'g4' => 0,
|
||||
'c1' => 'gray',
|
||||
'c2' => 'gray',
|
||||
'c3' => 'gray',
|
||||
'c4' => 'gray'
|
||||
'c1' => 'red',
|
||||
'c2' => 'red',
|
||||
'c3' => 'red',
|
||||
'c4' => 'red'
|
||||
);
|
||||
}
|
||||
} else {
|
||||
@@ -293,10 +293,10 @@ class PdoBD
|
||||
'g2' => 0,
|
||||
'g3' => 0,
|
||||
'g4' => 0,
|
||||
'c1' => 'gray',
|
||||
'c2' => 'gray',
|
||||
'c3' => 'gray',
|
||||
'c4' => 'gray'
|
||||
'c1' => 'red',
|
||||
'c2' => 'red',
|
||||
'c3' => 'red',
|
||||
'c4' => 'red'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user