index.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a href="javascript:;">所有活动</a></li>
  7. <li><a href="{:url('AdminActive/add')}">添加活动</a></li>
  8. </ul>
  9. <form class="js-ajax-form" action="" method="post">
  10. <table class="table table-hover table-bordered table-list">
  11. <thead>
  12. <tr>
  13. <th width="50">ID</th>
  14. <th>标题</th>
  15. <th width="160">主图</th>
  16. <th width="160">开始时间</th>
  17. <th width="160">结束时间</th>
  18. <th width="250">操作</th>
  19. </tr>
  20. </thead>
  21. <foreach name="list" item="vo">
  22. <tr>
  23. <td><b>{$vo.id}</b></td>
  24. <td>{$vo.title}</td>
  25. <td>
  26. <notempty name="vo.main_image">
  27. <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.main_image)}');">
  28. <i class="fa fa-photo fa-fw"></i>
  29. </a>
  30. <else/>
  31. <i class="fa fa-close fa-fw"></i>
  32. </notempty>
  33. </td>
  34. <td>{:date('Y-m-d',$vo['start_time'])}</td>
  35. <td>{:date('Y-m-d',$vo['end_time'])}</td>
  36. <td>
  37. <a class="btn btn-xs btn-primary" href="{:url('AdminActive/applyList',array('id'=>$vo['id']))}">报名列表</a>
  38. <a class="btn btn-xs btn-primary" href="{:url('AdminActive/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
  39. <a
  40. class="btn btn-xs btn-primary"
  41. href="javascript:parent.imagePreviewDialog('/qrcode.php?code={$vo.url}');"
  42. >签到码</a>
  43. <a class="btn btn-xs btn-primary" target="_blank" href="{:url('love/scene/sceneList',array('id'=>$vo['id']))}">签到墙</a>
  44. <a class="btn btn-xs btn-primary" target="_blank" href="{:url('love/scene/randomPeople',array('id'=>$vo['id']))}">随机抽人</a>
  45. <eq name="vo.id" value="2">
  46. <a class="btn btn-xs btn-primary" target="_blank" href="{:url('love/AdminActive/exportOutlook',array('id'=>$vo['id']))}">导出三观匹配度</a>
  47. <a class="btn btn-xs btn-primary" target="_blank" href="{:url('love/AdminActive/exportOutlookCount',array('id'=>$vo['id']))}">导出选项统计</a>
  48. </eq>
  49. </td>
  50. </tr>
  51. </foreach>
  52. </table>
  53. <ul class="pagination">{$page|default=''}</ul>
  54. </form>
  55. </div>
  56. <script src="__STATIC__/js/admin.js"></script>
  57. <script>
  58. function reloadPage(win) {
  59. win.location.reload();
  60. }
  61. </script>
  62. </body>
  63. </html>