Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
476 delphine 1
<?php
2
/**
3
 * Service fournissant une popup
4
 * Encodage en entr�e : ISO-8859-15
5
 * Encodage en sortie : ISO-8859-15
6
 * Cas d'utilisation :
7
 *
8
 * @author David DELON <david.delon@clapas.net>abstract
9
 * @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
10
 * @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
11
 * @version $Id$
12
 * @copyright 2007
13
 */
14
 
15
class PopupIllustrations extends aControleur {
16
	private $conteneur = null;
17
	private $id_image = '';
18
 
19
 
20
	public function initialiser() {
21
		$this->capturerParametres();
22
		$this->conteneur = new Conteneur();
23
		$this->images = $this->conteneur->getApiImages();
24
	}
25
 
26
	private function capturerParametres() {
27
		if (isset($_GET['id'])) {
28
			$this->id_image = $_GET['id'];
29
		}
30
	}
31
 
32
	public function executerActionParDefaut() {
33
		$this->executerFiche();
34
	}
35
 
36
	public function executerFiche(){
37
		$cel = array();
38
		$this->images->setProjet('cel');
39
		$images = $this->images->getInfosImageParIdImage($this->id_image);
40
		$cel['id'] = $this->id_image;
41
		$cel['image'] = $images;
42
 
43
		header('Content-type: text/html');
44
		print_r($this->getVue('popup_fiche_illustrations', $cel));
45
		exit;
46
	}
47
 
48
}
49
?>