方法:
~~~
tpl_form_single($name, $title, $value = [], $help_text = '')
~~~
参数描述:
| 参数 | 名称 | 变量类型 |
| --- | --- | --- |
| name | 表单name值 | string |
| title | 表单描述 | string |
| value | 默认值 | array |
| default | 默认值 | string |
| help\_text | 帮助文本 | string |
代码示例:
~~~
<?php echo tpl_form_single('sex','单选框',[
['disabled' => '0','check' => 1,'title' => '男'],
['disabled' => '0','check' => 0,'title' => '女'],
['disabled' => '1','check' => 0,'title' => '人妖'],
]); ?>
~~~
效果图:
