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"> <span class="fl-left" style=" line-height:2.5;">Edition de l'incident N° <strong> <?php echo $incident->getIncident(); ?>
//Incident $incident->setIncident($numero, '', $_POST['IdIncident'], $_POST['titreincident'], $_POST['Incident_departement'], $_POST['Incident_statut'], $_POST['Incident_priorite'], $_POST['incidentuserimpacte'], $_POST['debutincident'], $_POST['finincident'], $_POST['Incident_duree'], $_POST['IncImpact_description'], $_POST['Incident_risqueAggravation'], $_POST['Incident_cause'], $_POST['incidentConnex'], $_POST['incidentprobleme'], $_POST['Incident_retablissement'], $_POST['incidentresponsabilite'], $_POST['incidentserviceacteur'], $_POST['Incident_localisation'], $_POST['Incident_useraction'], $_POST['incidentdatecreci'], $_POST['Incident_commentaire'], $_POST['Incident_dejaApparu'], $_POST['Incident_previsible'], $_POST['Incident_suivi'], $_POST['incidentdatedecision'], $_POST['Incident_chronogramme']); $incident->sauvegarder(); // Impacte $impacte->setParam($_POST['IdImpacte'], $numero, $_POST['IdAppli'], $_POST['Incident_Impact_datedebut'], $_POST['Incident_Impact_datefin'], $_POST['Incident_Impact_dureereelle'], $_POST['Incident_Impact_jourhommeperdu'], $_POST['Incident_Impact_impactmetier'], $_POST['Incident_Impact_impact'], $_POST['Incident_Impact_sla'], $_POST['Incident_Impact_criticite'], $_POST['Incident_Impact_description']); $impacte->modifier(); $_SESSION['flash']['success'] = " L'incident est bien modifié."; } } else { $incident->chargerIncident($numero); if (empty($incident->getNumero())) { $_SESSION['flash']['success'] = " Ce Numéro d'incident n'existe pas!"; header('Location:index.php'); } //debug($incident); $impacte->chargerFirstIncident($incident->getNumero()); $appli->SelectAppliById($impacte->getApplicationId()); if ($impacte->getApplicationId()) { $idAppli = $impacte->getApplicationId(); $calendrier->selectById($idAppli); //debug($calendrier); } // Tester l'existance de la fiche if (isset($tr[$numero])) { $dureeR = time() - $tr[$numero]['date_ouverture']; if (is_array($tr)) { foreach ($tr as $key => $value) { if ($value['user'] == $userConnected && $key != $numero) { unset($tr[$key]); } }
?> </strong> </span> </div> <fieldset> <?php include '../inc/impact.inc.php'; ?> <div class="width100"> <input type="submit" value="Sauvegarder" name="submit" /> <input onclick="javascript:document.location.href='ListeImpact.php?idIncident=<?php echo $_GET["idIncident"]; ?> '" type="button" value="Annuler" name="button" /> </div> </fieldset> </div> </form> <?php $impacte = new Impact(); $impacte->chargerFirstIncident($numincident); $application = new Application(); $application->SelectAppliById($impacte->getApplicationId()); $idIncident = $numincident; require_once '../inc/commachaud.inc.php'; require_once '../inc/footer.inc.php'; ?>
')" >Comm à chaud</a> <a class="btn btn-danger <?php echo isset($link) && $link == "Supprimer" ? "active focus" : ""; ?> " href="javascript:supprimerIncident('index.php?id=<?php echo $numero; ?> &supprimer')" >Supprimer l'incident</a> <div id="element_to_pop"> <a class="b-close">x</a> <h2>Liste des adresses mail en Cci</h2> <?php $listeBcciBase = $incident->chargerBcci(); $impact = new Impact(); $impact->chargerFirstIncident($numero); $applic = new Application(); $applic->SelectAppliById($impact->getApplicationId()); $listeEnseigne = $applic->getEnseigne(); $ListeFinale = $listeBcciBase != '' ? $listeBcciBase : $listeEnseigne; foreach ($DESTINATAIREBCC as $key => $value) { $selected = strpos($ListeFinale, $key) !== false ? 'checked' : ''; // echo $key.'---'.var_dump(strpos($ListeFinale,$key.',')); ?> <input type="checkbox" id="CCi_<?php echo $key; ?> " <?php echo $selected; ?> value="<?php