123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/3/18
- * Time: 下午3:49
- */
- use backend\assets\AppAsset;
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/routine/decoration.js");
- ?>
- <style>
- .xm_qytc_box{width:920px;margin:auto;margin-top:20px;}
- .xm_xcxqTc_img{margin:0;}
- .xm_xcxqTc_button{position:absolute;bottom:0;left:0;}
- .xm_pr{position:relative;}
- .ml{margin-left:18px}
- .layui-upload-img{display: inline-block;height:120px;width: 120px;border: 1px solid #999;margin-right: 10px;position: absolute;position: relative;
- overflow: hidden;}
- .layui-upload-img img{display: block;height: 100%;width: 100%;}
- .close-icon{position: absolute;right:5px;top: 1px;color: #000;cursor: pointer;}
- .layui_w_btn {display:none;} /*去除删除按钮 特别需求*/
- /*选择封面图上传弹窗*/
- .layui_w_title {background:red;}
- .layui_w_title ul li {display:inline-block;}
- </style>
- <div class="xm_qytc_box">
- <form class="layui-form layui-form-pane" id="signupForm">
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:red">*</span>标题</label>
- <div class="layui-input-inline" style="width:270px;">
- <input type="text" name="title" value="<?= $model['title'] ?>" lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label ">所属楼盘:</label>
- <div class="layui-input-inline" style="width:270px;">
- <input type="text" id="house_name" value="<?= $housename ?>" name="house_name" disabled placeholder="请选择楼盘" autocomplete="off" class="layui-input">
- </div>
- <div class="layui-inline"><a class="layui-btn layui-btn-primary The_house" href="javascript:;">选择所属楼盘</a></div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">作者</label>
- <div class="layui-input-inline" style="width:270px;">
- <input type="text" name="author" value="<?= $model['author'] ?>" placeholder="请输入" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label"><span style="color:red">*</span>来源</label>
- <div class="layui-input-inline" style="width:270px;">
- <input type="text" name="source" lay-verify="required" value="<?= $model['source'] ?>" placeholder="来源地址" autocomplete="off" class="layui-input">
- </div>
- </div>
- <div class="layui-form-item">
- <label class="layui-form-label">描述</label>
- <div class="layui-input-inline" style="width:390px;">
- <textarea name="describe" placeholder="请输入内容" class="layui-textarea"><?= $model['describe'] ?></textarea>
- </div>
- </div>
- <div class="layui-form-item" style="margin-bottom:-5px">
- <div class="layui-inline">
- <label class="layui-form-label"><span style="color:red">*</span>装修风格:</label>
- <div class="layui-input-block layui_w_acti" style="padding-bottom:8px;">
- <?php foreach(Yii::$app->params['DecorationStyle'] as $key=>$val){ ?>
- <input type="radio" name="type" value="<?php echo $key ?>" lay-skin="primary" title="<?php echo $val ?>" <?php if($key == $model['type']) echo 'checked' ?>>
- <?php }?>
- </div>
- </div>
- </div>
- <div class="layui-form-item xm_pr layui-table-main">
- <!-- <input type="checkbox" class="xm_xcxqTc_button" name="thumb_watermark" value="1" checked title="水印">-->
- <div class="layui-inline">
- <button type="button" class="layui-btn layui-btn-primary" id="test1"><span style="color:red">*</span>选择封面图</button>
- <div class="layui-inline">
- <div class="layui-upload">
- <div class="layui-upload-list lay_p_relative"> <!--低级添加 lay_p_relative-->
- <img class="layui-upload-img layui_magnify" name="advertising_img" src="<?= $model['img'] ?>" id="breviary_img" style="width:280px;height:90px;margin-left:10px;border:1px solid #ccc;">
- <p id="demoText"></p>
- </div>
- </div>
- </div>
- </div>
- </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" id="hiddenBox" name="hid" value="<?= $model['hid'] ?>">
- <input type="hidden" name="id" value="<?= $model['id'] ?>">
- <button class="layui-btn" lay-submit="" lay-filter="edit">提交</button>
- <!-- <input type="checkbox" class="xm_xcxqTc_button" name="like[write]" title="水印">-->
- </div>
- </div>
- </form>
- </div>
|