Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 828 Rev 838
Line 162... Line 162...
162
			$this->informations ->setProjet('baseflor');
162
			$this->informations ->setProjet('baseflor');
163
			$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
163
			$this->informations ->setBdnt($this->conteneur->getParametre('referentiel'));
164
			$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
164
			$this->informations ->setNum_nom($this->conteneur->getParametre('num_nom'));
165
			$informations = $this->informations->getInformationsEcologie();
165
			$informations = $this->informations->getInformationsEcologie();
166
			if($informations != ""){
166
			if($informations != ""){
-
 
167
				if ($informations['graphique_climat']) {
167
				$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
168
					$baseflor['climat_url'] = $informations['graphique_climat']['href']."?retour.format=500";
168
				$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
169
					$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
-
 
170
				}
-
 
171
				if ($informations['graphique_sol']) {
169
				$baseflor['climat_url_png'] = $informations['graphique_climat']['href']."?retour=image/png";
172
					$baseflor['sol_url'] = $informations['graphique_sol']['href']."?retour.format=500";
170
				$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
173
					$baseflor['sol_url_png'] = $informations['graphique_sol']['href']."?retour=image/png";
-
 
174
				}
171
				if($inclure_legende) {
175
				if($inclure_legende) {
172
					$this->graphique ->setProjet('baseflor');
176
					$this->graphique ->setProjet('baseflor');
173
					$graphique = $this->graphique->getLegendeGraphique();
177
					$graphique = $this->graphique->getLegendeGraphique();
174
					$baseflor['legende'] =  $graphique ;
178
					$baseflor['legende'] =  $graphique ;
175
				}
179
				}
Line 181... Line 185...
181
				$baseflor['description']['climat_url'] = $informations['graphique_climat']['href']."?retour.format=420";
185
				$baseflor['description']['climat_url'] = $informations['graphique_climat']['href']."?retour.format=420";
182
				$baseflor['description']['sol_url'] = $informations['graphique_sol']['href']."?retour.format=420";
186
				$baseflor['description']['sol_url'] = $informations['graphique_sol']['href']."?retour.format=420";
183
				$baseflor['description']['climat_url_png'] = $informations['graphique_climat']['href']."?retour.format=420&retour=image/png";
187
				$baseflor['description']['climat_url_png'] = $informations['graphique_climat']['href']."?retour.format=420&retour=image/png";
184
				$baseflor['description']['sol_url_png'] = $informations['graphique_sol']['href']."?retour.format=420&retour=image/png";
188
				$baseflor['description']['sol_url_png'] = $informations['graphique_sol']['href']."?retour.format=420&retour=image/png";
185
				$this->mettreEnCache('baseflor_graphique_'.$num_nom, $baseflor);
189
				$this->mettreEnCache('baseflor_graphique_'.$num_nom, $baseflor);
186
			}else {
190
			} else {
187
				$baseflor['aucune'] = 'Aucunes données';
191
				$baseflor['aucune'] = 'Aucunes données';
188
			}
192
			}
189
		}
193
		}
190
		return $baseflor;
194
		return $baseflor;
191
	}
195
	}