daytoutiaoadd.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. use backend\assets\AppAsset;
  3. AppAsset::addScript($this, Yii::$app->request->baseUrl . "/js/daytoutiao/daytoutiao.js");
  4. ?>
  5. <style>
  6. .layui_box {
  7. width: 80%;
  8. margin: 0 auto;
  9. margin-top: 25px;
  10. }
  11. .layui-code, .layui-upload-list {
  12. margin-top: 0;
  13. }
  14. hr {
  15. width: 100%;
  16. margin: 0 auto;
  17. }
  18. .mt {
  19. text-align: center;
  20. margin-top: 15px;
  21. }
  22. .The_house {
  23. background: #FBFBFB;
  24. color: #333;
  25. }
  26. .The_house:hover {
  27. border: 1px solid #a9a9a9;
  28. color: #333;
  29. }
  30. .xm_xcxqTc_button {
  31. margin-top: -20px;
  32. }
  33. </style>
  34. <form class="layui-form layui-form-pane">
  35. <div class="layui_box">
  36. <div class="layui-form-item">
  37. <label class="layui-form-label"><span style="color:red">*</span>选择栏目:</label>
  38. <div class="layui-input-inline" style="width:64%">
  39. <select name="list_id" id="">
  40. <?php if(!empty($data)){ foreach ($data as $val){?>
  41. <option value="<?=$val['id']?>"><?=$val['day_title']?></option>
  42. <?php }} ?>
  43. </select>
  44. </div>
  45. </div>
  46. <table id="test3" lay-filter="test3"></table>
  47. <div class="layui-form-item" style="text-align: right">
  48. <a class="layui-btn" id="addrow">+</a>
  49. </div>
  50. <div class="layui-form-item mt">
  51. <button class="layui-btn" lay-submit="" lay-filter="adds">提交</button>
  52. </div>
  53. </div>
  54. </form>