Subversion Repositories Applications.papyrus

Rev

Rev 387 | Rev 418 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 387 Rev 394
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.4 2005-05-31 13:43:57 jpm Exp $
22
// CVS : $Id: afficheur.admin.php,v 1.5 2005-06-03 18:39:30 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.4 $ $Date: 2005-05-31 13:43:57 $
35
*@version       $Revision: 1.5 $ $Date: 2005-06-03 18:39:30 $
36
// +------------------------------------------------------------------------------------------------------+
36
// +------------------------------------------------------------------------------------------------------+
37
*/
37
*/
Line 38... Line 38...
38
 
38
 
39
// +------------------------------------------------------------------------------------------------------+
39
// +------------------------------------------------------------------------------------------------------+
Line 145... Line 145...
145
        $id = 'gmc_ce_type_contenu';
145
        $id = 'gmc_ce_type_contenu';
146
        $aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++);
146
        $aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++);
147
        $label = '<label for="'.$id.'">'.'Type de contenu : '.'</label>';
147
        $label = '<label for="'.$id.'">'.'Type de contenu : '.'</label>';
148
        $form->addElement('select', $id, $label, $aso_options, $aso_attributs);
148
        $form->addElement('select', $id, $label, $aso_options, $aso_attributs);
Line -... Line 149...
-
 
149
        
-
 
150
        if ($GLOBALS['_AFFI_']['fckeditor']['utilisation']) {
-
 
151
            /** Inclusion du fichier de FCKeditor*/
-
 
152
            require_once AFFI_CHEMIN_FCKEDITOR.'fckeditor.php';
-
 
153
            $fckeditor = new FCKeditor('gmc_contenu');
-
 
154
            $fckeditor->Value = $ligne_dernier_contenu['gmc_contenu'];
-
 
155
            $fckeditor->Height = $GLOBALS['_AFFI_']['fckeditor']['hauteur'];
-
 
156
            $fckeditor->ToolbarSet = $GLOBALS['_AFFI_']['fckeditor']['barre'];
-
 
157
            $fckeditor->Config['AutoDetectLanguage'] = false;
-
 
158
            $fckeditor->Config['DefaultLanguage'] = $GLOBALS['_AFFI_']['fckeditor']['langue'];
-
 
159
            $fckeditor->BasePath = AFFI_CHEMIN_FCKEDITOR;
-
 
160
            if ($fckeditor->IsCompatible()) {
-
 
161
                $form->addElement('html', '<li>'.$fckeditor->CreateHtml().'</li>');
-
 
162
            } else {
-
 
163
                $GLOBALS['_AFFI_']['fckeditor']['utilisation'] = false;
-
 
164
            }
-
 
165
        }
149
        
166
        if (!$GLOBALS['_AFFI_']['fckeditor']['utilisation']) {
150
        $id = 'gmc_contenu';
167
            $id = 'gmc_contenu';
151
        $aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'rows' => 20, 'cols' => 100);
168
            $aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'rows' => 20, 'cols' => 100);
152
        $label = '<label for="'.$id.'">'.'Contenu : '.'</label>';
169
            $label = '<label for="'.$id.'">'.'Contenu : '.'</label>';
-
 
170
            $form->addElement('textarea', $id, $label, $aso_attributs);
Line 153... Line 171...
153
        $form->addElement('textarea', $id, $label, $aso_attributs);
171
        } 
154
        
172
        
155
        $aso_options = array();
173
        $aso_options = array();
156
        $aso_options[1] = 'Mineure';
174
        $aso_options[1] = 'Mineure';
Line 174... Line 192...
174
        $liste_bouton_fin = '</ul>'."\n";
192
        $liste_bouton_fin = '</ul>'."\n";
175
        $form->addElement('html', $liste_bouton_fin);
193
        $form->addElement('html', $liste_bouton_fin);
Line 176... Line 194...
176
        
194
        
Line 177... Line 195...
177
        $form->setDefaults($ligne_dernier_contenu);
195
        $form->setDefaults($ligne_dernier_contenu);
-
 
196
        
178
        
197
        $retour .= $form->toHTML()."\n";
179
        $retour .= $form->toHTML()."\n";
198
        
Line 180... Line 199...
180
        return $retour;
199
        return $retour;
181
    }
200
    }
Line 222... Line 241...
222
 
241
 
223
 
242
 
224
/* +--Fin du code ----------------------------------------------------------------------------------------+
243
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
244
*
-
 
245
* $Log: not supported by cvs2svn $
-
 
246
* Revision 1.4  2005/05/31 13:43:57  jpm
225
*
247
* Ajout d'un bouton pour remplacer les entités html.
226
* $Log: not supported by cvs2svn $
248
*
227
* Revision 1.3  2005/04/25 13:56:31  jpm
249
* Revision 1.3  2005/04/25 13:56:31  jpm
228
* Ajout de styles.
250
* Ajout de styles.
229
*
251
*