Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 1357 Rev 1381
Line 88... Line 88...
88
			$this->donnees = $this->getPhoto('photoflora');
88
			$this->donnees = $this->getPhoto('photoflora');
89
		}
89
		}
90
		return $this->donnees;
90
		return $this->donnees;
91
	}
91
	}
Line -... Line 92...
-
 
92
	
-
 
93
	public function obtenirPhotoCelTpl() {
-
 
94
		$images = $this->initialiserPhotos('cel');
-
 
95
		$this->formaterListePhotos('cel', $images);
-
 
96
		$this->formaterMetaPhotos('cel');
-
 
97
		$chemin_sous_squelette = Config::get('chemin_modules').AppControleur::getNomDossierDepuisClasse('Fiche').DS.Config::get('dossier_squelettes').DS; 
-
 
98
		$donnees = array('cel' => array('images' => $this->donnees['cel']['images'], 'meta' => $this->donnees['cel']['meta'] ));
-
 
99
		$html_tpl = $this->getVue($chemin_sous_squelette.'fiche_illustrations_cel.tpl.html', $donnees);
-
 
100
		return $html_tpl;
Line 92... Line 101...
92
	
101
	}
93
	
102
	
94
	public function getPhoto($source) {
103
	public function getPhoto($source) {
95
		$donnees = array();
104
		$donnees = array();
Line 141... Line 150...
141
	public function getPhotos() {
150
	public function getPhotos() {
142
		$projets[] = Config::get($this->referentiel.'.baseImages');
151
		$projets[] = Config::get($this->referentiel.'.baseImages');
143
		$projets[] = Config::get($this->referentiel.'.baseImagesSupp');
152
		$projets[] = Config::get($this->referentiel.'.baseImagesSupp');
144
		foreach ($projets as $projet) {
153
		foreach ($projets as $projet) {
145
			if ($projet != "") {
154
			if ($projet != "") {
-
 
155
				// Beaucoup trop d'images pour cel, on fait juste un lien qui permettra de les charger
146
				if ($projet == "cel") {
156
				if ($projet == "cel") {
147
					$this->images->setApi(Eflore::API_EFLORE); // prêt à passer à API_DEL
157
					$this->donnees['cel']['ajax_url'] = $this->formaterUrlAjaxPhotoCel();
148
				} else {
158
				} else {
149
					$this->images->setApi(Eflore::API_EFLORE);
159
					$this->images->setApi(Eflore::API_EFLORE);
-
 
160
					$images = $this->initialiserPhotos($projet);
-
 
161
					$this->formaterListePhotos($projet, $images);
-
 
162
					$this->formaterMetaPhotos($projet);
150
				}
163
				}
151
				$images = $this->initialiserPhotos($projet);
-
 
152
				$this->formaterListePhotos($projet, $images);
-
 
153
				$this->formaterMetaPhotos($projet);
-
 
154
			}
164
			}
155
		}
165
		}
156
	}
166
	}
Line -... Line 167...
-
 
167
	
-
 
168
	private function formaterUrlAjaxPhotoCel() {
-
 
169
		$infos = array('referentiel' => $this->referentiel,
-
 
170
						'module' => 'fiche',
-
 
171
						'action' => 'templateAjax',
-
 
172
						'sous_action' => 'photoCelTpl',
-
 
173
						'num_nom' => $this->nomCourant->getNnr(),
-
 
174
						'onglet' => 'illustrations');
-
 
175
		return Config::get('base_url_application_onglets').'?'.http_build_query($infos);
-
 
176
	}
157
	
177
	
158
	public function getPhotosSixOrganes() {
178
	public function getPhotosSixOrganes() {
159
		$organes = $this->getOrganes();
179
		$organes = $this->getOrganes();
160
		$nnr = $this->nomCourant->getNnr();
180
		$nnr = $this->nomCourant->getNnr();