方法:
~~~
tpl_form_check($name, $title, $value = [], $help_text = '',extra_style='')
~~~
参数描述:
| 参数 | 名称 | 变量类型 |
| --- | --- | --- |
| name | 表单name值 | string |
| title | 表单描述 | string |
| value | 默认值 | array |
| default | 默认值 | string |
| help\_text | 帮助文本 | string |
|extra_style| 复选框风格 | string |
代码示例:
~~~
<?php echo tpl_form_check('like','复选框',[
['name' => 'write','check' => 1,'title' => '温州'],
['name' => 'read','check' => 0,'title' => '福州'],
['name' => 'dai','check' => 1,'title' => '杭州']
]); ?>
~~~
效果图:
