Subversion Repositories Applications.papyrus

Rev

Rev 443 | Rev 754 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 443 Rev 453
Line 30... Line 30...
30
 
30
 
31
// Le fait que vous puissiez accéder à cet en-tête signifie que vous avez 
31
// Le fait que vous puissiez accéder à cet en-tête signifie que vous avez 
32
// pris connaissance de la licence CeCILL, et que vous en avez accepté les
32
// pris connaissance de la licence CeCILL, et que vous en avez accepté les
33
// termes.
33
// termes.
34
// ----
34
// ----
35
// CVS : $Id: adme_menu_classique.fonct.php,v 1.23 2005-09-20 17:01:22 ddelon Exp $
35
// CVS : $Id: adme_menu_classique.fonct.php,v 1.24 2005-09-23 13:58:07 ddelon Exp $
36
/**
36
/**
37
* Fonctions de gestion des menus classiques
37
* Fonctions de gestion des menus classiques
38
*
38
*
39
* Permet de lister, d'ajouter, de modifier, et de déplacer des menus classiques.
39
* Permet de lister, d'ajouter, de modifier, et de déplacer des menus classiques.
Line 46... Line 46...
46
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
46
*@author        Jean-Pascal MILCENT <jpm@tela-botanica.org>
47
//Autres auteurs :
47
//Autres auteurs :
48
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
48
*@author        Alexandre GRANIER <alexandre@tela-botanica.org>
49
*@author        Laurent COUDOUNEAU <lc@gsite.org>
49
*@author        Laurent COUDOUNEAU <lc@gsite.org>
50
*@copyright     Tela-Botanica 2000-2004
50
*@copyright     Tela-Botanica 2000-2004
51
*@version       $Revision: 1.23 $ $Date: 2005-09-20 17:01:22 $
51
*@version       $Revision: 1.24 $ $Date: 2005-09-23 13:58:07 $
52
// +------------------------------------------------------------------------------------------------------+
52
// +------------------------------------------------------------------------------------------------------+
53
*/
53
*/
Line 54... Line 54...
54
 
54
 
55
// +------------------------------------------------------------------------------------------------------+
55
// +------------------------------------------------------------------------------------------------------+
Line 214... Line 214...
214
    
214
    
215
    //-------------------------------------------------------------------------------------------------------------------
215
    //-------------------------------------------------------------------------------------------------------------------
216
    // XHTML du nom du menu et de ses infos
216
    // XHTML du nom du menu et de ses infos
217
    $xhtml_info  = htmlentities(empty($ligne->gm_nom) ? ADME_LG_PARENTHESE_OUVRANTE.$ligne->gm_nom.ADME_LG_PARENTHESE_FERMANTE : $ligne->gm_nom);
217
    $xhtml_info  = htmlentities(empty($ligne->gm_nom) ? ADME_LG_PARENTHESE_OUVRANTE.$ligne->gm_nom.ADME_LG_PARENTHESE_FERMANTE : $ligne->gm_nom);
-
 
218
    $xhtml_info .= '&nbsp;';
-
 
219
    if (!isset($ligne_app->gap_nom)) {
-
 
220
    	$gap_nom='';
-
 
221
    }
-
 
222
    else  {
-
 
223
    	$gap_nom=$ligne_app->gap_nom;
218
    $xhtml_info .= '&nbsp;';
224
    }
219
    $xhtml_info .= ADME_LG_PARENTHESE_OUVRANTE.$ligne_app->gap_nom.'&nbsp;'.ADME_LG_SLASH.'&nbsp;'.$ligne->ga_prenom.ADME_LG_PARENTHESE_FERMANTE;
225
    $xhtml_info .= ADME_LG_PARENTHESE_OUVRANTE.$gap_nom.'&nbsp;'.ADME_LG_SLASH.'&nbsp;'.$ligne->ga_prenom.ADME_LG_PARENTHESE_FERMANTE;
Line 220... Line 226...
220
    $xhtml_info .= '&nbsp;'."\n";
226
    $xhtml_info .= '&nbsp;'."\n";
221
    
227
    
222
    //-------------------------------------------------------------------------------------------------------------------
228
    //-------------------------------------------------------------------------------------------------------------------
Line 259... Line 265...
259
                        '</a>'.'&nbsp;'."\n";
265
                        '</a>'.'&nbsp;'."\n";
260
    $url->removeQueryString('adme_action');
266
    $url->removeQueryString('adme_action');
Line 261... Line 267...
261
    
267
    
-
 
268
    
-
 
269
    // Si le menu à une application liée on regarde s'il y a une interface d'administration.
-
 
270
     if (!isset($ligne_app->gap_id_application)) {
-
 
271
    	$gap_id_application=0;
-
 
272
    }
-
 
273
    else  {
262
    
274
    	$gap_id_application=$ligne_app->gap_id_application;
263
    // Si le menu à une application liée on regarde s'il y a une interface d'administration.
275
    }
264
    if ($ligne_app->gap_id_application != 0 && GEN_verifierPresenceInterfaceAdmin($db, $ligne_app->gap_id_application)) {
276
    if ($gap_id_application != 0 && GEN_verifierPresenceInterfaceAdmin($db, $gap_id_application)) {
265
        $url->removeQueryString('adme_action');
277
        $url->removeQueryString('adme_action');
266
        $url->addQueryString('adme_action', ADME_LG_ACTION_ADMINISTRER);
278
        $url->addQueryString('adme_action', ADME_LG_ACTION_ADMINISTRER);
267
        $xhtml_action .=    '<a href="'.$url->getURL().'" title="'.ADME_LG_ACTION_ADMINISTRER_TITLE.'">'.
279
        $xhtml_action .=    '<a href="'.$url->getURL().'" title="'.ADME_LG_ACTION_ADMINISTRER_TITLE.'">'.
Line 1166... Line 1178...
1166
 
1178
 
1167
 
1179
 
1168
/* +--Fin du code ----------------------------------------------------------------------------------------+
1180
/* +--Fin du code ----------------------------------------------------------------------------------------+
-
 
1181
*
-
 
1182
* $Log: not supported by cvs2svn $
-
 
1183
* Revision 1.23  2005/09/20 17:01:22  ddelon
1169
*
1184
* php5 et bugs divers
1170
* $Log: not supported by cvs2svn $
1185
*
1171
* Revision 1.22  2005/07/08 21:13:15  ddelon
1186
* Revision 1.22  2005/07/08 21:13:15  ddelon
1172
* Gestion indentation menu
1187
* Gestion indentation menu
1173
*
1188
*