Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 61 Rev 69
Line 172... Line 172...
172
	protected function obtenirUrlBase() {
172
	protected function obtenirUrlBase() {
173
		$url = $this->urlBase->getURL();
173
		$url = $this->urlBase->getURL();
174
		return $url;
174
		return $url;
175
	}
175
	}
Line -... Line 176...
-
 
176
	
-
 
177
	protected function redirigerVers($url) {
-
 
178
		$url = str_replace('&', '&', $url);
-
 
179
		header("Location: $url");
-
 
180
	}
176
	
181
	
177
	private function getParametresUrlListe() {
182
	private function getParametresUrlListe() {
178
		$parametres = array(
183
		$parametres = array(
179
			'referentiel' => Registre::get('parametres.referentiel'),
184
			'referentiel' => Registre::get('parametres.referentiel'),
180
			'module' => 'liste',
185
			'module' => 'liste',
Line 199... Line 204...
199
		$this->urlBase->setRequete($parametres);
204
		$this->urlBase->setRequete($parametres);
200
		$url = $this->urlBase->getURL();
205
		$url = $this->urlBase->getURL();
201
		return $url;
206
		return $url;
202
	}
207
	}
Line -... Line 208...
-
 
208
	
-
 
209
	private function getParametresUrlRecherche() {
-
 
210
		$parametres = array(
-
 
211
			'referentiel' => Registre::get('parametres.referentiel'),
-
 
212
			'module' => 'recherche-simple',
-
 
213
			'action' => 'rechercheNom',
-
 
214
			'submit' => 'Rechercher'
-
 
215
		);
-
 
216
		return $parametres;
-
 
217
	}
-
 
218
	
-
 
219
	protected function obtenirUrlRechercheSimple($nom = null, $type = 'nom_scientifique') {
-
 
220
		$parametres = $this->getParametresUrlRecherche();
-
 
221
		$parametres['module'] = 'recherche-simple';
-
 
222
		$parametres['type_nom'] = $type;
-
 
223
		$parametres['nom'] = $nom;
-
 
224
		$this->urlBase->setRequete($parametres);
-
 
225
		$url = $this->urlBase->getURL();
-
 
226
		return $url;
-
 
227
	}
-
 
228
	
-
 
229
	private function getParametresUrlFiche() {
-
 
230
		$parametres = array(
-
 
231
			'referentiel' => Registre::get('parametres.referentiel'),
-
 
232
			'module' => 'fiche',
-
 
233
			'action' => 'fiche'
-
 
234
		);
-
 
235
		return $parametres;
Line 203... Line 236...
203
	
236
	}
204
	
237
	
-
 
238
	protected function obtenirUrlFiche($numNom) {
-
 
239
		$parametres = $this->getParametresUrlFiche();
-
 
240
		$parametres['nn'] = $numNom;
205
	protected function obtenirUrlRecherche($txt = null) {
241
		$this->urlBase->setRequete($parametres);
206
		// TODO : à revoir selon le modèle ci-dessus
242
		$url = $this->urlBase->getURL();
207
		return $url;
243
		return $url;
208
	}
244
	}
209
}
245
}