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