Line 17... |
Line 17... |
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: afficheur.admin.php,v 1.2 2005-02-28 10:34:15 jpm Exp $
|
22 |
// CVS : $Id: afficheur.admin.php,v 1.3 2005-04-25 13:56:31 jpm Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Gestion de la rédaction du contenu pour Papyrus.
|
24 |
* Gestion de la rédaction du contenu pour Papyrus.
|
25 |
*
|
25 |
*
|
26 |
* Contient les fonctions nécessaires à la gestion du contenu de Papyrus.
|
26 |
* Contient les fonctions nécessaires à la gestion du contenu de Papyrus.
|
27 |
*
|
27 |
*
|
Line 30... |
Line 30... |
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 Aucun
|
33 |
*@author Aucun
|
34 |
*@copyright Tela-Botanica 2000-2004
|
34 |
*@copyright Tela-Botanica 2000-2004
|
35 |
*@version $Revision: 1.2 $ $Date: 2005-02-28 10:34:15 $
|
35 |
*@version $Revision: 1.3 $ $Date: 2005-04-25 13:56:31 $
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
*/
|
37 |
*/
|
Line 38... |
Line 38... |
38 |
|
38 |
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
Line 55... |
Line 55... |
55 |
*
|
55 |
*
|
56 |
* @return string Le HTML
|
56 |
* @return string Le HTML
|
57 |
*/
|
57 |
*/
|
58 |
function afficherContenuCorps()
|
58 |
function afficherContenuCorps()
|
59 |
{
|
59 |
{
|
- |
|
60 |
/** Inclusion du fichier de configuration de cette application.*/
|
- |
|
61 |
require_once GEN_CHEMIN_PAP.'applications/afficheur/configuration/affi_configuration.inc.php';
|
- |
|
62 |
|
- |
|
63 |
//-------------------------------------------------------------------------------------------------------------------
|
- |
|
64 |
// Stockage des styles de l'application
|
- |
|
65 |
GEN_stockerStyleExterne('afficheur', AFFI_CHEMIN_STYLE.'afficheur.css');
|
- |
|
66 |
|
60 |
//-------------------------------------------------------------------------------------------------------------------
|
67 |
//-------------------------------------------------------------------------------------------------------------------
|
61 |
// Initialisation des attributs
|
68 |
// Initialisation des attributs
|
62 |
$this->objet_pear_auth = $GLOBALS['_GEN_commun']['pear_auth'];
|
69 |
$this->objet_pear_auth = $GLOBALS['_GEN_commun']['pear_auth'];
|
63 |
$this->objet_pear_db = $GLOBALS['_GEN_commun']['pear_db'];
|
70 |
$this->objet_pear_db = $GLOBALS['_GEN_commun']['pear_db'];
|
64 |
$this->objet_pear_url = $GLOBALS['_GEN_commun']['url'];
|
71 |
$this->objet_pear_url = $GLOBALS['_GEN_commun']['url'];
|
Line 113... |
Line 120... |
113 |
|
120 |
|
114 |
$retour = '<h1>'.'Rédaction'.'</h1>'."\n";
|
121 |
$retour = '<h1>'.'Rédaction'.'</h1>'."\n";
|
115 |
//-------------------------------------------------------------------------------------------------------------------
|
122 |
//-------------------------------------------------------------------------------------------------------------------
|
116 |
// Création du formulaire
|
123 |
// Création du formulaire
|
- |
|
124 |
$form =& new HTML_QuickForm('form_modifier_contenu', 'post', str_replace('&', '&', $url->getUrl()));
|
117 |
$form =& new HTML_QuickForm('form_modifier_contenu', 'post', str_replace('&', '&', $url->getUrl()));
|
125 |
$tab_index = 1000;
|
118 |
$squelette =& $form->defaultRenderer();
|
126 |
$squelette =& $form->defaultRenderer();
|
119 |
$squelette->setFormTemplate("\n".'<form{attributes}>'."\n".'<ul>'."\n".'{content}'."\n".'</ul>'."\n".'</form>'."\n");
|
127 |
$squelette->setFormTemplate("\n".'<form{attributes}>'."\n".'<ul>'."\n".'{content}'."\n".'</ul>'."\n".'</form>'."\n");
|
120 |
$squelette->setElementTemplate( '<li>'."\n".
|
128 |
$squelette->setElementTemplate( '<li>'."\n".
|
121 |
'{label}'."\n".
|
129 |
'{label}'."\n".
|
122 |
'{element}'."\n".
|
130 |
'{element}'."\n".
|
123 |
'<!-- BEGIN required --><span class="symbole_obligatoire">*</span><!-- END required -->'."\n".
|
131 |
'<!-- BEGIN required --><span class="symbole_obligatoire">*</span><!-- END required -->'."\n".
|
124 |
'<!-- BEGIN error --><span class="erreur">{error}</span><!-- END error -->'."\n".
|
132 |
'<!-- BEGIN error --><span class="erreur">{error}</span><!-- END error -->'."\n".
|
125 |
'</li>'."\n");
|
133 |
'</li>'."\n");
|
126 |
//$squelette->setHeaderTemplate('<p>{header}</p>');
|
134 |
//$squelette->setHeaderTemplate('<p>{header}</p>');
|
127 |
//$form->addElement('header', 'Entete', 'REDACTION');
|
135 |
//$form->addElement('header', 'Entete', 'REDACTION');
|
128 |
$tab_type_contenu = array();
|
136 |
$aso_options = array();
|
129 |
$tab_type_contenu[1] = 'XHTML';
|
137 |
$aso_options[1] = 'XHTML';
|
- |
|
138 |
$aso_options[2] = 'WIKINI';
|
- |
|
139 |
$id = 'gmc_ce_type_contenu';
|
130 |
$tab_type_contenu[2] = 'WIKINI';
|
140 |
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++);
|
131 |
$form->addElement('select', 'gmc_ce_type_contenu', 'Type de contenu : ', $tab_type_contenu);
|
141 |
$label = '<label for="'.$id.'">'.'Type de contenu : '.'</label>';
|
- |
|
142 |
$form->addElement('select', $id, $label, $aso_options, $aso_attributs);
|
132 |
$zone_redaction = $form->createElement('textarea', 'gmc_contenu', 'Contenu : ');
|
143 |
|
- |
|
144 |
$id = 'gmc_contenu';
|
133 |
$zone_redaction->setCols(100);
|
145 |
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'rows' => 20, 'cols' => 100);
|
134 |
$zone_redaction->setRows(20);
|
146 |
$label = '<label for="'.$id.'">'.'Contenu : '.'</label>';
|
- |
|
147 |
$form->addElement('textarea', $id, $label, $aso_attributs);
|
135 |
$form->addElement($zone_redaction);
|
148 |
|
136 |
$tab_type_modif = array();
|
149 |
$aso_options = array();
|
137 |
$tab_type_modif[1] = 'Mineure';
|
150 |
$aso_options[1] = 'Mineure';
|
- |
|
151 |
$aso_options[2] = 'Majeure';
|
- |
|
152 |
$id = 'gmc_ce_type_modification';
|
- |
|
153 |
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++);
|
138 |
$tab_type_modif[2] = 'Majeure';
|
154 |
$label = '<label for="'.$id.'">'.'Type de modification : '.'</label>';
|
- |
|
155 |
$form->addElement('select', $id, $label, $aso_options, $aso_attributs);
|
- |
|
156 |
|
- |
|
157 |
$id = 'gmc_resume_modification';
|
- |
|
158 |
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'size' => 45, 'maxlength' => 255);
|
139 |
$form->addElement('select', 'gmc_ce_type_modification', 'Type de modification : ', $tab_type_modif);
|
159 |
$label = '<label for="'.$id.'">'.'Resumé modification : '.'</label>';
|
Line 140... |
Line 160... |
140 |
$form->addElement('text', 'gmc_resume_modification', 'Resumé modification : ');
|
160 |
$form->addElement('text', $id, $label, $aso_attributs);
|
141 |
|
161 |
|
142 |
$liste_bouton_debut = '<ul class="liste_bouton">'."\n";
|
162 |
$liste_bouton_debut = '<ul class="liste_bouton">'."\n";
|
143 |
$form->addElement('html', $liste_bouton_debut);
|
163 |
$form->addElement('html', $liste_bouton_debut);
|
Line 194... |
Line 214... |
194 |
|
214 |
|
195 |
|
215 |
|
196 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
216 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
217 |
*
|
- |
|
218 |
* $Log: not supported by cvs2svn $
|
- |
|
219 |
* Revision 1.2 2005/02/28 10:34:15 jpm
|
197 |
*
|
220 |
* Changement de nom Genesia en Papyrus.
|
198 |
* $Log: not supported by cvs2svn $
|
221 |
*
|
199 |
* Revision 1.1 2004/11/09 17:53:49 jpm
|
222 |
* Revision 1.1 2004/11/09 17:53:49 jpm
|
200 |
* Interface d'administration de l'application afficheur.
|
223 |
* Interface d'administration de l'application afficheur.
|
201 |
*
|
224 |
*
|