operation.setting.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. <?php defined('InShopNC') or exit('Access Invalid!');?>
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <h3><?php echo $lang['nc_operation_set']?></h3>
  6. <?php echo $output['top_link'];?>
  7. </div>
  8. </div>
  9. <div class="fixed-empty"></div>
  10. <form method="post" name="settingForm" id="settingForm">
  11. <input type="hidden" name="form_submit" value="ok" />
  12. <table class="table tb-type2">
  13. <tbody>
  14. <!-- 促销开启 -->
  15. <tr class="noborder">
  16. <td colspan="2" class="required"><label><?php echo $lang['promotion_allow'];?>:</label></td>
  17. </tr>
  18. <tr class="noborder">
  19. <td class="vatop rowform onoff"><label for="promotion_allow_1" class="cb-enable <?php if($output['list_setting']['promotion_allow'] == '1'){ ?>selected<?php } ?>" title="<?php echo $lang['open'];?>"><span><?php echo $lang['open'];?></span></label>
  20. <label for="promotion_allow_0" class="cb-disable <?php if($output['list_setting']['promotion_allow'] == '0'){ ?>selected<?php } ?>" title="<?php echo $lang['close'];?>"><span><?php echo $lang['close'];?></span></label>
  21. <input type="radio" id="promotion_allow_1" name="promotion_allow" value="1" <?php echo $output['list_setting']['promotion_allow'] ==1?'checked=checked':''; ?>>
  22. <input type="radio" id="promotion_allow_0" name="promotion_allow" value="0" <?php echo $output['list_setting']['promotion_allow'] ==0?'checked=checked':''; ?>>
  23. <td class="vatop tips"><?php echo $lang['promotion_notice'];?></td>
  24. </tr>
  25. <tr>
  26. <td colspan="2" class="required"><?php echo $lang['groupbuy_allow'];?>: </td>
  27. </tr>
  28. <tr class="noborder">
  29. <td class="vatop rowform onoff"><label for="groupbuy_allow_1" class="cb-enable <?php if($output['list_setting']['groupbuy_allow'] == '1'){ ?>selected<?php } ?>" title="<?php echo $lang['open'];?>"><span><?php echo $lang['open'];?></span></label>
  30. <label for="groupbuy_allow_0" class="cb-disable <?php if($output['list_setting']['groupbuy_allow'] == '0'){ ?>selected<?php } ?>" title="<?php echo $lang['close'];?>"><span><?php echo $lang['close'];?></span></label>
  31. <input id="groupbuy_allow_1" name="groupbuy_allow" <?php if($output['list_setting']['groupbuy_allow'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
  32. <input id="groupbuy_allow_0" name="groupbuy_allow" <?php if($output['list_setting']['groupbuy_allow'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio"></td>
  33. <td class="vatop tips"><?php echo $lang['groupbuy_isuse_notice'];?></td>
  34. </tr>
  35. <tr class="noborder">
  36. <td colspan="2" class="required"><label><?php echo $lang['points_isuse'];?>:</label></td>
  37. </tr>
  38. <tr class="noborder">
  39. <td class="vatop rowform onoff"><label for="points_isuse_1" class="cb-enable <?php if($output['list_setting']['points_isuse'] == '1'){ ?>selected<?php } ?>" title="<?php echo $lang['gold_isuse_open'];?>"><span><?php echo $lang['points_isuse_open'];?></span></label>
  40. <label for="points_isuse_0" class="cb-disable <?php if($output['list_setting']['points_isuse'] == '0'){ ?>selected<?php } ?>" title="<?php echo $lang['gold_isuse_close'];?>"><span><?php echo $lang['points_isuse_close'];?></span></label>
  41. <input type="radio" id="points_isuse_1" name="points_isuse" value="1" <?php echo $output['list_setting']['points_isuse'] ==1?'checked=checked':''; ?>>
  42. <input type="radio" id="points_isuse_0" name="points_isuse" value="0" <?php echo $output['list_setting']['points_isuse'] ==0?'checked=checked':''; ?>>
  43. <td class="vatop tips"><?php echo $lang['points_isuse_notice'];?></td>
  44. </tr>
  45. <tr>
  46. <td colspan="2" class="required"><?php echo $lang['open_pointshop_isuse'];?>: </td>
  47. </tr>
  48. <tr class="noborder">
  49. <td class="vatop rowform onoff"><label for="pointshop_isuse_1" class="cb-enable <?php if($output['list_setting']['pointshop_isuse'] == '1'){ ?>selected<?php } ?>" title="<?php echo $lang['nc_open'];?>"><span><?php echo $lang['nc_open'];?></span></label>
  50. <label for="pointshop_isuse_0" class="cb-disable <?php if($output['list_setting']['pointshop_isuse'] == '0'){ ?>selected<?php } ?>" title="<?php echo $lang['nc_close'];?>"><span><?php echo $lang['nc_close'];?></span></label>
  51. <input id="pointshop_isuse_1" name="pointshop_isuse" <?php if($output['list_setting']['pointshop_isuse'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
  52. <input id="pointshop_isuse_0" name="pointshop_isuse" <?php if($output['list_setting']['pointshop_isuse'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio"></td>
  53. <td class="vatop tips"><?php echo sprintf($lang['open_pointshop_isuse_notice'],"index.php?act=setting&op=pointshop_setting");?></td>
  54. </tr>
  55. <tr>
  56. <td colspan="2" class="required"><?php echo $lang['open_pointprod_isuse'];?>: </td>
  57. </tr>
  58. <tr class="noborder">
  59. <td class="vatop rowform onoff"><label for="pointprod_isuse_1" class="cb-enable <?php if($output['list_setting']['pointprod_isuse'] == '1'){ ?>selected<?php } ?>" title="<?php echo $lang['open'];?>"><span><?php echo $lang['open'];?></span></label>
  60. <label for="pointprod_isuse_0" class="cb-disable <?php if($output['list_setting']['pointprod_isuse'] == '0'){ ?>selected<?php } ?>" title="<?php echo $lang['close'];?>"><span><?php echo $lang['close'];?></span></label>
  61. <input id="pointprod_isuse_1" name="pointprod_isuse" <?php if($output['list_setting']['pointprod_isuse'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
  62. <input id="pointprod_isuse_0" name="pointprod_isuse" <?php if($output['list_setting']['pointprod_isuse'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio"></td>
  63. <td class="vatop tips"><?php echo $lang['open_pointprod_isuse_notice'];?></td>
  64. </tr>
  65. <tr>
  66. <td colspan="2" class="required"><?php echo $lang['voucher_allow'];?>: </td>
  67. </tr>
  68. <tr class="noborder">
  69. <td class="vatop rowform onoff"><label for="voucher_allow_1" class="cb-enable <?php if($output['list_setting']['voucher_allow'] == '1'){ ?>selected<?php } ?>" title="<?php echo $lang['open'];?>"><span><?php echo $lang['open'];?></span></label>
  70. <label for="voucher_allow_0" class="cb-disable <?php if($output['list_setting']['voucher_allow'] == '0'){ ?>selected<?php } ?>" title="<?php echo $lang['close'];?>"><span><?php echo $lang['close'];?></span></label>
  71. <input id="voucher_allow_1" name="voucher_allow" <?php if($output['list_setting']['voucher_allow'] == '1'){ ?>checked="checked"<?php } ?> value="1" type="radio">
  72. <input id="voucher_allow_0" name="voucher_allow" <?php if($output['list_setting']['voucher_allow'] == '0'){ ?>checked="checked"<?php } ?> value="0" type="radio"></td>
  73. <td class="vatop tips"><?php echo $lang['voucher_allow_notice'];?></td>
  74. </tr>
  75. <tr>
  76. <td class="" colspan="2"><table class="table tb-type2 nomargin">
  77. <thead>
  78. <tr class="space">
  79. <th colspan="16"><?php echo $lang['points_ruletip']; ?>:</th>
  80. </tr>
  81. <tr class="thead">
  82. <th><?php echo $lang['points_item']; ?></th>
  83. <th><?php echo $lang['points_number']; ?></th>
  84. </tr>
  85. </thead>
  86. <tbody>
  87. <tr class="hover">
  88. <td class="w200"><?php echo $lang['points_number_reg']; ?></td>
  89. <td><input id="points_reg" name="points_reg" value="<?php echo $output['list_setting']['points_reg'];?>" class="txt" type="text" style="width:60px;"></td>
  90. </tr>
  91. <tr class="hover">
  92. <td><?php echo $lang['points_number_login'];?></td>
  93. <td><input id="points_login" name="points_login" value="<?php echo $output['list_setting']['points_login'];?>" class="txt" type="text" style="width:60px;"></td>
  94. </tr>
  95. <tr class="hover">
  96. <td><?php echo $lang['points_number_comments']; ?></td>
  97. <td><input id="points_comments" name="points_comments" value="<?php echo $output['list_setting']['points_comments'];?>" class="txt" type="text" style="width:60px;"></td>
  98. </tr>
  99. <tr class="hover">
  100. <td>邀请注册</td>
  101. <td><input id="points_comments" name="points_invite" value="<?php echo $output['list_setting']['points_invite'];?>" class="txt" type="text" style="width:60px;">邀请非会员注册时给邀请人的积分数</td>
  102. </tr>
  103. <tr class="hover">
  104. <td>返利比例</td>
  105. <td><input id="points_comments" name="points_rebate" value="<?php echo $output['list_setting']['points_rebate'];?>" class="txt" type="text" style="width:35px;">% &nbsp;&nbsp;&nbsp;被邀请会员购买商品时给邀请人返的积分数(例如设为5%,被邀请人购买100元商品,返给邀请人5积分)</td>
  106. </tr>
  107. </tbody>
  108. </table>
  109. <table class="table tb-type2 nomargin">
  110. <thead>
  111. <tr class="thead">
  112. <th colspan="2"><?php echo $lang['points_number_order']; ?></th>
  113. </tr>
  114. </thead>
  115. <tbody>
  116. <tr class="hover">
  117. <td class="w200"><?php echo $lang['points_number_orderrate'];?></td>
  118. <td><input id="points_orderrate" name="points_orderrate" value="<?php echo $output['list_setting']['points_orderrate'];?>" class="txt" type="text" style="width:60px;">
  119. <?php echo $lang['points_number_orderrate_tip']; ?></td>
  120. </tr>
  121. <tr class="hover">
  122. <td><?php echo $lang['points_number_ordermax']; ?></td>
  123. <td><input id="points_ordermax" name="points_ordermax" value="<?php echo $output['list_setting']['points_ordermax'];?>" class="txt" type="text" style="width:60px;">
  124. <?php echo $lang['points_number_ordermax_tip'];?></td>
  125. </tr>
  126. </tbody>
  127. <tfoot>
  128. <tr class="tfoot">
  129. <td colspan="2" ><a href="JavaScript:void(0);" class="btn" id="submitBtn"><span><?php echo $lang['nc_submit'];?></span></a></td>
  130. </tr>
  131. </tfoot>
  132. </table>
  133. </form>
  134. </div>
  135. <script>
  136. $(function(){$("#submitBtn").click(function(){
  137. if($("#settingForm").valid()){
  138. $("#settingForm").submit();
  139. }
  140. });
  141. });
  142. //
  143. $(document).ready(function(){
  144. $("#settingForm").validate({
  145. errorPlacement: function(error, element){
  146. error.appendTo(element.parent().parent().prev().find('td:first'));
  147. },
  148. rules : {
  149. },
  150. messages : {
  151. }
  152. });
  153. });
  154. </script>