if(empty($_POST['refchangement'])){ $errors['refchangement']="Vous devez remplir le champ reférencement changement!"; } */ if (empty($errors)) { $listeCheck = ''; for ($i = 0; $i < count($STATGEOL); $i++) { if (isset($_POST['stat_zonegeo_' . $i])) { $listeCheck .= $i . ','; } } $stat = new Stat(); $statLegacy = isset($_POST['statLegacy']) ? $_POST['statLegacy'] : ''; $stat->SetParam($idStat, $idIncident, $_POST['refchangement'], $_POST['stat_publicationIR'], $_POST['stat_publicationPM'], $_POST['stat_typecause'], $_POST['stat_typecause_second'], $_POST['stat_typologiegts'], $_POST['stat_equipeResp'], $_POST['fournisseurResp'], $_POST['statPowerprod'], $statLegacy, $_POST['stat_Composant'], $_POST['Composant_complement'], $listeCheck); $stat->Modifier(); $_SESSION['flash']['success'] = "Le Stat est bien modifié!"; } } $incident = new incidents(); $incident->_setUser($userConnected); $incident->chargerIncident($idIncident); $impacte = new Impact(); $impacte->chargerFirstIncident($idIncident); $application = new Application(); $application->SelectAppliById($impacte->getApplicationId()); $stat = new Stat(); $stat->SelectStatById($idStat, $idIncident); require_once '../inc/header.inc.php'; ?> <h1>Statistique</h1>