Index.html 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 start -->
  8. <div class="am-g m-t-15">
  9. <a href="{{:U('Admin/SelectActivity/Index')}}" class="am-btn am-btn-secondary am-radius am-btn-xs am-icon-plus"> {{:L('common_operation_add')}}</a>
  10. </div>
  11. <table class="am-table am-table-striped am-table-hover am-text-middle m-t-10">
  12. <thead>
  13. <tr>
  14. <th>序号</th>
  15. <th>活动ID</th>
  16. <th class="am-hide-sm-only">活动名称</th>
  17. <th class="am-hide-sm-only">开始时间</th>
  18. <th class="am-hide-sm-only">结束时间</th>
  19. <th class="am-hide-sm-only">创建时间</th>
  20. <th>{{:L('common_operation_name')}}</th>
  21. </tr>
  22. </thead>
  23. <tbody>
  24. <if condition="!empty($List)">
  25. <foreach name="List" item="v">
  26. <tr id="data-list-{{$v.id}}">
  27. <input type="hidden" value="{{$v.id}}" />
  28. <td class="am-hide-sm-only">{{$key+1}}</td>
  29. <td class="am-hide-sm-only">{{$v.id}}</td>
  30. <td class="am-hide-sm-only">{{$v.activity_name}}</td>
  31. <td class="am-hide-sm-only">{{$v.start_at}}</td>
  32. <td class="am-hide-sm-only">{{$v.end_at}}</td>
  33. <td class="am-hide-sm-only">{{$v.created_at}}</td>
  34. <td class="view-operation">
  35. <a href="{{:U('Admin/ActivityV2/SaveInfo', array('id'=>$v['id']))}}">
  36. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-edit" data-am-popover="{content: '{{:L('common_operation_edit')}}', trigger: 'hover focus'}"></button>
  37. </a>
  38. <button class="am-btn am-btn-default am-btn-xs am-radius am-icon-trash-o submit-delete" data-url="{{:U('Admin/ActivityV2/Delete')}}" data-am-popover="{content: '{{:L('common_operation_delete')}}', trigger: 'hover focus'}" data-id="{{$v.id}}"></button>
  39. </td>
  40. </tr>
  41. </foreach>
  42. <else />
  43. <tr><td colspan="10" class="table-no">{{:L('common_not_data_tips')}}</td></tr>
  44. </if>
  45. </tbody>
  46. </table>
  47. <!-- list end -->
  48. <!-- page start -->
  49. <if condition="!empty($List)">
  50. {{$page_html}}
  51. </if>
  52. <!-- page end -->
  53. </div>
  54. </div>
  55. <!-- right content end -->
  56. <!-- footer start -->
  57. <include file="Public/Footer" />
  58. <!-- footer end