Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dolibarr
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
859074c5
Commit
859074c5
authored
20 years ago
by
Laurent Destailleur
Browse files
Options
Downloads
Patches
Plain Diff
New: Ajout possibilité de gérer des menus grisés dans les gestionnaires de menu
parent
84a9950e
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/menu.class.php
+8
-4
8 additions, 4 deletions
htdocs/menu.class.php
with
8 additions
and
4 deletions
htdocs/menu.class.php
+
8
−
4
View file @
859074c5
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
*
*
*/
*/
/** \file htdocs/menu.class.php
/**
\file htdocs/menu.class.php
\brief Fichier de la classe de gestion du menu gauche
\brief Fichier de la classe de gestion du menu gauche
\version $Revision$
\version $Revision$
*/
*/
...
@@ -58,13 +59,15 @@ class Menu {
...
@@ -58,13 +59,15 @@ class Menu {
* \param url Url a suivre sur le clic
* \param url Url a suivre sur le clic
* \param titre Libelle menu afficher
* \param titre Libelle menu afficher
* \param level Niveau du menu ajouter
* \param level Niveau du menu ajouter
* \param enabled Menu actif ou non
*/
*/
function
add
(
$url
,
$titre
,
$level
=
0
)
function
add
(
$url
,
$titre
,
$level
=
0
,
$enabled
=
1
)
{
{
$i
=
sizeof
(
$this
->
liste
);
$i
=
sizeof
(
$this
->
liste
);
$this
->
liste
[
$i
][
'url'
]
=
$url
;
$this
->
liste
[
$i
][
'url'
]
=
$url
;
$this
->
liste
[
$i
][
'titre'
]
=
$titre
;
$this
->
liste
[
$i
][
'titre'
]
=
$titre
;
$this
->
liste
[
$i
][
'level'
]
=
$level
;
$this
->
liste
[
$i
][
'level'
]
=
$level
;
$this
->
liste
[
$i
][
'enabled'
]
=
$enabled
;
}
}
/**
/**
...
@@ -72,11 +75,12 @@ class Menu {
...
@@ -72,11 +75,12 @@ class Menu {
* \param url Url a suivre sur le clic
* \param url Url a suivre sur le clic
* \param titre Libelle menu afficher
* \param titre Libelle menu afficher
* \param level Niveau du menu ajouter
* \param level Niveau du menu ajouter
* \param enabled Menu actif ou non
*/
*/
function
add_submenu
(
$url
,
$titre
,
$level
=
1
)
function
add_submenu
(
$url
,
$titre
,
$level
=
1
,
$enabled
=
1
)
{
{
$i
=
sizeof
(
$this
->
liste
)
-
1
;
$i
=
sizeof
(
$this
->
liste
)
-
1
;
$this
->
add
(
$url
,
$titre
,
$level
);
$this
->
add
(
$url
,
$titre
,
$level
,
$enabled
);
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment