123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724 |
- <{include file="admin/header.html"}><{include file="admin/nav.html"}>
- <style>
- <!--
- .container, .container5 {
- margin: 0 auto;
- padding-top: 0px;
- padding-left:20px;
- padding-right:20px;
- }
- .containerBox {
- border-radius: 5px;
- box-shadow: 0 2px 2px rgba(0,0,0,0.1);
- moz-border-radius: 5px;
- moz-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
- padding: 14px 22px 20px 20px;
- webkit-border-radius: 5px;
- webkit-box-shadow: 0 2px 2px rgba(0,0,0,0.1);
- background-color: #f8f8f8;
- border: 1px solid #b8b8b8;
- padding:15px 20px 20px 20px;
- margin-top:10px;
- }
- input[type="text"] {
- background-color: #fff;
- border: 1px solid #d3d3d3;
- color: #666;
- max-width: 480px;
- padding: 2px 8px;
- width: 480px;
- display: inline-block;
- }
- .fileUpload {
- display:none!important;
- }
- .container label, .container5 label {
- cursor: default;
- padding-bottom: 4px;
- padding-top: 10px;
- display: block;
- }
- .upload-tip {
- color: #666;
- font-size: 12px;
- margin-top: 2px;
- float: right;
- cursor: default;
- line-height: 1.5;
- }
- textarea[name="keywords"] {
- width: 100%;
- height: 80px;
- outline: 0;
- overflow: auto;
- vertical-align: top;
- }
- .desctextarea{
- width: 480px;
- height: 50px;
- outline: 0;
- overflow: auto;
- vertical-align: top;
- padding: 2px 8px;
- background-color: #fff;
- border: 1px solid #d3d3d3;
- }
- .sub-add-btn, .sub-add-btn-top {
- line-height: 30px;
- color: red;
- border: 2px dotted #b8b8b8;
- border-radius: 3px;
- -webkit-border-radius: 3px;
- -moz-border-radius: 3px;
- display: block;
- margin-top: 10px;
- text-align: center;
- background-color: #f8f8f8;
- }
- a:visited, a:link {
- text-decoration: none;
- }
- a:hover {
- text-decoration: underline;
- }
- #hiddenBox {
- display:none;
- }
- .msg-btn {
- padding: 12px 0 20px;
- text-align: center;
- font-size: 14px;
- }
- a.btnGreen:link {
- text-decoration: none;
- margin: 0 20px;
- text-align: center;
- overflow: visible;
- border-radius: 3px;
- -moz-border-radius: 3px;
- -webkit-border-radius: 3px;
- border: 1px solid #3d810c;
- padding: 5px 20px;
- cursor: pointer;
- display: inline-block;
- text-align: center;
- overflow: visible;
- border-radius: 3px;
- -moz-border-radius: 3px;
- -webkit-border-radius: 3px;
- color: #fff;
- border: 1px solid #3d810c;
- background-color: #5aaa4b;
- background-image: -moz-linear-gradient(top,#60b452 0,#56a447 100%);
- background-image: -webkit-gradient(linear,0 0,0 100%,from(#60b452),to(#56a447));
- background-image: -webkit-linear-gradient(top,#60b452 0,#56a447 100%);
- background-image: -o-linear-gradient(top,#60b452 0,#56a447 100%);
- background-image: linear-gradient(to bottom,#60b452 0,#56a447 100%);
- }
- a.btnGreen:hover {
- background-color: #53a046;
- background-image: -moz-linear-gradient(top,#5aab4d 0,#4f9841 100%);
- background-image: -webkit-gradient(linear,0 0,0 100%,from(#5aab4d),to(#4f9841));
- background-image: -webkit-linear-gradient(top,#5aab4d 0,#4f9841 100%);
- background-image: -o-linear-gradient(top,#5aab4d 0,#4f9841 100%);
- background-image: linear-gradient(to bottom,#5aab4d 0,#4f9841 100%);
- color: #fff;
- color: #fff;
- box-shadow: 0 1px 1px #aaa;
- -moz-box-shadow: 0 1px 1px #aaa;
- -webkit-box-shadow: 0 1px 1px #aaa;
- }
- .imgPreview {
- display:none;
- }
- .b {width:320px; height:160px;}
- .s {width:100px; height:100px;}
- .closed {
- float: right;
- position: relative;
- }
- .closed a {color:red;}
- .closed a:hover {color:blue;}
- .acset {margin:2px;}
- .acset span {width:100px;display:inline-block;text-align:right;}
- -->
- </style>
- <div class="container">
- <table class="table">
- <tr>
- <td>活动ID:</td>
- <td><{$eventsAndPrize_Data.events.id}>
- <br>---------------------------------------------------------------------------------<br>
- <a href="<{$thisurl}>" target="_blank">[ 微信地址 ]</a> : <{$thisurl}><br>
-
- [ Mini地址 ] : <{$thisAppUrl}><br>
-
- </td>
- </tr>
- <tr>
- <td>活动名称:</td>
- <td><{$eventsAndPrize_Data.events.events_name}></td>
- </tr>
- <tr>
- <td>所属活动类型:</td>
- <td><span>
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_NULL'}>
- [<span style="color:red;"><{$eventsType[$eventsAndPrize_Data.events.type].desc }></span>]
- <{else}>
- [<span style="color:#00EC00;"><{$eventsType[$eventsAndPrize_Data.events.type].desc }></span>]
- <{/if}>
- </span>
- </td>
- </tr>
- <tr>
- <td>开始时间:</td>
- <td><{$eventsAndPrize_Data.events.begin_time|date_format:'%Y-%m-%d %H:%M:%S'}></td>
- </tr>
- <tr>
- <td>结束时间:</td>
- <td><{$eventsAndPrize_Data.events.end_time|date_format:'%Y-%m-%d %H:%M:%S'}></td>
- </tr>
-
- <tr>
- <td>奖品领取结束时间:</td>
- <td>
- <{if $eventsAndPrize_Data.events.end_time_receive_prizes}>
- <{$eventsAndPrize_Data.events.end_time_receive_prizes|date_format:'%Y-%m-%d %H:%M:%S'}>
- <{else}>
- 未填写
- <{/if}>
- </td>
- </tr>
-
-
- <tr>
- <td>活动显示状态:</td>
- <td><{if $eventsDisplayStatus[$eventsAndPrize_Data.events.display].kw == 'EVENT_DISPLAY_SHOW'}>
- [<span style="color:#00EC00;"><{$eventsDisplayStatus[$eventsAndPrize_Data.events.display].desc }></span>]
- <{else}>
- [<span style="color:red;"><{$eventsDisplayStatus[$eventsAndPrize_Data.events.display].desc }></span>]
- <{/if}>
- </td>
- </tr>
-
- <tr>
- <td>活动发货状态:</td>
- <td><{if $deliveryType[$eventsAndPrize_Data.events.delivery].kw == 'DELIVERY_FALSE'}>
- [<span style="color:#00EC00;"><{$deliveryType[$eventsAndPrize_Data.events.delivery].desc }></span>]
- <{else}>
- [<span style="color:red;"><{$deliveryType[$eventsAndPrize_Data.events.delivery].desc }></span>]
- <{/if}>
- </td>
- </tr>
-
- <tr>
- <td>活动授权参与:</td>
- <td><{if $eventsAuthorizeStatus[$eventsAndPrize_Data.events.authorize].kw == 'EVENT_AUTHORIZE_TRUE'}>
- [<span style="color:#00EC00;"><{$eventsAuthorizeStatus[$eventsAndPrize_Data.events.authorize].desc }></span>]
- <{else}>
- [<span style="color:red;"><{$eventsAuthorizeStatus[$eventsAndPrize_Data.events.authorize].desc }></span>]
- <{/if}>
- </td>
- </tr>
- <tr>
- <td>活动状态:</td>
- <td>
- <{if time() < $eventsAndPrize_Data.events.begin_time}>
- [<span style="color:#5151A2;">未开始</span>]
- <{/if}>
- <{if time() > $eventsAndPrize_Data.events.begin_time && time() < $eventsAndPrize_Data.events.end_time}>
- [<span style="color:#00EC00;">进行中</span>]
- <{/if}>
- <{if time() > $eventsAndPrize_Data.events.end_time}>
- [<span style="color:red;">结束</span>]
- <{/if}>
- </td>
- </tr>
- <tr>
- <td>头图: <br>[580*310px] </td>
- <td><img src="<{$eventsAndPrize_Data.events.img_url}>"></img></td>
- </tr>
- <tr>
- <td>活动提示: </td>
- <td><{$eventsAndPrize_Data.events.events_tips}></td>
- </tr>
- <tr>
- <td>活动操作提示语: </td>
- <td><{if $eventsAndPrize_Data.events.operationt_tips}><{$eventsAndPrize_Data.events.operationt_tips}><{else}>未填写<{/if}></td>
- </tr>
- <tr>
- <td>活动规则: </td>
- <td><{$eventsAndPrize_Data.events.events_rules}></td>
- </tr>
-
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_CODE' }>
- <tr style="display: none;">
- <td>二维码输出</td>
- <td><{if $eventsTwoDimensionalCodeType[$eventsAndPrize_Data.events.two_dimensional_code].kw == 'TWO_DIMENSIONAL_CODE_TRUE'}>
- [<span style="color:#00EC00;"><{$eventsTwoDimensionalCodeType[$eventsAndPrize_Data.events.two_dimensional_code].desc }></span>]
- <{else}>
- [<span style="color:red;"><{$eventsTwoDimensionalCodeType[$eventsAndPrize_Data.events.two_dimensional_code].desc }></span>]
- <{/if}>
- </td>
- </tr>
- <tr>
- <td>数量:</td>
- <td>总数:[<{$codeDataNum}>] 剩余:[<{$codeDataNum-$useCodeDataNum}>] 已发放:[<{$useCodeDataNum}>]
- [<a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=EventCodePage&events_id=<{$eventsAndPrize_Data.events.id}>&showAddCode=true">添加码</a>]</td>
- </tr>
-
- <tr>
- <td>券图片:<br>我的礼品中显示的图片</td>
- <td>
- <{if $eventsAndPrize_Data.events.code_img_url}>
- <img src="<{$eventsAndPrize_Data.events.code_img_url}>"></img>
- <{else}>
- 未上传
- <{/if}>
- </td>
- </tr>
-
- <tr>
- <td>券名称:</td>
- <td>
- <{if $eventsAndPrize_Data.events.code_name}>
- <{$eventsAndPrize_Data.events.code_name}>
- <{else}>
- 未填写
- <{/if}>
- </td>
- </tr>
-
- <tr>
- <td>允许每天用户参与次数: </td>
- <td><{if $eventsAndPrize_Data.events.participation_user_num!=0}><{$eventsAndPrize_Data.events.participation_user_num}><{else}>无限制<{/if}></td>
- </tr>
- <tr>
- <td>允许每天IP参与次数: </td>
- <td><{if $eventsAndPrize_Data.events.participation_ip_num!=0}><{$eventsAndPrize_Data.events.participation_ip_num}><{else}>无限制<{/if}></td>
- </tr>
- <tr>
- <td>允许用户获奖次数: </td>
- <td><{if $eventsAndPrize_Data.events.winning_user_num!=0}><{$eventsAndPrize_Data.events.winning_user_num}><{else}>无限制<{/if}></td>
- </tr>
- <tr>
- <td>允许用户参与次数: </td>
- <td><{if $eventsAndPrize_Data.events.participation_user_all_num!=0}><{$eventsAndPrize_Data.events.participation_user_all_num}><{else}>无限制<{/if}></td>
- </tr>
- <{/if}>
-
-
- <{*转盘 刮挂卡 收集字母*}>
- <{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'}>
- <tr>
- <td>允许每天用户参与次数: </td>
- <td><{if $eventsAndPrize_Data.events.participation_user_num!=0}><{$eventsAndPrize_Data.events.participation_user_num}><{else}>无限制<{/if}></td>
- </tr>
- <tr>
- <td>允许每天IP参与次数: </td>
- <td><{if $eventsAndPrize_Data.events.participation_ip_num!=0}><{$eventsAndPrize_Data.events.participation_ip_num}><{else}>无限制<{/if}></td>
- </tr>
- <tr>
- <td>允许用户获奖次数: </td>
- <td><{if $eventsAndPrize_Data.events.winning_user_num!=0}><{$eventsAndPrize_Data.events.winning_user_num}><{else}>无限制<{/if}></td>
- </tr>
- <tr>
- <td>允许用户参与次数: </td>
- <td><{if $eventsAndPrize_Data.events.participation_user_all_num!=0}><{$eventsAndPrize_Data.events.participation_user_all_num}><{else}>无限制<{/if}></td>
- </tr>
- <{/if}>
-
- <{*试用*}>
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_TRY'}>
-
- <{/if}>
-
- <{*邀请函*}>
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_INVITATION'}>
- <tr>
- <td>白名单:</td>
- <td><{if $eventsAndPrize_Data.events.invitation_white_list}>
- <{"@"|join:$eventsAndPrize_Data.events.invitation_white_list}>
- <{else}>无限制<{/if}></td>
- </tr>
- <tr>
- <td>最大上线参与人数:</td>
- <td><{if $eventsAndPrize_Data.events.participation_user_max_num}>
- <{$eventsAndPrize_Data.events.participation_user_max_num}>
- <{else}>无限制<{/if}></td>
- </tr>
- <{/if}>
-
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_OTHER'}>
- <tr>
- <td>跳转地址:</td>
- <td><{if $eventsAndPrize_Data.events.other_url }><{$eventsAndPrize_Data.events.other_url}><{else}>未设置<{/if}></td>
- </tr>
- <{/if}>
-
-
- <{*投票*}>
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_VOTE'}>
- <tr>
- <td>允许每天用户参与次数: </td>
- <td><{if $eventsAndPrize_Data.events.participation_user_num!=0}><{$eventsAndPrize_Data.events.participation_user_num}><{else}>无限制<{/if}></td>
- </tr>
- <tr>
- <td>允许每天IP参与次数: </td>
- <td><{if $eventsAndPrize_Data.events.participation_ip_num!=0}><{$eventsAndPrize_Data.events.participation_ip_num}><{else}>无限制<{/if}></td>
- </tr>
- <tr>
- <td>允许用户参与次数: </td>
- <td><{if $eventsAndPrize_Data.events.participation_user_all_num!=0}><{$eventsAndPrize_Data.events.participation_user_all_num}><{else}>无限制<{/if}></td>
- </tr>
- <{/if}>
-
- <{*自定义表单*}>
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_TRY'
- || $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_INVITATION'
- || $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_CODE'
- }>
- <tr>
- <td>自定义表单: </td>
- <td>
- <{foreach from=$eventsAndPrize_Data.events.forms item=form name=forms}>
- <{if $smarty.foreach.forms.iteration != 1}>,<{/if}>
- <{$form.name}>
- <{/foreach}>
- </td>
- </tr>
- <{/if}>
- <{*/自定义表单*}>
-
- <{*微信分享设置*}>
- <tr>
- <td>微信分享设置: </td>
- <td>
- <{if $eventsAndPrize_Data.events.weixinShare.title}>
- <table class="table">
- <tr>
- <td>标题</td>
- <td><{$eventsAndPrize_Data.events.weixinShare.title}></td>
- </tr>
- <tr>
- <td>内容</td>
- <td><{$eventsAndPrize_Data.events.weixinShare.content}></td>
- </tr>
- <tr>
- <td>图片</td>
- <td><{if $eventsAndPrize_Data.events.weixinShare.imgUrl}><img src="<{$eventsAndPrize_Data.events.weixinShare.imgUrl}>" style="100"/><{/if}></td>
- </tr>
- </table>
- <{else}>
- -
- <{/if}>
- </td>
- </tr>
- <{*/微信分享设置*}>
-
- <tr>
- <td>操作: </td>
- <td>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=UpEventPage&events_id=<{$eventsAndPrize_Data.events.id}>">[修改活动信息]</a>
-
- <{*转盘*}>
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_TURNTABLE'}>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=AddPrizePage&events_id=<{$eventsAndPrize_Data.events.id}>">[添加奖项]</a>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=LotteryDataListPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看中奖详情]</a>
- 『
- uid:<input type="text" id="test_uid" style="width:50px;" name="test_uid">
- <input type="hidden" id="test_events_id" name="test_events_id" value="<{$eventsAndPrize_Data.events.id}>">
- <a href="javascript:;" id="test_want_to_draw">测试抽奖</a><{"Y-m-d H:i:s"|date}>
- 』
- <{/if}>
-
- <{*刮刮卡*}>
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_SCRATCH'}>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=AddPrizePage&events_id=<{$eventsAndPrize_Data.events.id}>">[添加奖项]</a>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=LotteryDataListPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看中奖详情]</a>
- 『
- uid:<input type="text" id="test_uid" style="width:50px;" name="test_uid">
- <input type="hidden" id="test_events_id" name="test_events_id" value="<{$eventsAndPrize_Data.events.id}>">
- <a href="javascript:;" id="test_want_to_draw">测试抽奖</a><{"Y-m-d H:i:s"|date}>
- 』
- <{/if}>
-
- <{*收集字母*}>
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_LETTERS'}>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=AddPrizePage&events_id=<{$eventsAndPrize_Data.events.id}>">[添加奖项]</a>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=LotteryDataListPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看中奖详情]</a>
- <{if !$lettersData}>
- <br>
- <input type="text" name="letter" id="letterText" style="width:150px;" >
- <a id="create_letters" events_id="<{$eventsAndPrize_Data.events.id}>" href="javascript:;">[创建]</a> 注意:'@分割' 最多10个字符
- <br>
- <{else}>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=LettersDataPage&events_id=<{$eventsAndPrize_Data.events.id}>" >[查看字母详情]</a>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=LotteryEventsUserLettersPage&events_id=<{$eventsAndPrize_Data.events.id}>" >[用户收集字母列表]</a>
- <{/if}>
- <{/if}>
-
- <{*试用*}>
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_TRY'}>
- <a href="<{$web_cfg.domain}>/?c=admin_lottery&a=EventFormDataPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看申请信息]</a>
- <{/if}>
-
- <{*邀请函*}>
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_INVITATION'}>
- <a href="<{$web_cfg.domain}>/?c=admin_lottery&a=EventFormDataPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看用户提交信息]</a>
- <{/if}>
-
-
- <{*领码*}>
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_CODE'}>
- <a href="<{$web_cfg.domain}>/?c=admin_lottery&a=EventFormDataPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看用户领取记录]</a>
- <{/if}>
-
-
- <{*投票*}>
- <{if $eventsType[$eventsAndPrize_Data.events.type].kw == 'TYPE_EVENTS_VOTE'}>
- <{if $voteData}>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=EventVotePage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看投票详情]</a>
- <{else}>
- <br>=========================<br>
- <span style="display: none;">标题:<input type="text" name="vote_title" id="vote_title" style="width:250px;" value="null"><br></span>
- <{foreach from=$eventsVoteType key=index item=vote}>
- <{$vote.desc}>:<input name="vote_type" type="radio" value="<{$index}>" >
- <{/foreach}>
- <br>
- 投票项[数量]:<input type="text" name="vote_num" id="vote_num" style="width:50px;" ><br>
- <a id="create_vote" events_id="<{$eventsAndPrize_Data.events.id}>" href="javascript:;" >[创建]</a>
- <br>=========================<br>
- <{/if}>
-
- <{/if}>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=EventLogPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看日志]</a>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=ShowUserParticipateLogPage&events_id=<{$eventsAndPrize_Data.events.id}>">[查看参与用户]</a>
- </td>
- </tr>
- </table>
- <div class='block_10'></div>
- <{*转盘 刮挂卡 收集字母*}>
- <{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'
- }>
- <div id="add_num_div" style="display:none;">
- <form id="myform" method="post" action="<{$web_cfg.domain}>?c=admin_Lottery&a=AddPrizeNum" enctype="multipart/form-data" >
- <div class="containerBox">
- <div class="closed"><a href="javascript:;">关闭</a></div>
- 奖项名称:<span id="add_num_prize_name_span"></span><br><br>
- <input id="add_num_prize_id_hidden" type="hidden" value="" name="prize_id">
- <input type="hidden" value="<{$eventsAndPrize_Data.events.id}>" name="events_id">
-
- <span style="display:none;" id="prize_num_span">
- 添加数量: <input type="text" name="prize_num" id="prize_num_input" size="5px"/>
- </span>
- <span style="display:none;" id="virtual_data_span">
- 虚拟数据:<br><br><textarea name="virtual_data" cols="47" rows="10" id="virtual_data_input"/></textarea>
- </span>
- <br><br>
- <a href="javascript:;" class="btn btn-primary" id="ti_sut" style="padding:1px;">提交</a>
- </div>
- </form>
- </div>
- <{/if}>
-
-
-
- <div class='block_10'></div>
- <{*转盘 刮挂卡 收集字母*}>
- <{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'
- }>
- <table class="table table-condensed table-hover">
- <tr>
- <th>奖项名称</th>
- <th>数量</th>
- <th>中奖时间段(时)</th>
- <th>(当天)下次中奖时间</th>
- <th>状态</th>
- <th>操作</th>
- </tr>
-
- <{foreach from=$eventsAndPrize_Data.prize item=prize}>
- <tr>
- <td>
- <{$prize.prize_name}>
- <{if $prizeType[$prize.type].kw=='TYPE_ENTITY'}>
- <span style="color:#00EC00;">
- <{else}>
- <span style="color:#5151A2;">
- <{/if}>
- [<{$prizeType[$prize.type].desc}>]</span>
- </td>
- <td>
- 【总数:<{$prize.prize_num}> 抽中:<{$prize.prize_winning_num}> 剩余:<{$prize.prize_num-$prize.prize_winning_num}>】
- <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>
-
- <{if $prizeType[$prize.type].kw=='TYPE_ENTITY'}>
- <a href="<{$web_cfg.domain}>?c=admin_Lottery&a=VirtualDataListPage&prize_id=<{$prize.id}>">[查看]</a>
- <{else}>
- <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>
- <{/if}>
- </td>
- <td><{$prize.begin_hour}> - <{$prize.end_hour}> </td>
- <td><{$prize.nextTime|date_format:'%Y-%m-%d %H:%M:%S'}></td>
- <td>
- <{if $prizeDisplayStatus[$prize.display].kw=='PRIZE_DISPLAY_HIDE'}>
- <span style="color:red;">
- <{else}>
- <span style="color:#00EC00;">
- <{/if}>
- <{$prizeDisplayStatus[$prize.display].desc}>
- </span>
- </td>
- <td>
- <a href="<{$web_cfg.domain}>/?c=admin_Lottery&a=UpPrizePage&prize_id=<{$prize.id}>">[编辑]</a></td>
- </tr>
- <{/foreach}>
- </table>
- <{/if}>
-
-
-
- </div>
- <br>
- <script type="text/javascript">
- KISSY.use("node, io, json,jquery", function(S, Node, IO, JSON, jQuery){
-
- // 创建投票
- $('#create_vote').click(function(){
- var events_id = $(this).attr('events_id');
- var vote_num = $('#vote_num').val();
- var vote_type = $("input[name='vote_type']:checked").val();
- if(!vote_type){
- alert('请选择投票活动类型');
- return ;
- }
- var vote_title = $('#vote_title').val();
- $.post( "<{$web_cfg.domain}>/?c=admin_Lottery&a=CreateVote"
- , {'events_id':events_id,'vote_num':vote_num,'vote_type':vote_type,'vote_title':vote_title}
- , function (msg) {
- alert(msg.msg);
- location=location;
- }
- , 'json'
- );
- });
-
- // 创建收集字母
- var createLettersCk = true;
- $('#create_letters').click(function(){
- var events_id = $(this).attr('events_id');
- var lettersText = $('#letterText').val();
- if(createLettersCk){
- createLettersCk = false;
- $.post( "<{$web_cfg.domain}>/?c=admin_Lottery&a=CreateLetters"
- , {'events_id':events_id,'lettersText':lettersText}
- , function (msg) {
- alert(msg.msg);
- createLettersCk = true;
- location=location;
- }
- , 'json'
- );
- }
- });
-
-
-
- // 测试 抽奖
- $("#test_want_to_draw").click(function () {
- var uid = $('#test_uid').val();
- var events_id = $('#test_events_id').val();
- $.post( "<{$web_cfg.domain}>/?c=admin_Lottery&a=TestWantToDraw"
- , {'uid':uid,'events_id':events_id}
- , function (msg) {
- alert(msg.msg);
- location=location;
- }
- , 'json'
- );
- });
-
-
- $(".add_num").click(function () {
- var prize_name = $(this).attr('prize_name');
- var pirze_id = $(this).attr('pirze_id');
- var pirze_num = $(this).attr('pirze_num');
- var prize_winning_num = $(this).attr('prize_winning_num');
- var pirze_type = $(this).attr('prize_type');
- $("#add_num_prize_name_span").html(prize_name);
- $('#add_num_prize_id_hidden').val(pirze_id);
-
- $('#prize_num_input').val('');
- $('#virtual_data_input').val('');
-
- if(pirze_type == 1){
- // 实物
- $('#prize_num_span').show();
- $('#virtual_data_span').hide();
-
- }else{
- // 虚拟
- $('#prize_num_span').hide();
- $('#virtual_data_span').show();
- }
- $('#add_num_div').show();
- });
-
- $('.closed a').live('click', function () {
- $('#add_num_div').hide();
- });
-
-
- $('.minus_num').click(function(){
- var pirze_id = $(this).attr('pirze_id');
- var s_num = $(this).attr('s_num');
- var num = $('#minus_num_'+pirze_id).val();
- if(s_num<num||num==''||num<=0){
- alert('填写错误');
- return ;
- }
- $(this).hide();
- $.post( "<{$web_cfg.domain}>/?c=admin_Lottery&a=MinusPrizeNum"
- , {'pirze_id':pirze_id,'num':num}
- , function (msg) {
- alert(msg.msg);
- location=location;
- }
- , 'json'
- );
-
- });
-
-
-
- $('#ti_sut').click(function(){
-
- var prize_num = $("#prize_num_input").val();
- var virtual_data = $('#virtual_data_input').val();
- var prize_id = $('#add_num_prize_id_hidden').val();
-
- if(virtual_data=='' && prize_num==''){
- alert('请填写完整的参数');
- return ;
- }
-
- if(prize_id==''){
- alert('请填写完整的参数');
- return ;
- }
-
- $("#myform").submit();
- });
-
-
- });
- </script>
- <{include file="admin/bottom.html"}>
|