diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 5bd1ab0fb0b..f258324ad84 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -40,14 +40,14 @@ if ($_GET["action"] == 'set' && $user->admin) { Activate($_GET["value"]); - Header("Location: modules.php"); + Header("Location: modules.php?spe=".$_GET["spe"]); } if ($_GET["action"] == 'reset' && $user->admin) { UnActivate($_GET["value"]); - Header("Location: modules.php"); + Header("Location: modules.php?spe=".$_GET["spe"]); } @@ -110,9 +110,17 @@ if (!$user->admin) exit; } -print_titre($langs->trans("Modules")); +if (!$_GET["spe"]) +{ + print_titre($langs->trans("Modules")); + print "
".$langs->trans("ModulesDesc")."
\n"; +} +else +{ + print_titre($langs->trans("Modules Speciaux")); +} + -print "
".$langs->trans("ModulesDesc")."
\n"; print '
'; print ''; @@ -191,6 +199,10 @@ foreach ($orders as $key => $value) if ($oldfamily && $family!=$oldfamily) { print ''; } + if((!$objMod->special && !$_GET["spe"] ) or ($objMod->special && $_GET["spe"])) + { + + print ""; print "'; + print ''.$langs->trans("Disable").''; if ($objMod->config_page_url) @@ -242,13 +254,19 @@ foreach ($orders as $key => $value) } else { - print ''.$langs->trans("Activate").''; + print ''.$langs->trans("Activate").''; } print ''; + } } print "
"; @@ -217,7 +229,7 @@ foreach ($orders as $key => $value) if ($const_value == 1) { - print ''.$langs->trans("Disable").'  
"; +if(!$_GET["spe"] ) +{ + print '
Modules spéciaux'; +} + llxFooter(); ?>