123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- <?php
- /**
- * Created by PhpStorm.
- * User: xiaofeng
- * Date: 2018/3/14
- * Time: 下午3:24
- */
- use backend\assets\AppAsset;
- AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/houses.js");
- ?>
- <style>
- .layui_w_btn {display:none;} /*去除删除按钮 特别需求*/
- .layui_w_t {background:#e3e1e1;}
- .layui_w_t label {text-align:left;}
- .layui_h {max-height:340px;overflow-x:hidden;overflow-y:auto;width:99%;}
- .layui_w_pw {width:90%;margin:0 auto;}
- .layui_w_x {border-top:1px solid #ccc;border-bottom:1px solid #ccc;overflow:hidden;}
- .layui_w_number {display:inline-block;vertical-align:middle;padding-right:10px;background:#848484;color:#fff;}
- .layui_w_x .layui_w_operate {display:inline-block;vertical-align:middle;}
- .layui_w_x .layui_w_operate span {color:#0b5fff;}
- .layui_w_x .layui_w_time {display:inline-block;vertical-align:middle;padding:5px 40px;}
- .layui_w_x .layui_w_state {display:inline-block;vertical-align:middle;}
- .layui_w_x .layui_w_state span {color:#24b169;}
- .layui_w_x .layui_w_state span.in {color:red;}
- .layui_w_explain {text-indent:2em;padding:5px 0;}
- .layui_w_explain span {color:red;}
- .layui_label {float:none;padding:9px 0;text-align:left;}
- .layui_w_text {margin-left:0;}
- .layui_ww_btn {position:relative;left:50%;margin-left:-32px;top:20px;}
- </style>
- <form class="layui-form">
- <?php if(!empty($model)){ ?>
- <div class="layui-form-item layui-form-text layui_w_t">
- <label class="layui-form-label">历史记录</label>
- </div>
- <div class="layui_h">
- <?php foreach ($model as $key=>$val){ ?>
- <div class="layui-form-item layui-form-text layui_w_pw">
- <div class="layui_w_x">
- <p class="layui_w_number">序号 <?= ++$key ?></p>
- <p class="layui_w_operate">操作人:<span><?= $val['name'] ?></span></p>
- <p class="layui_w_time">操作时间:<?= $val['create_at'] ?> </p>
- <p class="layui_w_state">操作状态:<span class="<?php if($val['house_state'] == '下架') echo 'in' ?>" ><?= $val['house_state'] ?></span></p>
- </div>
- <p class="layui_w_explain"><span>说明:</span><?= $val['reason'] ?></p>
- </div>
- <?php } } ?>
- </div>
- <div class="layui-form-item layui-form-text layui_w_pw">
- <label class="layui-form-label layui_label">操作原因:</label>
- <div class="layui-input-block layui_w_text">
- <textarea name="reason" placeholder="请输入内容" class="layui-textarea"></textarea>
- </div>
- </div>
- <input type="hidden" value="<?= $hid ?>" name="hid">
- <button class="layui-btn layui-btn-normal layui_ww_btn" lay-submit="" lay-filter="openstate" >提交</button>
- </form>
|