123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- {include file="public/header" /}
- <div class="page">
- <div class="fixed-bar">
- <div class="item-title">
- <div class="subject">
- <h3>{$Think.lang.auto_set}</h3>
- <h5></h5>
- </div>
- {include file="public/admin_items" /}
- </div>
- </div>
- <form id="auto_set_form" method="post" enctype="multipart/form-data" name="form1">
- <table class="ds-default-table">
- <tbody>
- <tr class="noborder">
- <td class="w150"><label for="order_auto_receive_day">{$Think.lang.order_auto_receive_day}:</label></td>
- <td class="vatop rowform">
- <input id="order_auto_receive_day" name="order_auto_receive_day" value="{$list_config.order_auto_receive_day|default=''}" type="text"> {$Think.lang.ds_day}
- </td>
- <td class="vatop tips">{$Think.lang.order_auto_receive_day_tips}</td>
- </tr>
- <tr class="noborder">
- <td class="w150"><label for="order_auto_cancel_day">{$Think.lang.order_auto_cancel_day}:</label></td>
- <td class="vatop rowform">
- <input id="order_auto_cancel_day" name="order_auto_cancel_day" value="{$list_config.order_auto_cancel_day|default=''}" type="text"> {$Think.lang.ds_day}
- </td>
- <td class="vatop tips">{$Think.lang.order_auto_cancel_day_tips}</td>
- </tr>
- <tr class="noborder">
- <td class="w150"><label for="code_invalid_refund">{$Think.lang.code_invalid_refund}:</label></td>
- <td class="vatop rowform">
- <input id="code_invalid_refund" name="code_invalid_refund" value="{$list_config.code_invalid_refund|default=''}" type="text"> {$Think.lang.ds_day}
- </td>
- <td class="vatop tips">{$Think.lang.code_invalid_refund_tips}</td>
- </tr>
- <tr class="noborder">
- <td class="w150"><label for="store_bill_cycle">{$Think.lang.store_bill_cycle}:</label></td>
- <td class="vatop rowform">
- <input id="store_bill_cycle" name="store_bill_cycle" value="{$list_config.store_bill_cycle|default=''}" type="text"> {$Think.lang.ds_day}
- </td>
- <td class="vatop tips">{$Think.lang.store_bill_cycle_tips}</td>
- </tr>
- </tbody>
- <tfoot>
- <tr class="tfoot">
- <td></td>
- <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
- </tr>
- </tfoot>
- </table>
- </form>
- </div>
- <script type="text/javascript">
- $(function() {
- $('#auto_set_form').validate({
- errorPlacement: function(error, element) {
- error.appendTo(element.parent().parent().find('td:last'));
- },
- rules: {
- order_auto_receive_day: {
- required: true,
- number: true,
- range : [1,100]
- },
- order_auto_cancel_day: {
- required: true,
- number: true,
- range : [1,50]
- },
- code_invalid_refund: {
- required: true,
- number: true,
- range : [1,100]
- },
- store_bill_cycle: {
- required: true,
- number: true,
- min : 7
- },
-
-
- },
- messages: {
- order_auto_receive_day: {
- required: '{$Think.lang.order_auto_receive_day_required}',
- number:'{$Think.lang.ds_sort_number}',
- range:"{$Think.lang.ds_range_1_100}",
- },
- order_auto_cancel_day: {
- required: '{$Think.lang.order_auto_cancel_day_required}',
- number:'{$Think.lang.ds_sort_number}',
- range:"{$Think.lang.ds_range_1_50}",
- },
- code_invalid_refund: {
- required: '{$Think.lang.code_invalid_refund_required}',
- number:'{$Think.lang.ds_sort_number}',
- range:"{$Think.lang.ds_range_1_100}",
- },
- store_bill_cycle: {
- required: '{$Think.lang.store_bill_cycle_required}',
- number:'{$Think.lang.ds_sort_number}',
- min:"{$Think.lang.ds_min_error}7",
- },
- }
- });
- });
- </script>
|