vr_refund_edit.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-empty"></div>
  4. <div class="fixed-empty"></div>
  5. <form id="post_form" method="post" action="{:url('Vrrefund/edit',['refund_id'=>$refund.refund_id])}">
  6. <table class="ds-default-table">
  7. <tbody>
  8. <tr>
  9. <td colspan="2" class="required">{$Think.lang.refund_order_refund}{$Think.lang.ds_colon}</td>
  10. </tr>
  11. <tr class="noborder">
  12. <td class="vatop rowform">{:ds_price_format($refund['refund_amount'])}</td>
  13. <td class="vatop tips"></td>
  14. </tr>
  15. <tr>
  16. <td colspan="2" class="required">{$Think.lang.ds_goods_name}{$Think.lang.ds_colon}</td>
  17. </tr>
  18. <tr class="noborder">
  19. <td class="vatop rowform"><a href="{:url('/home/Goods/index',['goods_id'=>$refund.goods_id])}" target="_blank">{$refund.goods_name}</a></td>
  20. <td class="vatop tips"></td>
  21. </tr>
  22. <tr>
  23. <td colspan="2" class="required">{$Think.lang.vrrefund_code_array}{$Think.lang.ds_colon}</td>
  24. </tr>
  25. <tr class="noborder">
  26. <td class="vatop rowform">
  27. {notempty name="code_array"}
  28. {foreach name="code_array" item="val" key="key" }
  29. {$val}<br />
  30. {/foreach}
  31. {/notempty}
  32. </td>
  33. <td class="vatop tips"></td>
  34. </tr>
  35. <tr>
  36. <td colspan="2" class="required">{$Think.lang.vrrefund_buyer_message}{$Think.lang.ds_colon}</td>
  37. </tr>
  38. <tr class="noborder">
  39. <td class="vatop rowform">{$refund.buyer_message}</td>
  40. <td class="vatop tips"></td>
  41. </tr>
  42. <tr>
  43. <td colspan="2" class="required"><label class="validation">{$Think.lang.vrrefund_if_agree}{$Think.lang.ds_colon}</label>
  44. </td>
  45. </tr>
  46. <tr class="noborder">
  47. <td class="vatop rowform onoff">
  48. <label for="state1" class="cb-enable" title="{$Think.lang.ds_yes} {if condition='$refund.admin_state eq 2'}selected{/if}"><span>{$Think.lang.ds_yes}</span></label>
  49. <label for="state0" class="cb-disable" title="{$Think.lang.ds_no} {if condition='$refund.admin_state eq 3'}selected{/if}"><span>{$Think.lang.ds_no}</span></label>
  50. <input id="state1" name="admin_state" value="2" type="radio" {if condition="$refund.admin_state eq 2"} checked="checked"{/if}>
  51. <input id="state0" name="admin_state" value="3" type="radio" {if condition="$refund.admin_state eq 3"} checked="checked"{/if}>
  52. </td>
  53. <td class="vatop tips"></td>
  54. </tr>
  55. <tr>
  56. <td colspan="2" class="required"><label class="validation">{$Think.lang.refund_message}{$Think.lang.ds_colon}</label></td>
  57. </tr>
  58. <tr class="noborder">
  59. <td class="vatop rowform">
  60. <textarea id="admin_message" name="admin_message" class="tarea"></textarea>
  61. </td>
  62. <td class="vatop tips"></td>
  63. </tr>
  64. </tbody>
  65. <tfoot>
  66. <tr class="tfoot">
  67. <td colspan="15" ><input class="btn" type="submit" value="{$Think.lang.ds_submit}"/></td>
  68. </tr>
  69. </tfoot>
  70. </table>
  71. </form>
  72. </div>
  73. <script type="text/javascript">
  74. $(function() {
  75. $('#post_form').validate({
  76. errorPlacement: function(error, element) {
  77. error.appendTo(element.parentsUntil('tr').parent().prev().find('td:first'));
  78. },
  79. rules: {
  80. admin_state: {
  81. required: true
  82. },
  83. admin_message: {
  84. required: true
  85. }
  86. },
  87. messages: {
  88. admin_state: {
  89. required: '{$Think.lang.vrrefund_if_agree_required}'
  90. },
  91. admin_message: {
  92. required: '{$Think.lang.refund_message_null}'
  93. }
  94. }
  95. });
  96. });
  97. </script>