Subversion Repositories Applications.papyrus

Rev

Rev 285 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 285 Rev 2150
1
<?php
1
<?php
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
2
/*vim: set expandtab tabstop=4 shiftwidth=4: */ 
3
// +------------------------------------------------------------------------------------------------------+
3
// +------------------------------------------------------------------------------------------------------+
4
// | PHP version 4.1                                                                                      |
4
// | PHP version 4.1                                                                                      |
5
// +------------------------------------------------------------------------------------------------------+
5
// +------------------------------------------------------------------------------------------------------+
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
6
// | Copyright (C) 2004 Tela Botanica (accueil@tela-botanica.org)                                         |
7
// +------------------------------------------------------------------------------------------------------+
7
// +------------------------------------------------------------------------------------------------------+
8
// | This library is free software; you can redistribute it and/or                                        |
8
// | This library is free software; you can redistribute it and/or                                        |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
9
// | modify it under the terms of the GNU Lesser General Public                                           |
10
// | License as published by the Free Software Foundation; either                                         |
10
// | License as published by the Free Software Foundation; either                                         |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
11
// | version 2.1 of the License, or (at your option) any later version.                                   |
12
// |                                                                                                      |
12
// |                                                                                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
13
// | This library is distributed in the hope that it will be useful,                                      |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
14
// | but WITHOUT ANY WARRANTY; without even the implied warranty of                                       |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
15
// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU                                    |
16
// | Lesser General Public License for more details.                                                      |
16
// | Lesser General Public License for more details.                                                      |
17
// |                                                                                                      |
17
// |                                                                                                      |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
18
// | You should have received a copy of the GNU Lesser General Public                                     |
19
// | License along with this library; if not, write to the Free Software                                  |
19
// | License along with this library; if not, write to the Free Software                                  |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
20
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA                            |
21
// +------------------------------------------------------------------------------------------------------+
21
// +------------------------------------------------------------------------------------------------------+
22
// CVS : $Id: adsi_affichage.fonct.php,v 1.5 2005-02-28 11:07:00 jpm Exp $
22
// CVS : $Id: adsi_affichage.fonct.php,v 1.5 2005-02-28 11:07:00 jpm Exp $
23
/**
23
/**
24
* Bibliothèque de fonctions de construction du xhtml de l'application Administrateur de Sites.
24
* Bibliothèque de fonctions de construction du xhtml de l'application Administrateur de Sites.
25
*
25
*
26
* Contient un ensemble de fonctions permettant à l'application Administrateur de Sites de généré son xhtml.
26
* Contient un ensemble de fonctions permettant à l'application Administrateur de Sites de généré son xhtml.
27
*
27
*
28
*@package Admin_site
28
*@package Admin_site
29
*@subpackage Fonctions
29
*@subpackage Fonctions
30
//Auteur original :
30
//Auteur original :
31
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
31
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
32
//Autres auteurs :
32
//Autres auteurs :
33
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
33
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
34
*@author        Laurent COUDOUNEAU <lc@gsite.org>
34
*@author        Laurent COUDOUNEAU <lc@gsite.org>
35
*@copyright     Tela-Botanica 2000-2004
35
*@copyright     Tela-Botanica 2000-2004
36
*@version       $Date: 2005-02-28 11:07:00 $
36
*@version       $Date: 2005-02-28 11:07:00 $
37
// +------------------------------------------------------------------------------------------------------+
37
// +------------------------------------------------------------------------------------------------------+
38
**/
38
**/
39
 
39
 
40
// +------------------------------------------------------------------------------------------------------+
40
// +------------------------------------------------------------------------------------------------------+
41
// |                                            LISTE des FONCTIONS                                       |
41
// |                                            LISTE des FONCTIONS                                       |
42
// +------------------------------------------------------------------------------------------------------+
42
// +------------------------------------------------------------------------------------------------------+
43
 
43
 
