From 9ea2fe226d8d59d61e8cbc93ed5affa06e2e56f8 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 20 Dec 2017 19:30:30 +0100 Subject: [PATCH] Fix look and feel v6 --- htdocs/compta/bank/annuel.php | 2 +- htdocs/compta/bank/bankentries_list.php | 54 +++++++++++++------------ htdocs/compta/bank/treso.php | 2 +- htdocs/theme/eldy/style.css.php | 1 + htdocs/theme/md/style.css.php | 1 + 5 files changed, 32 insertions(+), 28 deletions(-) diff --git a/htdocs/compta/bank/annuel.php b/htdocs/compta/bank/annuel.php index 4d30c48c037..3eee68bcb24 100644 --- a/htdocs/compta/bank/annuel.php +++ b/htdocs/compta/bank/annuel.php @@ -144,7 +144,7 @@ else // Onglets $head=bank_prepare_head($object); -dol_fiche_head($head, 'annual', $langs->trans("FinancialAccount"), -1, 'account'); +dol_fiche_head($head, 'annual', $langs->trans("FinancialAccount"), 0, 'account'); $title=$langs->trans("FinancialAccount")." : ".$object->label; $link=($year_start?"".img_previous('', 'class="valignbottom"')." ".$langs->trans("Year")." ".img_next('', 'class="valignbottom"')."":""); diff --git a/htdocs/compta/bank/bankentries_list.php b/htdocs/compta/bank/bankentries_list.php index bbf63a17bf1..6b9256102d9 100644 --- a/htdocs/compta/bank/bankentries_list.php +++ b/htdocs/compta/bank/bankentries_list.php @@ -415,30 +415,6 @@ if ($id > 0 || ! empty($ref)) { print '
'; - if (empty($conf->global->BANK_DISABLE_DIRECT_INPUT)) - { - if (! empty($conf->global->BANK_USE_VARIOUS_PAYMENT)) // If direct entries is done using miscellaneous payments - { - if ($user->rights->banque->modifier) { - print ''.$langs->trans("AddBankRecord").''; - } else { - print ''.$langs->trans("AddBankRecord").''; - } - } - else // If direct entries is not done using miscellaneous payments - { - if ($user->rights->banque->modifier) { - print ''.$langs->trans("AddBankRecord").''; - } else { - print ''.$langs->trans("AddBankRecord").''; - } - } - } - else - { - print ''.$langs->trans("AddBankRecord").''; - } - if ($object->canBeConciliated() > 0) { // If not cash account and can be reconciliate if ($user->rights->banque->consolidate) { @@ -727,12 +703,38 @@ if ($resql) // Title $bankcateg=new BankCateg($db); - $morehtml='
'; + $morehtml='
'; $morehtml.= ' "; // ' Page '; - $morehtml.=''; + $morehtml.=''; $morehtml.='/'.$nbtotalofpages.' '; $morehtml.='
'; + $addbutton = ''; + if (empty($conf->global->BANK_DISABLE_DIRECT_INPUT)) + { + if (! empty($conf->global->BANK_USE_VARIOUS_PAYMENT)) // If direct entries is done using miscellaneous payments + { + if ($user->rights->banque->modifier) { + $addbutton = ''.$langs->trans("AddBankRecord").''; + } else { + $addbutton = ''.$langs->trans("AddBankRecord").''; + } + } + else // If direct entries is not done using miscellaneous payments + { + if ($user->rights->banque->modifier) { + $addbutton = ''.$langs->trans("AddBankRecord").''; + } else { + $addbutton = ''.$langs->trans("AddBankRecord").''; + } + } + } + else + { + $addbutton = ''.$langs->trans("AddBankRecord").''; + } + $morehtml.=$addbutton; + $picto='title_bank'; if ($id > 0 || ! empty($ref)) $picto=''; if (GETPOST("bid")) diff --git a/htdocs/compta/bank/treso.php b/htdocs/compta/bank/treso.php index cc0d58945e0..136e352ff00 100644 --- a/htdocs/compta/bank/treso.php +++ b/htdocs/compta/bank/treso.php @@ -91,7 +91,7 @@ if ($_REQUEST["account"] || $_REQUEST["ref"]) // Onglets $head=bank_prepare_head($object); - dol_fiche_head($head, 'cash', $langs->trans("FinancialAccount"), -1, 'account'); + dol_fiche_head($head, 'cash', $langs->trans("FinancialAccount"), 0, 'account'); $linkback = ''.$langs->trans("BackToList").''; diff --git a/htdocs/theme/eldy/style.css.php b/htdocs/theme/eldy/style.css.php index e7327283f67..3a9618fdf0d 100644 --- a/htdocs/theme/eldy/style.css.php +++ b/htdocs/theme/eldy/style.css.php @@ -858,6 +858,7 @@ select.selectarrowonleft option { .minwidth400imp { min-width: 400px !important; } .minwidth500imp { min-width: 500px !important; } } +.width25 { width: 25px; } .width50 { width: 50px; } .width100 { width: 100px; } .width200 { width: 200px; } diff --git a/htdocs/theme/md/style.css.php b/htdocs/theme/md/style.css.php index 630de8235cd..ea58799f737 100644 --- a/htdocs/theme/md/style.css.php +++ b/htdocs/theme/md/style.css.php @@ -859,6 +859,7 @@ select.selectarrowonleft option { .minwidth400imp { min-width: 400px !important; } .minwidth500imp { min-width: 500px !important; } } +.width25 { width: 25px; } .width50 { width: 50px; } .width100 { width: 100px; } .width200 { width: 200px; }