Subversion Repositories eFlore/Applications.eflore-consultation

Compare Revisions

Ignore whitespace Rev 500 → Rev 501

/trunk/modules/popup_illustrations/PopupIllustrations.php
1,48 → 1,48
<?php
// declare(encoding='UTF-8');
/**
* Service fournissant une popup
* Encodage en entr�e : ISO-8859-15
* Encodage en sortie : ISO-8859-15
* Cas d'utilisation :
*
* @author David DELON <david.delon@clapas.net>abstract
* @license GPL v3 <http://www.gnu.org/licenses/gpl.txt>
* @license CECILL v2 <http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt>
* @version $Id$
* @copyright 2007
* Affiche un pop-up avec les infos d'une illustration.
*
* @category php 5.2
* @package eFlore-consultation
* @author Delphine CAUQUIL <delphine@tela-botanica.org>
* @author Jean-Pascal MILCENT <jpm@tela-botanica.org>
* @copyright Copyright (c) 2012, Tela Botanica (accueil@tela-botanica.org)
* @license http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL
* @license http://www.gnu.org/licenses/gpl.html Licence GNU-GPL
* @version $Id$
*/
 
class PopupIllustrations extends aControleur {
private $conteneur = null;
private $id_image = '';
 
 
public function initialiser() {
$this->capturerParametres();
$this->conteneur = new Conteneur();
$this->images = $this->conteneur->getApiImages();
}
 
private function capturerParametres() {
if (isset($_GET['id'])) {
$this->id_image = $_GET['id'];
}
}
 
public function executerActionParDefaut() {
$this->executerFiche();
}
 
public function executerFiche(){
$cel = array();
$infos = array();
$this->images->setProjet('cel');
$images = $this->images->getInfosImageParIdImage($this->id_image);
$cel['id'] = $this->id_image;
$cel['image'] = $images;
header('Content-type: text/html');
print_r($this->getVue('popup_fiche_illustrations', $cel));
exit;
Debug::printr($images);
$infos['id'] = $this->id_image;
$infos['image'] = $images;
 
$this->setSortie(self::RENDU_CORPS, $this->getVue('popup_fiche_illustrations', $infos));
}
 
}