19,7 → 19,7 |
// | License along with this library; if not, write to the Free Software | |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | |
// +------------------------------------------------------------------------------------------------------+ |
// CVS : $Id: afficheur.admin.php,v 1.4 2005-05-31 13:43:57 jpm Exp $ |
// CVS : $Id: afficheur.admin.php,v 1.5 2005-06-03 18:39:30 jpm Exp $ |
/** |
* Gestion de la rédaction du contenu pour Papyrus. |
* |
32,7 → 32,7 |
//Autres auteurs : |
*@author Aucun |
*@copyright Tela-Botanica 2000-2004 |
*@version $Revision: 1.4 $ $Date: 2005-05-31 13:43:57 $ |
*@version $Revision: 1.5 $ $Date: 2005-06-03 18:39:30 $ |
// +------------------------------------------------------------------------------------------------------+ |
*/ |
|
147,10 → 147,28 |
$label = '<label for="'.$id.'">'.'Type de contenu : '.'</label>'; |
$form->addElement('select', $id, $label, $aso_options, $aso_attributs); |
|
$id = 'gmc_contenu'; |
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'rows' => 20, 'cols' => 100); |
$label = '<label for="'.$id.'">'.'Contenu : '.'</label>'; |
$form->addElement('textarea', $id, $label, $aso_attributs); |
if ($GLOBALS['_AFFI_']['fckeditor']['utilisation']) { |
/** Inclusion du fichier de FCKeditor*/ |
require_once AFFI_CHEMIN_FCKEDITOR.'fckeditor.php'; |
$fckeditor = new FCKeditor('gmc_contenu'); |
$fckeditor->Value = $ligne_dernier_contenu['gmc_contenu']; |
$fckeditor->Height = $GLOBALS['_AFFI_']['fckeditor']['hauteur']; |
$fckeditor->ToolbarSet = $GLOBALS['_AFFI_']['fckeditor']['barre']; |
$fckeditor->Config['AutoDetectLanguage'] = false; |
$fckeditor->Config['DefaultLanguage'] = $GLOBALS['_AFFI_']['fckeditor']['langue']; |
$fckeditor->BasePath = AFFI_CHEMIN_FCKEDITOR; |
if ($fckeditor->IsCompatible()) { |
$form->addElement('html', '<li>'.$fckeditor->CreateHtml().'</li>'); |
} else { |
$GLOBALS['_AFFI_']['fckeditor']['utilisation'] = false; |
} |
} |
if (!$GLOBALS['_AFFI_']['fckeditor']['utilisation']) { |
$id = 'gmc_contenu'; |
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'rows' => 20, 'cols' => 100); |
$label = '<label for="'.$id.'">'.'Contenu : '.'</label>'; |
$form->addElement('textarea', $id, $label, $aso_attributs); |
} |
|
$aso_options = array(); |
$aso_options[1] = 'Mineure'; |
176,7 → 194,8 |
|
$form->setDefaults($ligne_dernier_contenu); |
|
$retour .= $form->toHTML()."\n"; |
$retour .= $form->toHTML()."\n"; |
|
return $retour; |
} |
|
224,6 → 243,9 |
/* +--Fin du code ----------------------------------------------------------------------------------------+ |
* |
* $Log: not supported by cvs2svn $ |
* Revision 1.4 2005/05/31 13:43:57 jpm |
* Ajout d'un bouton pour remplacer les entités html. |
* |
* Revision 1.3 2005/04/25 13:56:31 jpm |
* Ajout de styles. |
* |