From 15e548869419b0557b9de80d3c463d9da224e1e7 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 25 Jun 2022 04:18:38 +0200 Subject: [PATCH] Look and feel v16 --- htdocs/contrat/list.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/htdocs/contrat/list.php b/htdocs/contrat/list.php index e76261010da..4f5d8d00b49 100644 --- a/htdocs/contrat/list.php +++ b/htdocs/contrat/list.php @@ -995,6 +995,18 @@ while ($i < min($num, $limit)) { print "\n"; $i++; } + +// If no record found +if ($num == 0) { + $colspan = 4; // Include the 4 columns of status + foreach ($arrayfields as $key => $val) { + if (!empty($val['checked'])) { + $colspan++; + } + } + print ''.$langs->trans("NoRecordFound").''; +} + $db->free($resql); $parameters = array('arrayfields'=>$arrayfields, 'sql'=>$sql);