order_ship.html 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {include file="public/header" /}
  2. <div class="page">
  3. {notempty name="order_info"}
  4. <form id="ship_form" method="post" name="ship_form" action="{:url('Pointorder/order_ship',['id'=>$Request.get.id])}">
  5. <table class="ds-default-table">
  6. <tbody>
  7. <tr class="noborder">
  8. <td colspan="2"><label>{$Think.lang.admin_pointorder_membername}:</label></td>
  9. </tr>
  10. <tr class="noborder">
  11. <td class="vatop rowform">{$order_info.point_buyername}</td>
  12. <td class="vatop tips"></td>
  13. </tr>
  14. <tr>
  15. <td colspan="2"><label> {$Think.lang.admin_pointorder_ordersn}:</label></td>
  16. </tr>
  17. <tr class="noborder">
  18. <td class="vatop rowform">{$order_info.point_ordersn}</td>
  19. <td class="vatop tips"></td>
  20. </tr>
  21. <tr>
  22. <td colspan="2"><label class="validation" for="shippingcode"> {$Think.lang.admin_pointorder_shipping_code}:</label></td>
  23. </tr>
  24. <tr class="noborder">
  25. <td class="vatop rowform"><input type="text" id="shippingcode" name="shippingcode" class="txt" value="{$order_info.point_shippingcode}"></td>
  26. <td class="vatop tips"></td>
  27. </tr>
  28. <tr>
  29. <td colspan="2"><label class="validation">{$Think.lang.admin_pointorder_express_code}:</label></td>
  30. </tr>
  31. <tr class="noborder">
  32. <td class="vatop rowform" colspan="2">
  33. <select name="express_code">
  34. <option value="">{$Think.lang.ds_please_choose}</option>
  35. {foreach name="express_list" item="v"}
  36. <option value="{$v.express_code}" {$order_info.point_shipping_ecode == $v.express_code ? 'selected' :''}>{$v.express_name}</option>
  37. {/foreach}
  38. </select>
  39. </td>
  40. </tr>
  41. <tfoot>
  42. <tr class="tfoot">
  43. <td colspan="2" >
  44. <input class="btn" type="submit" value="{$Think.lang.ds_submit}"/>
  45. </td>
  46. </tr>
  47. </tfoot>
  48. </table>
  49. </form>
  50. {else/}
  51. <div class='msgdiv'> {$errormsg} <br>
  52. <br>
  53. <a class="forward" href="{:url('Pointorder/pointorder_list')}">{$Think.lang.admin_pointorder_gobacklist}</a> </div>
  54. {/notempty}
  55. </div>
  56. <script type="text/javascript">
  57. $(function(){
  58. $('#ship_form').validate({
  59. errorPlacement: function(error, element){
  60. error.appendTo(element.parent().parent().prev().find('td:first'));
  61. },
  62. rules : {
  63. shippingcode : {
  64. required : true
  65. },
  66. shippingdesc : {
  67. required : true
  68. }
  69. },
  70. messages : {
  71. shippingcode : {
  72. required : '{$Think.lang.admin_pointorder_ship_code_nullerror}'
  73. },
  74. shippingdesc : {
  75. required : '{$Think.lang.ds_required_error}'
  76. }
  77. }
  78. });
  79. });
  80. </script>