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.3 2005-04-25 13:56:31 jpm Exp $
|
22 |
// CVS : $Id: afficheur.admin.php,v 1.4 2005-05-31 13:43:57 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.3 $ $Date: 2005-04-25 13:56:31 $
|
35 |
*@version $Revision: 1.4 $ $Date: 2005-05-31 13:43:57 $
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
36 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
*/
|
37 |
*/
|
Line 38... |
Line 38... |
38 |
|
38 |
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
39 |
// +------------------------------------------------------------------------------------------------------+
|
Line 71... |
Line 71... |
71 |
$this->objet_pear_url = $GLOBALS['_GEN_commun']['url'];
|
71 |
$this->objet_pear_url = $GLOBALS['_GEN_commun']['url'];
|
72 |
$this->sortie_xhtml = '';
|
72 |
$this->sortie_xhtml = '';
|
Line 73... |
Line 73... |
73 |
|
73 |
|
74 |
//-------------------------------------------------------------------------------------------------------------------
|
74 |
//-------------------------------------------------------------------------------------------------------------------
|
75 |
// Gestion de l'interface
|
75 |
// Gestion de l'interface
|
- |
|
76 |
if (isset($_POST['afficheur_annuler'])) {
|
- |
|
77 |
return false;
|
76 |
if (isset($_POST['afficheur_enregistrer'])) {
|
78 |
} else if (isset($_POST['afficheur_enregistrer_quitter'])) {
|
77 |
// Mise à jour du contenu
|
79 |
// Mise à jour du contenu
|
78 |
$this->_ajouterContenu($this->objet_pear_db, $this->objet_pear_url, $this->objet_pear_auth, $_GET['adme_menu_id'], $_POST);
|
80 |
$this->_ajouterContenu($this->objet_pear_db, $this->objet_pear_url, $this->objet_pear_auth, $_GET['adme_menu_id'], $_POST);
|
- |
|
81 |
return false;
|
- |
|
82 |
} else if (isset($_POST['afficheur_enregistrer_ss_entite'])) {
|
- |
|
83 |
$_POST['gmc_contenu'] = html_entity_decode($_POST['gmc_contenu']);
|
- |
|
84 |
// Mise à jour du contenu
|
79 |
return false;
|
85 |
$this->_ajouterContenu($this->objet_pear_db, $this->objet_pear_url, $this->objet_pear_auth, $_GET['adme_menu_id'], $_POST);
|
80 |
} else if (isset($_POST['afficheur_annuler'])) {
|
86 |
} else if (isset($_POST['afficheur_enregistrer_rester'])) {
|
- |
|
87 |
// Mise à jour du contenu
|
81 |
return false;
|
88 |
$this->_ajouterContenu($this->objet_pear_db, $this->objet_pear_url, $this->objet_pear_auth, $_GET['adme_menu_id'], $_POST);
|
82 |
} else {
|
89 |
}
|
83 |
$this->sortie_xhtml .= $this->_redigerContenu($this->objet_pear_db, $this->objet_pear_url, $_GET['adme_site_id'], $_GET['adme_menu_id'], $_GET['adme_action']);
|
90 |
$this->sortie_xhtml .= $this->_redigerContenu($this->objet_pear_db, $this->objet_pear_url, $_GET['adme_site_id'], $_GET['adme_menu_id'], $_GET['adme_action']);
|
84 |
return $this->sortie_xhtml;
|
91 |
return $this->sortie_xhtml;
|
85 |
}
|
- |
|
Line 86... |
Line 92... |
86 |
}
|
92 |
}
|
87 |
|
93 |
|
88 |
/** Méthode redigerContenu() - Enregistre les infos du formulaire de saisie d'un menu
|
94 |
/** Méthode redigerContenu() - Enregistre les infos du formulaire de saisie d'un menu
|
89 |
*
|
95 |
*
|
Line 159... |
Line 165... |
159 |
$label = '<label for="'.$id.'">'.'Resumé modification : '.'</label>';
|
165 |
$label = '<label for="'.$id.'">'.'Resumé modification : '.'</label>';
|
160 |
$form->addElement('text', $id, $label, $aso_attributs);
|
166 |
$form->addElement('text', $id, $label, $aso_attributs);
|
Line 161... |
Line 167... |
161 |
|
167 |
|
162 |
$liste_bouton_debut = '<ul class="liste_bouton">'."\n";
|
168 |
$liste_bouton_debut = '<ul class="liste_bouton">'."\n";
|
163 |
$form->addElement('html', $liste_bouton_debut);
|
169 |
$form->addElement('html', $liste_bouton_debut);
|
- |
|
170 |
$form->addElement('submit', 'afficheur_enregistrer_quitter', 'Enregistrer et quitter');
|
- |
|
171 |
$form->addElement('submit', 'afficheur_enregistrer_rester', 'Enregistrer et rester en édition');
|
164 |
$form->addElement('submit', 'afficheur_enregistrer', 'Enregistrer');
|
172 |
$form->addElement('submit', 'afficheur_enregistrer_ss_entite', 'Remplacer les entités xhtml');
|
165 |
$form->addElement('submit', 'afficheur_annuler', 'Annuler');
|
173 |
$form->addElement('submit', 'afficheur_annuler', 'Annuler');
|
166 |
$liste_bouton_fin = '</ul>'."\n";
|
174 |
$liste_bouton_fin = '</ul>'."\n";
|
Line 167... |
Line 175... |
167 |
$form->addElement('html', $liste_bouton_fin);
|
175 |
$form->addElement('html', $liste_bouton_fin);
|
Line 214... |
Line 222... |
214 |
|
222 |
|
215 |
|
223 |
|
216 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
224 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
225 |
*
|
- |
|
226 |
* $Log: not supported by cvs2svn $
|
- |
|
227 |
* Revision 1.3 2005/04/25 13:56:31 jpm
|
217 |
*
|
228 |
* Ajout de styles.
|
218 |
* $Log: not supported by cvs2svn $
|
229 |
*
|
219 |
* Revision 1.2 2005/02/28 10:34:15 jpm
|
230 |
* Revision 1.2 2005/02/28 10:34:15 jpm
|
220 |
* Changement de nom Genesia en Papyrus.
|
231 |
* Changement de nom Genesia en Papyrus.
|
221 |
*
|
232 |
*
|