Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 393 → Rev 394

/trunk/papyrus/applications/afficheur/afficheur.admin.php
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.
*
/trunk/papyrus/applications/afficheur/configuration/affi_configuration.inc.php
21,7 → 21,7
// | along with Foobar; if not, write to the Free Software |
// | Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
// +------------------------------------------------------------------------------------------------------+
// CVS : $Id: affi_configuration.inc.php,v 1.6 2005-04-25 13:56:19 jpm Exp $
// CVS : $Id: affi_configuration.inc.php,v 1.7 2005-06-03 18:39:30 jpm Exp $
/**
* Application réalisant l'affichage du contenu stocké dans Papyrus.
*
34,7 → 34,7
//Autres auteurs :
*@author Aucun
*@copyright Tela-Botanica 2000-2004
*@version $Revision: 1.6 $ $Date: 2005-04-25 13:56:19 $
*@version $Revision: 1.7 $ $Date: 2005-06-03 18:39:30 $
// +------------------------------------------------------------------------------------------------------+
*/
 
51,6 → 51,8
define('AFFI_CHEMIN_BIBLIOTHEQUE_PEAR', '');
/** Chemin vers la bibliothèque API.*/
define('AFFI_CHEMIN_BIBLIOTHEQUE_API', GEN_CHEMIN_API);
/** Chemin vers la bibliothèque API : fckeditor.*/
define('AFFI_CHEMIN_FCKEDITOR', AFFI_CHEMIN_BIBLIOTHEQUE_API.'fckeditor'.GEN_SEP);
/** Chemin vers l'application Admin de l'afficheur de Papyrus.*/
define('AFFI_CHEMIN_APPLICATION', GEN_CHEMIN_APPLICATION.'afficheur'.GEN_SEP);
/** Chemin vers le dossier des styles de l'application.*/
58,6 → 60,15
/** Chaine à utiliser pour l'URL de la règle Freelink.*/
define('AFFI_URL_PAPYRUS', PAP_URL.'?menu=%s');
 
/** Utilisation de fckeditor (true).*/
$GLOBALS['_AFFI_']['fckeditor']['utilisation'] = true;
/** Hauteur de fckeditor.*/
$GLOBALS['_AFFI_']['fckeditor']['hauteur'] = '400';
/** Type de barre d'outil de fckeditor.*/
$GLOBALS['_AFFI_']['fckeditor']['barre'] = 'Papyrus';
/** Langue de fckeditor.*/
$GLOBALS['_AFFI_']['fckeditor']['langue'] = $GLOBALS['_GEN_commun']['i18n'];
 
// L'objet PEAR::DB à utiliser pour l'afficheur :
$GLOBALS['_AFFICHEUR']['objet_pear_db'] =& $GLOBALS['_GEN_commun']['pear_db'];
 
88,6 → 99,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.6 2005/04/25 13:56:19 jpm
* Ajout de chemin vers les styles.
*
* Revision 1.5 2005/04/21 16:46:21 jpm
* Gestion via Papyrus du XHTML.
*