adminico.jsp 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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/js/ajaxfileupload.js"></script>
  23. <script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/manage/js/jquery.min.js"></script>
  24. <style type="text/css">
  25. .demo1{
  26. height:300px;
  27. }
  28. </style>
  29. <title>添加</title>
  30. </head>
  31. <body>
  32. <nav class="breadcrumb">
  33. <i class="Hui-iconfont">&#xe67f;</i> 其他
  34. <span class="c-gray en">&gt;</span> ico
  35. <span class="c-gray en">&gt;</span> 修改ico
  36. <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>
  37. </nav>
  38. <div class="page-container">
  39. <form action="updicon.html" method="post" enctype="multipart/form-data" class="form form-horizontal" id="banneradd">
  40. <div class="row cl">
  41. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>选择图片:</label>
  42. <div class="formControls col-xs-8 col-sm-9">
  43. <input type="file" name="filename" value="${findid.icopic }">
  44. <input type="hidden" value="${findid.id }" name="id"/>
  45. <img src="${findid.icopic }" width="50px" height="50px">
  46. </div>
  47. </div>
  48. <!-- <div class="row cl">
  49. <label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>权重排序:</label>
  50. <div class="formControls col-xs-8 col-sm-9">
  51. <input type="text" class="input-text" name="sorts" value="0" > <span style="color:red">* 数字越大越靠前</span>
  52. </div>
  53. </div> -->
  54. <div class="row cl">
  55. <div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
  56. <button onClick="$('#banneradd').submit()" class="btn btn-primary radius" type="button"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
  57. </div>
  58. </div>
  59. </form>
  60. </div>
  61. <!-- 百度文本编辑器 引用文件 -->
  62. <link href="<%=base%>/static/ue/themes/default/css/ueditor.css" type="text/css" rel="stylesheet">
  63. <script src="<%=base%>/static/ue/ueditor.config.js" type="text/javascript"></script>
  64. <script src="<%=base%>/static/ue/ueditor.all.js" type="text/javascript"></script>
  65. <script type="text/javascript" src="<%=base%>/static/ue/lang/zh-cn/zh-cn.js"></script>
  66. <!-- 百度文本编辑器 js -->
  67. <script type="text/javascript">
  68. $(function(){
  69. var ue = UE.getEditor('introduction',{
  70. //关闭字数统计
  71. wordCount:false,
  72. toolbars:[['fullscreen', 'source', '|', 'undo', 'redo', '|',
  73. 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
  74. 'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
  75. 'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
  76. 'directionalityltr', 'directionalityrtl', 'indent', '|',
  77. 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
  78. 'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
  79. 'insertimage', 'emotion', 'insertvideo', 'attachment', 'map', 'template', 'background', '|',
  80. 'horizontal', 'date', 'time', 'spechars', 'wordimage', '|',
  81. 'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', 'charts', '|',
  82. 'print', 'preview', 'searchreplace', 'help'
  83. ]],
  84. //关闭elementPath
  85. elementPathEnabled:false,
  86. initialFrameWidth:1240, //初始化编辑器宽度,默认1000
  87. initialFrameHeight:500 //初始化编辑器高度,默认320
  88. });
  89. });
  90. var currentBrowserId;
  91. function browserImage(targetId){
  92. currentBrowserId = targetId;
  93. var weboxTemp = $.webox({
  94. height:600,
  95. width:1024,
  96. bgvisibel:true,
  97. title:'图片管理',
  98. iframe:'<%=base%>/admin/image/imgbox.html?'+Math.random()
  99. });
  100. }
  101. function setImagepath(imgPath){
  102. $('#'+currentBrowserId).val(imgPath);
  103. }
  104. function closeFrame(){
  105. $('#locked .span').click();
  106. }
  107. </script>
  108. <script type="text/javascript" src="${pageContext.request.contextPath}/static/admin/js/laydate.dev.js"></script>
  109. <script type="text/javascript">
  110. laydate({
  111. elem: '#J-xl'
  112. });
  113. document.getElementById('J-xl-2-btn').onclick = function(){
  114. laydate({
  115. elem: '#J-xl-2'
  116. });
  117. }
  118. laydate({
  119. elem: '#J-xl-3'
  120. });
  121. laydate({
  122. elem: document.getElementById('J-xl-4')
  123. });
  124. </script>
  125. </body>
  126. </html>