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: admin_menu.php,v 1.9 2004-11-09 17:53:03 jpm Exp $
|
22 |
// CVS : $Id: admin_menu.php,v 1.10 2004-11-10 11:58:58 jpm Exp $
|
23 |
/**
|
23 |
/**
|
24 |
* Application gérant les menus de Papyrus
|
24 |
* Application gérant les menus de Papyrus
|
25 |
*
|
25 |
*
|
26 |
* Cette application permet de gérer les menus classiques, les menus communs
|
26 |
* Cette application permet de gérer les menus classiques, les menus communs
|
27 |
* et les liaison d'une application à un menu.
|
27 |
* et les liaison d'une application à un menu.
|
Line 31... |
Line 31... |
31 |
*@author Laurent COUDOUNEAU <lc@gsite.org>
|
31 |
*@author Laurent COUDOUNEAU <lc@gsite.org>
|
32 |
//Autres auteurs :
|
32 |
//Autres auteurs :
|
33 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
33 |
*@author Alexandre GRANIER <alexandre@tela-botanica.org>
|
34 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
34 |
*@author Jean-Pascal MILCENT <jpm@tela-botanica.org>
|
35 |
*@copyright Tela-Botanica 2000-2004
|
35 |
*@copyright Tela-Botanica 2000-2004
|
36 |
*@version $Revision: 1.9 $ $Date: 2004-11-09 17:53:03 $
|
36 |
*@version $Revision: 1.10 $ $Date: 2004-11-10 11:58:58 $
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
37 |
// +------------------------------------------------------------------------------------------------------+
|
38 |
*/
|
38 |
*/
|
Line 39... |
Line 39... |
39 |
|
39 |
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
40 |
// +------------------------------------------------------------------------------------------------------+
|
Line 165... |
Line 165... |
165 |
|
165 |
|
166 |
//---------------------------------------------------------------------------------------------------------------
|
166 |
//---------------------------------------------------------------------------------------------------------------
|
Line 167... |
Line 167... |
167 |
// GESTION DES MENUS COMMUNS
|
167 |
// GESTION DES MENUS COMMUNS
|
168 |
|
168 |
|
169 |
// Ajout un menu commun
|
169 |
// Ajout un menu commun
|
170 |
if (isset($_GET['adme_action']) && $_GET['adme_action'] == 'menu_commun_ajouter') {
|
170 |
if (isset($_GET['adme_action']) && $_GET['adme_action'] == ADME_LG_ACTION_AJOUTER) {
|
Line 171... |
Line 171... |
171 |
$message = ADME_ajouterMenuCommun($objet_pear_db, $objet_pear_auth, $_GET['adme_site_id'], $_GET['adme_menu_id']);
|
171 |
$message = ADME_ajouterMenuCommun($objet_pear_db, $objet_pear_auth, $_GET['adme_site_id'], $_GET['adme_menu_id']);
|
172 |
}
|
172 |
}
|
173 |
|
173 |
|
174 |
// Formulaire de mise à jour du menu commun.
|
174 |
// Formulaire de mise à jour du menu commun.
|
175 |
if (isset($_GET['adme_action']) && $_GET['adme_action'] == 'menu_commun_modifier') {
|
175 |
if (isset($_GET['adme_action']) && $_GET['adme_action'] == ADME_LG_ACTION_MODIFIER) {
|
176 |
$sortie_xhtml .= ADME_afficherFormMenuCommun($objet_pear_db, $objet_pear_url, $_GET['adme_site_id'], $_GET['adme_menu_id'], $_POST);
|
176 |
$sortie_xhtml .= ADME_afficherFormMenuCommun($objet_pear_db, $objet_pear_url, $_GET['adme_site_id'], $_GET['adme_menu_id'], $_POST);
|
177 |
return $sortie_xhtml;
|
177 |
return $sortie_xhtml;
|
Line 187... |
Line 187... |
187 |
$message = ADME_modifierMenuCommun($objet_pear_db, $objet_pear_auth, $_GET['adme_menu_id'], $_POST);
|
187 |
$message = ADME_modifierMenuCommun($objet_pear_db, $objet_pear_auth, $_GET['adme_menu_id'], $_POST);
|
188 |
}
|
188 |
}
|
189 |
}
|
189 |
}
|
Line 190... |
Line 190... |
190 |
|
190 |
|
191 |
// Déplace vers le haut de la hiérarchie un menu commun
|
191 |
// Déplace vers le haut de la hiérarchie un menu commun
|
192 |
if (isset($_GET['adme_action']) && $_GET['adme_action'] == 'menu_commun_monter') {
|
192 |
if (isset($_GET['adme_action']) && $_GET['adme_action'] == ADME_LG_ACTION_MONTER) {
|
193 |
ADME_deplacerMenuCommun($objet_pear_db, $_GET['adme_site_id'], $_GET['adme_menu_id'], true);
|
193 |
ADME_deplacerMenuCommun($objet_pear_db, $_GET['adme_site_id'], $_GET['adme_menu_id'], true);
|
Line 194... |
Line 194... |
194 |
}
|
194 |
}
|
195 |
|
195 |
|
196 |
// Déplace vers le bas de la hiérarchie un menu commun
|
196 |
// Déplace vers le bas de la hiérarchie un menu commun
|
197 |
if (isset($_GET['adme_action']) && $_GET['adme_action'] == 'menu_commun_descendre') {
|
197 |
if (isset($_GET['adme_action']) && $_GET['adme_action'] == ADME_LG_ACTION_DESCENDRE) {
|
Line 198... |
Line 198... |
198 |
ADME_deplacerMenuCommun($objet_pear_db, $_GET['adme_site_id'], $_GET['adme_menu_id'], false);
|
198 |
ADME_deplacerMenuCommun($objet_pear_db, $_GET['adme_site_id'], $_GET['adme_menu_id'], false);
|
199 |
}
|
199 |
}
|
200 |
|
200 |
|
201 |
// Supprime définitivement un menu commun
|
201 |
// Supprime définitivement un menu commun
|
202 |
if (isset($_GET['adme_action']) && $_GET['adme_action'] == 'menu_commun_supprimer') {
|
202 |
if (isset($_GET['adme_action']) && $_GET['adme_action'] == ADME_LG_ACTION_SUPPRIMER) {
|
203 |
// Récupération du menu de remplacement pour éviter de fermer l'arborescence
|
203 |
// Récupération du menu de remplacement pour éviter de fermer l'arborescence
|
204 |
if (GEN_donnerDernierFreres($_GET['adme_menu_id']) == false) {
|
204 |
if (GEN_donnerDernierFreres($_GET['adme_menu_id']) == false) {
|
Line 214... |
Line 214... |
214 |
|
214 |
|
215 |
//---------------------------------------------------------------------------------------------------------------
|
215 |
//---------------------------------------------------------------------------------------------------------------
|
Line 216... |
Line 216... |
216 |
// GESTION DES INTERFACES D'ADMINISTRATION
|
216 |
// GESTION DES INTERFACES D'ADMINISTRATION
|
217 |
|
217 |
|
218 |
// Appel de l'application d'administration
|
218 |
// Appel de l'application d'administration
|
219 |
if (isset($_GET['adme_action']) && $_GET['adme_action'] == 'administrer') {
|
219 |
if (isset($_GET['adme_action']) && $_GET['adme_action'] == ADME_LG_ACTION_ADMINISTRER) {
|
220 |
$id_appli = GEN_retournerIdAppliMenu($objet_pear_db, $_GET['adme_menu_id']);
|
220 |
$id_appli = GEN_retournerIdAppliMenu($objet_pear_db, $_GET['adme_menu_id']);
|
221 |
$chemin_admin = GEN_retournerCheminInterfaceAdmin($objet_pear_db, $id_appli);
|
221 |
$chemin_admin = GEN_retournerCheminInterfaceAdmin($objet_pear_db, $id_appli);
|
222 |
$nom_admin = GEN_retournerNomInterfaceAdmin($objet_pear_db, $id_appli);
|
222 |
$nom_admin = GEN_retournerNomInterfaceAdmin($objet_pear_db, $id_appli);
|
Line 256... |
Line 256... |
256 |
|
256 |
|
257 |
|
257 |
|
258 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
258 |
/* +--Fin du code ----------------------------------------------------------------------------------------+
|
- |
|
259 |
*
|
- |
|
260 |
* $Log: not supported by cvs2svn $
|
- |
|
261 |
* Revision 1.9 2004/11/09 17:53:03 jpm
|
259 |
*
|
262 |
* Changement des noms des actions sur les menus classiques.
|
260 |
* $Log: not supported by cvs2svn $
|
263 |
*
|
261 |
* Revision 1.8 2004/11/09 17:49:11 jpm
|
264 |
* Revision 1.8 2004/11/09 17:49:11 jpm
|
262 |
* Mise en conformité et gestion de différentes interfaces d'administration.
|
265 |
* Mise en conformité et gestion de différentes interfaces d'administration.
|
263 |
*
|
266 |
*
|