add.htm 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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/save" 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" />
  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" />
  26. </div>
  27. </div>
  28. <div class="space-4"></div>
  29. <div class="form-group">
  30. <label class="col-sm-3 control-label"><span style="color: #f00">*</span>地区</label>
  31. <div class="col-sm-9" id="area_list">
  32. <select name="area_id" class="col-xs-4 col-sm-5">
  33. ##for(_area in area_list!){
  34. <option value="${_area.id!}">${_area.name!}</option>
  35. ##}
  36. </select>
  37. </div>
  38. </div>
  39. </form>
  40. </div>
  41. </div>
  42. </div>
  43. <div style="width:100%;text-align: center;">
  44. <button type="button" class="btn btn-info" onclick="return submitForm()" style="padding:0px 5px;margin-top:5px;">
  45. <i class="icon-ok bigger-110"></i>确定
  46. </button>
  47. &nbsp;&nbsp;
  48. <button type="reset" class="btn" onclick="parent.hideAlert()" style="padding:0px 5px;margin-top:5px;">
  49. <i class="icon-undo bigger-110"></i>取消
  50. </button>
  51. </div>
  52. <script>
  53. function submitForm(){
  54. $('#submit_form').ajaxSubmit({
  55. success: function(data){
  56. alert(data.msg);
  57. if(data.success){
  58. parent.location.reload();
  59. }
  60. }
  61. });
  62. }
  63. </script>