receive_pay.html 4.2 KB

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