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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Software_Artifact_Infrastructure_Repository
dolibarr
Commits
2b066a3b
Commit
2b066a3b
authored
18 years ago
by
Rodolphe Quiedeville
Browse files
Options
Downloads
Patches
Plain Diff
Ajout Mdoules metiers
parent
350b81d6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
htdocs/admin/modules.php
+65
-62
65 additions, 62 deletions
htdocs/admin/modules.php
with
65 additions
and
62 deletions
htdocs/admin/modules.php
+
65
−
62
View file @
2b066a3b
<?php
<?php
/* Copyright (C) 2003-200
4
Rodolphe Quiedeville <rodolphe@quiedeville.org>
/* Copyright (C) 2003-200
7
Rodolphe Quiedeville <rodolphe@quiedeville.org>
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
* Copyright (C) 2003 Jean-Louis Bergamo <jlb@j1b.org>
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net>
* Copyright (C) 2004 ric Seigne <eric.seigne@ryxeo.com>
* Copyright (C) 2004 ric Seigne <eric.seigne@ryxeo.com>
...
@@ -59,8 +59,8 @@ if ($_GET["action"] == 'reset' && $user->admin)
...
@@ -59,8 +59,8 @@ if ($_GET["action"] == 'reset' && $user->admin)
exit
;
exit
;
}
}
/**
/**
\brief Active un module
\brief Active un module
\param value Nom du module a activer
\param value Nom du module a activer
\param withdeps Active/dsactive aussi les dpendances
\param withdeps Active/dsactive aussi les dpendances
*/
*/
...
@@ -107,7 +107,8 @@ function Activate($value,$withdeps=1)
...
@@ -107,7 +107,8 @@ function Activate($value,$withdeps=1)
}
}
/** \brief Dsactive un module
/**
\brief Dsactive un module
\param value Nom du module a dsactiver
\param value Nom du module a dsactiver
\param requiredby 1=Desactive aussi modules dpendants
\param requiredby 1=Desactive aussi modules dpendants
*/
*/
...
@@ -151,6 +152,7 @@ print_fiche_titre($langs->trans("ModulesSetup"),'','setup');
...
@@ -151,6 +152,7 @@ print_fiche_titre($langs->trans("ModulesSetup"),'','setup');
if
(
$mode
==
0
)
print
$langs
->
trans
(
"ModulesDesc"
)
.
"<br>
\n
"
;
if
(
$mode
==
0
)
print
$langs
->
trans
(
"ModulesDesc"
)
.
"<br>
\n
"
;
if
(
$mode
==
1
)
print
$langs
->
trans
(
"ModulesInterfaceDesc"
)
.
"<br>
\n
"
;
if
(
$mode
==
1
)
print
$langs
->
trans
(
"ModulesInterfaceDesc"
)
.
"<br>
\n
"
;
if
(
$mode
==
2
)
print
$langs
->
trans
(
"ModulesSpecialDesc"
)
.
"<br>
\n
"
;
if
(
$mode
==
2
)
print
$langs
->
trans
(
"ModulesSpecialDesc"
)
.
"<br>
\n
"
;
if
(
$mode
==
3
)
print
$langs
->
trans
(
"ModulesJobDesc"
)
.
"<br>
\n
"
;
print
"<br>
\n
"
;
print
"<br>
\n
"
;
...
@@ -158,20 +160,21 @@ $h = 0;
...
@@ -158,20 +160,21 @@ $h = 0;
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
"/admin/modules.php?mode=0"
;
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
"/admin/modules.php?mode=0"
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"ModulesCommon"
);
$head
[
$h
][
1
]
=
$langs
->
trans
(
"ModulesCommon"
);
if
(
$mode
==
0
)
$hselected
=
$h
;
$h
++
;
$h
++
;
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
"/admin/modules.php?mode=1"
;
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
"/admin/modules.php?mode=1"
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"ModulesInterfaces"
);
$head
[
$h
][
1
]
=
$langs
->
trans
(
"ModulesInterfaces"
);
if
(
$mode
==
1
)
$hselected
=
$h
;
$h
++
;
$h
++
;
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
"/admin/modules.php?mode=2"
;
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
"/admin/modules.php?mode=2"
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"ModulesSpecial"
);
$head
[
$h
][
1
]
=
$langs
->
trans
(
"ModulesSpecial"
);
if
(
$mode
==
2
)
$hselected
=
$h
;
$h
++
;
$h
++
;
dolibarr_fiche_head
(
$head
,
$hselected
,
$langs
->
trans
(
"Modules"
));
$head
[
$h
][
0
]
=
DOL_URL_ROOT
.
"/admin/modules.php?mode=3"
;
$head
[
$h
][
1
]
=
$langs
->
trans
(
"ModulesJob"
);
dolibarr_fiche_head
(
$head
,
$mode
,
$langs
->
trans
(
"Modules"
));
if
(
$mesg
)
print
'<div class="error">'
.
$mesg
.
'</div>'
;
if
(
$mesg
)
print
'<div class="error">'
.
$mesg
.
'</div>'
;
...
...
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