123456789101112 |
- <?php /*a:1:{s:66:"D:\project\gyx\gaoyixia\application\nutrition\view\learn\form.html";i:1699858976;}*/ ?>
- <div class="think-box-shadow"><form class="layui-form layui-card" action="<?php echo request()->url(); ?>" data-auto="true" method="post" autocomplete="off"><div class="layui-card-body"><div class="layui-form-item"><label class="layui-form-label label-required">会员账号</label><div class="layui-input-block"><input name="phone" value='<?php echo htmlentities((isset($vo['phone']) && ($vo['phone'] !== '')?$vo['phone']:"")); ?>' placeholder="请输入会员账号" class="layui-input"></div></div><div class="layui-form-item"><label class="layui-form-label label-required">到期时间</label><div class="layui-input-block"><input name="end_time" id="end_time" required class="layui-input" placeholder="请输入到期时间" value="<?php echo htmlentities((isset($vo['end_time']) && ($vo['end_time'] !== '')?$vo['end_time']:'')); ?>"></div></div><input type="hidden" name="first_id" value="<?php echo htmlentities((isset($first_id) && ($first_id !== '')?$first_id:'0')); ?>" /><input type="hidden" name="second_id" value="<?php echo htmlentities((isset($second_id) && ($second_id !== '')?$second_id:'0')); ?>" /><input type="hidden" name="type" value="<?php echo htmlentities((isset($type) && ($type !== '')?$type:'0')); ?>" /><?php if(!(empty($vo['id']) || (($vo['id'] instanceof \think\Collection || $vo['id'] instanceof \think\Paginator ) && $vo['id']->isEmpty()))): ?><input type="hidden" name="id" value="<?php echo htmlentities($vo['id']); ?>"><?php endif; ?><div class="layui-form-item text-center"><button class="layui-btn" type='submit'>保 存</button><button class="layui-btn layui-btn-danger" type='button' data-close>取消编辑</button></div></div></form><script> window.form.render();
- layui.use('form', function () {
- var form = layui.form;
- //日期时间范围
- laydate.render({
- elem: '#end_time'
- ,type: 'datetime'
- });
- })
- </script></div>
|