Subversion Repositories Sites.obs-saisons.fr

Compare Revisions

Ignore whitespace Rev 209 → Rev 210

/trunk/applications/saisie/controleurs/Station.php
161,6 → 161,28
}
}
public function supprimerStation() {
$id_station_a_supprimer = $_POST['id_station_a_supprimer'];
$individus_station = $this->getIndividusStation($id_station_a_supprimer);
if(count($individus_station) > 0) {
$donnees = array();
$donnees['erreurs'] = 'Impossible de supprimer une station qui contient des données';
$this->id_station_en_cours = $id_station_a_supprimer;
$this->afficherInformationsStation($donnees);
} else {
$station_dao = new StationDao();
$retour_suppression = $station_dao->supprimerStation($id_station_a_supprimer);
$this->setNavigation();
$this->executerActionParDefaut();
}
}
// +---------------------------------------------------------------------------------------------------------------+
// METHODES D'AFFICHAGES D'INFORMATION
172,17 → 194,26
$this->setSortie(self::RENDU_CORPS, $this->getVue('listes/station_liste', $donnees));
}
public function afficherInformationsStation() {
public function getFicheInformationsStation($donnees = array()) {
$id_station = $this->id_station_en_cours;
$donnees['id_station'] = $id_station;
$donnees['infos_station'] = $this->getInformationsStation($id_station);
$donnees['milieux'] = $this->getListeMilieux();
$this->setSortie(self::RENDU_CORPS, $this->getVue('fiches/station_fiche', $donnees));
return $this->getVue('fiches/station_fiche', $donnees);
}
public function afficherInformationsStation($donnees = array()) {
$infos_station = $this->getFicheInformationsStation($donnees);
$this->setSortie(self::RENDU_CORPS, $infos_station);
}
// +---------------------------------------------------------------------------------------------------------------+
// METHODES POUR FABRIQUER LE MENU