upddistributor.jsp 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. <%@ page contentType="text/html;charset=UTF-8" language="java"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
  4. <%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
  5. <%
  6. String base = pageContext.getServletContext().getContextPath();
  7. %>
  8. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  9. <html>
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  12. <script type="text/javascript">
  13. window.UEDITOR_SERVER_URL = '<%=base%>';
  14. </script>
  15. <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/manage/h-ui/css/H-ui.min.css" />
  16. <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/manage/h-ui.admin/css/H-ui.admin.css" />
  17. <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/manage/Hui-iconfont/1.0.7/iconfont.css" />
  18. <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/manage/icheck/icheck.css" />
  19. <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/manage/h-ui.admin/skin/default/skin.css" id="skin" />
  20. <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/manage/h-ui.admin/css/style.css" />
  21. <link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/admin/css/laydate.css"/>
  22. <script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/jquery-1.7.2.min.js"></script>
  23. <title>添加</title>
  24. </head>
  25. <body>
  26. <nav class="breadcrumb">
  27. <i class="Hui-iconfont">&#xe67f;</i> 修改
  28. <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>
  29. </nav>
  30. <div class="page-container">
  31. <form action="upddistributors.html" method="post" enctype="multipart/form-data" class="form form-horizontal" id="banneradd">
  32. <div class="row cl">
  33. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>经销商名称:</label>
  34. <div class="formControls col-xs-8 col-sm-9">
  35. <input type="text" class="input-text" name="name" value="${findid.name}">
  36. <input type="hidden" name="id" value="${findid.id}"/>
  37. </div>
  38. </div>
  39. <div class="row cl">
  40. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>经销商地址:</label>
  41. <div class="formControls col-xs-8 col-sm-9">
  42. <input type="text" class="input-text" name="address" value="${findid.address}">
  43. </div>
  44. </div>
  45. <div class="row cl">
  46. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>联系方式:</label>
  47. <div class="formControls col-xs-8 col-sm-9">
  48. <input type="text" class="input-text" name="phone" value="${findid.phone}">
  49. </div>
  50. </div>
  51. <div class="row cl">
  52. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>纬度:</label>
  53. <div class="formControls col-xs-8 col-sm-9">
  54. <input type="text" class="input-text" name="latitude" value="${findid.latitude}">
  55. </div>
  56. </div>
  57. <div class="row cl">
  58. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>经度:</label>
  59. <div class="formControls col-xs-8 col-sm-9">
  60. <input type="text" class="input-text" name="longitude" value="${findid.longitude}">
  61. </div>
  62. </div>
  63. <div class="row cl">
  64. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>所属城市:</label>
  65. <div class="formControls col-xs-8 col-sm-9">
  66. <input type="text" class="input-text" name="city" value="${findid.city}">
  67. </div>
  68. </div>
  69. <div class="row cl">
  70. <label class="form-label col-xs-4 col-sm-2"><span class="c-red"></span>经销商等级:</label>
  71. <div class="formControls col-xs-8 col-sm-9">
  72. <input type="text" class="input-text" name="sort" value="${findid.sort}" >
  73. </div>
  74. </div>
  75. <div class="row cl">
  76. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  77. <button onClick="$('#banneradd').submit()" class="btn btn-primary radius" type="button"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
  78. </div>
  79. </div>
  80. </form>
  81. </div>
  82. <!-- 百度文本编辑器 引用文件 -->
  83. <link href="<%=base%>/static/ue/themes/default/css/ueditor.css" type="text/css" rel="stylesheet">
  84. <script src="<%=base%>/static/ue/ueditor.config.js" type="text/javascript"></script>
  85. <script src="<%=base%>/static/ue/ueditor.all.js" type="text/javascript"></script>
  86. <script type="text/javascript" src="<%=base%>/static/ue/lang/zh-cn/zh-cn.js"></script>
  87. <!-- 百度文本编辑器 js -->
  88. <script type="text/javascript">
  89. $(function(){
  90. var ue = UE.getEditor('introduction',{
  91. //关闭字数统计
  92. wordCount:false,
  93. toolbars:[['fullscreen', 'source', '|', 'undo', 'redo', '|',
  94. 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
  95. 'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
  96. 'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
  97. 'directionalityltr', 'directionalityrtl', 'indent', '|',
  98. 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
  99. 'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
  100. 'insertimage', 'emotion', 'insertvideo', 'attachment', 'map', 'template', 'background', '|',
  101. 'horizontal', 'date', 'time', 'spechars', 'wordimage', '|',
  102. 'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
  103. 'print', 'preview', 'searchreplace', 'help'
  104. ]],
  105. //关闭elementPath
  106. elementPathEnabled:false,
  107. });
  108. });
  109. var currentBrowserId;
  110. function browserImage(targetId){
  111. currentBrowserId = targetId;
  112. var weboxTemp = $.webox({
  113. height:600,
  114. width:1024,
  115. bgvisibel:true,
  116. title:'图片管理',
  117. iframe:'<%=base%>/admin/image/imgbox.html?'+Math.random()
  118. });
  119. }
  120. function setImagepath(imgPath){
  121. $('#'+currentBrowserId).val(imgPath);
  122. }
  123. function closeFrame(){
  124. $('#locked .span').click();
  125. }
  126. </script>
  127. <script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/laydate.dev.js"></script>
  128. <script type="text/javascript">
  129. laydate({
  130. elem: '#J-xl'
  131. });
  132. document.getElementById('J-xl-2-btn').onclick = function(){
  133. laydate({
  134. elem: '#J-xl-2'
  135. });
  136. }
  137. laydate({
  138. elem: '#J-xl-3'
  139. });
  140. laydate({
  141. elem: document.getElementById('J-xl-4')
  142. });
  143. </script>
  144. </body>
  145. </html>