新增checkbox字段

This commit is contained in:
微笑涩涩的
2016-09-14 00:22:29 +08:00
parent 1b8b551213
commit 4c6db900ac

View File

@@ -31,7 +31,7 @@ class Form {
'size' => isset($field['size']) ? $field['size'] : 12, 'size' => isset($field['size']) ? $field['size'] : 12,
'option' => isset($field['option']) ? $field['option'] : '', 'option' => isset($field['option']) ? $field['option'] : '',
); );
$no_tem = array('readonly', 'text', 'password', 'textarea', 'select', 'bind', 'checkbox', 'radio', 'num', 'bool', 'decimal'); $no_tem = array('readonly', 'text', 'password','checkbox', 'textarea', 'select', 'bind', 'checkbox', 'radio', 'num', 'bool', 'decimal');
$type = !in_array($type, $no_tem) ? $type : 'show'; $type = !in_array($type, $no_tem) ? $type : 'show';
$view = new \think\View(); $view = new \think\View();
$view->assign($data); $view->assign($data);