<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('event_setting');?><?php include template('common/header'); ?><div id="setting_display">
<form name="setting_form" id="setting_form" method="post" autocomplete="off" action="plugin.php?id=xj_event:event_setting&amp;action=save&amp;tid=<?php echo $tid;?>" onsubmit="ajaxpost('setting', 'setting_display', 'setting_display', '');" enctype="multipart/form-data">
<input type="hidden" name="formhash" value="<?php echo $_G['formhash'];?>" />
<table width="600" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td><table width="600" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><h3 class="flb">活动设置</h3></td>
        <td width="30" align="right"><a href="javascript:;" 
class="flbc" onclick="hideWindow('setting');" title="关闭"></a></td>
      </tr>
    </table></td>
  </tr>
  <tr>
  	<td>
    <div style="border-bottom:1px #CCCCCC dashed; padding:10px;">
    作业投票:
    <input type="checkbox" name="openvote" id="openvote" class="pc" value="1" onclick="showvote();" <?php if($setting['vote']['openvote'] == 1) { ?>checked<?php } ?> />开启
    <div style="line-height:30px; margin-top:10px; <?php if($setting['vote']['openvote'] != 1) { ?>display:none;<?php } ?>" id="votesetting">
    投票时间:<input type="text" name="votestarttime" id="votestarttime" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="<?php echo $votestarttime;?>" tabindex="1" />~ <input type="text" name="voteendtime" id="voteendtime" class="px" onclick="showcalendar(event, this, true)" autocomplete="off" value="<?php echo $voteendtime;?>" tabindex="2" /> <br />
    限制方式:<input type="checkbox" name="ipcheck" id="ipcheck" class="pc" value="1" <?php if($setting['vote']['ipcheck'] == 1) { ?>checked<?php } ?>/>IP验证 <input type="checkbox" name="usercheck" id="usercheck" class="pc" value="1" <?php if($setting['vote']['usercheck'] == 1) { ?>checked<?php } ?>/>会员验证 每 <input type="text" name="votecheckhour" value="<?php echo $votecheckhour;?>" style="width:30px;" /> 小时，可以投 <input type="text" name="votechecknumber" style="width:30px;" value="<?php echo $votechecknumber;?>" /> 票
    </div>
    </div>
    <div style="border-bottom:1px #CCCCCC dashed; padding:10px;">
    报名设置:<input name="noverify" type="checkbox" class="pc" id="noverify" value="1"<?php if($setting['noverify'] == 1) { ?>checked<?php } ?>/> 
    报名不审核 
    <input name="canceljoin" type="checkbox" class="pc" id="canceljoin" value="1" <?php if($setting['canceljoin'] == 1) { ?>checked<?php } ?>/> 审核通过用户可以取消报名
    <input name="onlyappbymejoin" type="checkbox" class="pc" id="onlyappbymejoin" value="1" <?php if($setting['onlyappbymejoin'] == 1) { ?>checked<?php } ?>/>  仅限APP客户端报名
    <input name="onlyvip" type="checkbox" class="pc" id="onlyvip" value="1" <?php if($setting['onlyvip'] == 1) { ?>checked<?php } ?>/>  仅VIP用户组报名  <br />
    <input name="onlysubscribeweixin" type="checkbox" class="pc" id="onlysubscribeweixin" value="1" <?php if($setting['onlysubscribeweixin'] == 1) { ?>checked<?php } ?>/>  仅关注微信用户
    </div>
    <div style="padding:10px;">
    邀请报名:
    <input type="checkbox" name="invitationcodeopen" id="invitationcodeopen" class="pc" value="1" <?php if($setting['invitation']['open'] == 1) { ?>checked<?php } ?> />开启
    邀请码:<input type="text" name="invitationcode" style="width:100px;" value="<?php echo $setting['invitation']['code'];?>" />
    </div>
    
    <div style="padding:10px;">
    活动微信群二维码:<input type="file" value="" name="group_qrcode" id="group_qrcode" tabindex="1" class="pf" style="height:26px;" /><input type="hidden" name="group_qrcode" value="<?php echo $setting['group_qrcode'];?>" />
    显示在手机端报名成功后[<a href="<?php echo $setting['group_qrcode'];?>" target="_blank">查看</a>]
    </div>
    
    
    <?php if($signed_enable) { ?>
    <div style="padding:10px; border-top:1px #CCCCCC dashed;">
    活动签到:
    <input type="checkbox" name="signed_open" id="signed_open" class="pc" value="1" <?php if($setting['signed']['open'] == 1) { ?>checked<?php } ?> />开启
    <a href="plugin.php?id=xj_event:qrcode_signed&amp;tid=<?php echo $tid;?>" target="_blank" style="padding:5px 15px; background-color:#093; color:#FFF;-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius:3px; ">签到二维码</a> 用微信扫描二维码签到
    </div>
    <?php } ?>
    
    <div style="padding:10px; border-top:1px #CCCCCC dashed;">
    大转盘抽奖:
    <input type="checkbox" name="zhuanpan_open" id="zhuanpan_open" class="pc" value="1" <?php if($setting['zhuanpan']['open'] == 1) { ?>checked<?php } ?> />开启
    <a href="plugin.php?id=xj_event:event_zhuanpan&amp;mod=setting&amp;tid=<?php echo $tid;?>" target="_blank" style="padding:5px 15px; background-color:#093; color:#FFF;-moz-border-radius: 3px; -webkit-border-radius: 3px; border-radius:3px; ">设置奖项</a> 领奖验证码:<input type="text" name="zhuanpan_vcode" style="width:100px;" value="<?php echo $setting['zhuanpan']['vcode'];?>" />
    <input type="checkbox" name="zhuanpan_sign" id="zhuanpan_sign" class="pc" value="1" <?php if($setting['zhuanpan']['sign'] == 1) { ?>checked<?php } ?> />签到后才可以抽奖
    <input type="checkbox" name="zhuanpan_zuoye" id="zhuanpan_zuoye" class="pc" value="1" <?php if($setting['zhuanpan']['zuoye'] == 1) { ?>checked<?php } ?> />发表作业后可抽奖
    </div>
    <?php if($invitation_enable && $_G['groupid'] == 1) { ?>
    <div style="padding:10px; border-top:1px #CCCCCC dashed;">
    分享活动邀请报名奖励��<input type="text" name="yqjl_jfs" id="yqjl_jfs" class="pc" value="<?php echo $setting['yqjl_jfs'];?>">
    <select name="yqjl_jflx" id="yqjl_jflx" class="ps">
      <option value=""> 请选择 </option>
      <?php if(is_array($extcredits)) foreach($extcredits as $key => $value) { ?>      <option value="<?php echo $key;?>" <?php if($key == $setting['yqjl_jflx']) { ?>selected<?php } ?>><?php echo $value['title'];?></option>
      <?php } ?>
    </select>
    <br />
    邀请海报背景图:<input type="file" value="" name="posterbg" id="posterbg" tabindex="1" class="pf" style="height:26px;" /> <?php if($setting['posterbg']) { ?>[<a href="plugin.php?id=xj_event:module&amp;cp=invitation&amp;mod=posters_pic&amp;tid=<?php echo $tid;?>" target="_blank">查看</a>]<?php } ?>
    </div>
    <?php } ?>
    
    </td>
  </tr>
</table>
<?php if($multipage) { ?>
<div style="clear:both; height:30px; padding-top:5px;"><?php echo $multipage;?></div>
<?php } ?>
<div class="o pns">
<em class="xi1" id="return_activityapplies" style="float:left;"><?php echo $onerror;?></em>
<button type="submit" class="pn pnc"><span>保存设置</span></button>
</div>
</form>
<div>
<script language="javascript">
function showvote(){
if(document.getElementById("openvote").checked){
document.getElementById("votesetting").style.display="block";
}else{
document.getElementById("votesetting").style.display="none";
}
}
</script>
<script src="static/js/calendar.js?2jP" type="text/javascript" type="text/javascript"></script><?php include template('common/footer'); ?>