* finish task #2329.

This commit is contained in:
wangyidong
2015-10-16 10:53:10 +08:00
parent c571a8a440
commit e097fdcb8e
8 changed files with 42 additions and 26 deletions
+2 -2
View File
@@ -267,7 +267,7 @@ class html
* @param boolean $checked if the type is checkbox, set the checked attribute.
* @return string
*/
static public function selectAll($scope = "", $type = "button", $checked = false)
static public function selectAll($scope = "", $type = "button", $checked = false, $class = '')
{
$string = <<<EOT
<script>
@@ -324,7 +324,7 @@ EOT;
}
elseif($type == 'button')
{
$string .= "<input type='button' name='allchecker' id='allchecker' class='btn btn-select-all' value='{$lang->selectAll}' onclick='selectAll(this, \"$scope\", \"$type\")' />";
$string .= "<input type='button' name='allchecker' id='allchecker' class='btn btn-select-all $class' value='{$lang->selectAll}' onclick='selectAll(this, \"$scope\", \"$type\")' />";
}
return $string;