6639f4f327013a80231238afa13259f0.php 1.7 KB

123
  1. <?php /*a:1:{s:71:"D:\project\gyx\gaoyixia\application\nutrition\view\datum_cate\form.html";i:1699858976;}*/ ?>
  2. <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="title" maxlength="60" value='<?php echo htmlentities((isset($vo['title']) && ($vo['title'] !== '')?$vo['title']:"")); ?>' 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 type="number" name="sort" value='<?php echo htmlentities((isset($vo['sort']) && ($vo['sort'] !== '')?$vo['sort']:"")); ?>' placeholder="请输入排序号" class="layui-input"></div></div><div class="layui-form-item"><label class="layui-form-label label-required">是否VIP</label><div class="layui-input-block"><select class="layui-select" name="is_vip"><option value="0">否</option><option <?php if(!empty($vo['is_vip']) && $vo['is_vip'] == 1): ?>selected<?php endif; ?> value="1">是</option></select></div></div><?php if(!(empty($vo['id']) || (($vo['id'] instanceof \think\Collection || $vo['id'] instanceof \think\Paginator ) && $vo['id']->isEmpty()))): ?><input type='hidden' value='<?php echo htmlentities($vo['id']); ?>' name='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();
  3. </script></div>