From 659e3aca8e2f0924fae187befaf5d78a0905808e Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Tue, 26 Nov 2019 21:14:44 +0100 Subject: [PATCH] Look & field v11 --- htdocs/compta/sociales/list.php | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/htdocs/compta/sociales/list.php b/htdocs/compta/sociales/list.php index 1ac766a4e34..b7ee278f02c 100644 --- a/htdocs/compta/sociales/list.php +++ b/htdocs/compta/sociales/list.php @@ -171,9 +171,7 @@ if ($resql) $newcardbutton = ''; if ($user->rights->tax->charges->creer) { - $newcardbutton = ''.$langs->trans('MenuNewSocialContribution').''; - $newcardbutton .= ''; - $newcardbutton .= ''; + $newcardbutton .= dolGetButtonTitle($langs->trans('MenuNewSocialContribution'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/compta/sociales/card.php?action=create'); } print '
'; @@ -267,15 +265,16 @@ if ($resql) print ''; // Ref - print ''; - print $chargesociale_static->getNomUrl(1, '20'); - print ''; + print "".$chargesociale_static->getNomUrl(1, '20')."\n"; + if (! $i) $totalarray['nbfield']++; // Label - print ''.dol_trunc($obj->label, 42).''; + print "".dol_trunc($obj->label, 42)."\n"; + if (! $i) $totalarray['nbfield']++; // Type - print ''.$obj->type_label.''; + print "".$obj->type_label."\n"; + if (! $i) $totalarray['nbfield']++; // Date end period print ''; @@ -287,21 +286,26 @@ if ($resql) { print ' '; } - print ''; + print "\n"; + if (! $i) $totalarray['nbfield']++; // Amount - print ''.price($obj->amount).''; + print ''.price($obj->amount).''; if (! $i) $totalarray['nbfield']++; if (! $i) $totalarray['pos'][$totalarray['nbfield']]='totalttcfield'; $totalarray['val']['totalttcfield'] += $obj->amount; // Due date print ''.dol_print_date($db->jdate($obj->date_ech), 'day').''; + if (! $i) $totalarray['nbfield']++; print ''.$chargesociale_static->LibStatut($obj->paye, 5, $obj->alreadypayed).''; + if (! $i) $totalarray['nbfield']++; print ''; + if (! $i) $totalarray['nbfield']++; + print ''; $i++; }