12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- <form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
- <div class="layui-card-body">
- <div class="layui-row margin-bottom-15">
- <label class="layui-col-xs2 think-form-label">图片</label>
- <label class="layui-col-xs8 think-form-group-left">
- <input name="img" required value='{$vo.img|default=""}' placeholder="请上传图片" class="layui-input">
- </label>
- <a class="layui-col-xs2 layui-btn think-form-group-right" data-file="btn" data-field="img" data-type="png,jpg,gif">
- <i class="layui-icon layui-icon-upload"></i> 上传图片
- </a>
- </div>
- <div class="layui-row margin-bottom-15">
- <label class="layui-col-xs2 think-form-label">标题</label>
- <label class="layui-col-xs10">
- <input name="title" required value='{$vo.title|default=""}' placeholder="请输入标题" class="layui-input">
- </label>
- </div>
- <div class="layui-row margin-bottom-15">
- <label class="layui-col-xs2 think-form-label">跳转地址</label>
- <label class="layui-col-xs10">
- <input name="jump_address" required value='{$vo.jump_address|default=""}' placeholder="请输入跳转地址" class="layui-input">
- </label>
- </div>
- <div class="layui-form-item">
- <label class="layui-col-xs2 think-form-label">状态</label>
- <div class="layui-input-block">
- <label class="think-radio">
- {if !isset($vo.id)}
- <input checked type="radio" name="is_show" value="1" lay-ignore> 显示
- <input type="radio" name="is_show" value="0" lay-ignore> 隐藏
- {else}
- {if isset($vo.is_show) && $vo.is_show eq 1}
- <input checked type="radio" name="is_show" value="1" lay-ignore> 显示
- <input type="radio" name="is_show" value="0" lay-ignore> 隐藏
- {else}
- <input type="radio" name="is_show" value="1" lay-ignore> 显示
- <input checked type="radio" name="is_show" value="0" lay-ignore> 隐藏
- {/if}
- {/if}
- </label>
- </div>
- </div>
- </div>
- <div class="hr-line-dashed"></div>
- <div class="layui-form-item text-center">
- {if isset($vo.id)}<input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='update_at'>{else}<input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='create_at'>{/if}
- {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
- <button class="layui-btn" type='submit'>保存数据</button>
- <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
- </div>
- </form>
- <script>form.render()</script>
|