|
@@ -0,0 +1,121 @@
|
|
|
+<?php defined('InShopNC') or exit('Access Invalid!');?>
|
|
|
+
|
|
|
+<div class="page">
|
|
|
+ <div class="fixed-bar">
|
|
|
+ <div class="item-title">
|
|
|
+ <h3><?php echo $lang['nc_member_bonusmanage']?></h3>
|
|
|
+ <ul class="tab-base">
|
|
|
+ <li><a href="index.php?act=person_bonus&op=add"><span><?php echo $lang['nc_manage']?></span></a></li>
|
|
|
+ <li><a href="index.php?act=person_bonus&op=log"><span><?php echo $lang['admin_person_bonus_log_title']?></span></a></li>
|
|
|
+ <li><a href="javascript:void(0)" class="current"><span>活动红包</span></a></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="fixed-empty"></div>
|
|
|
+ <form id="promotion_form" method="post" name="promotion_form">
|
|
|
+ <table class="table tb-type2 nobdb">
|
|
|
+ <tbody>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" class="required"><label class="validation">红包祝福语:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">
|
|
|
+ <input type="text" placeholder="请输入红包祝福语" name="bonus_bless">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" class="required"><label class="validation">活动红包类型:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">
|
|
|
+ <select name="send_type" id="send_type">
|
|
|
+ <option value="random">随机红包</option>
|
|
|
+ <option value="ordinary">普通红包</option>
|
|
|
+ </select>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" class="required"><label class="validation"><?php echo $lang['admin_person_bonus_rate']; ?>:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">
|
|
|
+ <input type="text" placeholder="请输入发送红包折扣率" name="bonus_rate">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" class="required"><label class="validation"><?php echo $lang['admin_person_bonus_amount']; ?>:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">
|
|
|
+ <input type="text" placeholder="请输入发送红包金额" name="bonus_amount">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" class="required"><label class="validation">使用该红包有效期:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">
|
|
|
+ <input type="number" placeholder="请输入红包有效期" name="valid">天
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" class="required"><label class="validation">活动开始时间:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">
|
|
|
+ <input type="datetime-local" name="start_time">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" class="required"><label class="validation">活动结束时间:</label></td>
|
|
|
+ </tr>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2">
|
|
|
+ <input type="datetime-local" name="stop_time">
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </tbody>
|
|
|
+ <tfoot>
|
|
|
+ <tr>
|
|
|
+ <td colspan="2" ><a href="JavaScript:void(0);" class="btn" id="promotion_submit"><span><?php echo $lang['nc_submit'];?></span></a></td>
|
|
|
+ </tr>
|
|
|
+ </tfoot>
|
|
|
+ </table>
|
|
|
+ </form>
|
|
|
+</div>
|
|
|
+<script type="text/javascript">
|
|
|
+ $(function(){
|
|
|
+ var validate = function(form){
|
|
|
+ var validate_pass=false;
|
|
|
+ var subInput=$(form).find('input');
|
|
|
+ for(var i=0;i<subInput.length;i++) {
|
|
|
+ if(subInput.eq(i).val() == "") {
|
|
|
+ (function(j){
|
|
|
+ alert(subInput.eq(i).attr('name')+'不能为空!');
|
|
|
+ })(i);
|
|
|
+ validate_pass=false;
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ validate_pass=true;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(validate_pass) {
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+ };
|
|
|
+ $('#promotion_submit').on('click',function(){
|
|
|
+ if(validate('#promotion_form'))
|
|
|
+ {
|
|
|
+ if(!confirm('确定提交?')) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ $('#promotion_form').submit();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
+ });
|
|
|
+
|
|
|
+</script>
|
|
|
+
|