123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210 |
- {include file="public/header" /}
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <div class="subject">
- <h3>{$Think.lang.ds_operation}</h3>
- <h5></h5>
- </div>
- {include file="public/admin_items" /}
- </div>
- </div>
- <form method="post" name="settingForm" id="settingForm">
- <table class="ds-default-table">
- <tbody>
- <!-- 开启闲置市场 -->
- <tr class="noborder">
- <td colspan="2" class="required"><label>{$Think.lang.flea_isuse}:</label></td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform onoff">
- <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>
- <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>
- <input type="radio" id="flea_isuse_1" name="flea_isuse" value="1" {if $list_setting.flea_isuse=='1'}checked=checked{/if}>
- <input type="radio" id="flea_isuse_0" name="flea_isuse" value="0" {if $list_setting.flea_isuse=='0'}checked=checked{/if}>
- </td>
- <td class="vatop tips">{$Think.lang.flea_isuse_notice}</td>
- </tr>
- <!-- 促销开启 -->
- <tr class="noborder">
- <td colspan="2" class="required"><label>{$Think.lang.promotion_allow}:</label></td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform onoff">
- <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>
- <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>
- <input type="radio" id="promotion_allow_1" name="promotion_allow" value="1" {if $list_setting.promotion_allow== '1'}checked=checked{/if}>
- <input type="radio" id="promotion_allow_0" name="promotion_allow" value="0" {if $list_setting.promotion_allow== '0'}checked=checked{/if}>
- </td>
- <td class="vatop tips">{$Think.lang.promotion_notice}</td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.groupbuy_allow}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform onoff">
- <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>
- <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>
- <input id="groupbuy_allow_1" name="groupbuy_allow" {if $list_setting.groupbuy_allow== '1'} checked=checked{/if} value="1" type="radio">
- <input id="groupbuy_allow_0" name="groupbuy_allow" {if $list_setting.groupbuy_allow== '0'} checked=checked{/if} value="0" type="radio">
- </td>
- <td class="vatop tips">{$Think.lang.groupbuy_isuse_notice}</td>
- </tr>
- <tr class="noborder">
- <td colspan="2" class="required"><label>{$Think.lang.points_isuse}:</label></td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform onoff">
- <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>
- <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>
- <input type="radio" id="points_isuse_1" name="points_isuse" value="1" {if $list_setting.points_isuse=='1'}checked=checked{/if}>
- <input type="radio" id="points_isuse_0" name="points_isuse" value="0" {if $list_setting.points_isuse=='0'} checked=checked {/if}>
- </td>
- <td class="vatop tips">{$Think.lang.points_isuse_notice}</td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.open_pointshop_isuse}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform onoff">
- <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>
- <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>
- <input id="pointshop_isuse_1" name="pointshop_isuse" {if $list_setting.pointshop_isuse== '1'} checked=checked {/if} value="1" type="radio">
- <input id="pointshop_isuse_0" name="pointshop_isuse" {if $list_setting.pointshop_isuse== '0'} checked=checked {/if} value="0" type="radio">
- </td>
- <td class="vatop tips">{$Think.lang.open_pointshop_isuse_notice}</td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.open_pointprod_isuse}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform onoff">
- <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>
- <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>
- <input id="pointprod_isuse_1" name="pointprod_isuse" {if $list_setting.pointprod_isuse== '1'} checked=checked {/if} value="1" type="radio">
- <input id="pointprod_isuse_0" name="pointprod_isuse" {if $list_setting.pointprod_isuse== '0' } checked=checked {/if}} value="0" type="radio">
- </td>
- <td class="vatop tips">{$Think.lang.open_pointprod_isuse_notice}</td>
- </tr>
- <tr>
- <td colspan="2" class="required">{$Think.lang.voucher_allow}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform onoff">
- <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>
- <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>
- <input id="voucher_allow_1" name="voucher_allow" {if $list_setting.voucher_allow == '1'} checked=checked {/if} value="1" type="radio">
- <input id="voucher_allow_0" name="voucher_allow" {if $list_setting.voucher_allow == '0'} checked=checked {/if} value="0" type="radio">
- </td>
- <td class="vatop tips">{$Think.lang.voucher_allow_notice|raw}</td>
- </tr>
-
- <tr>
- <td colspan="2" class="required">{$Think.lang.mgdiscount_allow}:</td>
- </tr>
- <tr class="noborder">
- <td class="vatop rowform onoff">
- <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>
- <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>
- <input id="mgdiscount_allow_1" name="mgdiscount_allow" {if $list_setting.mgdiscount_allow == '1'} checked=checked {/if} value="1" type="radio">
- <input id="mgdiscount_allow_0" name="mgdiscount_allow" {if $list_setting.mgdiscount_allow == '0'} checked=checked {/if} value="0" type="radio">
- </td>
- <td class="vatop tips">{$Think.lang.mgdiscount_allow_notice}</td>
- </tr>
- </tbody>
- </table>
-
- <table class="ds-default-table">
- <tfoot>
- <tr class="tfoot">
- <td colspan="2"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
- </tr>
- </tfoot>
- </table>
- </form>
- </div>
- <script>
- $(document).ready(function(){
- $("#settingForm").validate({
- errorPlacement: function(error, element){
- error.appendTo(element.parent().parent().find('td:last'));
- },
- rules : {
- points_reg:{
- number:true,
- min:0
- },
- points_login :{
- number:true,
- min:0
- },
- points_comments :{
- number:true,
- min:0
- },
- points_signin :{
- number:true,
- min:0
- },
- points_invite :{
- number:true,
- min:0
- },
- points_rebate :{
- number:true,
- min:0
- },
- points_orderrate :{
- number:true,
- min:0
- },
- points_ordermax :{
- number:true,
- min:0
- }
- },
- messages : {
- points_reg:{
- number:'{$Think.lang.ds_sort_number}',
- min:'{$Think.lang.ds_min_error}0'
- },
- points_login :{
- number:'{$Think.lang.ds_sort_number}',
- min:'{$Think.lang.ds_min_error}0'
- },
- points_comments :{
- number:'{$Think.lang.ds_sort_number}',
- min:'{$Think.lang.ds_min_error}0'
- },
- points_signin :{
- number:'{$Think.lang.ds_sort_number}',
- min:'{$Think.lang.ds_min_error}0'
- },
- points_invite :{
- number:'{$Think.lang.ds_sort_number}',
- min:'{$Think.lang.ds_min_error}0'
- },
- points_rebate :{
- number:'{$Think.lang.ds_sort_number}',
- min:'{$Think.lang.ds_min_error}0'
- },
- points_orderrate :{
- number:'{$Think.lang.ds_sort_number}',
- min:'{$Think.lang.ds_min_error}0'
- },
- points_ordermax :{
- number:'{$Think.lang.ds_sort_number}',
- min:'{$Think.lang.ds_min_error}0'
- }
- }
- });
- });
- </script>
|