event_list.html 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <{include file="admin/header.html"}>
  2. <{include file="admin/nav.html"}>
  3. <div class="container">
  4. <table class="table table-condensed table-hover">
  5. <tr>
  6. <th>活动ID</th>
  7. <th>名称</th>
  8. <th>类型</th>
  9. <th>开始时间</th>
  10. <th>结束时间</th>
  11. <th>进行状态</th>
  12. <th>显示状态</th>
  13. <th>操作</th>
  14. </tr>
  15. <{foreach from=$allEventsData item=events}>
  16. <tr>
  17. <td><{$events.id}></td>
  18. <td><{$events.events_name}></td>
  19. <td>
  20. <{if $eventsType[$events.type].kw == 'TYPE_EVENTS_NULL'}>
  21. <span style="color:red;"><{$eventsType[$events.type].desc}></span>
  22. <{else}>
  23. <span style="color:#5151A2;"><{$eventsType[$events.type].desc}></span>
  24. <{/if}>
  25. </td>
  26. <td><{$events.begin_time|date_format:'%Y-%m-%d %H:%M %S'}></td>
  27. <td><{$events.end_time|date_format:'%Y-%m-%d %H:%M %S'}></td>
  28. <td>
  29. <{if time() < $events.begin_time}>
  30. <span style="color:#5151A2;">[未开始]</span>
  31. <{/if}>
  32. <{if time() > $events.begin_time && time() < $events.end_time}>
  33. <span style="color:#00EC00;">[进行中]</span>
  34. <{/if}>
  35. <{if time() > $events.end_time}>
  36. <span style="color:red;">[结束]</span>
  37. <{/if}>
  38. </td>
  39. <td>
  40. <{if $eventsDisplay[$events.display].kw == 'EVENT_DISPLAY_SHOW'}>
  41. <span style="color:#00EC00;"><{$eventsDisplay[$events.display].desc}></span>
  42. <{else}>
  43. <span style="color:red;"><{$eventsDisplay[$events.display].desc}></span>
  44. <{/if}>
  45. </td>
  46. <td>
  47. <a href='<{$web_cfg.domain}>/?c=admin_Lottery&a=EventPage&events_id=<{$events.id}>' >详情</a>
  48. </td>
  49. </tr>
  50. <{/foreach}>
  51. <tr>
  52. <td colspan='7' class=' page'><{$page_html}></td>
  53. </tr>
  54. </table>
  55. </div>
  56. <{include file="admin/bottom.html"}>