From 3ea6314494edf79bb754bb806532b85d882a1e07 Mon Sep 17 00:00:00 2001 From: Alexandre SPANGARO Date: Thu, 9 Sep 2021 22:24:24 +0200 Subject: [PATCH] Remove $year --- htdocs/compta/sociales/list.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/htdocs/compta/sociales/list.php b/htdocs/compta/sociales/list.php index 9570b3eec53..699287df20a 100644 --- a/htdocs/compta/sociales/list.php +++ b/htdocs/compta/sociales/list.php @@ -92,7 +92,6 @@ if (!$sortorder) { $sortorder = "DESC"; } -$year = GETPOST("year", 'int'); $filtre = GETPOST("filtre", 'int'); if (!GETPOSTISSET('search_typeid')) { @@ -160,7 +159,6 @@ if (empty($reshook)) { $search_amount = ''; $search_status = ''; $search_typeid = ''; - $year = ''; $search_date_startday = ''; $search_date_startmonth = ''; $search_date_startyear = ''; @@ -377,11 +375,6 @@ print ''; print ''; $center = ''; -if ($year) { - $center = ''.img_previous().''; - $center .= ' '.$langs->trans("Year").' '.$year; - $center .= ' '.img_next().''; -} print_barre_liste($langs->trans("SocialContributions"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $center, $num, $totalnboflines, 'bill', 0, $newcardbutton, '', $limit, 0, 0, 1); @@ -618,13 +611,7 @@ while ($i < min($num, $limit)) { // Date end period if (!empty($arrayfields['cs.periode']['checked'])) { - print ''; - if ($obj->periode) { - print ''; - print dol_print_date($db->jdate($obj->periode), 'day'); - print ''; - } - print ''; + print ''.dol_print_date($db->jdate($obj->periode), 'day').''; if (!$i) { $totalarray['nbfield']++; }