receive_pay.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. {include file="public/header" /}
  2. <div class="page">
  3. <form method="post" name="form1" id="form1" action="">
  4. <table class="ds-default-table">
  5. <tbody>
  6. <tr class="noborder">
  7. <td colspan="2" class="required"><label>{$Think.lang.ds_order_sn}</label></td>
  8. </tr>
  9. <tr class="noborder">
  10. <td class="vatop rowform">{$order_sn_list}</td>
  11. <td class="vatop tips"></td>
  12. </tr>
  13. <tr class="noborder">
  14. <td colspan="2" class="required"><label>{$Think.lang.ds_pay_sn}</label></td>
  15. </tr>
  16. <tr class="noborder">
  17. <td class="vatop rowform">{$Request.param.pay_sn}</td>
  18. <td class="vatop tips"></td>
  19. </tr>
  20. <tr class="noborder">
  21. <td colspan="2" class="required"><label>{$Think.lang.ds_order_amount} </label></td>
  22. </tr>
  23. <tr class="noborder">
  24. <td class="vatop rowform">{$pay_amount_online}</td>
  25. <td class="vatop tips"></td>
  26. </tr>
  27. <tr class="noborder">
  28. <td colspan="2" class="required"><label for="payment_time">{$Think.lang.ds_payment_time}</label></td>
  29. </tr>
  30. <tr class="noborder">
  31. <td class="vatop rowform"><input readonly id="payment_time" class="" name="payment_time" value="" type="text" /></td>
  32. <td class="vatop tips"></td>
  33. </tr>
  34. <tr class="noborder">
  35. <td colspan="2" class="required"><label for="payment_code">{$Think.lang.ds_payment_code}</label></td>
  36. </tr>
  37. <tr class="noborder">
  38. <td class="vatop rowform">
  39. <select name="payment_code" class="querySelect">
  40. <option value="">{$Think.lang.ds_please_choose}</option>
  41. {foreach name="payment_list" item="val"}
  42. <option value="{$val.payment_code}">{$val.payment_name}</option>
  43. {/foreach}
  44. </select>
  45. </td>
  46. <td class="vatop tips"></td>
  47. </tr>
  48. <tr>
  49. <td colspan="2" class="required"><label for="trade_no">{$Think.lang.ds_trade_no}</label></td>
  50. </tr>
  51. <tr class="noborder">
  52. <td class="vatop rowform"><input type="text" class="txt2" name="trade_no" id="trade_no" maxlength="40"></td>
  53. <td class="vatop tips"><span class="vatop rowform">{$Think.lang.trade_no_tips}</span></td>
  54. </tr>
  55. </tbody>
  56. <tfoot id="submit-holder">
  57. <tr class="tfoot">
  58. <td colspan="2" ><a href="javascript:void(0)" id="dssubmit" class="btn">{$Think.lang.ds_submit}</a></td>
  59. </tr>
  60. </tfoot>
  61. </table>
  62. </form>
  63. </div>
  64. <script type="text/javascript">
  65. $(function(){
  66. $('#payment_time').datepicker({dateFormat: "yy-mm-dd",maxDate: "{$Think.TIMESTAMP|date='Y-m-d'}"});
  67. $('#dssubmit').click(function(){
  68. if($("#form1").valid()){
  69. layer.confirm("{$Think.lang.receive_pay_confirm}", {
  70. btn: ['{$Think.lang.ds_ok}', '{$Think.lang.ds_cancel}'],
  71. title: false,
  72. }, function () {
  73. $('#form1').submit();
  74. });
  75. }
  76. });
  77. $("#form1").validate({
  78. errorPlacement: function(error, element){
  79. error.appendTo(element.parent().parent().prev().find('td:first'));
  80. },
  81. rules : {
  82. payment_time : {
  83. required : true
  84. },
  85. payment_code : {
  86. required : true
  87. },
  88. trade_no :{
  89. required : true
  90. }
  91. },
  92. messages : {
  93. payment_time : {
  94. required : '{$Think.lang.payment_time_required}'
  95. },
  96. payment_code : {
  97. required : '{$Think.lang.payment_code_required}'
  98. },
  99. trade_no : {
  100. required : '{$Think.lang.trade_no_required}'
  101. }
  102. }
  103. });
  104. });
  105. </script>