From a6055716b4aa5fcab5986348a035e01b20f55a47 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Mon, 22 Nov 2004 09:57:37 +0000 Subject: [PATCH] =?UTF-8?q?Modif=20presentation=20en=20mode=20fiche=20pour?= =?UTF-8?q?=20plus=20de=20coh=E9rence=20de=20l'interface?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/modules.php | 111 ++++++++++++++++++++++++--------------- 1 file changed, 68 insertions(+), 43 deletions(-) diff --git a/htdocs/admin/modules.php b/htdocs/admin/modules.php index 279b5d94a11..0e45d12f192 100644 --- a/htdocs/admin/modules.php +++ b/htdocs/admin/modules.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2003-2004 Rodolphe Quiedeville * Copyright (C) 2003 Jean-Louis Bergamo * Copyright (C) 2004 Laurent Destailleur * @@ -103,23 +103,43 @@ function UnActivate($value) $db->close(); -llxHeader(); +llxHeader("","","Admin"); + +if (!$_GET["spe"]) +{ + $hselected = 0; +} +else +{ + $hselected = 1; +} + +$h = 0; +$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?spe=0"; +$head[$h][1] = $langs->trans("ModulesCommon"); + +$h++; + +$head[$h][0] = DOL_URL_ROOT."/admin/modules.php?spe=1"; +$head[$h][1] = $langs->trans("ModulesSpecial"); +$h++; + +dolibarr_fiche_head($head, $hselected, $langs->trans("Modules")); if (!$_GET["spe"]) { - print_titre($langs->trans("ModulesCommon")); print "
".$langs->trans("ModulesDesc")."
\n"; } else { - print_titre($langs->trans("ModulesSpecial")); print "
".$langs->trans("ModulesSpecialDesc")."
\n"; } + print '
'; -print ''; +print '
'; print ''; print ''; print ''; @@ -197,15 +217,22 @@ foreach ($orders as $key => $value) } if((!$objMod->special && !$_GET["spe"] ) or ($objMod->special && $_GET["spe"])) - { + { $atleastoneforfamily=1; $var=!$var; print ""; - + print "'; $oldfamily=$family; } - else { print ' '; } + if ($family!=$oldfamily) + { + print '
'.$familylib[$family].'
'; + $oldfamily=$family; + } + else + { + print ' '; + } print ""; print "'; @@ -235,42 +262,40 @@ foreach ($orders as $key => $value) if (is_array($objMod->config_page_url)) { print ''; - } else { - print ''; } + else + { + print ''; + } } else - { + { print ""; - } - + } + } else - { - print ''.$langs->trans("Activate").''; - } - + { + print ''.$langs->trans("Activate").''; + } + print ''; } - + } -print "
'.$langs->trans("Family").''.$langs->trans("Module").'
"; - if ($family!=$oldfamily) { print '
'.$familylib[$family].'
"; print $objMod->name; @@ -214,19 +241,19 @@ foreach ($orders as $key => $value) print ''; if ($const_value == 1) - { - print ''; - } + { + print ''; + } else - { + { print " "; - } - + } + print ''; - + if ($const_value == 1) - { + { print ''.$langs->trans("Disable").''; $i=0; - foreach ($objMod->config_page_url as $page) { - if ($i++) { print ''.ucfirst($page).' '; } - else { print ''.$langs->trans("Setup").' '; } - } + foreach ($objMod->config_page_url as $page) + { + if ($i++) + { + print ''.ucfirst($page).' '; + } + else + { + print ''.$langs->trans("Setup").' '; + } + } print ''.$langs->trans("Setup").''.$langs->trans("Setup").'   
"; - - -if ($_GET["spe"]) -{ - print '
'.$langs->trans("ModulesCommon").''; -} -else -{ - print '
'.$langs->trans("ModulesSpecial").''; -} - +print ""; llxFooter(); ?>