Ejemplo n.º 1
0
    /*
    Contrôle des champs obligatoire
    
    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();
        $stat->SetParam(NULL, $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'], $_POST['statLegacy'], $_POST['stat_Composant'], $_POST['Composant_complement'], $listeCheck);
        $idStat = $stat->Creer();
        $_SESSION['flash']['success'] = "Le stat est Bien Ajouté !";
        header('Location:modifStat.php?idStat=' . $idStat . '&idIncident=' . $idIncident);
    }
}
$incident = new incidents();
$incident->_setUser($userConnected);
$incident->chargerIncident($idIncident);
$impacte = new Impact();
$impacte->chargerFirstIncident($idIncident);
$application = new Application();
$application->SelectAppliById($impacte->getApplicationId());
require_once '../inc/header.inc.php';
?>
<h1>Statistique</h1>