adminseo.jsp 6.8 KB

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