edit.htm 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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/freight/update" method="post" id="submit_form">
  15. <div class="form-group">
  16. <label class="col-sm-3 control-label"><span style="color: #f00">*</span>首重500g价格</label>
  17. <div class="col-sm-9">
  18. <input type="text" name="price" class="col-xs-10 col-sm-5" style="border: 1px solid #ccc" value="${freight.price!}" />
  19. </div>
  20. </div>
  21. <div class="space-4"></div>
  22. <div class="form-group">
  23. <label class="col-sm-3 control-label"><span style="color: #f00">*</span>续重500g价格</label>
  24. <div class="col-sm-9">
  25. <input type="text" name="price_ext" class="col-xs-10 col-sm-5" style="border: 1px solid #ccc" value="${freight.price_ext!}" />
  26. </div>
  27. </div>
  28. <input type="hidden" name="id" value="${freight.id!}" />
  29. </form>
  30. </div>
  31. </div>
  32. </div>
  33. <div style="width:100%;text-align: center;">
  34. <button type="button" class="btn btn-info" onclick="return submitForm()" style="padding:0px 5px;margin-top:5px;">
  35. <i class="icon-ok bigger-110"></i>确定
  36. </button>
  37. &nbsp;&nbsp;
  38. <button type="reset" class="btn" onclick="parent.hideAlert()" style="padding:0px 5px;margin-top:5px;">
  39. <i class="icon-undo bigger-110"></i>取消
  40. </button>
  41. </div>
  42. <script>
  43. function submitForm(){
  44. $('#submit_form').ajaxSubmit({
  45. success: function(data){
  46. alert(data.msg);
  47. if(data.success){
  48. parent.location.reload();
  49. }
  50. }
  51. });
  52. }
  53. </script>