';
print '| ';
print $email->getNomUrl(1);
@@ -280,7 +295,8 @@ if ($result)
print '';
print '';
print '';
- $db->free($result);
+
+ $db->free($resql);
}
else
{
diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php
index 7119bf2e01d..74a8ce7697f 100644
--- a/htdocs/comm/propal/list.php
+++ b/htdocs/comm/propal/list.php
@@ -494,10 +494,9 @@ if ($resql)
print '';
print '';
print '';
- print '';
print '';
- print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'commercial', 0, $newcardbutton, '', $limit);
+ print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'commercial', 0, $newcardbutton, '', $limit, 0, 0, 1);
$topicmail = "SendPropalRef";
$modelmail = "proposal_send";
diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index 43fed8a4e77..0fcce9ad14f 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -499,13 +499,11 @@ if ($resql)
print '';
print '';
print '';
- print '';
print '';
print '';
print '';
-
- print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'commercial', 0, $newcardbutton, '', $limit);
+ print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'commercial', 0, $newcardbutton, '', $limit, 0, 0, 1);
$topicmail = "SendOrderRef";
$modelmail = "order_send";
diff --git a/htdocs/compta/bank/bankentries_list.php b/htdocs/compta/bank/bankentries_list.php
index 481ca2b03fe..fb97a2e9129 100644
--- a/htdocs/compta/bank/bankentries_list.php
+++ b/htdocs/compta/bank/bankentries_list.php
@@ -1187,7 +1187,13 @@ if ($resql)
$reg = array();
preg_match('/\((.+)\)/i', $objp->label, $reg); // Si texte entoure de parenthee on tente recherche de traduction
if ($reg[1] && $langs->trans($reg[1]) != $reg[1]) print $langs->trans($reg[1]);
- else print dol_trunc($objp->label, 40);
+ else {
+ if ($objp->label == '(payment_salary)') {
+ print dol_trunc($langs->trans("SalaryPayment", 40));
+ } else {
+ print dol_trunc($objp->label, 40);
+ }
+ }
//print " ";
// Add links after description
@@ -1195,6 +1201,7 @@ if ($resql)
$cachebankaccount = array();
foreach ($links as $key=>$val)
{
+ print '';
if ($links[$key]['type'] == 'withdraw')
{
$banktransferstatic->id = $links[$key]['url_id'];
@@ -1540,7 +1547,7 @@ if ($resql)
if ($user->rights->banque->modifier)
{
print 'rowid.'&id='.$objp->bankid.'&page='.$page.'">';
- print img_delete();
+ print img_delete('', 'class="marginleftonly"');
print '';
}
}
diff --git a/htdocs/compta/cashcontrol/cashcontrol_list.php b/htdocs/compta/cashcontrol/cashcontrol_list.php
index d559fad2b30..313627016c8 100644
--- a/htdocs/compta/cashcontrol/cashcontrol_list.php
+++ b/htdocs/compta/cashcontrol/cashcontrol_list.php
@@ -333,14 +333,13 @@ print '';
print '';
print '';
-print '';
print '';
$permforcashfence = 1;
$newcardbutton = dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/compta/cashcontrol/cashcontrol_card.php?action=create&backtopage='.urlencode($_SERVER['PHP_SELF']), '', $permforcashfence);
-print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'cash-register', 0, $newcardbutton, '', $limit);
+print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'cash-register', 0, $newcardbutton, '', $limit, 0, 0, 1);
// Add code for pre mass action (confirmation or email presend form)
$topicmail = "SendCashControlRef";
diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index d1df1d6ea24..9dc99b482ff 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -688,11 +688,10 @@ if ($resql)
print '';
print '';
print '';
- print '';
print '';
print '';
- print_barre_liste($langs->trans('BillsCustomers').' '.($socid ? ' '.$soc->name : ''), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'invoicing', 0, $newcardbutton, '', $limit);
+ print_barre_liste($langs->trans('BillsCustomers').' '.($socid ? ' '.$soc->name : ''), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'invoicing', 0, $newcardbutton, '', $limit, 0, 0, 1);
$topicmail = "SendBillRef";
$modelmail = "facture_send";
diff --git a/htdocs/contrat/list.php b/htdocs/contrat/list.php
index 7563013edf0..380ab05f01a 100644
--- a/htdocs/contrat/list.php
+++ b/htdocs/contrat/list.php
@@ -382,10 +382,9 @@ print '';
print '';
print '';
-print '';
print '';
-print_barre_liste($langs->trans("ListOfContracts"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $totalnboflines, 'commercial', 0, $newcardbutton, '', $limit);
+print_barre_liste($langs->trans("ListOfContracts"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $totalnboflines, 'commercial', 0, $newcardbutton, '', $limit, 0, 0, 1);
$topicmail = "SendContractRef";
$modelmail = "contract";
diff --git a/htdocs/expensereport/list.php b/htdocs/expensereport/list.php
index 7e908cc7971..bf2e1ee696f 100644
--- a/htdocs/expensereport/list.php
+++ b/htdocs/expensereport/list.php
@@ -373,7 +373,6 @@ if ($resql)
print '';
print '';
print '';
- print '';
print '';
print '';
print '';
@@ -477,7 +476,7 @@ if ($resql)
$newcardbutton .= dolGetButtonTitle($langs->trans('NewTrip'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/expensereport/card.php?action=create');
}
- print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'trip', 0, $newcardbutton, '', $limit);
+ print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'trip', 0, $newcardbutton, '', $limit, 0, 0, 1);
}
$topicmail = "SendExpenseReport";
diff --git a/htdocs/fichinter/list.php b/htdocs/fichinter/list.php
index cd62ac50fcb..f67e12684fa 100644
--- a/htdocs/fichinter/list.php
+++ b/htdocs/fichinter/list.php
@@ -329,12 +329,11 @@ if ($resql)
print '';
print '';
print '';
- print '';
print '';
print '';
print '';
- print_barre_liste($title, $page, $_SERVER['PHP_SELF'], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'commercial', 0, $newcardbutton, '', $limit);
+ print_barre_liste($title, $page, $_SERVER['PHP_SELF'], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'commercial', 0, $newcardbutton, '', $limit, 0, 0, 1);
$topicmail = "Information";
$modelmail = "intervention";
diff --git a/htdocs/fourn/commande/list.php b/htdocs/fourn/commande/list.php
index d7836d47d86..7cfdd99ce78 100644
--- a/htdocs/fourn/commande/list.php
+++ b/htdocs/fourn/commande/list.php
@@ -671,12 +671,12 @@ if ($resql)
print '';
print '';
print '';
- print '';
print '';
print '';
print '';
print '';
- print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'commercial', 0, $newcardbutton, '', $limit);
+
+ print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'commercial', 0, $newcardbutton, '', $limit, 0, 0, 1);
$topicmail = "SendOrderRef";
$modelmail = "order_supplier_send";
diff --git a/htdocs/fourn/facture/list.php b/htdocs/fourn/facture/list.php
index e7055399f6f..6197f6ba363 100644
--- a/htdocs/fourn/facture/list.php
+++ b/htdocs/fourn/facture/list.php
@@ -523,11 +523,10 @@ if ($resql)
print '';
print '';
print '';
- print '';
print '';
print '';
- print_barre_liste($langs->trans("BillsSuppliers").($socid ? ' '.$soc->name : ''), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'invoicing', 0, $newcardbutton, '', $limit);
+ print_barre_liste($langs->trans("BillsSuppliers").($socid ? ' '.$soc->name : ''), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'invoicing', 0, $newcardbutton, '', $limit, 0, 0, 1);
$topicmail = "SendBillRef";
$modelmail = "invoice_supplier_send";
diff --git a/htdocs/holiday/list.php b/htdocs/holiday/list.php
index d21809ade7b..daa5a37b51b 100644
--- a/htdocs/holiday/list.php
+++ b/htdocs/holiday/list.php
@@ -391,7 +391,6 @@ if ($resql)
print '';
print '';
print '';
- print '';
print '';
print '';
print '';
@@ -441,7 +440,7 @@ if ($resql)
$newcardbutton .= dolGetButtonTitle($langs->trans('MenuAddCP'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/holiday/card.php?action=request');
}
- print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'title_hrm', 0, $newcardbutton, '', $limit);
+ print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'title_hrm', 0, $newcardbutton, '', $limit, 0, 0, 1);
}
$topicmail = "Information";
diff --git a/htdocs/langs/en_US/bills.lang b/htdocs/langs/en_US/bills.lang
index 55b2aa88ec1..1293a51c193 100644
--- a/htdocs/langs/en_US/bills.lang
+++ b/htdocs/langs/en_US/bills.lang
@@ -58,8 +58,8 @@ SuppliersInvoices=Vendors invoices
SupplierBill=Vendor invoice
SupplierBills=suppliers invoices
Payment=Payment
-PaymentBack=Payment back
-CustomerInvoicePaymentBack=Payment back
+PaymentBack=Refund
+CustomerInvoicePaymentBack=Refund
Payments=Payments
PaymentsBack=Refunds
paymentInInvoiceCurrency=in invoices currency
diff --git a/htdocs/loan/list.php b/htdocs/loan/list.php
index 1cde7792981..380d475398e 100644
--- a/htdocs/loan/list.php
+++ b/htdocs/loan/list.php
@@ -165,11 +165,9 @@ if ($resql)
print '';
print '';
print '';
- print '';
print '';
- print '';
- print_barre_liste($langs->trans("Loans"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_accountancy.png', 0, $newcardbutton, '', $limit);
+ print_barre_liste($langs->trans("Loans"), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $num, $nbtotalofrecords, 'title_accountancy.png', 0, $newcardbutton, '', $limit, 0, 0, 1);
$moreforfilter = '';
diff --git a/htdocs/mrp/mo_list.php b/htdocs/mrp/mo_list.php
index 4e5a2db68f0..3c1cb1a588e 100644
--- a/htdocs/mrp/mo_list.php
+++ b/htdocs/mrp/mo_list.php
@@ -356,12 +356,11 @@ print '';
print '';
print '';
-print '';
print '';
$newcardbutton = dolGetButtonTitle($langs->trans('New'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/mrp/mo_card.php?action=create&backtopage='.urlencode($_SERVER['PHP_SELF']), '', $permissiontoadd);
-print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'cubes', 0, $newcardbutton, '', $limit);
+print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'cubes', 0, $newcardbutton, '', $limit, 0, 0, 1);
// Add code for pre mass action (confirmation or email presend form)
$topicmail = "SendMoRef";
diff --git a/htdocs/opensurvey/list.php b/htdocs/opensurvey/list.php
index a1da38545fc..990f9a30e73 100644
--- a/htdocs/opensurvey/list.php
+++ b/htdocs/opensurvey/list.php
@@ -250,12 +250,11 @@ print '';
print '';
print '';
-print '';
print '';
$newcardbutton = dolGetButtonTitle($langs->trans('NewSurvey'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/opensurvey/wizard/index.php', '', $user->rights->opensurvey->write);
-print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'generic', 0, $newcardbutton, '', $limit);
+print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'generic', 0, $newcardbutton, '', $limit, 0, 0, 1);
// Add code for pre mass action (confirmation or email presend form)
$topicmail = "SendOpenSurveyRef";
diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php
index e04875294bf..8ed94cc1180 100644
--- a/htdocs/projet/list.php
+++ b/htdocs/projet/list.php
@@ -453,7 +453,6 @@ print '';
print '';
print '';
-print '';
print '';
print '';
@@ -466,7 +465,7 @@ else
else $texthelp .= $langs->trans("ProjectsPublicDesc");
}
-print_barre_liste($form->textwithpicto($title, $texthelp), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'project', 0, $newcardbutton, '', $limit);
+print_barre_liste($form->textwithpicto($title, $texthelp), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'project', 0, $newcardbutton, '', $limit, 0, 0, 1);
$topicmail = "Information";
diff --git a/htdocs/projet/tasks/list.php b/htdocs/projet/tasks/list.php
index 014befe51c0..67131c29ef4 100644
--- a/htdocs/projet/tasks/list.php
+++ b/htdocs/projet/tasks/list.php
@@ -429,7 +429,6 @@ print '';
print '';
print '';
print '';
-print '';
print '';
print '';
@@ -442,7 +441,7 @@ else
else $texthelp .= $langs->trans("TasksOnProjectsPublicDesc");
}
-print_barre_liste($form->textwithpicto($title, $texthelp), $page, $_SERVER["PHP_SELF"], "", $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'project', 0, $newcardbutton, '', $limit);
+print_barre_liste($form->textwithpicto($title, $texthelp), $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'project', 0, $newcardbutton, '', $limit, 0, 0, 1);
$topicmail = "Information";
$modelmail = "task";
diff --git a/htdocs/resource/list.php b/htdocs/resource/list.php
index 07c43251d3d..e987ef474f6 100644
--- a/htdocs/resource/list.php
+++ b/htdocs/resource/list.php
@@ -55,8 +55,16 @@ if (!is_array($search_array_options)) $search_array_options = array();
$search_ref = GETPOST("search_ref", 'alpha');
$search_type = GETPOST("search_type", 'alpha');
+// Load variable for pagination
+$limit = GETPOST('limit', 'int') ?GETPOST('limit', 'int') : $conf->liste_limit;
+
+
$filter = array();
+$param = '';
+if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param .= '&contextpage='.urlencode($contextpage);
+if ($limit > 0 && $limit != $conf->liste_limit) $param .= '&limit='.urlencode($limit);
+
if ($search_ref != '') {
$param .= '&search_ref='.urlencode($search_ref);
$filter['t.ref'] = $search_ref;
@@ -170,7 +178,6 @@ print '';
print '';
print '';
-print '';
print '';
if (empty($conf->global->MAIN_DISABLE_FULL_SCANLIST))
@@ -196,7 +203,7 @@ if ($ret == -1) {
$newcardbutton .= dolGetButtonTitle($langs->trans('MenuResourceAdd'), '', 'fa fa-plus-circle', DOL_URL_ROOT.'/resource/card.php?action=create');
}
- print_barre_liste($pagetitle, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $ret + 1, $nbtotalofrecords, 'generic', 0, $newcardbutton, '', $limit);
+ print_barre_liste($pagetitle, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, '', $ret + 1, $nbtotalofrecords, 'generic', 0, $newcardbutton, '', $limit, 0, 0, 1);
}
$moreforfilter = '';
@@ -261,12 +268,12 @@ if ($ret)
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_print_fields.tpl.php';
print ' | ';
- print '';
+ print '';
print img_edit();
print '';
print ' ';
print '';
- print img_delete();
+ print img_delete('', 'class="marginleftonly"');
print '';
print ' | ';
if (!$i) $totalarray['nbfield']++;
diff --git a/htdocs/supplier_proposal/list.php b/htdocs/supplier_proposal/list.php
index 5d408be75ef..eaae3be5e84 100644
--- a/htdocs/supplier_proposal/list.php
+++ b/htdocs/supplier_proposal/list.php
@@ -429,9 +429,8 @@ if ($resql)
print '';
print '';
print '';
- print '';
- print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'commercial', 0, $newcardbutton, '', $limit);
+ print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, 'commercial', 0, $newcardbutton, '', $limit, 0, 0, 1);
$topicmail = "SendSupplierProposalRef";
$modelmail = "supplier_proposal_send";
diff --git a/htdocs/ticket/list.php b/htdocs/ticket/list.php
index a63e0be34b4..078b8fc6d53 100644
--- a/htdocs/ticket/list.php
+++ b/htdocs/ticket/list.php
@@ -463,7 +463,6 @@ print '';
print '';
print '';
-print '';
print '';
print '';
if ($socid) print '';
@@ -475,7 +474,7 @@ $newcardbutton .= dolGetButtonTitle($langs->trans('NewTicket'), '', 'fa fa-plus-
$picto = 'ticket';
if ($socid > 0) $picto = '';
-print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, $picto, 0, $newcardbutton, '', $limit);
+print_barre_liste($title, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, $massactionbutton, $num, $nbtotalofrecords, $picto, 0, $newcardbutton, '', $limit, 0, 0, 1);
if ($mode == 'mine') {
print ''.$langs->trans('TicketAssignedToMeInfos').'
';
diff --git a/htdocs/user/group/list.php b/htdocs/user/group/list.php
index 3dd55994188..4d2875f07ef 100644
--- a/htdocs/user/group/list.php
+++ b/htdocs/user/group/list.php
@@ -152,11 +152,10 @@ if ($resql)
print '';
print '';
print '';
- print '';
print '';
print '';
- print_barre_liste($text, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, "", $num, $nbtotalofrecords, 'generic', 0, $newcardbutton, '', $limit);
+ print_barre_liste($text, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, "", $num, $nbtotalofrecords, 'generic', 0, $newcardbutton, '', $limit, 0, 0, 1);
if ($sall)
{
diff --git a/htdocs/user/list.php b/htdocs/user/list.php
index e81d50f077f..090be8f855c 100644
--- a/htdocs/user/list.php
+++ b/htdocs/user/list.php
@@ -315,15 +315,12 @@ print '';
print '';
print '';
print '';
-print '';
print '';
print '';
-
$morehtmlright .= dolGetButtonTitle($langs->trans("HierarchicView"), '', 'fa fa-sitemap paddingleft', DOL_URL_ROOT.'/user/hierarchy.php'.(($search_statut != '' && $search_statut >= 0) ? '?search_statut='.$search_statut : ''));
-
-print_barre_liste($text, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, "", $num, $nbtotalofrecords, 'user', 0, $morehtmlright.' '.$newcardbutton, '', $limit);
+print_barre_liste($text, $page, $_SERVER["PHP_SELF"], $param, $sortfield, $sortorder, "", $num, $nbtotalofrecords, 'user', 0, $morehtmlright.' '.$newcardbutton, '', $limit, 0, 0, 1);
if (!empty($catid))
{