Subversion Repositories eFlore/Applications.eflore-consultation

Rev

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

Rev 476 Rev 501
Line 1... Line 1...
1
<?php
1
<?php
-
 
2
// declare(encoding='UTF-8');
2
/**
3
/**
3
 * Service fournissant une popup 
4
 * Affiche un pop-up avec les infos d'une illustration.
-
 
5
 *
4
 * Encodage en entr�e : ISO-8859-15
6
 * @category	php 5.2
5
 * Encodage en sortie : ISO-8859-15
7
 * @package		eFlore-consultation
6
 * Cas d'utilisation :
8
 * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
7
 * 
-
 
8
 * @author David DELON <david.delon@clapas.net>abstract 
9
 * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
9
 * @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
10
 * @copyright	Copyright (c) 2012, Tela Botanica (accueil@tela-botanica.org)
10
 * @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
11
 * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
-
 
12
 * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
11
 * @version $Id$
13
 * @version		$Id$
12
 * @copyright 2007
-
 
13
 */
14
 */
Line 14... Line 15...
14
 
15
 
15
class PopupIllustrations extends aControleur {
16
class PopupIllustrations extends aControleur {
16
	private $conteneur = null;
17
	private $conteneur = null;
17
	private $id_image = '';
18
	private $id_image = '';
18
	
19
 
19
	
20
 
20
	public function initialiser() {
21
	public function initialiser() {
21
		$this->capturerParametres();
22
		$this->capturerParametres();
22
		$this->conteneur = new Conteneur();
23
		$this->conteneur = new Conteneur();
23
		$this->images = $this->conteneur->getApiImages();
24
		$this->images = $this->conteneur->getApiImages();
24
	}
25
	}
25
	
26
 
26
	private function capturerParametres() {
27
	private function capturerParametres() {
27
		if (isset($_GET['id'])) {
28
		if (isset($_GET['id'])) {
28
			$this->id_image = $_GET['id'];
29
			$this->id_image = $_GET['id'];
29
		}
30
		}
30
	}
31
	}
31
	
32
 
32
	public function executerActionParDefaut() {
33
	public function executerActionParDefaut() {
33
		$this->executerFiche();
34
		$this->executerFiche();
34
	}
35
	}
35
	
36
 
36
	public function executerFiche(){
37
	public function executerFiche(){
37
		$cel = array();
38
		$infos = array();
38
		$this->images->setProjet('cel');
39
		$this->images->setProjet('cel');
-
 
40
		$images = $this->images->getInfosImageParIdImage($this->id_image);
39
		$images = $this->images->getInfosImageParIdImage($this->id_image);
41
		Debug::printr($images);
40
		$cel['id'] = $this->id_image;
42
		$infos['id'] = $this->id_image;
41
		$cel['image'] = $images;
43
		$infos['image'] = $images;
42
		
-
 
43
		header('Content-type: text/html');
44
 
44
		print_r($this->getVue('popup_fiche_illustrations', $cel));
-
 
45
		exit;
45
		$this->setSortie(self::RENDU_CORPS, $this->getVue('popup_fiche_illustrations', $infos));
Line 46... Line 46...
46
	}
46
	}
47
 
47
 
48
}
48
}