b7302ce1a12428c1da115909d9e3de16.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <?php /*a:3:{s:65:"/data/web/mall.valimart.net/app/admin/view/operation/setting.html";i:1657785098;s:61:"/data/web/mall.valimart.net/app/admin/view/public/header.html";i:1657785098;s:66:"/data/web/mall.valimart.net/app/admin/view/public/admin_items.html";i:1657785098;}*/ ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <meta charset="utf-8">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <title><?php echo htmlentities((isset($html_title) && ($html_title !== '')?$html_title:config('ds_config.site_name'))); ?><?php echo htmlentities(lang('system_backend')); ?></title>
  8. <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  9. <link rel="stylesheet" href="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/css/admin.css">
  10. <link rel="stylesheet" href="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.css">
  11. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery-2.1.4.min.js"></script>
  12. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.validate.min.js"></script>
  13. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/jquery.cookie.js"></script>
  14. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/common.js"></script>
  15. <script src="<?php echo htmlentities(ADMIN_SITE_ROOT); ?>/js/admin.js"></script>
  16. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery-ui.min.js"></script>
  17. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/js/jquery-ui/jquery.ui.datepicker-zh-CN.js"></script>
  18. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/perfect-scrollbar.min.js"></script>
  19. <script src="<?php echo htmlentities(PLUGINS_SITE_ROOT); ?>/layer/layer.js"></script>
  20. <script type="text/javascript">
  21. var BASESITEROOT = "<?php echo htmlentities(BASE_SITE_ROOT); ?>";
  22. var ADMINSITEROOT = "<?php echo htmlentities(ADMIN_SITE_ROOT); ?>";
  23. var BASESITEURL = "<?php echo htmlentities(BASE_SITE_URL); ?>";
  24. var HOMESITEURL = "<?php echo htmlentities(HOME_SITE_URL); ?>";
  25. var ADMINSITEURL = "<?php echo htmlentities(ADMIN_SITE_URL); ?>";
  26. </script>
  27. </head>
  28. <body>
  29. <div id="append_parent"></div>
  30. <div id="ajaxwaitid"></div>
  31. <div class="page">
  32. <div class="fixed-bar">
  33. <div class="item-title">
  34. <div class="subject">
  35. <h3><?php echo htmlentities(lang('ds_operation')); ?></h3>
  36. <h5></h5>
  37. </div>
  38. <?php if($admin_item): ?>
  39. <ul class="tab-base ds-row">
  40. <?php if(is_array($admin_item) || $admin_item instanceof \think\Collection || $admin_item instanceof \think\Paginator): if( count($admin_item)==0 ) : echo "" ;else: foreach($admin_item as $key=>$item): ?>
  41. <li><a href="<?php echo htmlentities($item['url']); ?>" <?php if($item['name'] == $curitem): ?>class="current"<?php endif; ?>><span><?php echo htmlentities($item['text']); ?></span></a></li>
  42. <?php endforeach; endif; else: echo "" ;endif; ?>
  43. </ul>
  44. <?php endif; ?>
  45. </div>
  46. </div>
  47. <form method="post" name="settingForm" id="settingForm">
  48. <table class="ds-default-table">
  49. <tbody>
  50. <!-- 开启闲置市场 -->
  51. <tr class="noborder">
  52. <td colspan="2" class="required"><label><?php echo htmlentities(lang('flea_isuse')); ?>:</label></td>
  53. </tr>
  54. <tr class="noborder">
  55. <td class="vatop rowform onoff">
  56. <label for="flea_isuse_1" class="cb-enable <?php if($list_setting['flea_isuse'] == '1'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_open')); ?>"><span><?php echo htmlentities(lang('ds_open')); ?></span></label>
  57. <label for="flea_isuse_0" class="cb-disable <?php if($list_setting['flea_isuse'] == '0'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_close')); ?>"><span><?php echo htmlentities(lang('ds_close')); ?></span></label>
  58. <input type="radio" id="flea_isuse_1" name="flea_isuse" value="1" <?php if($list_setting['flea_isuse']=='1'): ?>checked=checked<?php endif; ?>>
  59. <input type="radio" id="flea_isuse_0" name="flea_isuse" value="0" <?php if($list_setting['flea_isuse']=='0'): ?>checked=checked<?php endif; ?>>
  60. </td>
  61. <td class="vatop tips"><?php echo htmlentities(lang('flea_isuse_notice')); ?></td>
  62. </tr>
  63. <!-- 促销开启 -->
  64. <tr class="noborder">
  65. <td colspan="2" class="required"><label><?php echo htmlentities(lang('promotion_allow')); ?>:</label></td>
  66. </tr>
  67. <tr class="noborder">
  68. <td class="vatop rowform onoff">
  69. <label for="promotion_allow_1" class="cb-enable <?php if($list_setting['promotion_allow'] == '1'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_open')); ?>"><span><?php echo htmlentities(lang('ds_open')); ?></span></label>
  70. <label for="promotion_allow_0" class="cb-disable <?php if($list_setting['promotion_allow'] == '0'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_close')); ?>"><span><?php echo htmlentities(lang('ds_close')); ?></span></label>
  71. <input type="radio" id="promotion_allow_1" name="promotion_allow" value="1" <?php if($list_setting['promotion_allow']== '1'): ?>checked=checked<?php endif; ?>>
  72. <input type="radio" id="promotion_allow_0" name="promotion_allow" value="0" <?php if($list_setting['promotion_allow']== '0'): ?>checked=checked<?php endif; ?>>
  73. </td>
  74. <td class="vatop tips"><?php echo htmlentities(lang('promotion_notice')); ?></td>
  75. </tr>
  76. <tr>
  77. <td colspan="2" class="required"><?php echo htmlentities(lang('groupbuy_allow')); ?>:</td>
  78. </tr>
  79. <tr class="noborder">
  80. <td class="vatop rowform onoff">
  81. <label for="groupbuy_allow_1" class="cb-enable <?php if($list_setting['groupbuy_allow'] == '1'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_open')); ?>"><span><?php echo htmlentities(lang('ds_open')); ?></span></label>
  82. <label for="groupbuy_allow_0" class="cb-disable <?php if($list_setting['groupbuy_allow'] == '0'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_close')); ?>"><span><?php echo htmlentities(lang('ds_close')); ?></span></label>
  83. <input id="groupbuy_allow_1" name="groupbuy_allow" <?php if($list_setting['groupbuy_allow']== '1'): ?> checked=checked<?php endif; ?> value="1" type="radio">
  84. <input id="groupbuy_allow_0" name="groupbuy_allow" <?php if($list_setting['groupbuy_allow']== '0'): ?> checked=checked<?php endif; ?> value="0" type="radio">
  85. </td>
  86. <td class="vatop tips"><?php echo htmlentities(lang('groupbuy_isuse_notice')); ?></td>
  87. </tr>
  88. <tr class="noborder">
  89. <td colspan="2" class="required"><label><?php echo htmlentities(lang('points_isuse')); ?>:</label></td>
  90. </tr>
  91. <tr class="noborder">
  92. <td class="vatop rowform onoff">
  93. <label for="points_isuse_1" class="cb-enable <?php if($list_setting['points_isuse'] == '1'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('points_isuse_open')); ?></span></label>
  94. <label for="points_isuse_0" class="cb-disable <?php if($list_setting['points_isuse'] == '0'): ?>selected<?php endif; ?>" ><span><?php echo htmlentities(lang('points_isuse_close')); ?></span></label>
  95. <input type="radio" id="points_isuse_1" name="points_isuse" value="1" <?php if($list_setting['points_isuse']=='1'): ?>checked=checked<?php endif; ?>>
  96. <input type="radio" id="points_isuse_0" name="points_isuse" value="0" <?php if($list_setting['points_isuse']=='0'): ?> checked=checked <?php endif; ?>>
  97. </td>
  98. <td class="vatop tips"><?php echo htmlentities(lang('points_isuse_notice')); ?></td>
  99. </tr>
  100. <tr>
  101. <td colspan="2" class="required"><?php echo htmlentities(lang('open_pointshop_isuse')); ?>:</td>
  102. </tr>
  103. <tr class="noborder">
  104. <td class="vatop rowform onoff">
  105. <label for="pointshop_isuse_1" class="cb-enable <?php if($list_setting['pointshop_isuse'] == '1'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_open')); ?>"><span><?php echo htmlentities(lang('ds_open')); ?></span></label>
  106. <label for="pointshop_isuse_0" class="cb-disable <?php if($list_setting['pointshop_isuse'] == '0'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_close')); ?>"><span><?php echo htmlentities(lang('ds_close')); ?></span></label>
  107. <input id="pointshop_isuse_1" name="pointshop_isuse" <?php if($list_setting['pointshop_isuse']== '1'): ?> checked=checked <?php endif; ?> value="1" type="radio">
  108. <input id="pointshop_isuse_0" name="pointshop_isuse" <?php if($list_setting['pointshop_isuse']== '0'): ?> checked=checked <?php endif; ?> value="0" type="radio">
  109. </td>
  110. <td class="vatop tips"><?php echo htmlentities(lang('open_pointshop_isuse_notice')); ?></td>
  111. </tr>
  112. <tr>
  113. <td colspan="2" class="required"><?php echo htmlentities(lang('open_pointprod_isuse')); ?>:</td>
  114. </tr>
  115. <tr class="noborder">
  116. <td class="vatop rowform onoff">
  117. <label for="pointprod_isuse_1" class="cb-enable <?php if($list_setting['pointprod_isuse'] == '1'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_open')); ?>"><span><?php echo htmlentities(lang('ds_open')); ?></span></label>
  118. <label for="pointprod_isuse_0" class="cb-disable <?php if($list_setting['pointprod_isuse'] == '0'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_close')); ?>"><span><?php echo htmlentities(lang('ds_close')); ?></span></label>
  119. <input id="pointprod_isuse_1" name="pointprod_isuse" <?php if($list_setting['pointprod_isuse']== '1'): ?> checked=checked <?php endif; ?> value="1" type="radio">
  120. <input id="pointprod_isuse_0" name="pointprod_isuse" <?php if($list_setting['pointprod_isuse']== '0'): ?> checked=checked <?php endif; ?>} value="0" type="radio">
  121. </td>
  122. <td class="vatop tips"><?php echo htmlentities(lang('open_pointprod_isuse_notice')); ?></td>
  123. </tr>
  124. <tr>
  125. <td colspan="2" class="required"><?php echo htmlentities(lang('voucher_allow')); ?>:</td>
  126. </tr>
  127. <tr class="noborder">
  128. <td class="vatop rowform onoff">
  129. <label for="voucher_allow_1" class="cb-enable <?php if($list_setting['voucher_allow'] == '1'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_open')); ?>"><span><?php echo htmlentities(lang('ds_open')); ?></span></label>
  130. <label for="voucher_allow_0" class="cb-disable <?php if($list_setting['voucher_allow'] == '0'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_close')); ?>"><span><?php echo htmlentities(lang('ds_close')); ?></span></label>
  131. <input id="voucher_allow_1" name="voucher_allow" <?php if($list_setting['voucher_allow'] == '1'): ?> checked=checked <?php endif; ?> value="1" type="radio">
  132. <input id="voucher_allow_0" name="voucher_allow" <?php if($list_setting['voucher_allow'] == '0'): ?> checked=checked <?php endif; ?> value="0" type="radio">
  133. </td>
  134. <td class="vatop tips"><?php echo lang('voucher_allow_notice'); ?></td>
  135. </tr>
  136. <tr>
  137. <td colspan="2" class="required"><?php echo htmlentities(lang('mgdiscount_allow')); ?>:</td>
  138. </tr>
  139. <tr class="noborder">
  140. <td class="vatop rowform onoff">
  141. <label for="mgdiscount_allow_1" class="cb-enable <?php if($list_setting['mgdiscount_allow'] == '1'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_open')); ?>"><span><?php echo htmlentities(lang('ds_open')); ?></span></label>
  142. <label for="mgdiscount_allow_0" class="cb-disable <?php if($list_setting['mgdiscount_allow'] == '0'): ?>selected<?php endif; ?>" title="<?php echo htmlentities(lang('ds_close')); ?>"><span><?php echo htmlentities(lang('ds_close')); ?></span></label>
  143. <input id="mgdiscount_allow_1" name="mgdiscount_allow" <?php if($list_setting['mgdiscount_allow'] == '1'): ?> checked=checked <?php endif; ?> value="1" type="radio">
  144. <input id="mgdiscount_allow_0" name="mgdiscount_allow" <?php if($list_setting['mgdiscount_allow'] == '0'): ?> checked=checked <?php endif; ?> value="0" type="radio">
  145. </td>
  146. <td class="vatop tips"><?php echo htmlentities(lang('mgdiscount_allow_notice')); ?></td>
  147. </tr>
  148. </tbody>
  149. </table>
  150. <table class="ds-default-table">
  151. <tfoot>
  152. <tr class="tfoot">
  153. <td colspan="2"><input class="btn" type="submit" value="<?php echo htmlentities(lang('ds_submit')); ?>"/></td>
  154. </tr>
  155. </tfoot>
  156. </table>
  157. </form>
  158. </div>
  159. <script>
  160. $(document).ready(function(){
  161. $("#settingForm").validate({
  162. errorPlacement: function(error, element){
  163. error.appendTo(element.parent().parent().find('td:last'));
  164. },
  165. rules : {
  166. points_reg:{
  167. number:true,
  168. min:0
  169. },
  170. points_login :{
  171. number:true,
  172. min:0
  173. },
  174. points_comments :{
  175. number:true,
  176. min:0
  177. },
  178. points_signin :{
  179. number:true,
  180. min:0
  181. },
  182. points_invite :{
  183. number:true,
  184. min:0
  185. },
  186. points_rebate :{
  187. number:true,
  188. min:0
  189. },
  190. points_orderrate :{
  191. number:true,
  192. min:0
  193. },
  194. points_ordermax :{
  195. number:true,
  196. min:0
  197. }
  198. },
  199. messages : {
  200. points_reg:{
  201. number:'<?php echo htmlentities(lang('ds_sort_number')); ?>',
  202. min:'<?php echo htmlentities(lang('ds_min_error')); ?>0'
  203. },
  204. points_login :{
  205. number:'<?php echo htmlentities(lang('ds_sort_number')); ?>',
  206. min:'<?php echo htmlentities(lang('ds_min_error')); ?>0'
  207. },
  208. points_comments :{
  209. number:'<?php echo htmlentities(lang('ds_sort_number')); ?>',
  210. min:'<?php echo htmlentities(lang('ds_min_error')); ?>0'
  211. },
  212. points_signin :{
  213. number:'<?php echo htmlentities(lang('ds_sort_number')); ?>',
  214. min:'<?php echo htmlentities(lang('ds_min_error')); ?>0'
  215. },
  216. points_invite :{
  217. number:'<?php echo htmlentities(lang('ds_sort_number')); ?>',
  218. min:'<?php echo htmlentities(lang('ds_min_error')); ?>0'
  219. },
  220. points_rebate :{
  221. number:'<?php echo htmlentities(lang('ds_sort_number')); ?>',
  222. min:'<?php echo htmlentities(lang('ds_min_error')); ?>0'
  223. },
  224. points_orderrate :{
  225. number:'<?php echo htmlentities(lang('ds_sort_number')); ?>',
  226. min:'<?php echo htmlentities(lang('ds_min_error')); ?>0'
  227. },
  228. points_ordermax :{
  229. number:'<?php echo htmlentities(lang('ds_sort_number')); ?>',
  230. min:'<?php echo htmlentities(lang('ds_min_error')); ?>0'
  231. }
  232. }
  233. });
  234. });
  235. </script>