home.php 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/18
  6. * Time: 下午3:49
  7. */
  8. use backend\assets\AppAsset;
  9. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/pricetrend/price.js");
  10. ?>
  11. <style>
  12. body {
  13. padding: 15px;
  14. }
  15. .layui-elem-quote {
  16. margin-bottom: 0;
  17. border-left: none;
  18. padding: 10px;
  19. }
  20. </style>
  21. <form action="" class="layui-form">
  22. <fieldset class="layui-elem-field">
  23. <legend>搜索信息</legend>
  24. <div class="layui-field-box">
  25. <blockquote class="quoteBox demoTable">
  26. <div class="layui-inline" style="margin:0px 5px 0px 30px">
  27. <div class="layui-input-inline">
  28. <select name="input_city" lay-verify="required" lay-search="">
  29. <option value="">直接选择或搜索选择</option>
  30. <?php foreach ($rows as $k => $v) { ?>
  31. <option value="<?php echo $v['city_id'] ?>"><?php echo $v['city_name'] ?></option>
  32. <?php } ?>
  33. </select>
  34. </div>
  35. </div>
  36. <div class="layui-inline">
  37. <a class="layui-btn search_btn wu_search_btn" data-type="reload"><i class="layui-icon layui-icon-search"></i>搜索</a>
  38. </div>
  39. </blockquote>
  40. </div>
  41. </fieldset>
  42. </form>
  43. <blockquote class="layui-elem-quote quoteBox demoTable">
  44. <div class="layui-btn-group demoTable">
  45. <a class="layui-btn" data-type="addData">新增</a>
  46. </div>
  47. </blockquote>
  48. <table id="citylist" lay-filter="citylist"></table>
  49. <script type="text/html" id="operate">
  50. <a class="layui-btn layui-btn-xs" lay-event="add"">新增</a>
  51. <a class="layui-btn layui-btn-xs" lay-event="edit">查看历史价格</a>
  52. </script>