Index.html 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. <!-- header start -->
  2. <include file="Public/Header" />
  3. <!-- header end -->
  4. <!-- right content start -->
  5. <div class="content-right">
  6. <div class="content">
  7. <form class="am-form view-list" id="form" action="{{:U('Admin/Theme/Save')}}" method="POST">
  8. <div class="am-g">
  9. <label>名称</label>
  10. <input type="text" required="required" class="am-radius form-keyword" style="width: 20rem;display: inline-block;" placeholder="活动名称" name="name"/>
  11. <label>类型</label>
  12. <select name="type" id="type" style="display: inline-block;width: 10rem;margin-right: 1rem;">
  13. <option value="1" <if condition="isset($type) && $type eq 1">selected</if>>活动</option>
  14. <option value="2" <if condition="isset($type) && $type eq 2">selected</if>>专题</option>
  15. </select>
  16. <button type="submit" class="am-btn am-btn-secondary am-btn-sm am-radius form-submit">增加</button>
  17. </div>
  18. </form>
  19. <table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
  20. <thead>
  21. <tr>
  22. <th>序号</th>
  23. <th class="am-hide-sm-only">ThemeID</th>
  24. <th class="am-hide-sm-only">名称</th>
  25. <th class="am-hide-sm-only">类型</th>
  26. <th class="am-hide-sm-only">pv</th>
  27. <th class="am-hide-sm-only">uv</th>
  28. <th class="am-hide-sm-only">同步时间</th>
  29. <th>{{:L('common_operation_name')}}</th>
  30. </tr>
  31. </thead>
  32. <tbody>
  33. <if condition="!empty($List)">
  34. <foreach name="List" item="v">
  35. <tr id="data-list-{{$v.id}}">
  36. <input type="hidden" value="{{$v.id}}" />
  37. <td class="am-hide-sm-only">{{$key+1}}</td>
  38. <td class="am-hide-sm-only">{{$v.id}}</td>
  39. <td class="am-hide-sm-only">{{$v.name}}</td>
  40. <td class="am-hide-sm-only">
  41. <?php
  42. if($v['type'] == 1){
  43. echo "活动";
  44. }elseif($v['type'] == 2){
  45. echo "专题";
  46. }
  47. ?>
  48. </td>
  49. <td class="am-hide-sm-only">{{$v.page_view}}</td>
  50. <td class="am-hide-sm-only">{{$v.user_view}}</td>
  51. <td class="am-hide-sm-only">{{$v.data_update}}</td>
  52. <td class="view-operation">
  53. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:U('Admin/Theme/Delete')}}" data-am-popover="{content: '{{:L('common_operation_delete')}}', trigger: 'hover focus'}" data-id="{{$v.id}}"></button>
  54. </td>
  55. </tr>
  56. </foreach>
  57. <else />
  58. <tr><td colspan="10" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
  59. </if>
  60. </tbody>
  61. </table>
  62. <!-- list end -->
  63. <!-- page start -->
  64. <if condition="!empty($List)">
  65. {{$page_html}}
  66. </if>
  67. <!-- page end -->
  68. </div>
  69. </div>
  70. <!-- right content end -->
  71. <!-- footer start -->
  72. <include file="Public/Footer" />
  73. <!-- footer end