openstate.php 2.8 KB

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