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.
xmkf/zhengyi/WebRoot/admin/commentreply.jsp

103 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="replycontent"]', {
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>
<%
String id = request.getParameter("id");
%>
<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="newsform" method="post" action="<%=path %>/admin/commentReply.do" onsubmit="return newsadd()">
<input type="hidden" name="id" value="<%=id %>"/>
<div class="layui-form-item">
<label class="layui-form-label">回复内容</label>
<div class="layui-input-block">
<textarea id="editor_id" name="replycontent" style="width: 600;height: 280px;" placeholder="回复内容" oninput="setCustomValidity('');" >${news.content}</textarea>
</div>
</div>
<div class="layui-form-item change-submit">
<div class="layui-input-block">
<button class="layui-btn" lay-submit="" id="newsbutton" 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)
{
layer.open({
type: 2,
title: '上传文件',
shadeClose: true,
shade: false,
maxmin: true, //开启最大化最小化按钮
area: ['450px', '200px'],
content: '/booksalessm/upload.jsp?Result='+tt
});
}
</script>
</body>
</html>