```
{include file="mifenlei/admin/view/header.html"}
<div class="layui-fluid">
<div class="layui-card">
<div class="layui-card-body" style="padding: 15px;">
<!--表单提交-->
<form class="layui-form" url="{:url("admin/api/muban",array("id"=>input("id")))}" t_url="javascript:;">
<div class="layui-form-item">
<label class="layui-form-label">示例开关</label>
<div class="layui-input-block">
<input type="radio" name="show" value="0" title="关闭" {if mi('show')==0}checked{/if}>
<input type="radio" name="show" value="1" title="打开" {if mi('show')=='1'}checked{/if}>
</div>
</div>
<div class="layui-form-item layui-layout-admin">
<div class="layui-input-block">
<div class="layui-footer" style="left: 0;">
<button class="layui-btn" lay-submit="" lay-filter="cms">立即提交</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
{include file="mifenlei/admin/view/footer.html"}
```
然后在模板任意调用 自己创建的
```
{:mi('show')}
```
如果示例开关点击打开输出1 关闭输出0
可以根据自己的需求创建表单输入框文本域 等各种表单