方法:
~~~
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' => '杭州']
]); ?>
~~~
效果圖:
