event.html 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724
  1. <{include file="admin/header.html"}><{include file="admin/nav.html"}>
  2. <style>
  3. <!--
  4. .container, .container5 {
  5. margin: 0 auto;
  6. padding-top: 0px;
  7. padding-left:20px;
  8. padding-right:20px;
  9. }
  10. .containerBox {
  11. border-radius: 5px;
  12. box-shadow: 0 2px 2px rgba(0,0,0,0.1);
  13. moz-border-radius: 5px;
  14. moz-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
  15. padding: 14px 22px 20px 20px;
  16. webkit-border-radius: 5px;
  17. webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
  18. background-color: #f8f8f8;
  19. border: 1px solid #b8b8b8;
  20. padding:15px 20px 20px 20px;
  21. margin-top:10px;
  22. }
  23. input[type="text"] {
  24. background-color: #fff;
  25. border: 1px solid #d3d3d3;
  26. color: #666;
  27. max-width: 480px;
  28. padding: 2px 8px;
  29. width: 480px;
  30. display: inline-block;
  31. }
  32. .fileUpload {
  33. display:none!important;
  34. }
  35. .container label, .container5 label {
  36. cursor: default;
  37. padding-bottom: 4px;
  38. padding-top: 10px;
  39. display: block;
  40. }
  41. .upload-tip {
  42. color: #666;
  43. font-size: 12px;
  44. margin-top: 2px;
  45. float: right;
  46. cursor: default;
  47. line-height: 1.5;
  48. }
  49. textarea[name="keywords"] {
  50. width: 100%;
  51. height: 80px;
  52. outline: 0;
  53. overflow: auto;
  54. vertical-align: top;
  55. }
  56. .desctextarea{
  57. width: 480px;
  58. height: 50px;
  59. outline: 0;
  60. overflow: auto;
  61. vertical-align: top;
  62. padding: 2px 8px;
  63. background-color: #fff;
  64. border: 1px solid #d3d3d3;
  65. }
  66. .sub-add-btn, .sub-add-btn-top {
  67. line-height: 30px;
  68. color: red;
  69. border: 2px dotted #b8b8b8;
  70. border-radius: 3px;
  71. -webkit-border-radius: 3px;
  72. -moz-border-radius: 3px;
  73. display: block;
  74. margin-top: 10px;
  75. text-align: center;
  76. background-color: #f8f8f8;
  77. }
  78. a:visited, a:link {
  79. text-decoration: none;
  80. }
  81. a:hover {
  82. text-decoration: underline;
  83. }
  84. #hiddenBox {
  85. display:none;
  86. }
  87. .msg-btn {
  88. padding: 12px 0 20px;
  89. text-align: center;
  90. font-size: 14px;
  91. }
  92. a.btnGreen:link {
  93. text-decoration: none;
  94. margin: 0 20px;
  95. text-align: center;
  96. overflow: visible;
  97. border-radius: 3px;
  98. -moz-border-radius: 3px;
  99. -webkit-border-radius: 3px;
  100. border: 1px solid #3d810c;
  101. padding: 5px 20px;
  102. cursor: pointer;
  103. display: inline-block;
  104. text-align: center;
  105. overflow: visible;
  106. border-radius: 3px;
  107. -moz-border-radius: 3px;
  108. -webkit-border-radius: 3px;
  109. color: #fff;
  110. border: 1px solid #3d810c;
  111. background-color: #5aaa4b;
  112. background-image: -moz-linear-gradient(top,#60b452 0,#56a447 100%);
  113. background-image: -webkit-gradient(linear,0 0,0 100%,from(#60b452),to(#56a447));
  114. background-image: -webkit-linear-gradient(top,#60b452 0,#56a447 100%);
  115. background-image: -o-linear-gradient(top,#60b452 0,#56a447 100%);
  116. background-image: linear-gradient(to bottom,#60b452 0,#56a447 100%);
  117. }
  118. a.btnGreen:hover {
  119. background-color: #53a046;
  120. background-image: -moz-linear-gradient(top,#5aab4d 0,#4f9841 100%);
  121. background-image: -webkit-gradient(linear,0 0,0 100%,from(#5aab4d),to(#4f9841));
  122. background-image: -webkit-linear-gradient(top,#5aab4d 0,#4f9841 100%);
  123. background-image: -o-linear-gradient(top,#5aab4d 0,#4f9841 100%);
  124. background-image: linear-gradient(to bottom,#5aab4d 0,#4f9841 100%);
  125. color: #fff;
  126. color: #fff;
  127. box-shadow: 0 1px 1px #aaa;
  128. -moz-box-shadow: 0 1px 1px #aaa;
  129. -webkit-box-shadow: 0 1px 1px #aaa;
  130. }
  131. .imgPreview {
  132. display:none;
  133. }
  134. .b {width:320px; height:160px;}
  135. .s {width:100px; height:100px;}
  136. .closed {
  137. float: right;
  138. position: relative;
  139. }
  140. .closed a {color:red;}
  141. .closed a:hover {color:blue;}
  142. .acset {margin:2px;}
  143. .acset span {width:100px;display:inline-block;text-align:right;}
  144. -->
  145. </style>
  146. <div class="container">
  147. <table class="table">
  148. <tr>
  149. <td>活动ID:</td>
  150. <td><{$eventsAndPrize_Data.events.id}>
  151. <br>---------------------------------------------------------------------------------<br>
  152. <a href="<{$thisurl}>" target="_blank">[ 微信地址 ]</a>&nbsp;&nbsp;: <{$thisurl}><br>
  153. [ Mini地址 ] &nbsp;&nbsp;: <{$thisAppUrl}><br>
  154. </td>
  155. </tr>
  156. <tr>
  157. <td>活动名称:</td>
  158. <td><{$eventsAndPrize_Data.events.events_name}></td>
  159. </tr>
  160. <tr>
  161. <td>所属活动类型:</td>
  162. <td><span>
  163. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_NULL'}>
  164. [<span style="color:red;"><{$eventsType[$eventsAndPrize_Data.events.type].desc }></span>]
  165. <{else}>
  166. [<span style="color:#00EC00;"><{$eventsType[$eventsAndPrize_Data.events.type].desc }></span>]
  167. <{/if}>
  168. </span>
  169. </td>
  170. </tr>
  171. <tr>
  172. <td>开始时间:</td>
  173. <td><{$eventsAndPrize_Data.events.begin_time|date_format:'%Y-%m-%d %H:%M:%S'}></td>
  174. </tr>
  175. <tr>
  176. <td>结束时间:</td>
  177. <td><{$eventsAndPrize_Data.events.end_time|date_format:'%Y-%m-%d %H:%M:%S'}></td>
  178. </tr>
  179. <tr>
  180. <td>奖品领取结束时间:</td>
  181. <td>
  182. <{if $eventsAndPrize_Data.events.end_time_receive_prizes}>
  183. <{$eventsAndPrize_Data.events.end_time_receive_prizes|date_format:'%Y-%m-%d %H:%M:%S'}>
  184. <{else}>
  185. 未填写
  186. <{/if}>
  187. </td>
  188. </tr>
  189. <tr>
  190. <td>活动显示状态:</td>
  191. <td><{if $eventsDisplayStatus[$eventsAndPrize_Data.events.display].kw == 'EVENT_DISPLAY_SHOW'}>
  192. [<span style="color:#00EC00;"><{$eventsDisplayStatus[$eventsAndPrize_Data.events.display].desc }></span>]
  193. <{else}>
  194. [<span style="color:red;"><{$eventsDisplayStatus[$eventsAndPrize_Data.events.display].desc }></span>]
  195. <{/if}>
  196. </td>
  197. </tr>
  198. <tr>
  199. <td>活动发货状态:</td>
  200. <td><{if $deliveryType[$eventsAndPrize_Data.events.delivery].kw == 'DELIVERY_FALSE'}>
  201. [<span style="color:#00EC00;"><{$deliveryType[$eventsAndPrize_Data.events.delivery].desc }></span>]
  202. <{else}>
  203. [<span style="color:red;"><{$deliveryType[$eventsAndPrize_Data.events.delivery].desc }></span>]
  204. <{/if}>
  205. </td>
  206. </tr>
  207. <tr>
  208. <td>活动授权参与:</td>
  209. <td><{if $eventsAuthorizeStatus[$eventsAndPrize_Data.events.authorize].kw == 'EVENT_AUTHORIZE_TRUE'}>
  210. [<span style="color:#00EC00;"><{$eventsAuthorizeStatus[$eventsAndPrize_Data.events.authorize].desc }></span>]
  211. <{else}>
  212. [<span style="color:red;"><{$eventsAuthorizeStatus[$eventsAndPrize_Data.events.authorize].desc }></span>]
  213. <{/if}>
  214. </td>
  215. </tr>
  216. <tr>
  217. <td>活动状态:</td>
  218. <td>
  219. <{if time() < $eventsAndPrize_Data.events.begin_time}>
  220. [<span style="color:#5151A2;">未开始</span>]
  221. <{/if}>
  222. <{if time() > $eventsAndPrize_Data.events.begin_time && time() < $eventsAndPrize_Data.events.end_time}>
  223. [<span style="color:#00EC00;">进行中</span>]
  224. <{/if}>
  225. <{if time() > $eventsAndPrize_Data.events.end_time}>
  226. [<span style="color:red;">结束</span>]
  227. <{/if}>
  228. </td>
  229. </tr>
  230. <tr>
  231. <td>头图: <br>[580*310px] </td>
  232. <td><img src="<{$eventsAndPrize_Data.events.img_url}>"></img></td>
  233. </tr>
  234. <tr>
  235. <td>活动提示: </td>
  236. <td><{$eventsAndPrize_Data.events.events_tips}></td>
  237. </tr>
  238. <tr>
  239. <td>活动操作提示语: </td>
  240. <td><{if $eventsAndPrize_Data.events.operationt_tips}><{$eventsAndPrize_Data.events.operationt_tips}><{else}>未填写<{/if}></td>
  241. </tr>
  242. <tr>
  243. <td>活动规则: </td>
  244. <td><{$eventsAndPrize_Data.events.events_rules}></td>
  245. </tr>
  246. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_CODE' }>
  247. <tr style="display: none;">
  248. <td>二维码输出</td>
  249. <td><{if $eventsTwoDimensionalCodeType[$eventsAndPrize_Data.events.two_dimensional_code].kw == 'TWO_DIMENSIONAL_CODE_TRUE'}>
  250. [<span style="color:#00EC00;"><{$eventsTwoDimensionalCodeType[$eventsAndPrize_Data.events.two_dimensional_code].desc }></span>]
  251. <{else}>
  252. [<span style="color:red;"><{$eventsTwoDimensionalCodeType[$eventsAndPrize_Data.events.two_dimensional_code].desc }></span>]
  253. <{/if}>
  254. </td>
  255. </tr>
  256. <tr>
  257. <td>数量:</td>
  258. <td>总数:[<{$codeDataNum}>] 剩余:[<{$codeDataNum-$useCodeDataNum}>] 已发放:[<{$useCodeDataNum}>] &nbsp;&nbsp;
  259. [<a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=EventCodePage&events_id=<{$eventsAndPrize_Data.events.id}>&showAddCode=true">添加码</a>]</td>
  260. </tr>
  261. <tr>
  262. <td>券图片:<br>我的礼品中显示的图片</td>
  263. <td>
  264. <{if $eventsAndPrize_Data.events.code_img_url}>
  265. <img src="<{$eventsAndPrize_Data.events.code_img_url}>"></img>
  266. <{else}>
  267. 未上传
  268. <{/if}>
  269. </td>
  270. </tr>
  271. <tr>
  272. <td>券名称:</td>
  273. <td>
  274. <{if $eventsAndPrize_Data.events.code_name}>
  275. <{$eventsAndPrize_Data.events.code_name}>
  276. <{else}>
  277. 未填写
  278. <{/if}>
  279. </td>
  280. </tr>
  281. <tr>
  282. <td>允许每天用户参与次数: </td>
  283. <td><{if $eventsAndPrize_Data.events.participation_user_num!=0}><{$eventsAndPrize_Data.events.participation_user_num}><{else}>无限制<{/if}></td>
  284. </tr>
  285. <tr>
  286. <td>允许每天IP参与次数: </td>
  287. <td><{if $eventsAndPrize_Data.events.participation_ip_num!=0}><{$eventsAndPrize_Data.events.participation_ip_num}><{else}>无限制<{/if}></td>
  288. </tr>
  289. <tr>
  290. <td>允许用户获奖次数: </td>
  291. <td><{if $eventsAndPrize_Data.events.winning_user_num!=0}><{$eventsAndPrize_Data.events.winning_user_num}><{else}>无限制<{/if}></td>
  292. </tr>
  293. <tr>
  294. <td>允许用户参与次数: </td>
  295. <td><{if $eventsAndPrize_Data.events.participation_user_all_num!=0}><{$eventsAndPrize_Data.events.participation_user_all_num}><{else}>无限制<{/if}></td>
  296. </tr>
  297. <{/if}>
  298. <{*转盘 刮挂卡 收集字母*}>
  299. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_TURNTABLE' || $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_SCRATCH' || $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_LETTERS'}>
  300. <tr>
  301. <td>允许每天用户参与次数: </td>
  302. <td><{if $eventsAndPrize_Data.events.participation_user_num!=0}><{$eventsAndPrize_Data.events.participation_user_num}><{else}>无限制<{/if}></td>
  303. </tr>
  304. <tr>
  305. <td>允许每天IP参与次数: </td>
  306. <td><{if $eventsAndPrize_Data.events.participation_ip_num!=0}><{$eventsAndPrize_Data.events.participation_ip_num}><{else}>无限制<{/if}></td>
  307. </tr>
  308. <tr>
  309. <td>允许用户获奖次数: </td>
  310. <td><{if $eventsAndPrize_Data.events.winning_user_num!=0}><{$eventsAndPrize_Data.events.winning_user_num}><{else}>无限制<{/if}></td>
  311. </tr>
  312. <tr>
  313. <td>允许用户参与次数: </td>
  314. <td><{if $eventsAndPrize_Data.events.participation_user_all_num!=0}><{$eventsAndPrize_Data.events.participation_user_all_num}><{else}>无限制<{/if}></td>
  315. </tr>
  316. <{/if}>
  317. <{*试用*}>
  318. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_TRY'}>
  319. <{/if}>
  320. <{*邀请函*}>
  321. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_INVITATION'}>
  322. <tr>
  323. <td>白名单:</td>
  324. <td><{if $eventsAndPrize_Data.events.invitation_white_list}>
  325. <{"@"|join:$eventsAndPrize_Data.events.invitation_white_list}>
  326. <{else}>无限制<{/if}></td>
  327. </tr>
  328. <tr>
  329. <td>最大上线参与人数:</td>
  330. <td><{if $eventsAndPrize_Data.events.participation_user_max_num}>
  331. <{$eventsAndPrize_Data.events.participation_user_max_num}>
  332. <{else}>无限制<{/if}></td>
  333. </tr>
  334. <{/if}>
  335. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_OTHER'}>
  336. <tr>
  337. <td>跳转地址:</td>
  338. <td><{if $eventsAndPrize_Data.events.other_url }><{$eventsAndPrize_Data.events.other_url}><{else}>未设置<{/if}></td>
  339. </tr>
  340. <{/if}>
  341. <{*投票*}>
  342. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_VOTE'}>
  343. <tr>
  344. <td>允许每天用户参与次数: </td>
  345. <td><{if $eventsAndPrize_Data.events.participation_user_num!=0}><{$eventsAndPrize_Data.events.participation_user_num}><{else}>无限制<{/if}></td>
  346. </tr>
  347. <tr>
  348. <td>允许每天IP参与次数: </td>
  349. <td><{if $eventsAndPrize_Data.events.participation_ip_num!=0}><{$eventsAndPrize_Data.events.participation_ip_num}><{else}>无限制<{/if}></td>
  350. </tr>
  351. <tr>
  352. <td>允许用户参与次数: </td>
  353. <td><{if $eventsAndPrize_Data.events.participation_user_all_num!=0}><{$eventsAndPrize_Data.events.participation_user_all_num}><{else}>无限制<{/if}></td>
  354. </tr>
  355. <{/if}>
  356. <{*自定义表单*}>
  357. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_TRY'
  358. || $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_INVITATION'
  359. || $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_CODE'
  360. }>
  361. <tr>
  362. <td>自定义表单: </td>
  363. <td>
  364. <{foreach from=$eventsAndPrize_Data.events.forms item=form name=forms}>
  365. <{if $smarty.foreach.forms.iteration != 1}>,<{/if}>
  366. <{$form.name}>
  367. <{/foreach}>
  368. </td>
  369. </tr>
  370. <{/if}>
  371. <{*/自定义表单*}>
  372. <{*微信分享设置*}>
  373. <tr>
  374. <td>微信分享设置: </td>
  375. <td>
  376. <{if $eventsAndPrize_Data.events.weixinShare.title}>
  377. <table class="table">
  378. <tr>
  379. <td>标题</td>
  380. <td><{$eventsAndPrize_Data.events.weixinShare.title}></td>
  381. </tr>
  382. <tr>
  383. <td>内容</td>
  384. <td><{$eventsAndPrize_Data.events.weixinShare.content}></td>
  385. </tr>
  386. <tr>
  387. <td>图片</td>
  388. <td><{if $eventsAndPrize_Data.events.weixinShare.imgUrl}><img src="<{$eventsAndPrize_Data.events.weixinShare.imgUrl}>" style="100"/><{/if}></td>
  389. </tr>
  390. </table>
  391. <{else}>
  392. -
  393. <{/if}>
  394. </td>
  395. </tr>
  396. <{*/微信分享设置*}>
  397. <tr>
  398. <td>操作: </td>
  399. <td>
  400. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=UpEventPage&events_id=<{$eventsAndPrize_Data.events.id}>">[修改活动信息]</a>&nbsp;&nbsp;&nbsp;
  401. <{*转盘*}>
  402. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_TURNTABLE'}>
  403. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=AddPrizePage&events_id=<{$eventsAndPrize_Data.events.id}>">[添加奖项]</a>&nbsp;&nbsp;&nbsp;
  404. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=LotteryDataListPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看中奖详情]</a>&nbsp;&nbsp;&nbsp;
  405. uid:<input type="text" id="test_uid" style="width:50px;" name="test_uid">
  406. <input type="hidden" id="test_events_id" name="test_events_id" value="<{$eventsAndPrize_Data.events.id}>">
  407. <a href="javascript:;" id="test_want_to_draw">测试抽奖</a><{"Y-m-d H:i:s"|date}>
  408. <{/if}>
  409. <{*刮刮卡*}>
  410. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_SCRATCH'}>
  411. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=AddPrizePage&events_id=<{$eventsAndPrize_Data.events.id}>">[添加奖项]</a>&nbsp;&nbsp;&nbsp;
  412. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=LotteryDataListPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看中奖详情]</a>&nbsp;&nbsp;&nbsp;
  413. uid:<input type="text" id="test_uid" style="width:50px;" name="test_uid">
  414. <input type="hidden" id="test_events_id" name="test_events_id" value="<{$eventsAndPrize_Data.events.id}>">
  415. <a href="javascript:;" id="test_want_to_draw">测试抽奖</a><{"Y-m-d H:i:s"|date}>
  416. <{/if}>
  417. <{*收集字母*}>
  418. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_LETTERS'}>
  419. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=AddPrizePage&events_id=<{$eventsAndPrize_Data.events.id}>">[添加奖项]</a>&nbsp;&nbsp;&nbsp;
  420. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=LotteryDataListPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看中奖详情]</a>&nbsp;&nbsp;&nbsp;
  421. <{if !$lettersData}>
  422. <br>
  423. <input type="text" name="letter" id="letterText" style="width:150px;" >
  424. <a id="create_letters" events_id="<{$eventsAndPrize_Data.events.id}>" href="javascript:;">[创建]</a> &nbsp;&nbsp;&nbsp;注意:'@分割' 最多10个字符
  425. <br>
  426. <{else}>
  427. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=LettersDataPage&events_id=<{$eventsAndPrize_Data.events.id}>" >[查看字母详情]</a>&nbsp;&nbsp;&nbsp;
  428. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=LotteryEventsUserLettersPage&events_id=<{$eventsAndPrize_Data.events.id}>" >[用户收集字母列表]</a>&nbsp;&nbsp;&nbsp;
  429. <{/if}>
  430. <{/if}>
  431. <{*试用*}>
  432. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_TRY'}>
  433. <a href="<{$web_cfg.domain}>/?c=admin_lottery&a=EventFormDataPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看申请信息]</a>&nbsp;&nbsp;&nbsp;
  434. <{/if}>
  435. <{*邀请函*}>
  436. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_INVITATION'}>
  437. <a href="<{$web_cfg.domain}>/?c=admin_lottery&a=EventFormDataPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看用户提交信息]</a>&nbsp;&nbsp;&nbsp;
  438. <{/if}>
  439. <{*领码*}>
  440. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_CODE'}>
  441. <a href="<{$web_cfg.domain}>/?c=admin_lottery&a=EventFormDataPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看用户领取记录]</a>&nbsp;&nbsp;&nbsp;
  442. <{/if}>
  443. <{*投票*}>
  444. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_VOTE'}>
  445. <{if $voteData}>
  446. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=EventVotePage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看投票详情]</a>&nbsp;&nbsp;
  447. <{else}>
  448. <br>=========================<br>
  449. <span style="display: none;">标题:<input type="text" name="vote_title" id="vote_title" style="width:250px;" value="null"><br></span>
  450. <{foreach from=$eventsVoteType key=index item=vote}>
  451. <{$vote.desc}>:<input name="vote_type" type="radio" value="<{$index}>" > &nbsp;&nbsp;&nbsp;
  452. <{/foreach}>
  453. <br>
  454. 投票项[数量]:<input type="text" name="vote_num" id="vote_num" style="width:50px;" ><br>
  455. <a id="create_vote" events_id="<{$eventsAndPrize_Data.events.id}>" href="javascript:;" >[创建]</a>
  456. <br>=========================<br>
  457. <{/if}>
  458. <{/if}>
  459. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=EventLogPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看日志]</a>&nbsp;&nbsp;&nbsp;
  460. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=ShowUserParticipateLogPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看参与用户]</a>&nbsp;&nbsp;&nbsp;
  461. </td>
  462. </tr>
  463. </table>
  464. <div class='block_10'></div>
  465. <{*转盘 刮挂卡 收集字母*}>
  466. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_TURNTABLE' ||
  467. $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_SCRATCH' ||
  468. $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_LETTERS'
  469. }>
  470. <div id="add_num_div" style="display:none;">
  471. <form id="myform" method="post" action="<{$web_cfg.domain}>?c=admin_Lottery&a=AddPrizeNum" enctype="multipart/form-data" >
  472. <div class="containerBox">
  473. <div class="closed"><a href="javascript:;">关闭</a></div>
  474. 奖项名称:<span id="add_num_prize_name_span"></span><br><br>
  475. <input id="add_num_prize_id_hidden" type="hidden" value="" name="prize_id">
  476. <input type="hidden" value="<{$eventsAndPrize_Data.events.id}>" name="events_id">
  477. <span style="display:none;" id="prize_num_span">
  478. 添加数量:&nbsp;&nbsp;<input type="text" name="prize_num" id="prize_num_input" size="5px"/>
  479. </span>
  480. <span style="display:none;" id="virtual_data_span">
  481. 虚拟数据:<br><br><textarea name="virtual_data" cols="47" rows="10" id="virtual_data_input"/></textarea>
  482. </span>
  483. <br><br>
  484. <a href="javascript:;" class="btn btn-primary" id="ti_sut" style="padding:1px;">提交</a>
  485. </div>
  486. </form>
  487. </div>
  488. <{/if}>
  489. <div class='block_10'></div>
  490. <{*转盘 刮挂卡 收集字母*}>
  491. <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_TURNTABLE' ||
  492. $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_SCRATCH' ||
  493. $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_LETTERS'
  494. }>
  495. <table class="table table-condensed table-hover">
  496. <tr>
  497. <th>奖项名称</th>
  498. <th>数量</th>
  499. <th>中奖时间段(时)</th>
  500. <th>(当天)下次中奖时间</th>
  501. <th>状态</th>
  502. <th>操作</th>
  503. </tr>
  504. <{foreach from=$eventsAndPrize_Data.prize item=prize}>
  505. <tr>
  506. <td>
  507. <{$prize.prize_name}>
  508. <{if $prizeType[$prize.type].kw=='TYPE_ENTITY'}>
  509. <span style="color:#00EC00;">
  510. <{else}>
  511. <span style="color:#5151A2;">
  512. <{/if}>
  513. [<{$prizeType[$prize.type].desc}>]</span>
  514. </td>
  515. <td>
  516. 【总数:<{$prize.prize_num}> 抽中:<{$prize.prize_winning_num}> 剩余:<{$prize.prize_num-$prize.prize_winning_num}>】 &nbsp;&nbsp;&nbsp;
  517. <a href="javascript:;" class="add_num" prize_type="<{$prize.type}>" prize_name="<{$prize.prize_name}>" pirze_id="<{$prize.id}>" prize_num="<{$prize.prize_num}>" prize_winning_num="<{$prize.prize_winning_num}>" >[添加]</a> &nbsp;&nbsp;&nbsp;
  518. &nbsp;&nbsp;&nbsp;
  519. <{if $prizeType[$prize.type].kw=='TYPE_ENTITY'}>
  520. <a href="<{$web_cfg.domain}>?c=admin_Lottery&a=VirtualDataListPage&prize_id=<{$prize.id}>">[查看]</a>
  521. <{else}>
  522. <input type="text" name="num" id="minus_num_<{$prize.id}>" style="width:50px;"/> <a href="javascript:;" pirze_id="<{$prize.id}>" s_num="<{$prize.prize_num-$prize.prize_winning_num}>" class="minus_num">[减少]</a>
  523. <{/if}>
  524. </td>
  525. <td><{$prize.begin_hour}> - <{$prize.end_hour}> </td>
  526. <td><{$prize.nextTime|date_format:'%Y-%m-%d %H:%M:%S'}></td>
  527. <td>
  528. <{if $prizeDisplayStatus[$prize.display].kw=='PRIZE_DISPLAY_HIDE'}>
  529. <span style="color:red;">
  530. <{else}>
  531. <span style="color:#00EC00;">
  532. <{/if}>
  533. <{$prizeDisplayStatus[$prize.display].desc}>
  534. </span>
  535. </td>
  536. <td>
  537. <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=UpPrizePage&prize_id=<{$prize.id}>">[编辑]</a></td>
  538. </tr>
  539. <{/foreach}>
  540. </table>
  541. <{/if}>
  542. </div>
  543. <br>
  544. <script type="text/javascript">
  545. KISSY.use("node, io, json,jquery", function(S, Node, IO, JSON, jQuery){
  546. // 创建投票
  547. $('#create_vote').click(function(){
  548. var events_id = $(this).attr('events_id');
  549. var vote_num = $('#vote_num').val();
  550. var vote_type = $("input[name='vote_type']:checked").val();
  551. if(!vote_type){
  552. alert('请选择投票活动类型');
  553. return ;
  554. }
  555. var vote_title = $('#vote_title').val();
  556. $.post( "<{$web_cfg.domain}>/?c=admin_Lottery&a=CreateVote"
  557. , {'events_id':events_id,'vote_num':vote_num,'vote_type':vote_type,'vote_title':vote_title}
  558. , function (msg) {
  559. alert(msg.msg);
  560. location=location;
  561. }
  562. , 'json'
  563. );
  564. });
  565. // 创建收集字母
  566. var createLettersCk = true;
  567. $('#create_letters').click(function(){
  568. var events_id = $(this).attr('events_id');
  569. var lettersText = $('#letterText').val();
  570. if(createLettersCk){
  571. createLettersCk = false;
  572. $.post( "<{$web_cfg.domain}>/?c=admin_Lottery&a=CreateLetters"
  573. , {'events_id':events_id,'lettersText':lettersText}
  574. , function (msg) {
  575. alert(msg.msg);
  576. createLettersCk = true;
  577. location=location;
  578. }
  579. , 'json'
  580. );
  581. }
  582. });
  583. // 测试 抽奖
  584. $("#test_want_to_draw").click(function () {
  585. var uid = $('#test_uid').val();
  586. var events_id = $('#test_events_id').val();
  587. $.post( "<{$web_cfg.domain}>/?c=admin_Lottery&a=TestWantToDraw"
  588. , {'uid':uid,'events_id':events_id}
  589. , function (msg) {
  590. alert(msg.msg);
  591. location=location;
  592. }
  593. , 'json'
  594. );
  595. });
  596. $(".add_num").click(function () {
  597. var prize_name = $(this).attr('prize_name');
  598. var pirze_id = $(this).attr('pirze_id');
  599. var pirze_num = $(this).attr('pirze_num');
  600. var prize_winning_num = $(this).attr('prize_winning_num');
  601. var pirze_type = $(this).attr('prize_type');
  602. $("#add_num_prize_name_span").html(prize_name);
  603. $('#add_num_prize_id_hidden').val(pirze_id);
  604. $('#prize_num_input').val('');
  605. $('#virtual_data_input').val('');
  606. if(pirze_type == 1){
  607. // 实物
  608. $('#prize_num_span').show();
  609. $('#virtual_data_span').hide();
  610. }else{
  611. // 虚拟
  612. $('#prize_num_span').hide();
  613. $('#virtual_data_span').show();
  614. }
  615. $('#add_num_div').show();
  616. });
  617. $('.closed a').live('click', function () {
  618. $('#add_num_div').hide();
  619. });
  620. $('.minus_num').click(function(){
  621. var pirze_id = $(this).attr('pirze_id');
  622. var s_num = $(this).attr('s_num');
  623. var num = $('#minus_num_'+pirze_id).val();
  624. if(s_num<num||num==''||num<=0){
  625. alert('填写错误');
  626. return ;
  627. }
  628. $(this).hide();
  629. $.post( "<{$web_cfg.domain}>/?c=admin_Lottery&a=MinusPrizeNum"
  630. , {'pirze_id':pirze_id,'num':num}
  631. , function (msg) {
  632. alert(msg.msg);
  633. location=location;
  634. }
  635. , 'json'
  636. );
  637. });
  638. $('#ti_sut').click(function(){
  639. var prize_num = $("#prize_num_input").val();
  640. var virtual_data = $('#virtual_data_input').val();
  641. var prize_id = $('#add_num_prize_id_hidden').val();
  642. if(virtual_data=='' && prize_num==''){
  643. alert('请填写完整的参数');
  644. return ;
  645. }
  646. if(prize_id==''){
  647. alert('请填写完整的参数');
  648. return ;
  649. }
  650. $("#myform").submit();
  651. });
  652. });
  653. </script>
  654. <{include file="admin/bottom.html"}>