浏览代码

Look and feel v16

Laurent Destailleur 3 年之前
父节点
当前提交
15e5488694
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      htdocs/contrat/list.php

+ 12 - 0
htdocs/contrat/list.php

@@ -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);