* Add a param to datatable printHeader method.

This commit is contained in:
Yagami
2018-09-13 14:36:25 +08:00
parent 8c2294909c
commit 76cf85df7a
+2 -2
View File
@@ -120,7 +120,7 @@ class datatableModel extends model
* @access public
* @return void
*/
public function printHead($col, $orderBy, $vars)
public function printHead($col, $orderBy, $vars, $checkBox = true)
{
$id = $col->id;
if($col->show)
@@ -143,7 +143,7 @@ class datatableModel extends model
}
else
{
if($id == 'id') echo "<div class='checkbox-primary check-all' title='{$this->lang->selectAll}'><label></label></div>";
if($id == 'id' && $checkBox) echo "<div class='checkbox-primary check-all' title='{$this->lang->selectAll}'><label></label></div>";
common::printOrderLink($id, $orderBy, $vars, $col->title);
}
echo '</th>';