123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/3/6
- * Time: 下午5:49
- */
- use backend\assets\AppAsset;
- AppAsset::addScript($this,Yii::$app->request->baseUrl.'/js/zt/zt.js')
- ?>
- <style>
- .layui_w_t {margin:25px auto 0;width:70%;}
- </style>
- <form class="layui-form layui-form-pane" id="signupForm">
- <div class="layui_w_t">
- <div class="layui-form-item">
- <div class="layui-inline">
- <label class="layui-form-label"><span style="color:red">*</span>专题名</label>
- <div class="layui-input-block" style="width:270px;">
- <!-- id="EventDate"-->
- <input type="text" name="zt_name" value="<?=empty($model['zt_name'])? '' : $model['zt_name']; ?>" lay-verify="required" placeholder="请输入专题名称" autocomplete="off" class="layui-input">
- </div>
- </div>
- </div>
- <div class="layui-form-item">
- <div class="layui-inline">
- <label class="layui-form-label"><span style="color:red">*</span>专题有效期</label>
- <div class="layui-input-block" style="width:270px;">
- <!-- id="EventDate"-->
- <input type="text" name="expiration_date" value="<?=empty($model['expiration_date'])? '' : $model['expiration_date']; ?>" lay-verify="required" placeholder="请输入有效期" autocomplete="off" class="layui-input">
- </div>
- </div>
- </div>
- <div style="height:20px"></div>
- <div class="layui-form-item xm_pr">
- <div class="layui-inline">
- <label class="layui-form-label" style="width:135px">PC图片:</label>
- <div class="layui-inline">
- <div class="layui-upload">
- <div class="layui-upload-list xm_xcxqTc_img">
- <img class="layui-upload-img" name="img[]" id="demo1" style="width:100px;height:80px;margin-left:10px;" src="<?=$model['pc_img']?>">
- <p id="demoText"></p>
- </div>
- </div>
- </div>
- </div>
- <button type="button" class="layui-btn xm_xcxqTc_button" id="test1">上传图片</button>
- </div>
- <div style="height:20px"></div>
- <div class="layui-form-item xm_pr">
- <div class="layui-inline">
- <label class="layui-form-label" style="width:135px">M封面图:</label>
- <div class="layui-inline">
- <div class="layui-upload">
- <div class="layui-upload-list xm_xcxqTc_img">
- <img class="layui-upload-img" id="demo2" style="width:100px;height:80px;margin-left:10px;" src="<?=$model['m_img']?>">
- <p id="demoText"></p>
- </div>
- </div>
- </div>
- </div>
- <button type="button" class="layui-btn xm_xcxqTc_button" id="test2">上传图片</button>
- </div>
- <div class="layui-form-item">
- <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a></div>
- </div>
- <div id="feng_houseall"> <!-- ;楼盘容器 -->
- <?php if(!empty($house)):?>
- <table class="layui-table">
- <colgroup>
- <col width="150">
- <col width="50">
- <col>
- </colgroup>
- <thead>
- <tr>
- <th>楼盘名称</th>
- <th>操作</th>
- </tr>
- <?php foreach ($house as $val):?>
- <tr>
- <tr>
- <td><?=$val['name']?><input type="hidden" name="hid[]" value="<?=$val['id']?>" ></td>
- <td class="feng_houseallnamedel"> <a class="layui-btn layui-btn-danger layui-btn-xs" >删除</a></td>
- </tr>
- </tr>
- <?php endforeach;?>
- </thead>
- <tbody>
- </tbody>
- </table>
- <?php endif;?>
- </div>
- <div class="layui-form-item">
- <div class="layui-input-block xm_xcxqTc_tj" style="margin:20px 0 0 0;text-align:center;">
- <input type="hidden" name="id" value="<?=$model['id']?>">
- <button class="layui-btn" lay-submit="" lay-filter="edittel">提交</button>
- <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
- </div>
- </div>
- </div>
- </form>
|