From 6a60678186d75fc0974fe6336fd616042ca84914 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 9 Apr 2020 16:36:39 +0200 Subject: [PATCH] Look and feel v12 --- htdocs/categories/class/categorie.class.php | 7 +++--- htdocs/categories/index.php | 2 +- htdocs/categories/viewcat.php | 6 ++--- htdocs/compta/bank/bankentries_list.php | 2 +- htdocs/compta/bank/budget.php | 2 +- htdocs/compta/bank/card.php | 4 ++-- htdocs/compta/bank/categ.php | 2 +- htdocs/compta/bank/line.php | 2 +- htdocs/compta/bank/list.php | 3 +-- htdocs/compta/bank/releve.php | 2 +- htdocs/compta/bank/transfer.php | 3 ++- .../cashcontrol/class/cashcontrol.class.php | 5 ++-- htdocs/compta/paiement/cheque/card.php | 3 ++- htdocs/compta/paiement/cheque/index.php | 2 +- htdocs/compta/paiement/cheque/list.php | 2 +- htdocs/core/boxes/box_task.php | 2 +- htdocs/core/class/html.form.class.php | 4 ++-- htdocs/core/lib/functions.lib.php | 24 ++++++++++++------- htdocs/expensereport/card.php | 4 ++-- htdocs/expensereport/index.php | 2 +- htdocs/expensereport/list.php | 2 +- htdocs/expensereport/stats/index.php | 2 +- htdocs/holiday/list.php | 2 +- htdocs/langs/en_US/cashdesk.lang | 1 + htdocs/theme/eldy/global.inc.php | 11 +++++---- htdocs/user/list.php | 2 +- 26 files changed, 57 insertions(+), 46 deletions(-) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 2137fa76e04..a2dd6c679f3 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -1362,9 +1362,10 @@ class Categorie extends CommonObject * @param string $sep Separator * @param string $url Url * @param int $nocolor 0 + * @param string $addpicto Add picto into link * @return array */ - public function print_all_ways($sep = " >> ", $url = '', $nocolor = 0) + public function print_all_ways($sep = ' >> ', $url = '', $nocolor = 0, $addpicto = 0) { // phpcs:enable $ways = array(); @@ -1397,11 +1398,11 @@ class Categorie extends CommonObject { $link = ''; $linkend = ''; - $w[] = $link.$cat->label.$linkend; + $w[] = $link.($addpicto ? img_object('', 'category', 'class="paddingright"') : '').$cat->label.$linkend; } else { - $w[] = "".$cat->label.""; + $w[] = "".($addpicto ? img_object('', 'category') : '').$cat->label.""; } } $newcategwithpath = preg_replace('/toreplace/', $forced_color, implode($sep, $w)); diff --git a/htdocs/categories/index.php b/htdocs/categories/index.php index 4dfe52dafb6..cff970be7f1 100644 --- a/htdocs/categories/index.php +++ b/htdocs/categories/index.php @@ -86,7 +86,7 @@ print ''; print ''; print ''; print ''; -print ''; /* // faire une rech dans une sous categorie uniquement diff --git a/htdocs/categories/viewcat.php b/htdocs/categories/viewcat.php index dd45d7e59fe..f781268311a 100644 --- a/htdocs/categories/viewcat.php +++ b/htdocs/categories/viewcat.php @@ -313,7 +313,7 @@ if (! empty($user->rights->categorie->creer)) print '
'; -print load_fiche_titre($langs->trans("SubCats"), $newcardbutton); +print load_fiche_titre($langs->trans("SubCats"), $newcardbutton, 'object_category'); print '
'.$langs->trans("Search").'
'; +print '
'; print $langs->trans("Name").':
'; @@ -784,7 +784,7 @@ if ($type == Categorie::TYPE_CONTACT) } } -// List of accounts +// List of bank accounts if ($type == Categorie::TYPE_ACCOUNT) { require_once DOL_DOCUMENT_ROOT.'/compta/bank/class/account.class.php'; @@ -807,7 +807,7 @@ if ($type == Categorie::TYPE_ACCOUNT) print '
'; $param = '&limit='.$limit.'&id='.$id.'&type='.$type; $num = count($accounts); $nbtotalofrecords = ''; $newcardbutton = ''; - print_barre_liste($langs->trans("Account"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'bank', 0, $newcardbutton, '', $limit); + print_barre_liste($langs->trans("Account"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'bank_account', 0, $newcardbutton, '', $limit); print "
\n"; print ''."\n"; diff --git a/htdocs/compta/bank/bankentries_list.php b/htdocs/compta/bank/bankentries_list.php index 0bf5bbc6ade..fddbcb24c52 100644 --- a/htdocs/compta/bank/bankentries_list.php +++ b/htdocs/compta/bank/bankentries_list.php @@ -817,7 +817,7 @@ if ($resql) $morehtml .= $newcardbutton; - $picto = 'title_bank'; + $picto = 'bank_account'; if ($id > 0 || !empty($ref)) $picto = ''; print_barre_liste($langs->trans("BankTransactions"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, $picto, 0, $morehtml, '', $limit); diff --git a/htdocs/compta/bank/budget.php b/htdocs/compta/bank/budget.php index 967227f9e89..a4c57a60fdd 100644 --- a/htdocs/compta/bank/budget.php +++ b/htdocs/compta/bank/budget.php @@ -44,7 +44,7 @@ $companystatic=new Societe($db); llxHeader(); // List movements bu category for bank transactions -print load_fiche_titre($langs->trans("BankTransactionByCategories"), '', 'title_bank.png'); +print load_fiche_titre($langs->trans("BankTransactionByCategories"), '', 'bank_account'); print '
'.$langs->trans("Ref").'
'; print ""; diff --git a/htdocs/compta/bank/card.php b/htdocs/compta/bank/card.php index b80f050ba08..593893878e0 100644 --- a/htdocs/compta/bank/card.php +++ b/htdocs/compta/bank/card.php @@ -321,7 +321,7 @@ if ($action == 'create') { $object = new Account($db); - print load_fiche_titre($langs->trans("NewFinancialAccount"), '', 'title_bank.png'); + print load_fiche_titre($langs->trans("NewFinancialAccount"), '', 'bank_account'); if ($conf->use_javascript_ajax) { @@ -804,7 +804,7 @@ else $object = new Account($db); $object->fetch(GETPOST('id', 'int')); - print load_fiche_titre($langs->trans("EditFinancialAccount"), '', 'title_bank.png'); + print load_fiche_titre($langs->trans("EditFinancialAccount"), '', 'bank_account'); if ($conf->use_javascript_ajax) { diff --git a/htdocs/compta/bank/categ.php b/htdocs/compta/bank/categ.php index e220df40e42..29701f57c59 100644 --- a/htdocs/compta/bank/categ.php +++ b/htdocs/compta/bank/categ.php @@ -79,7 +79,7 @@ if ($categid) { llxHeader(); -print load_fiche_titre($langs->trans("RubriquesTransactions")); +print load_fiche_titre($langs->trans("RubriquesTransactions"), '', 'object_category'); print ''; if ($optioncss != '') print ''; diff --git a/htdocs/compta/bank/line.php b/htdocs/compta/bank/line.php index c5c4464bf41..d98a37594b0 100644 --- a/htdocs/compta/bank/line.php +++ b/htdocs/compta/bank/line.php @@ -628,7 +628,7 @@ if ($result) // Releve rappro if ($acct->canBeConciliated() > 0) // Si compte rapprochable { - print load_fiche_titre($langs->trans("Reconciliation"), '', 'title_bank.png'); + print load_fiche_titre($langs->trans("Reconciliation"), '', 'bank_account'); print '
'."\n"; print ''; diff --git a/htdocs/compta/bank/list.php b/htdocs/compta/bank/list.php index 6adc1e4ccd2..2d724ec2690 100644 --- a/htdocs/compta/bank/list.php +++ b/htdocs/compta/bank/list.php @@ -141,7 +141,6 @@ if (GETPOST('button_removefilter_x', 'alpha') || GETPOST('button_removefilter.x' } - /* * View */ @@ -267,7 +266,7 @@ print ''; print ''; print ''; -print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'bank', 0, $newcardbutton, '', $limit, 1); +print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'bank_account', 0, $newcardbutton, '', $limit, 1); $topicmail = "Information"; //$modelmail="subscription"; diff --git a/htdocs/compta/bank/releve.php b/htdocs/compta/bank/releve.php index 0350895ca0d..82cdd4e826a 100644 --- a/htdocs/compta/bank/releve.php +++ b/htdocs/compta/bank/releve.php @@ -383,7 +383,7 @@ else $title = $langs->trans("AccountStatement").' '.$numref.' - '.$langs->trans("BankAccount").' '.$object->getNomUrl(1, 'receipts'); print load_fiche_titre($title, $mesprevnext, ''); - //print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, 0, $nbtotalofrecords, 'title_bank.png', 0, '', '', 0, 1); + //print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, 0, $nbtotalofrecords, 'bank_account', 0, '', '', 0, 1); print ""; print ''; diff --git a/htdocs/compta/bank/transfer.php b/htdocs/compta/bank/transfer.php index 2a32e173d3b..611d2fc42b0 100644 --- a/htdocs/compta/bank/transfer.php +++ b/htdocs/compta/bank/transfer.php @@ -152,6 +152,7 @@ if ($action == 'add') */ llxHeader(); + print '