addTracking.htm 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. <link rel="stylesheet" href="/admin/assets/css/bootstrap.min.css" />
  2. <link rel="stylesheet" href="/admin/assets/css/font-awesome.min.css" />
  3. <link rel="stylesheet" href="/admin/assets/css/ace.min.css" />
  4. <link rel="stylesheet" href="/admin/assets/css/ace-rtl.min.css" />
  5. <link rel="stylesheet" href="/admin/assets/css/ace-skins.min.css" />
  6. <script src="/admin/script/jquery.min.js"></script>
  7. <script src="/admin/script/jquery.form.js"></script>
  8. <div class="page-content" style="height:450px;overflow:scroll;">
  9. <div class="page-header">
  10. <h1>订单发货</h1>
  11. </div>
  12. <div class="row">
  13. <div class="col-xs-12">
  14. <form class="form-horizontal" action="/admin/orders/saveTracking" method="post" id="submit_form">
  15. <div class="form-group">
  16. <label class="col-sm-3 control-label"><span style="color: #f00">*</span>物流公司</label>
  17. <div class="col-sm-9 control-label">
  18. <select name="tracking_id" class="col-xs-10 col-sm-4" style="border: 1px solid #ccc">
  19. ##for(_tracking in tracking_company!){
  20. <option value="${_tracking.id!}">${_tracking.title!}</option>
  21. ##}
  22. </select>
  23. </div>
  24. </div>
  25. <div class="space-4"></div>
  26. <div class="form-group">
  27. <label class="col-sm-3 control-label"><span style="color: #f00">*</span>运单号</label>
  28. <div class="col-sm-9">
  29. <input type="text" name="tracking_code" class="col-xs-10 col-sm-5" style="border: 1px solid #ccc" />
  30. </div>
  31. </div>
  32. <input type="hidden" name="id" value="${id!}" />
  33. </form>
  34. </div>
  35. </div>
  36. </div>
  37. <div style="width:100%;text-align: center;">
  38. <button type="button" class="btn btn-info" onclick="return submitForm()" style="padding:0px 5px;margin-top:5px;">
  39. <i class="icon-ok bigger-110"></i>确定
  40. </button>
  41. &nbsp;&nbsp;
  42. <button type="reset" class="btn" onclick="parent.hideAlert()" style="padding:0px 5px;margin-top:5px;">
  43. <i class="icon-undo bigger-110"></i>取消
  44. </button>
  45. </div>
  46. <script>
  47. function submitForm(){
  48. $('#submit_form').ajaxSubmit({
  49. success: function(data){
  50. alert(data.msg);
  51. if(data.success){
  52. parent.location.reload();
  53. }
  54. }
  55. });
  56. }
  57. </script>