| 433 | ddelon | 1 | <?php
 | 
        
           |  |  | 2 | /*vim: set expandtab tabstop=4 shiftwidth=4: */
 | 
        
           |  |  | 3 | // +------------------------------------------------------------------------------------------------------+
 | 
        
           |  |  | 4 | // | PHP version 4.3                                                                                      |
 | 
        
           |  |  | 5 | // +------------------------------------------------------------------------------------------------------+
 | 
        
           |  |  | 6 | // | Copyright (C) 2005 Tela Botanica (accueil@tela-botanica.org)                                         |
 | 
        
           |  |  | 7 | // +------------------------------------------------------------------------------------------------------+
 | 
        
           |  |  | 8 | // | This file is part of Integrateur Wikini.                                                             |
 | 
        
           |  |  | 9 | // |                                                                                                      |
 | 
        
           |  |  | 10 | // | Foobar is free software; you can redistribute it and/or modify                                       |
 | 
        
           |  |  | 11 | // | it under the terms of the GNU General Public License as published by                                 |
 | 
        
           |  |  | 12 | // | the Free Software Foundation; either version 2 of the License, or                                    |
 | 
        
           |  |  | 13 | // | (at your option) any later version.                                                                  |
 | 
        
           |  |  | 14 | // |                                                                                                      |
 | 
        
           |  |  | 15 | // | Foobar is distributed in the hope that it will be useful,                                            |
 | 
        
           |  |  | 16 | // | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
 | 
        
           |  |  | 17 | // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                                        |
 | 
        
           |  |  | 18 | // | GNU General Public License for more details.                                                         |
 | 
        
           |  |  | 19 | // |                                                                                                      |
 | 
        
           |  |  | 20 | // | You should have received a copy of the GNU General Public License                                    |
 | 
        
           |  |  | 21 | // | along with Foobar; if not, write to the Free Software                                                |
 | 
        
           |  |  | 22 | // | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
 | 
        
           |  |  | 23 | // +------------------------------------------------------------------------------------------------------+
 | 
        
           | 434 | ddelon | 24 | // CVS : $Id: iw_affichage_xhtml.fonct.php,v 1.2 2005-08-25 08:59:12 ddelon Exp $
 | 
        
           | 433 | ddelon | 25 | /**
 | 
        
           |  |  | 26 | * Fichier permettant d'inclure les données dans du XHTML.
 | 
        
           |  |  | 27 | *
 | 
        
           |  |  | 28 | * Fichier contenant des fonctions retournant du XHTML une fois les données passées en paramêtre incluse à l 'intérieur.
 | 
        
           |  |  | 29 | *
 | 
        
           |  |  | 30 | *@package IntegrateurWikini
 | 
        
           |  |  | 31 | *@subpackage Fonctions
 | 
        
           |  |  | 32 | //Auteur original :
 | 
        
           |  |  | 33 | *@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
 | 
        
           |  |  | 34 | //Autres auteurs :
 | 
        
           |  |  | 35 | *@author        Aucun
 | 
        
           |  |  | 36 | *@copyright     Tela-Botanica 2000-2005
 | 
        
           | 434 | ddelon | 37 | *@version       $Revision: 1.2 $ $Date: 2005-08-25 08:59:12 $
 | 
        
           | 433 | ddelon | 38 | // +------------------------------------------------------------------------------------------------------+
 | 
        
           |  |  | 39 | */
 | 
        
           |  |  | 40 |   | 
        
           |  |  | 41 | // +------------------------------------------------------------------------------------------------------+
 | 
        
           |  |  | 42 | // |                                            ENTETE du PROGRAMME                                       |
 | 
        
           |  |  | 43 | // +------------------------------------------------------------------------------------------------------+
 | 
        
           |  |  | 44 |   | 
        
           |  |  | 45 |   | 
        
           |  |  | 46 | // +------------------------------------------------------------------------------------------------------+
 | 
        
           |  |  | 47 | // |                                           LISTE de FONCTIONS                                         |
 | 
        
           |  |  | 48 | // +------------------------------------------------------------------------------------------------------+
 | 
        
           |  |  | 49 | /**
 | 
        
           |  |  | 50 | * Fonction inclusion_html() - Gestion des inclusions XHTML dans le code PHP.
 | 
        
           |  |  | 51 | *
 | 
        
           |  |  | 52 | * Cette fonction retourne du XHTML à insérer dans le code PHP.
 | 
        
           |  |  | 53 | *
 | 
        
           |  |  | 54 | * @param string le type d'inclusion de XHTML à retourner.
 | 
        
           |  |  | 55 | * @param array le tableau des paramêtre à inclure dans le XHTML à retourner.
 | 
        
           |  |  | 56 | * @return string contient du XHTML à insérer dans le code PHP.
 | 
        
           |  |  | 57 | */
 | 
        
           |  |  | 58 | function inclusion_html($type_inclusion, $variable = array()){
 | 
        
           |  |  | 59 |     $html_renvoyer = '';
 | 
        
           |  |  | 60 |   | 
        
           |  |  | 61 |     switch ($type_inclusion){
 | 
        
           |  |  | 62 |         // +------------------------------------------------------------------------------------------------------+
 | 
        
           |  |  | 63 |         // LES TITRES
 | 
        
           |  |  | 64 |         // +------------------------------------------------------------------------------------------------------+
 | 
        
           |  |  | 65 |         // LES TEXTES
 | 
        
           |  |  | 66 |         // +------------------------------------------------------------------------------------------------------+
 | 
        
           |  |  | 67 |         // LES PIEDS DE PAGES
 | 
        
           |  |  | 68 |         case "pied_page" :
 | 
        
           |  |  | 69 |             break;
 | 
        
           |  |  | 70 |     }//fin du switch
 | 
        
           |  |  | 71 |   | 
        
           |  |  | 72 |     return remplacerEntiteHTLM($html_renvoyer);
 | 
        
           |  |  | 73 | }//fin fonction inclusion_html
 | 
        
           |  |  | 74 |   | 
        
           |  |  | 75 | /* +--Fin du code ----------------------------------------------------------------------------------------+
 | 
        
           |  |  | 76 | *
 | 
        
           |  |  | 77 | * $Log: not supported by cvs2svn $
 | 
        
           | 434 | ddelon | 78 | * Revision 1.1  2005/08/18 10:20:08  ddelon
 | 
        
           |  |  | 79 | * Integrateur Wikini et Acces PEAR
 | 
        
           | 433 | ddelon | 80 | *
 | 
        
           | 434 | ddelon | 81 | *
 | 
        
           | 433 | ddelon | 82 | * +-- Fin du code ----------------------------------------------------------------------------------------+
 | 
        
           |  |  | 83 | */
 | 
        
           |  |  | 84 | ?>
 |