44
/** Fonction ADMIN_contruirePage()- Génére le xhtml d'une page de l'application administrateur.
44
/** Fonction ADMIN_contruirePage()- Génére le xhtml d'une page de l'application administrateur.
45
*
45
*
46
* Cette fonction formate de la même façon toutes les pages de l'application Administrateur
46
* Cette fonction formate de la même façon toutes les pages de l'application Administrateur
47
* avant de les renvoyer.
47
* avant de les renvoyer.
48
*
48
*
49
* @param  string   le titre du contenu de la page.
49
* @param  string   le titre du contenu de la page.
50
* @param  string   le corps du contenu de la page.
50
* @param  string   le corps du contenu de la page.
51
* @param  string   un message important à destination de l'utilisateur.
51
* @param  string   un message important à destination de l'utilisateur.
52
* return  string   le code XHTML à retourner.
52
* return  string   le code XHTML à retourner.
53
*/
53
*/
54
function ADMIN_contruirePage($titre, $texte, $message = '')
54
function ADMIN_contruirePage($titre, $texte, $message = '')
55
{
55
{
56
    // Page.
56
    // Page.
57
    $sortie = '';
57
    $sortie = '';
58
    $sortie .= "\n";
58
    $sortie .= "\n";
59
    $sortie .= '<!-- Application page -->'."\n";
59
    $sortie .= '<!-- Application page -->'."\n";
60
    $sortie .= str_repeat(' ', 12).'<h1>'.$titre.'</h1>'."\n";
60
    $sortie .= str_repeat(' ', 12).'<h1>'.$titre.'</h1>'."\n";
61
    if (! empty ($message)) {
61
    if (! empty ($message)) {
62
        $sortie .= $message;
62
        $sortie .= $message;
63
    }
63
    }
64
    $sortie .= $texte."\n";
64
    $sortie .= $texte."\n";
65
    
65
    
66
    return $sortie;
66
    return $sortie;
67
}
67
}
68
 
68
 
69
// +- Fin du code source  --------------------------------------------------------------------------------+
69
// +- Fin du code source  --------------------------------------------------------------------------------+
70
/*
70
/*
71
* $Log: not supported by cvs2svn $
71
* $Log: adsi_affichage.fonct.php,v $
-
 
72
* Revision 1.5  2005-02-28 11:07:00  jpm
-
 
73
* Modification des auteurs.
-
 
74
*
72
* Revision 1.4  2005/02/28 10:59:07  jpm
75
* Revision 1.4  2005/02/28 10:59:07  jpm
73
* Modification des commentaires et copyright.
76
* Modification des commentaires et copyright.
74
*
77
*
75
* Revision 1.3  2005/02/28 10:40:49  jpm
78
* Revision 1.3  2005/02/28 10:40:49  jpm
76
* Suppression d'une fonction inutile.
79
* Suppression d'une fonction inutile.
77
*
80
*
78
* Revision 1.2  2004/07/06 17:08:01  jpm
81
* Revision 1.2  2004/07/06 17:08:01  jpm
79
* Modification de la documentation pour une mailleur analyse par PhpDocumentor.
82
* Modification de la documentation pour une mailleur analyse par PhpDocumentor.
80
*
83
*
81
* Revision 1.1  2004/06/16 14:23:01  jpm
84
* Revision 1.1  2004/06/16 14:23:01  jpm
82
* Changement de nom de Génésia en Papyrus.
85
* Changement de nom de Génésia en Papyrus.
83
* Changement de l'arborescence.
86
* Changement de l'arborescence.
84
*
87
*
85
* Revision 1.6  2004/05/07 16:33:39  jpm
88
* Revision 1.6  2004/05/07 16:33:39  jpm
86
* Modification de commentaires.
89
* Modification de commentaires.
87
*
90
*
88
* Revision 1.5  2004/04/30 16:22:53  jpm
91
* Revision 1.5  2004/04/30 16:22:53  jpm
89
* Poursuite de l'administration des sites.
92
* Poursuite de l'administration des sites.
90
*
93
*
91
* Revision 1.4  2004/04/02 16:36:35  jpm
94
* Revision 1.4  2004/04/02 16:36:35  jpm
92
* Ajout d'une fonction générant des boutons pour les formulaires.
95
* Ajout d'une fonction générant des boutons pour les formulaires.
93
*
96
*
94
* Revision 1.3  2004/04/01 11:21:41  jpm
97
* Revision 1.3  2004/04/01 11:21:41  jpm
95
* Ajout et modification de commentaires pour PhpDocumentor.
98
* Ajout et modification de commentaires pour PhpDocumentor.
96
*
99
*
97
* Revision 1.2  2004/03/24 20:02:25  jpm
100
* Revision 1.2  2004/03/24 20:02:25  jpm
98
* Modification de l'indentation du xhtml renvoyé.
101
* Modification de l'indentation du xhtml renvoyé.
99
*
102
*
100
* Revision 1.1  2004/03/24 10:01:33  jpm
103
* Revision 1.1  2004/03/24 10:01:33  jpm
101
* Changement de nom de la bibliothèque de fonction d'affichage du xhtml.
104
* Changement de nom de la bibliothèque de fonction d'affichage du xhtml.
102
*
105
*
103
* Revision 1.1  2004/03/24 10:00:11  jpm
106
* Revision 1.1  2004/03/24 10:00:11  jpm
104
* Transfert de la fonction de contruction du xhtml de l'application dans ce fichier.
107
* Transfert de la fonction de contruction du xhtml de l'application dans ce fichier.
105
*
108
*
106
*
109
*
107
*/
110
*/