Subversion Repositories Applications.papyrus

Compare Revisions

Ignore whitespace Rev 360 → Rev 361

/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.2 2005-02-28 10:34:15 jpm Exp $
// CVS : $Id: afficheur.admin.php,v 1.3 2005-04-25 13:56:31 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.2 $ $Date: 2005-02-28 10:34:15 $
*@version $Revision: 1.3 $ $Date: 2005-04-25 13:56:31 $
// +------------------------------------------------------------------------------------------------------+
*/
 
57,7 → 57,14
*/
function afficherContenuCorps()
{
/** Inclusion du fichier de configuration de cette application.*/
require_once GEN_CHEMIN_PAP.'applications/afficheur/configuration/affi_configuration.inc.php';
//-------------------------------------------------------------------------------------------------------------------
// Stockage des styles de l'application
GEN_stockerStyleExterne('afficheur', AFFI_CHEMIN_STYLE.'afficheur.css');
//-------------------------------------------------------------------------------------------------------------------
// Initialisation des attributs
$this->objet_pear_auth = $GLOBALS['_GEN_commun']['pear_auth'];
$this->objet_pear_db = $GLOBALS['_GEN_commun']['pear_db'];
84,7 → 91,7
* @return void les données sont enregistrées dans la base de données.
*/
function _redigerContenu($db, $url, $adme_site_id, $adme_menu_id, $adme_action)
{
{
//-------------------------------------------------------------------------------------------------------------------
// Initialisation de variable
$url->addQueryString('adme_site_id', $adme_site_id);
114,7 → 121,8
$retour = '<h1>'.'Rédaction'.'</h1>'."\n";
//-------------------------------------------------------------------------------------------------------------------
// Création du formulaire
$form =& new HTML_QuickForm('form_modifier_contenu', 'post', str_replace('&amp;', '&', $url->getUrl()));
$form =& new HTML_QuickForm('form_modifier_contenu', 'post', str_replace('&amp;', '&', $url->getUrl()));
$tab_index = 1000;
$squelette =& $form->defaultRenderer();
$squelette->setFormTemplate("\n".'<form{attributes}>'."\n".'<ul>'."\n".'{content}'."\n".'</ul>'."\n".'</form>'."\n");
$squelette->setElementTemplate( '<li>'."\n".
125,20 → 133,32
'</li>'."\n");
//$squelette->setHeaderTemplate('<p>{header}</p>');
//$form->addElement('header', 'Entete', 'REDACTION');
$tab_type_contenu = array();
$tab_type_contenu[1] = 'XHTML';
$tab_type_contenu[2] = 'WIKINI';
$form->addElement('select', 'gmc_ce_type_contenu', 'Type de contenu : ', $tab_type_contenu);
$zone_redaction = $form->createElement('textarea', 'gmc_contenu', 'Contenu : ');
$zone_redaction->setCols(100);
$zone_redaction->setRows(20);
$form->addElement($zone_redaction);
$tab_type_modif = array();
$tab_type_modif[1] = 'Mineure';
$tab_type_modif[2] = 'Majeure';
$form->addElement('select', 'gmc_ce_type_modification', 'Type de modification : ', $tab_type_modif);
$form->addElement('text', 'gmc_resume_modification', 'Resumé modification : ');
$aso_options = array();
$aso_options[1] = 'XHTML';
$aso_options[2] = 'WIKINI';
$id = 'gmc_ce_type_contenu';
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++);
$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);
$aso_options = array();
$aso_options[1] = 'Mineure';
$aso_options[2] = 'Majeure';
$id = 'gmc_ce_type_modification';
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++);
$label = '<label for="'.$id.'">'.'Type de modification : '.'</label>';
$form->addElement('select', $id, $label, $aso_options, $aso_attributs);
$id = 'gmc_resume_modification';
$aso_attributs = array('id'=> $id, 'tabindex' => $tab_index++, 'size' => 45, 'maxlength' => 255);
$label = '<label for="'.$id.'">'.'Resumé modification : '.'</label>';
$form->addElement('text', $id, $label, $aso_attributs);
$liste_bouton_debut = '<ul class="liste_bouton">'."\n";
$form->addElement('html', $liste_bouton_debut);
$form->addElement('submit', 'afficheur_enregistrer', 'Enregistrer');
196,6 → 216,9
/* +--Fin du code ----------------------------------------------------------------------------------------+
*
* $Log: not supported by cvs2svn $
* Revision 1.2 2005/02/28 10:34:15 jpm
* Changement de nom Genesia en Papyrus.
*
* Revision 1.1 2004/11/09 17:53:49 jpm
* Interface d'administration de l'application afficheur.
*