interactive_vote.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <{include file="./admin/header.html"}>
  2. <{include file="./admin/left.html"}>
  3. <{include file="./admin/nav.html"}>
  4. <{include file="get_kindeditor.html"}>
  5. <style>
  6. .set-nav {
  7. margin: 0 auto;
  8. }
  9. .set-nav-hr {
  10. background-color: #ddd;
  11. height: 1px;
  12. position: relative;
  13. }
  14. .form-group label {
  15. font-weight: 600;
  16. }
  17. .checkbox-inline, .radio-inline {
  18. font-weight: 400!important;
  19. }
  20. .rowlabel {
  21. font-weight: 300!important;
  22. }
  23. .music_play_hide {
  24. display:none;
  25. }
  26. </style>
  27. <div id="activity_container">
  28. <form id="activity_form">
  29. <div class="activity_center">
  30. <{include file="./admin/activity/common_nav.html"}>
  31. <input name="events_id" type="hidden" value="<{$events_Data.events.id}>">
  32. <div class="panel panel-default">
  33. <div class="panel-heading"><h3 class="panel-title" id="panel-title">投票信息</h3></div>
  34. <div class="panel-body">
  35. <p><b>投票标题:</b><{$events_Data.events.vote_title}></p>
  36. <p><b>投票类型:</b><{$voteType[$events_Data.events.vote_type].desc}></p>
  37. </div>
  38. </div>
  39. <div class="panel panel-default">
  40. <div class="panel-heading"><h3 class="panel-title" id="panel-title">投票项</h3></div>
  41. <div class="panel-body">
  42. <div class="form-group">
  43. <table class="custom_from_table table table-condensed">
  44. <thead>
  45. <tr>
  46. <th>序号</th>
  47. <th>标题</th>
  48. <th>图片</th>
  49. <th>投票数</th>
  50. <th>作弊数</th>
  51. <th>操作</th>
  52. </tr>
  53. </thead>
  54. <tbody>
  55. <{if !$voteData}>
  56. <tr>
  57. <td colspan="6" align="center">无</td>
  58. </tr>
  59. <{else}>
  60. <{foreach from=$voteData item=item name=vote}>
  61. <tr>
  62. <td><{$smarty.foreach.vote.iteration}></td>
  63. <td><{$item.title}></td>
  64. <td>
  65. <{if $events_Data.events.vote_type == 2}>
  66. <img src="<{$item.img_url}>" style="width:60px;height:60px;" class="img-thumbnail">
  67. <{else}>
  68. -
  69. <{/if}>
  70. </td>
  71. <td><{$item.num}></td>
  72. <td><{$item.add_num}></td>
  73. <td>
  74. <a href="<{$web_cfg.url}>&update_one_vote=1&vote_id=<{$item.id}>">编辑</a>
  75. <!-- <a href="javascript:;">删除</a> -->
  76. </td>
  77. </tr>
  78. <{/foreach}>
  79. <{/if}>
  80. </tbody>
  81. </table>
  82. <a href="<{$web_cfg.url}>&add_one_vote=1" class="js_add_vote" data-stat="show"><i class="fa fa-plus"></i> 添加投票项</a>
  83. </div>
  84. </div>
  85. </div>
  86. </div>
  87. <{include file="./admin/activity/common_right.html"}>
  88. <div style="clear:both;"></div>
  89. </form>
  90. </div>
  91. <script>
  92. KISSY.use('node, io', function (S, Node, IO) {
  93. var $ = S.all;
  94. });
  95. </script>
  96. <{include file="./admin/bottom.html"}>