You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
95 lines
3.9 KiB
95 lines
3.9 KiB
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
|
|
<%
|
|
String path = request.getContextPath();
|
|
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
|
%>
|
|
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>编辑新闻</title>
|
|
<meta name="renderer" content="webkit">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="format-detection" content="telephone=no">
|
|
<link rel="stylesheet" type="text/css" href="<%=path %>/admin/common/layui/css/layui.css" media="all">
|
|
<link rel="stylesheet" type="text/css" href="<%=path %>/admin/common/bootstrap/css/bootstrap.css" media="all">
|
|
<link rel="stylesheet" type="text/css" href="<%=path %>/admin/common/global.css" media="all">
|
|
<link rel="stylesheet" type="text/css" href="<%=path %>/admin/css/personal.css" media="all">
|
|
<script type="text/javascript" src="<%=path %>/layer/jquery-2.0.3.min.js"></script>
|
|
<script type="text/javascript" src="<%=path %>/layer/layer.js"></script>
|
|
<script type="text/javascript" src="<%=path %>/admin/js/popup.js"></script>
|
|
|
|
<link rel="stylesheet" href="../themes/default/default.css" />
|
|
<link rel="stylesheet" href="../plugins/code/prettify.css" />
|
|
<script charset="utf-8" src="../plugins/code/prettify.js"></script>
|
|
<script charset="utf-8" src="/booksalessm/kindeditor/kindeditor-all.js"></script>
|
|
<script charset="utf-8" src="/booksalessm/kindeditor/lang/zh-CN.js"></script>
|
|
<script>
|
|
KindEditor.ready(function(K) {
|
|
window.editor = K.create('#editor_id');
|
|
});
|
|
</script>
|
|
<script>
|
|
KindEditor.ready(function(K) {
|
|
K.create('textarea[name="content"]', {
|
|
uploadJson : '/booksalessm/kindeditor/jsp/upload_json.jsp',
|
|
fileManagerJson : '/booksalessm/kindeditor/jsp/file_manager_json.jsp',
|
|
allowFileManager : true,
|
|
allowImageUpload : true,
|
|
autoHeightMode : true,
|
|
afterCreate : function() {this.loadPlugin('autoheight');},
|
|
afterBlur : function(){ this.sync(); } //Kindeditor下获取文本框信息
|
|
});
|
|
});
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<section class="layui-larry-box">
|
|
<div class="larry-personal">
|
|
<header class="larry-personal-tit">
|
|
<span>编辑新闻</span>
|
|
</header><!-- /header -->
|
|
<div class="larry-personal-body clearfix changepwd">
|
|
<form class="layui-form col-lg-4" id="aboutform" method="post" action="<%=path %>/admin/aboutEdit.do" onsubmit="return aboutadd()">
|
|
<input type="hidden" name="id" value="1"/>
|
|
<div class="layui-form-item">
|
|
<label class="layui-form-label">内容</label>
|
|
<div class="layui-input-block">
|
|
<textarea id="editor_id" name="content" style="width: 600;height: 280px;" placeholder="新闻内容" style="height: 300px;width: 600px;" required class="layui-textarea" oninvalid="setCustomValidity('请输入新闻内容')" oninput="setCustomValidity('');" >${about.content}</textarea>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
<div class="layui-form-item change-submit">
|
|
<div class="layui-input-block">
|
|
|
|
<button class="layui-btn" lay-submit="" id="aboutbutton" lay-filter="demo1" >立即提交</button>
|
|
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
<script type="text/javascript" src="<%=path %>/admin/common/layui/layui.js"></script>
|
|
<script type="text/javascript">
|
|
layui.use(['form','upload'],function(){
|
|
var form = layui.form();
|
|
});
|
|
|
|
function up(tt)
|
|
{
|
|
var pop=new Popup({ contentType:1,isReloadOnClose:false,width:300,height:50});
|
|
pop.setContent("contentUrl","<%=path%>/upload.jsp?Result="+tt);
|
|
pop.setContent("title","文件上传");
|
|
pop.build();
|
|
pop.show();
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |