From c4d9293d81ca5296cc9411f2eda600fbb69fba23 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 7 Oct 2004 07:26:16 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20m=E9thode=20de=20gestion=20des?= =?UTF-8?q?=20modules=20en=202=20grandes=20classes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/modules.php | 30 ++++++++++++++++++++++++------ 1 file changed, 24 insertions(+), 6 deletions(-) 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(); ?>