formPage.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <%var cssParam = {%>
  2. <%};%>
  3. <%var jsParam = {%>
  4. <script type="text/javascript">
  5. function verifyForm(){
  6. if($("#name").val()==''){
  7. $("#name").focus();
  8. alert("请输入产品服务名称!");
  9. return false;
  10. }
  11. if($("#code").val()==''){
  12. $("#code").focus();
  13. alert("请选择产品服务类别!");
  14. return false;
  15. }
  16. return true;
  17. }
  18. </script>
  19. <%};%>
  20. <%layout("/ace/commonPage/_layout.html", {nav: "产品广告添加",meunsel:"productAdvertisemenManage",jsParam:jsParam,cssParam:cssParam}) {%>
  21. <div class="col-xs-12">
  22. <form class="form-horizontal" role="form" enctype="multipart/form-data" action="${contextPath}/productAdvertisement/edit" method="post" onsubmit="return verifyForm()">
  23. <input type="hidden" name="pageNumber" value="${pageNumber}"></input>
  24. <input type="hidden" name="id" id="id" value="${productAdvertisement.id!''}"></input>
  25. <input type="hidden" name="urlParas" value="${urlParas!''}"></input>
  26. <div class="form-group">
  27. <label class="col-sm-3 control-label no-padding-right" for="name">* 产品广告名称 </label>
  28. <%if(""==productAdvertisement.id!''){%>
  29. <div class="col-sm-9">
  30. <input name="name" type="text" id="name" placeholder="请输入产品广告名称" class="col-xs-10 col-sm-5" value="${productAdvertisement.name!''}"/>
  31. </div>
  32. <%}else{%>
  33. <label class="col-sm-9 control-label no-padding-right" style="text-align: left;">${productAdvertisement.name!}</label>
  34. <%}%>
  35. </div>
  36. <div class="form-group">
  37. <label class="col-sm-3 control-label no-padding-right" for="homepage"> 请选择广告位 </label>
  38. <div class="col-sm-9">
  39. <select name="code" class="col-xs-10 col-sm-5" id="code">
  40. <option value="big">轮播位</option>
  41. <option value="middle">侧边位</option>
  42. <option value="small">底部位</option>
  43. </select>
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="col-sm-3 control-label no-padding-right" for="image1"> 广告图片
  48. <%if(productAdvertisement.imagePath!'' != ''){%>
  49. <img alt="${productAdvertisement.name!''}" width="50px" height="50px" src="${contextPath}/imageFile/getImage?imagePath=${productAdvertisement.imagePath!''}" >
  50. <%}%> </label>
  51. <div class="col-sm-9">
  52. <input name="portraitFile" type="file" id="imagePath" placeholder="请上传图片" class="col-xs-10 col-sm-5" value="${productAdvertisement.imagePath!''}"/>
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label class="col-sm-3 control-label no-padding-right" for="introduction"> 广告链接地址</label>
  57. <div class="col-sm-9">
  58. <input name="url" type="text" id="url" placeholder="请输入广告链接地址" class="col-xs-10 col-sm-5" value="${productAdvertisement.url!''}"/>
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <label class="col-sm-3 control-label no-padding-right" for="price"> 排序</label>
  63. <div class="col-sm-9">
  64. <input name="sortNum" type="text" id="sortNum" placeholder="请输入排序数值(升序排序)" class="col-xs-10 col-sm-5" value="${productAdvertisement.sortNum!''}"/>
  65. </div>
  66. </div>
  67. <div class="clearfix form-actions">
  68. <div class="col-md-offset-3 col-md-9">
  69. <button class="btn" type="button" onclick="javascript:history.go(-1);">
  70. <i class="icon-arrow-left bigger-110"></i>
  71. 返回
  72. </button>
  73. &nbsp; &nbsp; &nbsp;
  74. <button class="btn btn-info" type="submit">
  75. <i class="icon-ok bigger-110"></i>
  76. 提交
  77. </button>
  78. &nbsp; &nbsp; &nbsp;
  79. <button class="btn" type="reset">
  80. <i class="icon-undo bigger-110"></i>
  81. 清空
  82. </button>
  83. </div>
  84. </div>
  85. </form>
  86. <!-- /span -->
  87. </div>
  88. <!-- /row -->
  89. <%}%>