setting.html 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_operation}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="post" name="settingForm" id="settingForm">
  13. <table class="ds-default-table">
  14. <tbody>
  15. <!-- 开启闲置市场 -->
  16. <tr class="noborder">
  17. <td colspan="2" class="required"><label>{$Think.lang.flea_isuse}:</label></td>
  18. </tr>
  19. <tr class="noborder">
  20. <td class="vatop rowform onoff">
  21. <label for="flea_isuse_1" class="cb-enable {eq name='list_setting.flea_isuse' value='1'}selected{/eq}" title="{$Think.lang.ds_open}"><span>{$Think.lang.ds_open}</span></label>
  22. <label for="flea_isuse_0" class="cb-disable {eq name='list_setting.flea_isuse' value='0'}selected{/eq}" title="{$Think.lang.ds_close}"><span>{$Think.lang.ds_close}</span></label>
  23. <input type="radio" id="flea_isuse_1" name="flea_isuse" value="1" {if $list_setting.flea_isuse=='1'}checked=checked{/if}>
  24. <input type="radio" id="flea_isuse_0" name="flea_isuse" value="0" {if $list_setting.flea_isuse=='0'}checked=checked{/if}>
  25. </td>
  26. <td class="vatop tips">{$Think.lang.flea_isuse_notice}</td>
  27. </tr>
  28. <!-- 促销开启 -->
  29. <tr class="noborder">
  30. <td colspan="2" class="required"><label>{$Think.lang.promotion_allow}:</label></td>
  31. </tr>
  32. <tr class="noborder">
  33. <td class="vatop rowform onoff">
  34. <label for="promotion_allow_1" class="cb-enable {eq name='list_setting.promotion_allow' value='1'}selected{/eq}" title="{$Think.lang.ds_open}"><span>{$Think.lang.ds_open}</span></label>
  35. <label for="promotion_allow_0" class="cb-disable {eq name='list_setting.promotion_allow' value='0'}selected{/eq}" title="{$Think.lang.ds_close}"><span>{$Think.lang.ds_close}</span></label>
  36. <input type="radio" id="promotion_allow_1" name="promotion_allow" value="1" {if $list_setting.promotion_allow== '1'}checked=checked{/if}>
  37. <input type="radio" id="promotion_allow_0" name="promotion_allow" value="0" {if $list_setting.promotion_allow== '0'}checked=checked{/if}>
  38. </td>
  39. <td class="vatop tips">{$Think.lang.promotion_notice}</td>
  40. </tr>
  41. <tr>
  42. <td colspan="2" class="required">{$Think.lang.groupbuy_allow}:</td>
  43. </tr>
  44. <tr class="noborder">
  45. <td class="vatop rowform onoff">
  46. <label for="groupbuy_allow_1" class="cb-enable {eq name='list_setting.groupbuy_allow' value='1'}selected{/eq}" title="{$Think.lang.ds_open}"><span>{$Think.lang.ds_open}</span></label>
  47. <label for="groupbuy_allow_0" class="cb-disable {eq name='list_setting.groupbuy_allow' value='0'}selected{/eq}" title="{$Think.lang.ds_close}"><span>{$Think.lang.ds_close}</span></label>
  48. <input id="groupbuy_allow_1" name="groupbuy_allow" {if $list_setting.groupbuy_allow== '1'} checked=checked{/if} value="1" type="radio">
  49. <input id="groupbuy_allow_0" name="groupbuy_allow" {if $list_setting.groupbuy_allow== '0'} checked=checked{/if} value="0" type="radio">
  50. </td>
  51. <td class="vatop tips">{$Think.lang.groupbuy_isuse_notice}</td>
  52. </tr>
  53. <tr class="noborder">
  54. <td colspan="2" class="required"><label>{$Think.lang.points_isuse}:</label></td>
  55. </tr>
  56. <tr class="noborder">
  57. <td class="vatop rowform onoff">
  58. <label for="points_isuse_1" class="cb-enable {eq name='list_setting.points_isuse' value='1'}selected{/eq}" ><span>{$Think.lang.points_isuse_open}</span></label>
  59. <label for="points_isuse_0" class="cb-disable {eq name='list_setting.points_isuse' value='0'}selected{/eq}" ><span>{$Think.lang.points_isuse_close}</span></label>
  60. <input type="radio" id="points_isuse_1" name="points_isuse" value="1" {if $list_setting.points_isuse=='1'}checked=checked{/if}>
  61. <input type="radio" id="points_isuse_0" name="points_isuse" value="0" {if $list_setting.points_isuse=='0'} checked=checked {/if}>
  62. </td>
  63. <td class="vatop tips">{$Think.lang.points_isuse_notice}</td>
  64. </tr>
  65. <tr>
  66. <td colspan="2" class="required">{$Think.lang.open_pointshop_isuse}:</td>
  67. </tr>
  68. <tr class="noborder">
  69. <td class="vatop rowform onoff">
  70. <label for="pointshop_isuse_1" class="cb-enable {eq name='list_setting.pointshop_isuse' value='1'}selected{/eq}" title="{$Think.lang.ds_open}"><span>{$Think.lang.ds_open}</span></label>
  71. <label for="pointshop_isuse_0" class="cb-disable {eq name='list_setting.pointshop_isuse' value='0'}selected{/eq}" title="{$Think.lang.ds_close}"><span>{$Think.lang.ds_close}</span></label>
  72. <input id="pointshop_isuse_1" name="pointshop_isuse" {if $list_setting.pointshop_isuse== '1'} checked=checked {/if} value="1" type="radio">
  73. <input id="pointshop_isuse_0" name="pointshop_isuse" {if $list_setting.pointshop_isuse== '0'} checked=checked {/if} value="0" type="radio">
  74. </td>
  75. <td class="vatop tips">{$Think.lang.open_pointshop_isuse_notice}</td>
  76. </tr>
  77. <tr>
  78. <td colspan="2" class="required">{$Think.lang.open_pointprod_isuse}:</td>
  79. </tr>
  80. <tr class="noborder">
  81. <td class="vatop rowform onoff">
  82. <label for="pointprod_isuse_1" class="cb-enable {eq name='list_setting.pointprod_isuse' value='1'}selected{/eq}" title="{$Think.lang.ds_open}"><span>{$Think.lang.ds_open}</span></label>
  83. <label for="pointprod_isuse_0" class="cb-disable {eq name='list_setting.pointprod_isuse' value='0'}selected{/eq}" title="{$Think.lang.ds_close}"><span>{$Think.lang.ds_close}</span></label>
  84. <input id="pointprod_isuse_1" name="pointprod_isuse" {if $list_setting.pointprod_isuse== '1'} checked=checked {/if} value="1" type="radio">
  85. <input id="pointprod_isuse_0" name="pointprod_isuse" {if $list_setting.pointprod_isuse== '0' } checked=checked {/if}} value="0" type="radio">
  86. </td>
  87. <td class="vatop tips">{$Think.lang.open_pointprod_isuse_notice}</td>
  88. </tr>
  89. <tr>
  90. <td colspan="2" class="required">{$Think.lang.voucher_allow}:</td>
  91. </tr>
  92. <tr class="noborder">
  93. <td class="vatop rowform onoff">
  94. <label for="voucher_allow_1" class="cb-enable {if $list_setting.voucher_allow == '1'}selected{/if}" title="{$Think.lang.ds_open}"><span>{$Think.lang.ds_open}</span></label>
  95. <label for="voucher_allow_0" class="cb-disable {if $list_setting.voucher_allow == '0'}selected{/if}" title="{$Think.lang.ds_close}"><span>{$Think.lang.ds_close}</span></label>
  96. <input id="voucher_allow_1" name="voucher_allow" {if $list_setting.voucher_allow == '1'} checked=checked {/if} value="1" type="radio">
  97. <input id="voucher_allow_0" name="voucher_allow" {if $list_setting.voucher_allow == '0'} checked=checked {/if} value="0" type="radio">
  98. </td>
  99. <td class="vatop tips">{$Think.lang.voucher_allow_notice|raw}</td>
  100. </tr>
  101. <tr>
  102. <td colspan="2" class="required">{$Think.lang.mgdiscount_allow}:</td>
  103. </tr>
  104. <tr class="noborder">
  105. <td class="vatop rowform onoff">
  106. <label for="mgdiscount_allow_1" class="cb-enable {if $list_setting.mgdiscount_allow == '1'}selected{/if}" title="{$Think.lang.ds_open}"><span>{$Think.lang.ds_open}</span></label>
  107. <label for="mgdiscount_allow_0" class="cb-disable {if $list_setting.mgdiscount_allow == '0'}selected{/if}" title="{$Think.lang.ds_close}"><span>{$Think.lang.ds_close}</span></label>
  108. <input id="mgdiscount_allow_1" name="mgdiscount_allow" {if $list_setting.mgdiscount_allow == '1'} checked=checked {/if} value="1" type="radio">
  109. <input id="mgdiscount_allow_0" name="mgdiscount_allow" {if $list_setting.mgdiscount_allow == '0'} checked=checked {/if} value="0" type="radio">
  110. </td>
  111. <td class="vatop tips">{$Think.lang.mgdiscount_allow_notice}</td>
  112. </tr>
  113. </tbody>
  114. </table>
  115. <table class="ds-default-table">
  116. <tfoot>
  117. <tr class="tfoot">
  118. <td colspan="2"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  119. </tr>
  120. </tfoot>
  121. </table>
  122. </form>
  123. </div>
  124. <script>
  125. $(document).ready(function(){
  126. $("#settingForm").validate({
  127. errorPlacement: function(error, element){
  128. error.appendTo(element.parent().parent().find('td:last'));
  129. },
  130. rules : {
  131. points_reg:{
  132. number:true,
  133. min:0
  134. },
  135. points_login :{
  136. number:true,
  137. min:0
  138. },
  139. points_comments :{
  140. number:true,
  141. min:0
  142. },
  143. points_signin :{
  144. number:true,
  145. min:0
  146. },
  147. points_invite :{
  148. number:true,
  149. min:0
  150. },
  151. points_rebate :{
  152. number:true,
  153. min:0
  154. },
  155. points_orderrate :{
  156. number:true,
  157. min:0
  158. },
  159. points_ordermax :{
  160. number:true,
  161. min:0
  162. }
  163. },
  164. messages : {
  165. points_reg:{
  166. number:'{$Think.lang.ds_sort_number}',
  167. min:'{$Think.lang.ds_min_error}0'
  168. },
  169. points_login :{
  170. number:'{$Think.lang.ds_sort_number}',
  171. min:'{$Think.lang.ds_min_error}0'
  172. },
  173. points_comments :{
  174. number:'{$Think.lang.ds_sort_number}',
  175. min:'{$Think.lang.ds_min_error}0'
  176. },
  177. points_signin :{
  178. number:'{$Think.lang.ds_sort_number}',
  179. min:'{$Think.lang.ds_min_error}0'
  180. },
  181. points_invite :{
  182. number:'{$Think.lang.ds_sort_number}',
  183. min:'{$Think.lang.ds_min_error}0'
  184. },
  185. points_rebate :{
  186. number:'{$Think.lang.ds_sort_number}',
  187. min:'{$Think.lang.ds_min_error}0'
  188. },
  189. points_orderrate :{
  190. number:'{$Think.lang.ds_sort_number}',
  191. min:'{$Think.lang.ds_min_error}0'
  192. },
  193. points_ordermax :{
  194. number:'{$Think.lang.ds_sort_number}',
  195. min:'{$Think.lang.ds_min_error}0'
  196. }
  197. }
  198. });
  199. });
  200. </script>