From 932303986fcf0f13c48db965b44d5157863c8fd7 Mon Sep 17 00:00:00 2001 From: Catouse Date: Thu, 10 Apr 2014 20:08:55 +0800 Subject: [PATCH] * added type to method 'checkbox' in 'front.class.php'. --- lib/front/front.class.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/lib/front/front.class.php b/lib/front/front.class.php index 01ff9be60f..498384586e 100644 --- a/lib/front/front.class.php +++ b/lib/front/front.class.php @@ -235,20 +235,26 @@ class html * @param string $attrib other attribs. * @return string */ - static public function checkbox($name, $options, $checked = "", $attrib = "") + static public function checkbox($name, $options, $checked = "", $attrib = "", $type = 'inline') { $options = (array)($options); if(!is_array($options) or empty($options)) return false; $string = ''; $checked = ",$checked,"; + $isBlock = $type == 'block'; foreach($options as $key => $value) { $key = str_replace('item', '', $key); - $string .= "