| 12 | 
           jpm | 
           1 | 
           <?php
  | 
        
        
            | 
            | 
           2 | 
           // declare(encoding='UTF-8');
  | 
        
        
            | 
            | 
           3 | 
           /**
  | 
        
        
            | 
            | 
           4 | 
            * Mon exemple d'application.
  | 
        
        
            | 
            | 
           5 | 
            * Fichier contenant les fonctions nécessaire pour l'insertion de l'application dans Papyrus.
  | 
        
        
            | 
            | 
           6 | 
            *
  | 
        
        
            | 
            | 
           7 | 
            * @category	PHP 5.2
  | 
        
        
            | 
            | 
           8 | 
            * @package		eflore-consultation
  | 
        
        
            | 
            | 
           9 | 
            * @author		Jean-Pascal MILCENT <jpm@tela-botanica.org>
  | 
        
        
            | 
            | 
           10 | 
            * @author		Delphine CAUQUIL <delphine@tela-botanica.org>
  | 
        
        
            | 
            | 
           11 | 
            * @copyright	2011 Tela-Botanica
  | 
        
        
            | 
            | 
           12 | 
            * @license		http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3
  | 
        
        
            | 
            | 
           13 | 
            * @license		http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2
  | 
        
        
            | 
            | 
           14 | 
            * @version		$Id$
  | 
        
        
            | 
            | 
           15 | 
            */
  | 
        
        
            | 
            | 
           16 | 
              | 
        
        
            | 
            | 
           17 | 
           // Gestion des paramêtres définis dans Papyrus
  | 
        
        
            | 
            | 
           18 | 
           if (isset($GLOBALS['_GEN_commun']['info_application']->module) && !isset($_GET['module'])) {
  | 
        
        
            | 
            | 
           19 | 
           		$_GET['module'] = $GLOBALS['_GEN_commun']['info_application']->module;
  | 
        
        
            | 
            | 
           20 | 
           }
  | 
        
        
            | 
            | 
           21 | 
              | 
        
        
            | 
            | 
           22 | 
           /** Inclusion du fichier principal de l'application*/
  | 
        
        
            | 
            | 
           23 | 
           require_once dirname(__FILE__).DIRECTORY_SEPARATOR.'eflore.php';
  | 
        
        
            | 
            | 
           24 | 
              | 
        
        
            | 
            | 
           25 | 
           // Définition des feuilles de style de l'application pour Papyrus
  | 
        
        
            | 
            | 
           26 | 
           $chemin = str_replace(PAP_CHEMIN_RACINE, '', Config::get('chemin_presentations'));
  | 
        
        
            | 
            | 
           27 | 
           GEN_stockerStyleExterne('eflore', $chemin.'styles'.DS.'eflore.css');
  | 
        
        
            | 
            | 
           28 | 
              | 
        
        
            | 
            | 
           29 | 
           // Définition des fichiers JS de l'application pour Papyrus
  | 
        
        
            | 
            | 
           30 | 
           GEN_stockerFichierScript('jquery-1.5', 'commun'.DS.'jquery'.DS.'1.5'.DS.'jquery-1.5.min.js');
  | 
        
        
            | 
            | 
           31 | 
              | 
        
        
            | 
            | 
           32 | 
           // +--------------------------------------------------------------------------------------------------+
  | 
        
        
            | 
            | 
           33 | 
           // Remplacement de méta tags fournit par Papyrus par ceux créés dans l'appli
  | 
        
        
            | 
            | 
           34 | 
           if (AppControleur::getMetaTitre() != '') {
  | 
        
        
            | 
            | 
           35 | 
           	$GLOBALS['_PAPYRUS_']['rendu']['TITRE_PAGE'] = AppControleur::getMetaTitre();
  | 
        
        
            | 
            | 
           36 | 
           }
  | 
        
        
            | 
            | 
           37 | 
           if (AppControleur::getMetaDescription() != '') {
  | 
        
        
            | 
            | 
           38 | 
           	GEN_modifierMetaName('description', AppControleur::getMetaDescription());
  | 
        
        
            | 
            | 
           39 | 
           }
  | 
        
        
            | 
            | 
           40 | 
           if (AppControleur::getMetaTags() != '') {
  | 
        
        
            | 
            | 
           41 | 
           	GEN_modifierMetaName('keywords', AppControleur::getMetaTags());
  | 
        
        
            | 
            | 
           42 | 
           }
  | 
        
        
            | 
            | 
           43 | 
              | 
        
        
            | 
            | 
           44 | 
           // +--------------------------------------------------------------------------------------------------+
  | 
        
        
            | 
            | 
           45 | 
           // Fonctions d'affichage dans Papyrus
  | 
        
        
            | 
            | 
           46 | 
           /**
  | 
        
        
            | 
            | 
           47 | 
            * Fonction d'affichage de Papyrus, pour le corps de page.
  | 
        
        
            | 
            | 
           48 | 
            */
  | 
        
        
            | 
            | 
           49 | 
           function afficherContenuCorps() {
  | 
        
        
            | 
            | 
           50 | 
           	return AppControleur::getContenuCorps();
  | 
        
        
            | 
            | 
           51 | 
           }
  | 
        
        
            | 
            | 
           52 | 
              | 
        
        
            | 
            | 
           53 | 
           function afficherContenuTete() {
  | 
        
        
            | 
            | 
           54 | 
           	return AppControleur::getContenuTete();
  | 
        
        
            | 
            | 
           55 | 
           }
  | 
        
        
            | 
            | 
           56 | 
              | 
        
        
            | 
            | 
           57 | 
           function afficherContenuPied() {
  | 
        
        
            | 
            | 
           58 | 
           	return AppControleur::getContenuPied();
  | 
        
        
            | 
            | 
           59 | 
           }
  | 
        
        
            | 
            | 
           60 | 
              | 
        
        
            | 
            | 
           61 | 
           function afficherContenuNavigation() {
  | 
        
        
            | 
            | 
           62 | 
           	return AppControleur::getContenuNavigation();
  | 
        
        
            | 
            | 
           63 | 
           }
  | 
        
        
            | 
            | 
           64 | 
              | 
        
        
            | 
            | 
           65 | 
           function afficherContenuMenu() {
  | 
        
        
            | 
            | 
           66 | 
           	return AppControleur::getContenuMenu();
  | 
        
        
            | 
            | 
           67 | 
           }
  | 
        
        
            | 
            | 
           68 | 
           ?>
  |