Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 70 Rev 83
Line 37... Line 37...
37
   	// +---------------------------------------------------------------------------------------------------------------+
37
   	// +---------------------------------------------------------------------------------------------------------------+
38
    // METHODES D'AFFICHAGE DE FORMULAIRE 
38
    // METHODES D'AFFICHAGE DE FORMULAIRE 
39
    public function afficherFormulaireSaisieStation() {
39
    public function afficherFormulaireSaisieStation() {
Line 40... Line 40...
40
    	
40
    	
-
 
41
    	$donnees = array();
-
 
42
    	
41
    	$donnees = array();
43
    	$donnees['milieux'] = $this->getListeMilieux();
42
    	$formulaire = $this->getVue('formulaires/station_saisie',$donnees);
44
    	$formulaire = $this->getVue('formulaires/station_saisie',$donnees);
43
    	$this->setSortie(self::RENDU_CORPS, $formulaire);     
45
    	$this->setSortie(self::RENDU_CORPS, $formulaire);     
Line 44... Line 46...
44
    }
46
    }
Line 45... Line 47...
45
    
47
    
Line 46... Line 48...
46
	public function afficherFormulaireModificationStation() {
48
	public function afficherFormulaireModificationStation() {
-
 
49
		
47
		
50
    	$donnees = array();
-
 
51
    	
48
    	$donnees = array();
52
    	$id_station = $this->id_station_en_cours;
49
    	
53
    	$donnees['milieux'] = $this->getListeMilieux();
50
    	$id_station = $this->id_station_en_cours;
54
    	$donnees['infos_station'] = $this->getInformationsStation($id_station);
Line 51... Line 55...
51
    	$donnees['infos_station'] = $this->getInformationsStation($id_station);
55
    	
Line 117... Line 121...
117
    	
121
    	
Line 118... Line 122...
118
    	$id_station = $this->id_station_en_cours;
122
    	$id_station = $this->id_station_en_cours;
119
    	
123
    	
-
 
124
    	$donnees['id_station'] = $id_station;
Line 120... Line 125...
120
    	$donnees['id_station'] = $id_station;
125
    	$donnees['infos_station'] = $this->getInformationsStation($id_station);
Line 121... Line 126...
121
    	$donnees['infos_station'] = $this->getInformationsStation($id_station);
126
    	$donnees['milieux'] = $this->getListeMilieux();
Line 140... Line 145...
140
    	foreach($stations as &$station) {  
145
    	foreach($stations as &$station) {  
Line 141... Line 146...
141
    		        	
146
    		        	
142
    		$station['url'] = Liens::getUrlConsultationFicheStation($station['id']);
147
    		$station['url'] = Liens::getUrlConsultationFicheStation($station['id']);
Line 143... Line 148...
143
    	}
148
    	}
144
    	
149
    	
Line 145... Line 150...
145
    	if($id_station_en_cours != null) {
150
    	if($id_station_en_cours != null && $id_station_en_cours != 'saisie') {
146
    		$especes_station_en_cours = $this->getEspecesStation($id_station_en_cours);
151
    		$especes_station_en_cours = $this->getEspecesStation($id_station_en_cours);
147
    		
152
    		
Line 205... Line 210...
205
    	$individu_dao = new IndividuDao();
210
    	$individu_dao = new IndividuDao();
206
    	$liste_individus = $individu_dao->getListeIndividusPourStationPourEspece($id_station, $id_espece);
211
    	$liste_individus = $individu_dao->getListeIndividusPourStationPourEspece($id_station, $id_espece);
Line 207... Line 212...
207
    	
212
    	
208
    	return $liste_individus;
213
    	return $liste_individus;
-
 
214
    }
-
 
215
    
-
 
216
    public function getListeMilieux() {
-
 
217
    	
-
 
218
    	$triple_dao = new TripleDao();
-
 
219
    	$liste_milieux = $triple_dao->getListeMilieux();
-
 
220
    	
-
 
221
    	return $liste_milieux;
209
    }
222
    }
210
}
223
}
211
?>
224
?>