aa3c7ec12657e269eb95faafd147fbcc.php 4.2 KB

123
  1. <?php /*a:1:{s:78:"D:\project\gyx\gaoyixia\application\operate\view\activity_apply_item\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="name" maxlength="60" value='<?php echo htmlentities((isset($vo['name']) && ($vo['name'] !== '')?$vo['name']:"")); ?>' 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="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">EMAIL</label><div class="layui-input-block"><input name="email" value='<?php echo htmlentities((isset($vo['email']) && ($vo['email'] !== '')?$vo['email']:"")); ?>' placeholder="请输入邮箱" class="layui-input"></div></div><div class="layui-form-item"><label class="layui-form-label label-required">审核</label><div class="layui-input-block"><select name="sh_status" ><option value="0" <?php if($vo['sh_status'] == 0): ?>selected<?php endif; ?>>待审核</option><option value="1" <?php if($vo['sh_status'] == 1): ?>selected<?php endif; ?>>审核通过</option><option value="2" <?php if($vo['sh_status'] == 2): ?>selected<?php endif; ?>>审核失败</option></select></div></div><div class="layui-form-item"><label class="layui-form-label label-required">核销状态</label><div class="layui-input-block"><select name="is_hx" ><option value="0" <?php if($vo['is_hx'] == 0): ?>selected<?php endif; ?>>未核销</option><option value="1" <?php if($vo['is_hx'] == 1): ?>selected<?php endif; ?>>已核销</option></select></div></div><div class="layui-form-item"><label class="layui-form-label label-required">票价</label><div class="layui-input-block"><input name="money" value='<?php echo htmlentities((isset($vo['money']) && ($vo['money'] !== '')?$vo['money']:"")); ?>' 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="qr_content" value='<?php echo htmlentities((isset($vo['qr_content']) && ($vo['qr_content'] !== '')?$vo['qr_content']:"")); ?>' readonly placeholder="" class="layui-input"></div></div><?php foreach($vo['extend'] as $v): if($v['type'] == 1): ?><div class="layui-form-item"><label class="layui-form-label"><?php echo htmlentities($v['title']); ?></label><div class="layui-input-block"><input value='<?php echo htmlentities((isset($v['value']) && ($v['value'] !== '')?$v['value']:"")); ?>' readonly class="layui-input"></div></div><?php endif; if($v['type'] == 2): ?><div class="layui-form-item"><label class="layui-form-label "><?php echo htmlentities($v['title']); ?></label><div class="layui-input-block"><textarea rows="10" cols="100"><?php echo htmlentities((isset($v['value']) && ($v['value'] !== '')?$v['value']:"")); ?></textarea></div></div><?php endif; if($v['type'] == 3): ?><div class="layui-form-item"><label class="layui-form-label "><?php echo htmlentities($v['title']); ?></label><div class="layui-input-block"><div style="display: none;"><input type="checkbox" name="" ></div><?php foreach($v['extend'] as $key=>$ev): ?><input type="checkbox" title="<?php echo htmlentities($ev['item_title']); ?>" <?php if($ev['value']): ?> checked<?php endif; ?>><?php endforeach; ?></div></div><?php endif; ?><?php endforeach; 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>