|
@@ -995,6 +995,18 @@ while ($i < min($num, $limit)) {
|
|
|
print "</tr>\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 '<tr><td colspan="'.$colspan.'"><span class="opacitymedium">'.$langs->trans("NoRecordFound").'</span></td></tr>';
|
|
|
+}
|
|
|
+
|
|
|
$db->free($resql);
|
|
|
|
|
|
$parameters = array('arrayfields'=>$arrayfields, 'sql'=>$sql);
|