Subversion Repositories Sites.obs-saisons.fr

Rev

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

Rev 63 Rev 70
Line 21... Line 21...
21
        $this->initialiser();
21
        $this->initialiser();
22
    }
22
    }
Line 23... Line 23...
23
    
23
    
Line -... Line 24...
-
 
24
    public function initialiser() {
24
    public function initialiser() {
25
    	
-
 
26
    	if(isset($_GET['id_station'])) {
25
    	
27
    		$this->id_station_en_cours = $_GET['id_station'];
Line 26... Line 28...
26
    	$this->id_station_en_cours = $_GET['id_station'];
28
    	}
Line 27... Line 29...
27
    	$this->setNavigation();
29
    	$this->setNavigation();
Line 122... Line 124...
122
    	
124
    	
Line 123... Line 125...
123
    }
125
    }
124
   
126
   
125
    // +---------------------------------------------------------------------------------------------------------------+
127
    // +---------------------------------------------------------------------------------------------------------------+
Line 126... Line 128...
126
    // METHODES POUR FABRIQUER LE MENU
128
    // METHODES POUR FABRIQUER LE MENU
127
    public function construireMenuNavigation($espece_en_cours = null) {
-
 
Line 128... Line 129...
128
    	    	    	
129
    public function construireMenuNavigation($id_espece_en_cours = null) {
129
    	$id_station_en_cours = $this->id_station_en_cours;
130
    	    	    	
130
    	$id_espece_en_cours = null;
131
    	$id_station_en_cours = $this->id_station_en_cours;
Line 131... Line 132...
131
    	
132
    	
Line 132... Line 133...
132
    	if(isset($_GET['id_espece'])) {
133
    	if(isset($_GET['id_espece'])) {
Line 133... Line 134...
133
    		$id_espece_en_cours = $_GET['id_espece'];
134
    		$id_espece_en_cours = $_GET['id_espece'];
134
    	}
135
    	}
Line 135... Line 136...
135
 
136
 
136
    	
137
    	
Line 137... Line 138...
137
    	$stations = $this->getListeStations();
138
    	$stations = $this->getListeStations();
138
    	    	
139
    	    	
139
    	foreach($stations as &$station) {  
140
    	foreach($stations as &$station) {  
140
    		        	
141
    		        	
141
    		$station['url'] = Liens::instance()->getUrlConsultationFicheStation($station['id']);
142
    		$station['url'] = Liens::getUrlConsultationFicheStation($station['id']);
Line 142... Line 143...
142
    	}
143
    	}
143
    	
144
    	
144
    	if($id_station_en_cours != null) {
145
    	if($id_station_en_cours != null) {
145
    		$especes_station_en_cours = $this->getEspecesStation($id_station_en_cours);
-
 
146
    		
146
    		$especes_station_en_cours = $this->getEspecesStation($id_station_en_cours);
147
    	    foreach($especes_station_en_cours as &$espece) {   		
-
 
Line 148... Line 147...
148
    			$espece['url'] = Liens::instance()->getUrlConsultationEspeceStation($id_station_en_cours, $espece['id_espece']);
147
    		
Line 149... Line 148...
149
    	    }
148
    	    foreach($especes_station_en_cours as &$espece) {   		
Line 206... Line 205...
206
    	$individu_dao = new IndividuDao();
205
    	$individu_dao = new IndividuDao();
207
    	$liste_individus = $individu_dao->getListeIndividusPourStationPourEspece($id_station, $id_espece);
206
    	$liste_individus = $individu_dao->getListeIndividusPourStationPourEspece($id_station, $id_espece);
Line 208... Line 207...
208
    	
207
    	
209
    	return $liste_individus;
208
    	return $liste_individus;
210
    }
-
 
211
} 
209
    }
-
 
210
}
-
 
211
?>
212
212