auto.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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.auto_set}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form id="auto_set_form" method="post" enctype="multipart/form-data" name="form1">
  13. <table class="ds-default-table">
  14. <tbody>
  15. <tr class="noborder">
  16. <td class="w150"><label for="order_auto_receive_day">{$Think.lang.order_auto_receive_day}:</label></td>
  17. <td class="vatop rowform">
  18. <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}
  19. </td>
  20. <td class="vatop tips">{$Think.lang.order_auto_receive_day_tips}</td>
  21. </tr>
  22. <tr class="noborder">
  23. <td class="w150"><label for="order_auto_cancel_day">{$Think.lang.order_auto_cancel_day}:</label></td>
  24. <td class="vatop rowform">
  25. <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}
  26. </td>
  27. <td class="vatop tips">{$Think.lang.order_auto_cancel_day_tips}</td>
  28. </tr>
  29. <tr class="noborder">
  30. <td class="w150"><label for="code_invalid_refund">{$Think.lang.code_invalid_refund}:</label></td>
  31. <td class="vatop rowform">
  32. <input id="code_invalid_refund" name="code_invalid_refund" value="{$list_config.code_invalid_refund|default=''}" type="text"> {$Think.lang.ds_day}
  33. </td>
  34. <td class="vatop tips">{$Think.lang.code_invalid_refund_tips}</td>
  35. </tr>
  36. <tr class="noborder">
  37. <td class="w150"><label for="store_bill_cycle">{$Think.lang.store_bill_cycle}:</label></td>
  38. <td class="vatop rowform">
  39. <input id="store_bill_cycle" name="store_bill_cycle" value="{$list_config.store_bill_cycle|default=''}" type="text"> {$Think.lang.ds_day}
  40. </td>
  41. <td class="vatop tips">{$Think.lang.store_bill_cycle_tips}</td>
  42. </tr>
  43. </tbody>
  44. <tfoot>
  45. <tr class="tfoot">
  46. <td></td>
  47. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  48. </tr>
  49. </tfoot>
  50. </table>
  51. </form>
  52. </div>
  53. <script type="text/javascript">
  54. $(function() {
  55. $('#auto_set_form').validate({
  56. errorPlacement: function(error, element) {
  57. error.appendTo(element.parent().parent().find('td:last'));
  58. },
  59. rules: {
  60. order_auto_receive_day: {
  61. required: true,
  62. number: true,
  63. range : [1,100]
  64. },
  65. order_auto_cancel_day: {
  66. required: true,
  67. number: true,
  68. range : [1,50]
  69. },
  70. code_invalid_refund: {
  71. required: true,
  72. number: true,
  73. range : [1,100]
  74. },
  75. store_bill_cycle: {
  76. required: true,
  77. number: true,
  78. min : 7
  79. },
  80. },
  81. messages: {
  82. order_auto_receive_day: {
  83. required: '{$Think.lang.order_auto_receive_day_required}',
  84. number:'{$Think.lang.ds_sort_number}',
  85. range:"{$Think.lang.ds_range_1_100}",
  86. },
  87. order_auto_cancel_day: {
  88. required: '{$Think.lang.order_auto_cancel_day_required}',
  89. number:'{$Think.lang.ds_sort_number}',
  90. range:"{$Think.lang.ds_range_1_50}",
  91. },
  92. code_invalid_refund: {
  93. required: '{$Think.lang.code_invalid_refund_required}',
  94. number:'{$Think.lang.ds_sort_number}',
  95. range:"{$Think.lang.ds_range_1_100}",
  96. },
  97. store_bill_cycle: {
  98. required: '{$Think.lang.store_bill_cycle_required}',
  99. number:'{$Think.lang.ds_sort_number}',
  100. min:"{$Think.lang.ds_min_error}7",
  101. },
  102. }
  103. });
  104. });
  105. </script>