Example #1
0
    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>
<form action="" method="POST">
	<div class="bloc">
	<?php 
$link = "Stat";
require_once '../inc/search.inc.php';
?>
	<div class="width100 input-group-addon">
Example #2
0
         foreach ($tr as $key => $value) {
             if ($value['user'] == $userConnected && $key != $numero) {
                 unset($tr[$key]);
             }
         }
     }
     if ($dureeR >= DUREE) {
         $tr[$numero]['user'] = $userConnected;
         $tr[$numero]['date_ouverture'] = time();
         $incident->_setEstOuvert(false);
     } else {
         if ($tr[$numero]['user'] == $userConnected) {
             $tr[$numero]['date_ouverture'] = time();
             $incident->_setEstOuvert(false);
         } else {
             $incident->_setUser($tr[$numero]['user']);
             $incident->_setEstOuvert(true);
         }
     }
 } else {
     if (is_array($tr)) {
         foreach ($tr as $key => $value) {
             if ($value['user'] == $userConnected) {
                 unset($tr[$key]);
             }
         }
     }
     $tr[$numero]['date_ouverture'] = time();
     $tr[$numero]['user'] = $userConnected;
     $incident->_setEstOuvert(false);
 }