bundling_setting.html 3.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {include file="public/header" /}
  2. <div class="page">
  3. <form id="add_form" method="post" >
  4. <table class="ds-default-table">
  5. <tbody>
  6. <tr class="noborder">
  7. <td class="required w120"><label class="validation" for="promotion_bundling_price">{$Think.lang.bundling_gold_price}{$Think.lang.ds_colon}</label></td>
  8. <td class="vatop rowform">
  9. <input type="text" id="promotion_bundling_price" name="promotion_bundling_price" value="{$setting.promotion_bundling_price}" class="txt">
  10. </td>
  11. <td class="vatop tips">{$Think.lang.bundling_price_prompt}</td>
  12. </tr>
  13. <tr class="noborder">
  14. <td class="required"><label class="validation" for="promotion_bundling_sum">{$Think.lang.bundling_sum}{$Think.lang.ds_colon}</label></td>
  15. <td class="vatop rowform">
  16. <input type="text" id="promotion_bundling_sum" name="promotion_bundling_sum" value="{$setting.promotion_bundling_sum}" class="txt">
  17. </td>
  18. <td class="vatop tips">{$Think.lang.bundling_sum_prompt}</td>
  19. </tr>
  20. <tr class="noborder">
  21. <td class="required"><label class="validation" for="promotion_bundling_goods_sum">{$Think.lang.bundling_goods_sum}{$Think.lang.ds_colon}</label></td>
  22. <td class="vatop rowform">
  23. <input type="text" id="promotion_bundling_goods_sum" name="promotion_bundling_goods_sum" value="{$setting.promotion_bundling_goods_sum}" class="txt">
  24. </td>
  25. <td class="vatop tips">{$Think.lang.bundling_goods_sum_prompt}</td>
  26. </tr>
  27. </tbody>
  28. <tfoot>
  29. <tr class="tfoot">
  30. <td colspan="15"><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  31. </tr>
  32. </tfoot>
  33. </table>
  34. </form>
  35. </div>
  36. <script type="text/javascript">
  37. $(document).ready(function(){
  38. //页面输入内容验证
  39. $("#add_form").validate({
  40. errorPlacement: function(error, element){
  41. error.appendTo(element.parent().parent().find('td:last'));
  42. },
  43. rules : {
  44. promotion_bundling_price: {
  45. required : true,
  46. digits : true,
  47. min : 0
  48. },
  49. promotion_bundling_sum: {
  50. required : true,
  51. digits : true
  52. },
  53. promotion_bundling_goods_sum: {
  54. required : true,
  55. digits : true,
  56. min : 1,
  57. max : 6
  58. }
  59. },
  60. messages : {
  61. promotion_bundling_price: {
  62. required : '{$Think.lang.bundling_price_error}',
  63. digits : '{$Think.lang.bundling_price_error}',
  64. min : '{$Think.lang.bundling_price_error}'
  65. },
  66. promotion_bundling_sum: {
  67. required : '{$Think.lang.bundling_sum_error}',
  68. digits : '{$Think.lang.bundling_sum_error}'
  69. },
  70. promotion_bundling_goods_sum: {
  71. required : '{$Think.lang.bundling_goods_sum_error}',
  72. digits : '{$Think.lang.bundling_goods_sum_error}',
  73. min : '{$Think.lang.bundling_goods_sum_error}',
  74. max : '{$Think.lang.bundling_goods_sum_error}'
  75. }
  76. }
  77. });
  78. });
  79. </script>