loadnews.php 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: xiaofeng
  5. * Date: 2018/3/20
  6. * Time: 下午5:08
  7. *
  8. */
  9. use backend\assets\AppAsset;
  10. AppAsset::addScript($this,Yii::$app->request->baseUrl."/js/housenews.js");
  11. ?>
  12. <form class="layui-form">
  13. <blockquote class="layui-elem-quote quoteBox demoTable">
  14. <div class="layui-input-inline" style="width:100px">
  15. <select name="input_house" >
  16. <option value="name" selected="">标题</option>
  17. <option value="id" >文档id</option>
  18. </select>
  19. </div>
  20. <div class="layui-inline">
  21. <div class="layui-input-inline">
  22. <input type="text" name="input_house_text" class="layui-input searchVal" placeholder="请输入搜索的内容" />
  23. </div>
  24. </div>
  25. <div class="layui-input-inline">
  26. <select name="category" lay-filter="category">
  27. <option value="">请选择资讯栏目</option>
  28. <?php foreach ($category as $val){?>
  29. <option value="<?php echo $val['id']?>"><?php echo $val['news_name']?></option>
  30. <?php }?>
  31. </select>
  32. </div>
  33. <div class="layui-inline">
  34. <a class="layui-btn search_btn" data-type="load_news_reload">搜索</a>
  35. </div>
  36. </blockquote>
  37. <input type="hidden" name="hid" id="houseId" value="<?php echo $hid?>">
  38. <!--操作-->
  39. <!-- <script type="text/html" id="housesListBar">-->
  40. <!-- <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>-->
  41. <!-- <a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>-->
  42. <!-- <!-- <a class="layui-btn layui-btn-xs layui-btn-primary" lay-event="look">预览</a>-->
  43. <!-- </script>-->
  44. <table id="loadnewsList" lay-filter="loadnewsList"></table>
  45. <div class="layui-inline ">
  46. <a class="layui-btn search_btn" style="margin-left: 400px;margin-top:15px;" lay-submit="" lay-filter="add_load_news">提交</a>
  47. </div>
  48. </form>