Subversion Repositories Sites.obs-saisons.fr

Rev

Rev 302 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 302 Rev 313
Line 57... Line 57...
57
	public function afficherFormulaireModificationStation($donnees = array()) {
57
	public function afficherFormulaireModificationStation($donnees = array()) {
Line 58... Line 58...
58
    	
58
    	
59
		$id_station = $this->id_station_en_cours;
59
		$id_station = $this->id_station_en_cours;
60
		if(empty($donnees)) {
60
		if(empty($donnees)) {
61
			$infos_station = $this->getInformationsStation($id_station);
-
 
62
			$donnees['station_id'] = $id_station;
61
			$infos_station = $this->getInformationsStation($id_station);
63
			$donnees['station_commune'] = $infos_station['commune'];
62
			$donnees['station_commune'] = $infos_station['commune'];
64
			$donnees['station_milieu'] = $infos_station['milieu'];
63
			$donnees['station_milieu'] = $infos_station['milieu'];
65
			$donnees['station_nom'] = $infos_station['nom'];
64
			$donnees['station_nom'] = $infos_station['nom'];
66
			$donnees['station_lat'] = $infos_station['latitude'];
65
			$donnees['station_lat'] = $infos_station['latitude'];
67
			$donnees['station_lon'] = $infos_station['longitude'];
66
			$donnees['station_lon'] = $infos_station['longitude'];
68
			$donnees['station_alt'] = $infos_station['altitude'];
67
			$donnees['station_alt'] = $infos_station['altitude'];
69
			$donnees['station_code_insee'] = $infos_station['code_insee'];
68
			$donnees['station_code_insee'] = $infos_station['code_insee'];
70
		}
-
 
-
 
69
		}
71
		
70
		$donnees['id_station'] = $id_station;
72
    	$donnees['milieux'] = $this->getListeMilieux();
71
    	$donnees['milieux'] = $this->getListeMilieux();
Line 73... Line 72...
73
    	$donnees['corps_formulaire_saisie_modif'] = $this->getVue('formulaires/station_saisie_modification',$donnees);
72
    	$donnees['corps_formulaire_saisie_modif'] = $this->getVue('formulaires/station_saisie_modification',$donnees);
74
    	
73
    	
Line 127... Line 126...
127
    	
126
    	
Line 128... Line 127...
128
    }
127
    }
129
    
128
    
130
	private function collecterValeursFormulaireModificationStation() {
129
	private function collecterValeursFormulaireModificationStation() {
Line 131... Line 130...
131
		$valeurs_collectees = $this->collecterValeursFormulaireSaisieStation();
130
		$valeurs_collectees = $this->collecterValeursFormulaireSaisieStation();
Line 132... Line 131...
132
	    $valeurs_collectees['station_id'] = $_POST['station_id'];
131
	    $valeurs_collectees['id_station'] = $_POST['id_station'];
Line 175... Line 174...
175
    		$this->afficherFormulaireModificationStation($donnees);
174
    		$this->afficherFormulaireModificationStation($donnees);
176
    		return;
175
    		return;
177
    	}
176
    	}
Line 178... Line 177...
178
    	
177
    	
179
    	$station_dao = new StationDao();
178
    	$station_dao = new StationDao();
Line 180... Line 179...
180
    	$retour_modification = $station_dao->modifierStation($verification_ou_erreurs['station_id'],$verification_ou_erreurs);
179
    	$retour_modification = $station_dao->modifierStation($verification_ou_erreurs['id_station'],$verification_ou_erreurs);
181
    	
180
    	
182
    	if($retour_modification) {
181
    	if($retour_modification) {
183
    		$this->afficherInformationsStation();  
182
    		$this->afficherInformationsStation();