daytoutiaoindex.php 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. <?php
  2. use backend\assets\AppAsset;
  3. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/daytoutiao/daytoutiao.js");
  4. ?>
  5. <style>
  6. body {
  7. padding: 15px;
  8. }
  9. .layui-elem-quote {
  10. margin-bottom: 0;
  11. border-left: none;
  12. padding: 10px;
  13. }
  14. .layui-table-page .layui-laypage {
  15. float: right;
  16. margin-right: 1%;
  17. }
  18. .layui-table-view .layui-form-switch {
  19. right: 0px
  20. }
  21. </style>
  22. <form action="" class="layui-form">
  23. <fieldset class="layui-elem-field">
  24. <legend>搜索信息</legend>
  25. <div class="layui-field-box">
  26. <blockquote class="quoteBox demoTable">
  27. <div class="layui-inline">
  28. <div class="layui-input-inline">
  29. <input type="text" name="input_name" class="layui-input searchVal" placeholder="请输入搜索的内容"/>
  30. </div>
  31. </div>
  32. <div class="layui-inline">
  33. <div class="layui-input-inline">
  34. <select name="input_list_id" id="">
  35. <option value="">选择头条栏目</option>
  36. <?php if(!empty($data)){ foreach ($data as $val){?>
  37. <option value="<?=$val['id']?>"><?=$val['day_title']?></option>
  38. <?php }} ?>
  39. </select>
  40. </div>
  41. </div>
  42. <div class="layui-inline">
  43. <!-- <label class="layui-form-label">是否有效</label>-->
  44. <div class="layui-input-inline">
  45. <select name="input_efficacious" id="">
  46. <option value="">是否有效</option>
  47. <option value="1">未知</option>
  48. <option value="2">有效</option>
  49. </select>
  50. </div>
  51. </div>
  52. <div class="layui-inline">
  53. <!-- <label class="layui-form-label">是否发送</label>-->
  54. <div class="layui-input-inline">
  55. <select name="input_send_state" id="">
  56. <option value="">是否发送邮件</option>
  57. <option value="1">未发送</option>
  58. <option value="2">已发送</option>
  59. </select>
  60. </div>
  61. </div>
  62. <div class="layui-inline">
  63. <a class="layui-btn search_btn" data-type="reload"><i class="layui-icon layui-icon-search"></i>搜索</a>
  64. </div>
  65. </blockquote>
  66. </div></fieldset>
  67. </form>
  68. <blockquote class="layui-elem-quote quoteBox demoTable">
  69. <div class="layui-btn-group demoTable">
  70. <a class="layui-btn" data-type="addData">新增</a>
  71. </div>
  72. <div class="layui-btn-group demoTable">
  73. <a class="layui-btn layui-btn-warm" data-type="setWx">设为有效</a>
  74. </div>
  75. </blockquote>
  76. <table id="toutiaolist" lay-filter="toutiaolist"></table>
  77. <script type="text/html" id="toutiaofunc">
  78. <a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
  79. <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
  80. </script>