.
This commit is contained in:
70
WebRoot/JSPhandle/admin_delete.jsp
Normal file
70
WebRoot/JSPhandle/admin_delete.jsp
Normal file
@@ -0,0 +1,70 @@
|
||||
<%@ page language="java" import="java.sql.*"
|
||||
contentType="text/html;charset=utf-8"%>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<base href="<%=basePath%>">
|
||||
|
||||
<title>检验插入页面</title>
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<meta http-equiv="cache-control" content="no-cache">
|
||||
<meta http-equiv="expires" content="0">
|
||||
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
|
||||
<meta http-equiv="description" content="This is my page">
|
||||
<!--
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
-->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<br>
|
||||
<%
|
||||
boolean flag = false;
|
||||
request.setCharacterEncoding("utf-8");
|
||||
String name = request.getParameter("AdminName");
|
||||
|
||||
%>
|
||||
<%
|
||||
String driver = "com.mysql.jdbc.Driver";
|
||||
String url = "jdbc:mysql://localhost:3306/db_school?useUnicode=true&characterEncoding=utf-8";
|
||||
String use = "root";
|
||||
String password = "";
|
||||
Class.forName(driver);
|
||||
Connection conn = DriverManager.getConnection(url, use, password);
|
||||
PreparedStatement sql = conn
|
||||
.prepareStatement("delete from adminstrator_record where AdminName=?");
|
||||
sql.setString(1, name);
|
||||
int rtn = sql.executeUpdate();
|
||||
if (rtn != 0) {
|
||||
flag = true;
|
||||
}
|
||||
sql.close();
|
||||
conn.close();
|
||||
%>
|
||||
<!-- 判断是否是插入成功 -->
|
||||
<%
|
||||
if (flag == true) {
|
||||
%>
|
||||
<jsp:forward page="delete_success.jsp" />
|
||||
<%
|
||||
} else if (flag == false) {
|
||||
%>
|
||||
<%=name%>
|
||||
|
||||
<%-- <%=sql.setString(1, name)%>
|
||||
<%=sql.setString(2, Email)%>
|
||||
<%=sql.setString(4, VIP)%>
|
||||
<%=sql.setString(3, Administrator)%>
|
||||
<%=sql.setString(5, name)%> --%>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
70
WebRoot/JSPhandle/adminjob_delete.jsp
Normal file
70
WebRoot/JSPhandle/adminjob_delete.jsp
Normal file
@@ -0,0 +1,70 @@
|
||||
<%@ page language="java" import="java.sql.*"
|
||||
contentType="text/html;charset=utf-8"%>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<base href="<%=basePath%>">
|
||||
|
||||
<title>检验插入页面</title>
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<meta http-equiv="cache-control" content="no-cache">
|
||||
<meta http-equiv="expires" content="0">
|
||||
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
|
||||
<meta http-equiv="description" content="This is my page">
|
||||
<!--
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
-->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<br>
|
||||
<%
|
||||
boolean flag = false;
|
||||
request.setCharacterEncoding("utf-8");
|
||||
String name = request.getParameter("AdminJob");
|
||||
|
||||
%>
|
||||
<%
|
||||
String driver = "com.mysql.jdbc.Driver";
|
||||
String url = "jdbc:mysql://localhost:3306/db_school?useUnicode=true&characterEncoding=utf-8";
|
||||
String use = "root";
|
||||
String password = "";
|
||||
Class.forName(driver);
|
||||
Connection conn = DriverManager.getConnection(url, use, password);
|
||||
PreparedStatement sql = conn
|
||||
.prepareStatement("delete from administrator_job where AdminJob=?");
|
||||
sql.setString(1, name);
|
||||
int rtn = sql.executeUpdate();
|
||||
if (rtn != 0) {
|
||||
flag = true;
|
||||
}
|
||||
sql.close();
|
||||
conn.close();
|
||||
%>
|
||||
<!-- 判断是否是插入成功 -->
|
||||
<%
|
||||
if (flag == true) {
|
||||
%>
|
||||
<jsp:forward page="delete_success.jsp" />
|
||||
<%
|
||||
} else if (flag == false) {
|
||||
%>
|
||||
<%=name%>
|
||||
|
||||
<%-- <%=sql.setString(1, name)%>
|
||||
<%=sql.setString(2, Email)%>
|
||||
<%=sql.setString(4, VIP)%>
|
||||
<%=sql.setString(3, Administrator)%>
|
||||
<%=sql.setString(5, name)%> --%>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
27
WebRoot/JSPhandle/delete_success.jsp
Normal file
27
WebRoot/JSPhandle/delete_success.jsp
Normal file
@@ -0,0 +1,27 @@
|
||||
<%@ page language="java" import="java.util.*" contentType="text/html;charset=utf-8"%>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<base href="<%=basePath%>">
|
||||
<title>插入成功</title>
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<meta http-equiv="cache-control" content="no-cache">
|
||||
<meta http-equiv="expires" content="0">
|
||||
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
|
||||
<meta http-equiv="description" content="This is my page">
|
||||
<!--
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
-->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
删除成功. <br>
|
||||
<% response.setHeader("refresh","1;url=../mainframe.jsp");%>
|
||||
</body>
|
||||
</html>
|
||||
70
WebRoot/JSPhandle/job_delete.jsp
Normal file
70
WebRoot/JSPhandle/job_delete.jsp
Normal file
@@ -0,0 +1,70 @@
|
||||
<%@ page language="java" import="java.sql.*"
|
||||
contentType="text/html;charset=utf-8"%>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<base href="<%=basePath%>">
|
||||
|
||||
<title>检验插入页面</title>
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<meta http-equiv="cache-control" content="no-cache">
|
||||
<meta http-equiv="expires" content="0">
|
||||
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
|
||||
<meta http-equiv="description" content="This is my page">
|
||||
<!--
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
-->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<br>
|
||||
<%
|
||||
boolean flag = false;
|
||||
request.setCharacterEncoding("utf-8");
|
||||
String name = request.getParameter("AdminJob");
|
||||
|
||||
%>
|
||||
<%
|
||||
String driver = "com.mysql.jdbc.Driver";
|
||||
String url = "jdbc:mysql://localhost:3306/db_school?useUnicode=true&characterEncoding=utf-8";
|
||||
String use = "root";
|
||||
String password = "";
|
||||
Class.forName(driver);
|
||||
Connection conn = DriverManager.getConnection(url, use, password);
|
||||
PreparedStatement sql = conn
|
||||
.prepareStatement("delete from administrator_job where AdminJob=?");
|
||||
sql.setString(1, name);
|
||||
int rtn = sql.executeUpdate();
|
||||
if (rtn != 0) {
|
||||
flag = true;
|
||||
}
|
||||
sql.close();
|
||||
conn.close();
|
||||
%>
|
||||
<!-- 判断是否是插入成功 -->
|
||||
<%
|
||||
if (flag == true) {
|
||||
%>
|
||||
<jsp:forward page="delete_success.jsp" />
|
||||
<%
|
||||
} else if (flag == false) {
|
||||
%>
|
||||
<%=name%>
|
||||
|
||||
<%-- <%=sql.setString(1, name)%>
|
||||
<%=sql.setString(2, Email)%>
|
||||
<%=sql.setString(4, VIP)%>
|
||||
<%=sql.setString(3, Administrator)%>
|
||||
<%=sql.setString(5, name)%> --%>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
67
WebRoot/JSPhandle/limits_check_delete.jsp
Normal file
67
WebRoot/JSPhandle/limits_check_delete.jsp
Normal file
@@ -0,0 +1,67 @@
|
||||
<%@ page language="java" import="java.sql.*"
|
||||
contentType="text/html;charset=utf-8"%>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
%>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<base href="<%=basePath%>">
|
||||
<title></title>
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<meta http-equiv="cache-control" content="no-cache">
|
||||
<meta http-equiv="expires" content="0">
|
||||
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
|
||||
<meta http-equiv="description" content="This is my page">
|
||||
<!--
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
-->
|
||||
</head>
|
||||
<body>
|
||||
<%
|
||||
request.setCharacterEncoding("utf-8");
|
||||
boolean flag = false;
|
||||
PreparedStatement sql = null;
|
||||
ResultSet rs = null;
|
||||
Connection conn = null;
|
||||
if (session.getAttribute("actualuser") == null) {
|
||||
out.println(
|
||||
"<script language=javascript>alert('登录超时 (1440 秒未活动)或未登录,请重新登录。');window.location.href='index.html'</script>");
|
||||
return;
|
||||
}
|
||||
Object user0 = session.getAttribute("actualuser");
|
||||
String users = (String) user0;
|
||||
%>
|
||||
|
||||
<%
|
||||
String driver = "com.mysql.jdbc.Driver";
|
||||
String url = "jdbc:mysql://localhost:3306/db_school?useUnicode=true&characterEncoding=utf-8";
|
||||
String use = "root";
|
||||
String password = "";
|
||||
Class.forName(driver);
|
||||
conn = DriverManager.getConnection(url, use, password);
|
||||
sql = conn.prepareStatement("select * from show_user where userName=? and Administrator=1");
|
||||
sql.setString(1, users);
|
||||
rs = sql.executeQuery();
|
||||
if (rs.next()) {
|
||||
flag = true;
|
||||
}
|
||||
rs.close();
|
||||
sql.close();
|
||||
conn.close();
|
||||
%>
|
||||
<!-- 判断是否是管理员 -->
|
||||
<%
|
||||
if (flag == true) {
|
||||
response.setHeader("refresh", "0;url=../delete_user.jsp");
|
||||
} else if (flag == false) {
|
||||
out.println("<script language=javascript>alert('你不是管理员,不能访问此版块')</script>");
|
||||
response.setHeader("refresh", "1;url=../mainframe.jsp");
|
||||
}
|
||||
%>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -48,6 +48,8 @@
|
||||
if (rs.next()) {
|
||||
flag = true;
|
||||
}
|
||||
rs.close();
|
||||
sql.close();
|
||||
%>
|
||||
<%
|
||||
try {
|
||||
|
||||
@@ -76,7 +76,8 @@ String str_date2 = currentTime.toString(); //将Date型日期时间转换成字
|
||||
ex.printStackTrace();
|
||||
}
|
||||
%>
|
||||
j<%
|
||||
<%
|
||||
stmt.close();
|
||||
sql.close();
|
||||
conn.close();
|
||||
%>
|
||||
|
||||
70
WebRoot/JSPhandle/user_delete.jsp
Normal file
70
WebRoot/JSPhandle/user_delete.jsp
Normal file
@@ -0,0 +1,70 @@
|
||||
<%@ page language="java" import="java.sql.*"
|
||||
contentType="text/html;charset=utf-8"%>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<base href="<%=basePath%>">
|
||||
|
||||
<title>检验插入页面</title>
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<meta http-equiv="cache-control" content="no-cache">
|
||||
<meta http-equiv="expires" content="0">
|
||||
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
|
||||
<meta http-equiv="description" content="This is my page">
|
||||
<!--
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
-->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<br>
|
||||
<%
|
||||
boolean flag = false;
|
||||
request.setCharacterEncoding("utf-8");
|
||||
String name = request.getParameter("userName");
|
||||
|
||||
%>
|
||||
<%
|
||||
String driver = "com.mysql.jdbc.Driver";
|
||||
String url = "jdbc:mysql://localhost:3306/db_school?useUnicode=true&characterEncoding=utf-8";
|
||||
String use = "root";
|
||||
String password = "";
|
||||
Class.forName(driver);
|
||||
Connection conn = DriverManager.getConnection(url, use, password);
|
||||
PreparedStatement sql = conn
|
||||
.prepareStatement("delete from user where userName=?");
|
||||
sql.setString(1, name);
|
||||
int rtn = sql.executeUpdate();
|
||||
if (rtn != 0) {
|
||||
flag = true;
|
||||
}
|
||||
sql.close();
|
||||
conn.close();
|
||||
%>
|
||||
<!-- 判断是否是插入成功 -->
|
||||
<%
|
||||
if (flag == true) {
|
||||
%>
|
||||
<jsp:forward page="delete_success.jsp" />
|
||||
<%
|
||||
} else if (flag == false) {
|
||||
%>
|
||||
<%=name%>
|
||||
|
||||
<%-- <%=sql.setString(1, name)%>
|
||||
<%=sql.setString(2, Email)%>
|
||||
<%=sql.setString(4, VIP)%>
|
||||
<%=sql.setString(3, Administrator)%>
|
||||
<%=sql.setString(5, name)%> --%>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
108
WebRoot/chartroom/index.html
Normal file
108
WebRoot/chartroom/index.html
Normal file
@@ -0,0 +1,108 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<title>Off Canvas Template for Bootstrap</title>
|
||||
|
||||
<!-- Bootstrap core CSS -->
|
||||
<link href="../css/bootstrap.css" rel="stylesheet">
|
||||
|
||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||
<link href="../css/ie10-viewport-bug-workaround.css" rel="stylesheet">
|
||||
|
||||
<!-- Custom styles for this template -->
|
||||
<link href="offcanvas.css" rel="stylesheet">
|
||||
|
||||
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
|
||||
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
|
||||
<script src="../js/ie-emulation-modes-warning.js"></script>
|
||||
|
||||
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
|
||||
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav class="navbar navbar-fixed-top navbar-inverse">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#">Project name</a>
|
||||
</div>
|
||||
<div id="navbar" class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li class="active"><a href="#">Home</a></li>
|
||||
<li><a href="#about">About</a></li>
|
||||
<li><a href="#contact">Contact</a></li>
|
||||
</ul>
|
||||
</div><!-- /.nav-collapse -->
|
||||
</div><!-- /.container -->
|
||||
</nav><!-- /.navbar -->
|
||||
|
||||
<div class="container">
|
||||
|
||||
<div class="row row-offcanvas row-offcanvas-right">
|
||||
|
||||
<div class="col-xs-12 col-sm-9">
|
||||
<p class="pull-right visible-xs">
|
||||
<button type="button" class="btn btn-primary btn-xs" data-toggle="offcanvas">Toggle nav</button>
|
||||
</p>
|
||||
<div class="row">
|
||||
<div class="col-xs-6 col-lg-4">
|
||||
<h2>Heading</h2>
|
||||
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
||||
<p><a class="btn btn-default" href="#" role="button">View details »</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div><!--/.col-xs-12.col-sm-9-->
|
||||
|
||||
<div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar">
|
||||
<div class="list-group">
|
||||
<a href="#" class="list-group-item active" id="online">在线人员列表</a>
|
||||
<a href="#" class="list-group-item">Link</a>
|
||||
<a href="#" class="list-group-item">Link</a>
|
||||
<a href="#" class="list-group-item">Link</a>
|
||||
<a href="#" class="list-group-item">Link</a>
|
||||
<a href="#" class="list-group-item">Link</a>
|
||||
<a href="#" class="list-group-item">Link</a>
|
||||
<a href="#" class="list-group-item">Link</a>
|
||||
<a href="#" class="list-group-item">Link</a>
|
||||
<a href="#" class="list-group-item">Link</a>
|
||||
</div>
|
||||
</div><!--/.sidebar-offcanvas-->
|
||||
</div><!--/row-->
|
||||
|
||||
<hr>
|
||||
|
||||
<footer>
|
||||
<p>© 2016 Company, Inc.</p>
|
||||
</footer>
|
||||
|
||||
</div><!--/.container-->
|
||||
|
||||
|
||||
<!-- Bootstrap core JavaScript
|
||||
================================================== -->
|
||||
<!-- Placed at the end of the document so the pages load faster -->
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
||||
<script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery.min.js"><\/script>')</script>
|
||||
<script src="../js/bootstrap.min.js"></script>
|
||||
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
|
||||
<script src="../js/ie10-viewport-bug-workaround.js"></script>
|
||||
<script src="offcanvas.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -10,7 +10,7 @@
|
||||
<link href="../css/chart_style.css" rel="stylesheet">
|
||||
<link href="../css/bootstrap.css" rel="stylesheet">
|
||||
<script language="javascript" src="../js/AjaxRequest.js"></script>
|
||||
<link rel="stylesheet" href="。。/css/emoji.css">
|
||||
<link rel="stylesheet" href="../css/emoji.css">
|
||||
<script language="javascript">
|
||||
window.setInterval("showContent();", 1000);
|
||||
window.setInterval("showOnline();", 10000);
|
||||
@@ -55,15 +55,15 @@ function set(selectPerson){ //
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script language="jscript">
|
||||
window.onbeforeunload = function() { //当用户单击浏览器中的“关闭”按钮时,执行退出操作
|
||||
if (event.clientY < 0 && event.clientX > document.body.scrollmax - width) {
|
||||
Exit(); //执行退出操作
|
||||
}
|
||||
}
|
||||
<script language="javascript">
|
||||
|
||||
$(window).on('beforeunload', function() {
|
||||
return '您的视频时间尚未结束,现在退出将无法回到视频';
|
||||
})
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<body onLoad="showContent();showOnline();set('所有人');" onbeforeunload="Exit()">
|
||||
<body onLoad="showContent();showOnline();set('所有人');">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="chatTop"></div>
|
||||
|
||||
191
WebRoot/chartroom/main2.html
Normal file
191
WebRoot/chartroom/main2.html
Normal file
@@ -0,0 +1,191 @@
|
||||
<%@ page contentType="text/html; charset=gb2312" language="java"
|
||||
import="java.sql.*"%>
|
||||
<%
|
||||
request.setCharacterEncoding("gb2312");
|
||||
%>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
|
||||
<title>聊天室</title>
|
||||
<link href="../css/chart_style.css" rel="stylesheet">
|
||||
<link href="../css/bootstrap.css" rel="stylesheet">
|
||||
<script language="javascript" src="../js/AjaxRequest.js"></script>
|
||||
<link rel="stylesheet" href="../css/emoji.css">
|
||||
<!-- <script language="javascript">
|
||||
window.setInterval("showContent();", 1000);
|
||||
window.setInterval("showOnline();", 10000);
|
||||
//此处需要加&nocache="+new Date().getTime(),否则将出现在线人员列表不更新的情况
|
||||
function showOnline() {
|
||||
var loader = new net.AjaxRequest("online.jsp?nocache=" + new Date().getTime(), deal_online, onerror, "GET");
|
||||
}
|
||||
function showContent() {
|
||||
var loader1 = new net.AjaxRequest("content.jsp?nocache=" + new Date().getTime(), deal_content, onerror, "GET");
|
||||
}
|
||||
function onerror() {
|
||||
alert("很抱歉,服务器出现错误,当前窗口将关闭!");
|
||||
window.opener = null;
|
||||
window.close();
|
||||
}
|
||||
function deal_online() {
|
||||
online.innerHTML = this.req.responseText;
|
||||
}
|
||||
function deal_content() {
|
||||
content.innerHTML = this.req.responseText;
|
||||
}
|
||||
</script> -->
|
||||
<!-- <script language="javascript">
|
||||
function check() { //验证聊天信息
|
||||
if (form1.tempuser.value == "") {
|
||||
alert("请选择聊天对象!");return false;
|
||||
}
|
||||
if (form1.message.value == "") {
|
||||
alert("发送信息不可以为空!");form1.message.focus();return false;
|
||||
}
|
||||
}
|
||||
function Exit() {
|
||||
window.location.href = "leave.jsp";
|
||||
}
|
||||
</script>
|
||||
<script language="javascript">
|
||||
function set(selectPerson){ //自动添加聊天对象
|
||||
if(selectPerson!="<%=session.getAttribute("actualuser")%>"){
|
||||
form1.tempuser.value=selectPerson;
|
||||
}else{
|
||||
alert("请重新选择聊天对象!");
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<script language="javascript">
|
||||
|
||||
$(window).on('beforeunload', function() {
|
||||
return '您的视频时间尚未结束,现在退出将无法回到视频';
|
||||
})
|
||||
|
||||
</script> -->
|
||||
</head>
|
||||
<body onLoad="showContent();showOnline();set('所有人');">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="chatTop"></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div id="online" class="col-xs-3 col-sm-3 list">在线人员列表</div>
|
||||
<div id="content" class="col-xs-9 col-sm-9 chat">聊天内容</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="chatsent">
|
||||
<form role="form" action="send.jsp" name="form1" method="post"
|
||||
onSubmit="return check()">
|
||||
|
||||
|
||||
<p>
|
||||
<span class="emotion glyphicon glyphicon-heart"></span>
|
||||
</p>
|
||||
|
||||
<div class="chatsentinput">
|
||||
[<%=session.getAttribute("actualuser")%>
|
||||
]对 <input name="tempuser" type="text" value="" size="35"
|
||||
readonly="readonly"> 表情 <select name="select"
|
||||
class="wenbenkuang">
|
||||
<option value="无表情的">无表情的</option>
|
||||
<option value="微笑着" selected>微笑着</option>
|
||||
<option value="笑呵呵地">笑呵呵地</option>
|
||||
<option value="热情的">热情的</option>
|
||||
<option value="温柔的">温柔的</option>
|
||||
<option value="红着脸">红着脸</option>
|
||||
<option value="幸福的">幸福的</option>
|
||||
<option value="嘟着嘴">嘟着嘴</option>
|
||||
<option value="热泪盈眶的">热泪盈眶的</option>
|
||||
<option value="依依不舍的">依依不舍的</option>
|
||||
<option value="得意的">得意的</option>
|
||||
<option value="神秘兮兮的">神秘兮兮的</option>
|
||||
<option value="恶狠狠的">恶狠狠的</option>
|
||||
<option value="大声的">大声的</option>
|
||||
<option value="生气的">生气的</option>
|
||||
<option value="幸灾乐祸的">幸灾乐祸的</option>
|
||||
<option value="同情的">同情的</option>
|
||||
<option value="遗憾的">遗憾的</option>
|
||||
<option value="正义凛然的">正义凛然的</option>
|
||||
<option value="严肃的">严肃的</option>
|
||||
<option value="慢条斯理的">慢条斯理的</option>
|
||||
<option value="无精打采的">无精打采的</option>
|
||||
</select> 说: <input id="message" name="message" type="text" width="100px">
|
||||
字体颜色: <select name="color" size="1" class="wenbenkuang"
|
||||
id="select">
|
||||
<option selected>默认颜色</option>
|
||||
<option style="color:#FF0000" value="FF0000">红色热情</option>
|
||||
<option style="color:#0000FF" value="0000ff">蓝色开朗</option>
|
||||
<option style="color:#ff00ff" value="ff00ff">桃色浪漫</option>
|
||||
<option style="color:#009900" value="009900">绿色青春</option>
|
||||
<option style="color:#009999" value="009999">青色清爽</option>
|
||||
<option style="color:#990099" value="990099">紫色拘谨</option>
|
||||
<option style="color:#990000" value="990000">暗夜兴奋</option>
|
||||
<option style="color:#000099" value="000099">深蓝忧郁</option>
|
||||
<option style="color:#999900" value="999900">卡其制服</option>
|
||||
<option style="color:#ff9900" value="ff9900">镏金岁月</option>
|
||||
<option style="color:#0099ff" value="0099ff">湖波荡漾</option>
|
||||
<option style="color:#9900ff" value="9900ff">发亮蓝紫</option>
|
||||
<option style="color:#ff0099" value="ff0099">爱的暗示</option>
|
||||
<option style="color:#006600" value="006600">墨绿深沉</option>
|
||||
<option style="color:#999999" value="999999">烟雨蒙蒙</option>
|
||||
</select> <input name="Submit2" type="submit" class="btn btn-default send"
|
||||
value="发送">
|
||||
</div>
|
||||
<input name="button_exit" type="button" class="btn_orange"
|
||||
value="退出聊天室" onClick="Exit()">
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</body>
|
||||
<script src="../js/jquery.min.js"></script>
|
||||
<script type="text/javascript" src="../js/jquery.qqFace.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
$(function(){
|
||||
|
||||
$('.emotion').qqFace({
|
||||
|
||||
id : 'facebox',
|
||||
|
||||
assign:'message',
|
||||
|
||||
path:'arclist/' //表情存放的路径
|
||||
|
||||
});
|
||||
|
||||
$(".send").click(function(){
|
||||
|
||||
var str = $("#message").val();
|
||||
|
||||
$("#show").html(replace_em(str));
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
//查看结果
|
||||
|
||||
function replace_em(str){
|
||||
|
||||
str = str.replace(/\</g,'<');
|
||||
|
||||
str = str.replace(/\>/g,'>');
|
||||
|
||||
str = str.replace(/\n/g,'<br/>');
|
||||
|
||||
str = str.replace(/\[em_([0-9]*)\]/g,'<img src="arclist/$1.gif" border="0" />');
|
||||
|
||||
return str;
|
||||
|
||||
}
|
||||
|
||||
</script>
|
||||
</html>
|
||||
59
WebRoot/chartroom/offcanvas.css
Normal file
59
WebRoot/chartroom/offcanvas.css
Normal file
@@ -0,0 +1,59 @@
|
||||
/*
|
||||
* Style tweaks
|
||||
* --------------------------------------------------
|
||||
*/
|
||||
html,
|
||||
body {
|
||||
overflow-x: hidden; /* Prevent scroll on narrow devices */
|
||||
}
|
||||
body {
|
||||
padding-top: 70px;
|
||||
}
|
||||
footer {
|
||||
padding: 30px 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Off Canvas
|
||||
* --------------------------------------------------
|
||||
*/
|
||||
@media screen and (max-width: 767px) {
|
||||
.row-offcanvas {
|
||||
position: relative;
|
||||
-webkit-transition: all .25s ease-out;
|
||||
-o-transition: all .25s ease-out;
|
||||
transition: all .25s ease-out;
|
||||
}
|
||||
|
||||
.row-offcanvas-right {
|
||||
right: 0;
|
||||
}
|
||||
|
||||
.row-offcanvas-left {
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.row-offcanvas-right
|
||||
.sidebar-offcanvas {
|
||||
right: -50%; /* 6 columns */
|
||||
}
|
||||
|
||||
.row-offcanvas-left
|
||||
.sidebar-offcanvas {
|
||||
left: -50%; /* 6 columns */
|
||||
}
|
||||
|
||||
.row-offcanvas-right.active {
|
||||
right: 50%; /* 6 columns */
|
||||
}
|
||||
|
||||
.row-offcanvas-left.active {
|
||||
left: 50%; /* 6 columns */
|
||||
}
|
||||
|
||||
.sidebar-offcanvas {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
width: 50%; /* 6 columns */
|
||||
}
|
||||
}
|
||||
5
WebRoot/chartroom/offcanvas.js
Normal file
5
WebRoot/chartroom/offcanvas.js
Normal file
@@ -0,0 +1,5 @@
|
||||
$(document).ready(function () {
|
||||
$('[data-toggle="offcanvas"]').click(function () {
|
||||
$('.row-offcanvas').toggleClass('active')
|
||||
});
|
||||
});
|
||||
13
WebRoot/css/ie10-viewport-bug-workaround.css
Normal file
13
WebRoot/css/ie10-viewport-bug-workaround.css
Normal file
@@ -0,0 +1,13 @@
|
||||
/*!
|
||||
* IE10 viewport hack for Surface/desktop Windows 8 bug
|
||||
* Copyright 2014-2015 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
*/
|
||||
|
||||
/*
|
||||
* See the Getting Started docs for more information:
|
||||
* http://getbootstrap.com/getting-started/#support-ie10-width
|
||||
*/
|
||||
@-ms-viewport { width: device-width; }
|
||||
@-o-viewport { width: device-width; }
|
||||
@viewport { width: device-width; }
|
||||
96
WebRoot/delete_admin.jsp
Normal file
96
WebRoot/delete_admin.jsp
Normal file
@@ -0,0 +1,96 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.sql.*"%>
|
||||
<%@page import="java.sql.DriverManager"%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>学生管理</title>
|
||||
<link rel="stylesheet" href="css/manage.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/footer.css" type="text/css">
|
||||
<script src="js/ie-emulation-modes-warning.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<%@ include file="/module/top.jsp"%>
|
||||
<div class="container">
|
||||
<%
|
||||
if (session.getAttribute("actualuser") == null) {
|
||||
out.println("<script>alert('登录超时 (1440 秒未活动)或未登录,请重新登录。');window.location.href='index.html';</script>");
|
||||
return;
|
||||
}
|
||||
Object actualuser = session.getAttribute("actualuser");
|
||||
%>
|
||||
<div class="row">
|
||||
<%@ include file="module/sidebar.jsp"%>
|
||||
<div class="col-lg-1 col-md-1 hidden-xs"></div>
|
||||
<h3 class="text-center">删除管理员</h3>
|
||||
<div class="col-sm-12 col-lg-9 col-md-9">
|
||||
<form class="form-horizontal" role="form" id="edit_admin"
|
||||
name="user_delete.jsp" action="JSPhandle/admin_delete.jsp"
|
||||
method="post">
|
||||
<div class="form-group">
|
||||
<label for="inputText1" class="col-sm-2 control-label">要删除的管理员</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="AdminName">
|
||||
<%
|
||||
String driverClass = "com.mysql.jdbc.Driver";
|
||||
String url = "jdbc:mysql://localhost:3306/db_school?useUnicode=true&characterEncoding=utf-8";
|
||||
String user = "root";
|
||||
String password = "";
|
||||
ResultSet rs = null;
|
||||
Connection conn = null;
|
||||
PreparedStatement sql = null;
|
||||
try {
|
||||
Class.forName(driverClass);
|
||||
conn = DriverManager.getConnection(url, user, password);
|
||||
Statement stmt = conn.createStatement();
|
||||
sql = conn.prepareStatement("select * from adminstrator_record");
|
||||
rs = sql.executeQuery();
|
||||
while (rs.next()) {
|
||||
%>
|
||||
<option value="<%=rs.getString("AdminName")%>"><%=rs.getString("AdminName")%></option>
|
||||
<%
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
%>
|
||||
<%
|
||||
sql.close();
|
||||
rs.close();
|
||||
conn.close();
|
||||
%>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<div class="col-sm-offset-2 col-sm-10 ">
|
||||
<div class="alert alert-danger">
|
||||
<strong>警告!</strong>你正在删除一个管理员,删除后将不可恢复,请与项目经理确认后再删除
|
||||
<button type="button" class="close" data-dismiss="alert"
|
||||
aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-danger pull-right ">删除</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Footer -->
|
||||
<%@ include file="module/footer.jsp"%>
|
||||
<!-- //Footer -->
|
||||
</div>
|
||||
<script src="js/jquery-1.11.2.min.js" type="text/javascript"></script>
|
||||
<script src="js/bootstrap.js" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
||||
96
WebRoot/delete_job.jsp
Normal file
96
WebRoot/delete_job.jsp
Normal file
@@ -0,0 +1,96 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.sql.*"%>
|
||||
<%@page import="java.sql.DriverManager"%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>岗位管理</title>
|
||||
<link rel="stylesheet" href="css/manage.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/footer.css" type="text/css">
|
||||
<script src="js/ie-emulation-modes-warning.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<%@ include file="/module/top.jsp"%>
|
||||
<div class="container">
|
||||
<%
|
||||
if (session.getAttribute("actualuser") == null) {
|
||||
out.println("<script>alert('登录超时 (1440 秒未活动)或未登录,请重新登录。');window.location.href='index.html';</script>");
|
||||
return;
|
||||
}
|
||||
Object actualuser = session.getAttribute("actualuser");
|
||||
%>
|
||||
<div class="row">
|
||||
<%@ include file="module/sidebar.jsp"%>
|
||||
<div class="col-lg-1 col-md-1 hidden-xs"></div>
|
||||
<h3 class="text-center">删除岗位</h3>
|
||||
<div class="col-sm-12 col-lg-9 col-md-9">
|
||||
<form class="form-horizontal" role="form" id="edit_admin"
|
||||
name="user_delete.jsp" action="JSPhandle/adminjob_delete.jsp"
|
||||
method="post">
|
||||
<div class="form-group">
|
||||
<label for="inputText1" class="col-sm-2 control-label">要删除的岗位</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="AdminJob">
|
||||
<%
|
||||
String driverClass = "com.mysql.jdbc.Driver";
|
||||
String url = "jdbc:mysql://localhost:3306/db_school?useUnicode=true&characterEncoding=utf-8";
|
||||
String user = "root";
|
||||
String password = "";
|
||||
ResultSet rs = null;
|
||||
Connection conn = null;
|
||||
PreparedStatement sql = null;
|
||||
try {
|
||||
Class.forName(driverClass);
|
||||
conn = DriverManager.getConnection(url, user, password);
|
||||
Statement stmt = conn.createStatement();
|
||||
sql = conn.prepareStatement("select * from administrator_job");
|
||||
rs = sql.executeQuery();
|
||||
while (rs.next()) {
|
||||
%>
|
||||
<option value="<%=rs.getString("AdminJob")%>"><%=rs.getString("AdminJob")%></option>
|
||||
<%
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
%>
|
||||
<%
|
||||
sql.close();
|
||||
rs.close();
|
||||
conn.close();
|
||||
%>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<div class="col-sm-offset-2 col-sm-10 ">
|
||||
<div class="alert alert-danger">
|
||||
<strong>警告!</strong>你正在删除一个岗位,删除后将不可恢复,请与项目经理确认后再删除
|
||||
<button type="button" class="close" data-dismiss="alert"
|
||||
aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-danger pull-right ">删除</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Footer -->
|
||||
<%@ include file="module/footer.jsp"%>
|
||||
<!-- //Footer -->
|
||||
</div>
|
||||
<script src="js/jquery-1.11.2.min.js" type="text/javascript"></script>
|
||||
<script src="js/bootstrap.js" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
||||
96
WebRoot/delete_user.jsp
Normal file
96
WebRoot/delete_user.jsp
Normal file
@@ -0,0 +1,96 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.sql.*"%>
|
||||
<%@page import="java.sql.DriverManager"%>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<title>学生管理</title>
|
||||
<link rel="stylesheet" href="css/manage.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css">
|
||||
<link rel="stylesheet" href="css/footer.css" type="text/css">
|
||||
<script src="js/ie-emulation-modes-warning.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<%@ include file="/module/top.jsp"%>
|
||||
<div class="container">
|
||||
<%
|
||||
if (session.getAttribute("actualuser") == null) {
|
||||
out.println("<script>alert('登录超时 (1440 秒未活动)或未登录,请重新登录。');window.location.href='index.html';</script>");
|
||||
return;
|
||||
}
|
||||
Object actualuser = session.getAttribute("actualuser");
|
||||
%>
|
||||
<div class="row">
|
||||
<%@ include file="module/sidebar.jsp"%>
|
||||
<div class="col-lg-1 col-md-1 hidden-xs"></div>
|
||||
<h3 class="text-center">删除用户</h3>
|
||||
<div class="col-sm-12 col-lg-9 col-md-9">
|
||||
<form class="form-horizontal" role="form" id="edit_admin"
|
||||
name="user_delete.jsp" action="JSPhandle/user_delete.jsp"
|
||||
method="post">
|
||||
<div class="form-group">
|
||||
<label for="inputText1" class="col-sm-2 control-label">要删除的用户名</label>
|
||||
<div class="col-sm-10">
|
||||
<select class="form-control" name="userName">
|
||||
<%
|
||||
String driverClass = "com.mysql.jdbc.Driver";
|
||||
String url = "jdbc:mysql://localhost:3306/db_school?useUnicode=true&characterEncoding=utf-8";
|
||||
String user = "root";
|
||||
String password = "";
|
||||
ResultSet rs = null;
|
||||
Connection conn = null;
|
||||
PreparedStatement sql = null;
|
||||
try {
|
||||
Class.forName(driverClass);
|
||||
conn = DriverManager.getConnection(url, user, password);
|
||||
Statement stmt = conn.createStatement();
|
||||
sql = conn.prepareStatement("select * from show_user");
|
||||
rs = sql.executeQuery();
|
||||
while (rs.next()) {
|
||||
%>
|
||||
<option value="<%=rs.getString("userName")%>"><%=rs.getString("userName")%></option>
|
||||
<%
|
||||
}
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
%>
|
||||
<%
|
||||
sql.close();
|
||||
rs.close();
|
||||
conn.close();
|
||||
%>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
||||
<div class="col-sm-offset-2 col-sm-10 ">
|
||||
<div class="alert alert-danger">
|
||||
<strong>警告!</strong>你正在删除一个用户,删除后将不可恢复,请与项目经理确认后再删除
|
||||
<button type="button" class="close" data-dismiss="alert"
|
||||
aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-danger pull-right ">删除</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Footer -->
|
||||
<%@ include file="module/footer.jsp"%>
|
||||
<!-- //Footer -->
|
||||
</div>
|
||||
<script src="js/jquery-1.11.2.min.js" type="text/javascript"></script>
|
||||
<script src="js/bootstrap.js" type="text/javascript"></script>
|
||||
</body>
|
||||
</html>
|
||||
197
WebRoot/detail.jsp
Normal file
197
WebRoot/detail.jsp
Normal file
@@ -0,0 +1,197 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.sql.*,java.util.regex.Pattern"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>帖子详情</title>
|
||||
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="font-awesome/css/font-awesome.css" rel="stylesheet">
|
||||
<link href="forum/css/plugins/iCheck/custom.css" rel="stylesheet">
|
||||
<link href="forum/css/animate.css" rel="stylesheet">
|
||||
<link href="forum/css/style.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%
|
||||
if (session.getAttribute("actualuser") == null) {
|
||||
out.println(
|
||||
"<script language=javascript>alert('登录超时 (1440 秒未活动)或未登录,请重新登录。');window.location.href='index.html'</script>");
|
||||
return;
|
||||
}
|
||||
Object user0 = session.getAttribute("actualuser");
|
||||
/* out.println("欢迎"+user0);//输出当前session用户 */
|
||||
%>
|
||||
<%@ include file="module/top.jsp"%>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<%@ include file="module/sidebar.jsp"%>
|
||||
<div class="col-lg-1 col-md-1 hidden-xs"></div>
|
||||
<div class="col-lg-9 col-md-9">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h2>帖子详情</h2>
|
||||
</div>
|
||||
<div class="col-md-2">
|
||||
<a class="btn btn-default pull-right createNew" href="index.jsp"
|
||||
role="button">回到首页</a>
|
||||
</div>
|
||||
</div>
|
||||
<%
|
||||
String id = request.getParameter("id");
|
||||
|
||||
Connection con;
|
||||
Statement sql;
|
||||
ResultSet rs;
|
||||
String content = "";
|
||||
try {
|
||||
Class.forName("com.mysql.jdbc.Driver");
|
||||
} catch (ClassNotFoundException e) {
|
||||
out.print("驱动异常");
|
||||
}
|
||||
con = DriverManager.getConnection("jdbc:mysql://localhost/db_bbs?useUnicode=true&characterEncoding=utf-8",
|
||||
"root", "");
|
||||
sql = con.createStatement();
|
||||
String send = null;
|
||||
content = "select subject,content,time from send where id = '" + request.getParameter("id") + "'";
|
||||
rs = sql.executeQuery(content);
|
||||
try {
|
||||
while (rs.next()) {
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="mail_box col-lg-10 col-md-10">
|
||||
<div class="mail-tools tooltip-demo m-t-md ">
|
||||
<div class="mail-body">
|
||||
<h3>
|
||||
<span class="font-noraml">主题: </span><%=rs.getString("subject")%>
|
||||
</h3>
|
||||
<h5>
|
||||
<span class="pull-right font-noraml"><%=rs.getDate("time")%> <%=rs.getTime("time")%></span>
|
||||
|
||||
</h5>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="mail-body">
|
||||
<div class="mail-Content">
|
||||
<h3>内容</h3>
|
||||
<%=rs.getString("content")%>
|
||||
|
||||
<%
|
||||
}
|
||||
} catch (Exception e) {
|
||||
}
|
||||
sql.close();
|
||||
rs.close();
|
||||
con.close();
|
||||
%>
|
||||
</div>
|
||||
<div class="mail-body">
|
||||
<h3>评论信息</h3>
|
||||
<%
|
||||
Connection comcon;
|
||||
Statement comsql;
|
||||
ResultSet comrs;
|
||||
try {
|
||||
Class.forName("com.mysql.jdbc.Driver");
|
||||
} catch (ClassNotFoundException e) {
|
||||
out.print("驱动异常");
|
||||
}
|
||||
comcon = DriverManager.getConnection("jdbc:mysql://localhost/db_bbs", "root", "");
|
||||
comsql = comcon.createStatement();
|
||||
String comment = null;
|
||||
comment = "select comment,time from comment where subid = (select id from send where id ='" + id + "')";
|
||||
comrs = comsql.executeQuery(comment);
|
||||
try {
|
||||
while (comrs.next()) {
|
||||
%>
|
||||
|
||||
<div class="mail-body">
|
||||
|
||||
<%=comrs.getString("comment")%>
|
||||
|
||||
<h5>
|
||||
<span class="pull-right font-noraml"><%=comrs.getDate("time")%> <%=comrs.getTime("time")%></span>
|
||||
|
||||
</h5>
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<%
|
||||
}
|
||||
} catch (Exception e) {
|
||||
out.print("无法显示评论信息");
|
||||
}
|
||||
comsql.close();
|
||||
comrs.close();
|
||||
comcon.close();
|
||||
String k1 = request.getQueryString();//得到ID的值(id=数字).
|
||||
String re = "\\D+";
|
||||
String result = k1.replaceAll(re, ""); //找到不是数字的字符,用""替代
|
||||
%>
|
||||
</div>
|
||||
<br> <br> <br> <br>
|
||||
<div class="mail-text h-200">
|
||||
<form action="forum/sendComment.jsp">
|
||||
<input type="hidden" name="subid" value=<%=result%>>
|
||||
<h4>评论</h4>
|
||||
|
||||
<textarea rows="10" cols="135" name="comment"
|
||||
class="form-control"></textarea>
|
||||
<input class="btn btn-default pull-right createNew"
|
||||
type="submit" value="提交">
|
||||
</form>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
|
||||
<div class="clearfix"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="module/footer.jsp"%>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Mainly scripts -->
|
||||
<script src="js/jquery-2.1.1.js"></script>
|
||||
<script src="js/bootstrap.js" type="text/javascript"></script>
|
||||
<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
|
||||
<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
|
||||
|
||||
<!-- Custom and plugin javascript -->
|
||||
<script src="js/inspinia.js"></script>
|
||||
<script src="js/plugins/pace/pace.min.js"></script>
|
||||
|
||||
<!-- iCheck -->
|
||||
<script src="js/plugins/iCheck/icheck.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('.i-checks').iCheck({
|
||||
checkboxClass : 'icheckbox_square-green',
|
||||
radioClass : 'iradio_square-green',
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -62,15 +62,15 @@
|
||||
<label for="inputText1" class="col-sm-2 control-label">管理员号</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control"
|
||||
placeholder="<%=rs.getString("AdminNo")%>" name="adminno">
|
||||
placeholder="<%=rs.getString("AdminNo")%>" name="adminno" value='<%=rs.getString("AdminNo")%>'>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="inputText2" class="col-sm-2 control-label">管理员姓名</label>
|
||||
<label for="inputText2" class="col-sm-2 control-label" value="">管理员姓名</label>
|
||||
<div class="col-sm-10">
|
||||
|
||||
<input type="text" class="form-control"
|
||||
placeholder='<%=rs.getString("AdminName")%>' name="adminname">
|
||||
placeholder='<%=rs.getString("AdminName")%>' name="adminname" value='<%=rs.getString("AdminName")%>'>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
@@ -78,7 +78,7 @@
|
||||
<label for="inputText3" class="col-sm-2 control-label">管理员性别</label>
|
||||
<div class="col-sm-10">
|
||||
<input type="text" class="form-control"
|
||||
placeholder="<%=rs.getString("AdminSex")%>" name="sex">
|
||||
placeholder="<%=rs.getString("AdminSex")%>" name="sex" value='<%=rs.getString("AdminSex")%>'>
|
||||
</div>
|
||||
</div>
|
||||
<%
|
||||
|
||||
2848
WebRoot/forum/css/animate.css
vendored
Normal file
2848
WebRoot/forum/css/animate.css
vendored
Normal file
File diff suppressed because it is too large
Load Diff
6
WebRoot/forum/css/bootstrap.min.css
vendored
Normal file
6
WebRoot/forum/css/bootstrap.min.css
vendored
Normal file
File diff suppressed because one or more lines are too long
1209
WebRoot/forum/css/style.css
Normal file
1209
WebRoot/forum/css/style.css
Normal file
File diff suppressed because it is too large
Load Diff
35
WebRoot/forum/send.jsp
Normal file
35
WebRoot/forum/send.jsp
Normal file
@@ -0,0 +1,35 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||
<%@ page import="java.sql.*" %>
|
||||
<%-- <%!
|
||||
public String codeString(String s)
|
||||
{ String str=s;
|
||||
try{byte b[]=str.getBytes("ISO-8859-1");
|
||||
str=new String(b); return str;
|
||||
} catch(Exception e) { return str; }
|
||||
}
|
||||
%> --%>
|
||||
<!DOCTYPE unspecified PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta http-equiv="refresh" content="2;url=../index.jsp">
|
||||
</head>
|
||||
<body>
|
||||
<%
|
||||
request.setCharacterEncoding("utf-8");
|
||||
String k2 = request.getParameter("subject");
|
||||
String k3 = request.getParameter("content");
|
||||
Connection con;Statement sql;ResultSet rs;
|
||||
try{Class.forName("com.mysql.jdbc.Driver"); } catch(ClassNotFoundException e){out.print("驱动异常");}
|
||||
try{con=DriverManager.getConnection("jdbc:mysql://localhost/db_bbs?useUnicode=true&characterEncoding=utf-8","root","");
|
||||
sql=con.createStatement();
|
||||
String text="insert into send(subject,content,time) values('"+k2+"','"+k3+"',now())";
|
||||
sql.executeUpdate(text);
|
||||
sql.close();
|
||||
con.close();
|
||||
out.print("成功发表帖子");
|
||||
}catch(SQLException event){out.print("数据更新异常");}
|
||||
|
||||
%>
|
||||
</body>
|
||||
</html>
|
||||
51
WebRoot/forum/sendComment.jsp
Normal file
51
WebRoot/forum/sendComment.jsp
Normal file
@@ -0,0 +1,51 @@
|
||||
<%@ page language="java" import="java.util.*,java.sql.*" contentType="text/html; charset=UTF-8" pageEncoding="utf-8"%>
|
||||
<%-- <%!
|
||||
public String codeString(String s)
|
||||
{ String str=s;
|
||||
try{byte b[]=str.getBytes("ISO-8859-1");
|
||||
str=new String(b); return str;
|
||||
} catch(Exception e) { return str; }
|
||||
}
|
||||
%> --%>
|
||||
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>帖子详情</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<meta http-equiv="pragma" content="no-cache">
|
||||
<meta http-equiv="cache-control" content="no-cache">
|
||||
<meta http-equiv="expires" content="0">
|
||||
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
|
||||
<meta http-equiv="description" content="This is my page">
|
||||
<!--
|
||||
<link rel="stylesheet" type="text/css" href="styles.css">
|
||||
-->
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<%
|
||||
request.setCharacterEncoding("utf-8");
|
||||
String k5 = request.getParameter("comment");
|
||||
String k6 = request.getParameter("subid");
|
||||
Connection con; Statement sql;ResultSet rs;
|
||||
try{Class.forName("com.mysql.jdbc.Driver"); } catch(ClassNotFoundException e){out.print("驱动异常");}
|
||||
try{con=DriverManager.getConnection("jdbc:mysql://localhost/db_bbs?useUnicode=true&characterEncoding=utf-8","root","");
|
||||
sql=con.createStatement();
|
||||
String text="insert into comment(subid,comment,time) values('"+k6+"','"+k5+"',now())";
|
||||
|
||||
sql.executeUpdate(text);
|
||||
sql.close();
|
||||
con.close();
|
||||
|
||||
out.print("成功发表评论");
|
||||
}catch(SQLException event){out.print("数据更新异常");}
|
||||
%>
|
||||
|
||||
|
||||
<a href="../detail.jsp?id=<%=k6%>">点击返回评论页面</a>
|
||||
</body>
|
||||
</html>
|
||||
135
WebRoot/index.jsp
Normal file
135
WebRoot/index.jsp
Normal file
@@ -0,0 +1,135 @@
|
||||
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
||||
pageEncoding="UTF-8"%>
|
||||
<%@page import="java.sql.Connection"%>
|
||||
<%@page import="java.sql.*"%>
|
||||
<%@page import="java.sql.DriverManager"%>
|
||||
<%@ page import="java.util.Date,java.text.SimpleDateFormat"%>
|
||||
<%
|
||||
String path = request.getContextPath();
|
||||
String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
|
||||
+ path + "/";
|
||||
%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>帖子列表</title>
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="font-awesome/css/font-awesome.css" rel="stylesheet">
|
||||
<link href="forum/css/plugins/iCheck/custom.css" rel="stylesheet">
|
||||
<link href="forum/css/animate.css" rel="stylesheet">
|
||||
<link href="forum/css/style.css" rel="stylesheet">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%
|
||||
if (session.getAttribute("actualuser") == null) {
|
||||
out.println(
|
||||
"<script language=javascript>alert('登录超时 (1440 秒未活动)或未登录,请重新登录。');window.location.href='index.html'</script>");
|
||||
return;
|
||||
}
|
||||
Object user0 = session.getAttribute("actualuser");
|
||||
/* out.println("欢迎"+user0);//输出当前session用户 */
|
||||
%>
|
||||
<%@ include file="module/top.jsp"%>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<%@ include file="module/sidebar.jsp"%>
|
||||
<div class="col-lg-1 col-md-1 hidden-xs"></div>
|
||||
<div class="col-lg-9 col-md-9">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h2>帖子列表</h2>
|
||||
</div>
|
||||
<div class="col-md-2 pull-right">
|
||||
<a class="btn btn-default pull-right createNew" href="send.jsp"
|
||||
role="button">发表帖子</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="mail-tools">
|
||||
<div class="btn-group pull-right"></div>
|
||||
|
||||
<%
|
||||
Connection con;
|
||||
Statement sql;
|
||||
ResultSet rs;
|
||||
int id = 0;
|
||||
String subject = "", content = "";
|
||||
Date time = new Date();
|
||||
SimpleDateFormat sdf = new SimpleDateFormat();
|
||||
sdf.format(time);
|
||||
try {
|
||||
Class.forName("com.mysql.jdbc.Driver");
|
||||
} catch (ClassNotFoundException e) {
|
||||
out.print("驱动异常");
|
||||
}
|
||||
con = DriverManager.getConnection("jdbc:mysql://localhost/db_bbs?useUnicode=true&characterEncoding=utf-8",
|
||||
"root", "");
|
||||
sql = con.createStatement();
|
||||
String send = null;
|
||||
content = "select id,subject,time from send";
|
||||
rs = sql.executeQuery(content);
|
||||
while (rs.next()) {
|
||||
id = rs.getInt("id");
|
||||
subject = rs.getString("subject");
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="checkbox" class="checkbox"></td>
|
||||
<td><a href="detail.jsp?id=<%=id%>"><%=subject%></a></td>
|
||||
<td class="text-right mail-date"><%=rs.getDate("time")%> <%=rs.getTime("time")%></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<%
|
||||
}
|
||||
sql.close();
|
||||
rs.close();
|
||||
con.close();
|
||||
%>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="module/footer.jsp"%>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Mainly scripts -->
|
||||
<script src="js/jquery-2.1.1.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
|
||||
<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
|
||||
|
||||
<!-- Custom and plugin javascript -->
|
||||
<script src="js/inspinia.js"></script>
|
||||
<script src="js/plugins/pace/pace.min.js"></script>
|
||||
|
||||
<!-- iCheck -->
|
||||
<script src="js/plugins/iCheck/icheck.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('.i-checks').iCheck({
|
||||
checkboxClass : 'icheckbox_square-green',
|
||||
radioClass : 'iradio_square-green',
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
51
WebRoot/js/ie-emulation-modes-warning.js
Normal file
51
WebRoot/js/ie-emulation-modes-warning.js
Normal file
@@ -0,0 +1,51 @@
|
||||
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
|
||||
// IT'S JUST JUNK FOR OUR DOCS!
|
||||
// ++++++++++++++++++++++++++++++++++++++++++
|
||||
/*!
|
||||
* Copyright 2014-2015 Twitter, Inc.
|
||||
*
|
||||
* Licensed under the Creative Commons Attribution 3.0 Unported License. For
|
||||
* details, see https://creativecommons.org/licenses/by/3.0/.
|
||||
*/
|
||||
// Intended to prevent false-positive bug reports about Bootstrap not working properly in old versions of IE due to folks testing using IE's unreliable emulation modes.
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
function emulatedIEMajorVersion() {
|
||||
var groups = /MSIE ([0-9.]+)/.exec(window.navigator.userAgent)
|
||||
if (groups === null) {
|
||||
return null
|
||||
}
|
||||
var ieVersionNum = parseInt(groups[1], 10)
|
||||
var ieMajorVersion = Math.floor(ieVersionNum)
|
||||
return ieMajorVersion
|
||||
}
|
||||
|
||||
function actualNonEmulatedIEMajorVersion() {
|
||||
// Detects the actual version of IE in use, even if it's in an older-IE emulation mode.
|
||||
// IE JavaScript conditional compilation docs: https://msdn.microsoft.com/library/121hztk3%28v=vs.94%29.aspx
|
||||
// @cc_on docs: https://msdn.microsoft.com/library/8ka90k2e%28v=vs.94%29.aspx
|
||||
var jscriptVersion = new Function('/*@cc_on return @_jscript_version; @*/')() // jshint ignore:line
|
||||
if (jscriptVersion === undefined) {
|
||||
return 11 // IE11+ not in emulation mode
|
||||
}
|
||||
if (jscriptVersion < 9) {
|
||||
return 8 // IE8 (or lower; haven't tested on IE<8)
|
||||
}
|
||||
return jscriptVersion // IE9 or IE10 in any mode, or IE11 in non-IE11 mode
|
||||
}
|
||||
|
||||
var ua = window.navigator.userAgent
|
||||
if (ua.indexOf('Opera') > -1 || ua.indexOf('Presto') > -1) {
|
||||
return // Opera, which might pretend to be IE
|
||||
}
|
||||
var emulated = emulatedIEMajorVersion()
|
||||
if (emulated === null) {
|
||||
return // Not IE
|
||||
}
|
||||
var nonEmulated = actualNonEmulatedIEMajorVersion()
|
||||
|
||||
if (emulated !== nonEmulated) {
|
||||
window.alert('WARNING: You appear to be using IE' + nonEmulated + ' in IE' + emulated + ' emulation mode.\nIE emulation modes can behave significantly differently from ACTUAL older versions of IE.\nPLEASE DON\'T FILE BOOTSTRAP BUGS based on testing in IE emulation modes!')
|
||||
}
|
||||
})();
|
||||
23
WebRoot/js/ie10-viewport-bug-workaround.js
Normal file
23
WebRoot/js/ie10-viewport-bug-workaround.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/*!
|
||||
* IE10 viewport hack for Surface/desktop Windows 8 bug
|
||||
* Copyright 2014-2015 Twitter, Inc.
|
||||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
||||
*/
|
||||
|
||||
// See the Getting Started docs for more information:
|
||||
// http://getbootstrap.com/getting-started/#support-ie10-width
|
||||
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
if (navigator.userAgent.match(/IEMobile\/10\.0/)) {
|
||||
var msViewportStyle = document.createElement('style')
|
||||
msViewportStyle.appendChild(
|
||||
document.createTextNode(
|
||||
'@-ms-viewport{width:auto!important}'
|
||||
)
|
||||
)
|
||||
document.querySelector('head').appendChild(msViewportStyle)
|
||||
}
|
||||
|
||||
})();
|
||||
301
WebRoot/js/inspinia.js
Normal file
301
WebRoot/js/inspinia.js
Normal file
@@ -0,0 +1,301 @@
|
||||
/*
|
||||
*
|
||||
* INSPINIA - Responsive Admin Theme
|
||||
* version 2.4
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
|
||||
|
||||
// Add body-small class if window less than 768px
|
||||
if ($(this).width() < 769) {
|
||||
$('body').addClass('body-small')
|
||||
} else {
|
||||
$('body').removeClass('body-small')
|
||||
}
|
||||
|
||||
// MetsiMenu
|
||||
$('#side-menu').metisMenu();
|
||||
|
||||
// Collapse ibox function
|
||||
$('.collapse-link').click(function () {
|
||||
var ibox = $(this).closest('div.ibox');
|
||||
var button = $(this).find('i');
|
||||
var content = ibox.find('div.ibox-content');
|
||||
content.slideToggle(200);
|
||||
button.toggleClass('fa-chevron-up').toggleClass('fa-chevron-down');
|
||||
ibox.toggleClass('').toggleClass('border-bottom');
|
||||
setTimeout(function () {
|
||||
ibox.resize();
|
||||
ibox.find('[id^=map-]').resize();
|
||||
}, 50);
|
||||
});
|
||||
|
||||
// Close ibox function
|
||||
$('.close-link').click(function () {
|
||||
var content = $(this).closest('div.ibox');
|
||||
content.remove();
|
||||
});
|
||||
|
||||
// Fullscreen ibox function
|
||||
$('.fullscreen-link').click(function () {
|
||||
var ibox = $(this).closest('div.ibox');
|
||||
var button = $(this).find('i');
|
||||
$('body').toggleClass('fullscreen-ibox-mode');
|
||||
button.toggleClass('fa-expand').toggleClass('fa-compress');
|
||||
ibox.toggleClass('fullscreen');
|
||||
setTimeout(function () {
|
||||
$(window).trigger('resize');
|
||||
}, 100);
|
||||
});
|
||||
|
||||
// Close menu in canvas mode
|
||||
$('.close-canvas-menu').click(function () {
|
||||
$("body").toggleClass("mini-navbar");
|
||||
SmoothlyMenu();
|
||||
});
|
||||
|
||||
// Run menu of canvas
|
||||
$('body.canvas-menu .sidebar-collapse').slimScroll({
|
||||
height: '100%',
|
||||
railOpacity: 0.9
|
||||
});
|
||||
|
||||
// Open close right sidebar
|
||||
$('.right-sidebar-toggle').click(function () {
|
||||
$('#right-sidebar').toggleClass('sidebar-open');
|
||||
});
|
||||
|
||||
// Initialize slimscroll for right sidebar
|
||||
$('.sidebar-container').slimScroll({
|
||||
height: '100%',
|
||||
railOpacity: 0.4,
|
||||
wheelStep: 10
|
||||
});
|
||||
|
||||
// Open close small chat
|
||||
$('.open-small-chat').click(function () {
|
||||
$(this).children().toggleClass('fa-comments').toggleClass('fa-remove');
|
||||
$('.small-chat-box').toggleClass('active');
|
||||
});
|
||||
|
||||
// Initialize slimscroll for small chat
|
||||
$('.small-chat-box .content').slimScroll({
|
||||
height: '234px',
|
||||
railOpacity: 0.4
|
||||
});
|
||||
|
||||
// Small todo handler
|
||||
$('.check-link').click(function () {
|
||||
var button = $(this).find('i');
|
||||
var label = $(this).next('span');
|
||||
button.toggleClass('fa-check-square').toggleClass('fa-square-o');
|
||||
label.toggleClass('todo-completed');
|
||||
return false;
|
||||
});
|
||||
|
||||
// Append config box / Only for demo purpose
|
||||
// Uncomment on server mode to enable XHR calls
|
||||
$.get("skin-config.html", function (data) {
|
||||
if (!$('body').hasClass('no-skin-config'))
|
||||
$('body').append(data);
|
||||
});
|
||||
|
||||
// Minimalize menu
|
||||
$('.navbar-minimalize').click(function () {
|
||||
$("body").toggleClass("mini-navbar");
|
||||
SmoothlyMenu();
|
||||
|
||||
});
|
||||
|
||||
// Tooltips demo
|
||||
$('.tooltip-demo').tooltip({
|
||||
selector: "[data-toggle=tooltip]",
|
||||
container: "body"
|
||||
});
|
||||
|
||||
// Move modal to body
|
||||
// Fix Bootstrap backdrop issu with animation.css
|
||||
$('.modal').appendTo("body");
|
||||
|
||||
// Full height of sidebar
|
||||
function fix_height() {
|
||||
var heightWithoutNavbar = $("body > #wrapper").height() - 61;
|
||||
$(".sidebard-panel").css("min-height", heightWithoutNavbar + "px");
|
||||
|
||||
var navbarHeigh = $('nav.navbar-default').height();
|
||||
var wrapperHeigh = $('#page-wrapper').height();
|
||||
|
||||
if (navbarHeigh > wrapperHeigh) {
|
||||
$('#page-wrapper').css("min-height", navbarHeigh + "px");
|
||||
}
|
||||
|
||||
if (navbarHeigh < wrapperHeigh) {
|
||||
$('#page-wrapper').css("min-height", $(window).height() + "px");
|
||||
}
|
||||
|
||||
if ($('body').hasClass('fixed-nav')) {
|
||||
if (navbarHeigh > wrapperHeigh) {
|
||||
$('#page-wrapper').css("min-height", navbarHeigh - 60 + "px");
|
||||
} else {
|
||||
$('#page-wrapper').css("min-height", $(window).height() - 60 + "px");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
fix_height();
|
||||
|
||||
// Fixed Sidebar
|
||||
$(window).bind("load", function () {
|
||||
if ($("body").hasClass('fixed-sidebar')) {
|
||||
$('.sidebar-collapse').slimScroll({
|
||||
height: '100%',
|
||||
railOpacity: 0.9
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
// Move right sidebar top after scroll
|
||||
$(window).scroll(function () {
|
||||
if ($(window).scrollTop() > 0 && !$('body').hasClass('fixed-nav')) {
|
||||
$('#right-sidebar').addClass('sidebar-top');
|
||||
} else {
|
||||
$('#right-sidebar').removeClass('sidebar-top');
|
||||
}
|
||||
});
|
||||
|
||||
$(window).bind("load resize scroll", function () {
|
||||
if (!$("body").hasClass('body-small')) {
|
||||
fix_height();
|
||||
}
|
||||
});
|
||||
|
||||
$("[data-toggle=popover]")
|
||||
.popover();
|
||||
|
||||
// Add slimscroll to element
|
||||
$('.full-height-scroll').slimscroll({
|
||||
height: '100%'
|
||||
})
|
||||
});
|
||||
|
||||
|
||||
// Minimalize menu when screen is less than 768px
|
||||
$(window).bind("resize", function () {
|
||||
if ($(this).width() < 769) {
|
||||
$('body').addClass('body-small')
|
||||
} else {
|
||||
$('body').removeClass('body-small')
|
||||
}
|
||||
});
|
||||
|
||||
// Local Storage functions
|
||||
// Set proper body class and plugins based on user configuration
|
||||
$(document).ready(function () {
|
||||
if (localStorageSupport) {
|
||||
|
||||
var collapse = localStorage.getItem("collapse_menu");
|
||||
var fixedsidebar = localStorage.getItem("fixedsidebar");
|
||||
var fixednavbar = localStorage.getItem("fixednavbar");
|
||||
var boxedlayout = localStorage.getItem("boxedlayout");
|
||||
var fixedfooter = localStorage.getItem("fixedfooter");
|
||||
|
||||
var body = $('body');
|
||||
|
||||
if (fixedsidebar == 'on') {
|
||||
body.addClass('fixed-sidebar');
|
||||
$('.sidebar-collapse').slimScroll({
|
||||
height: '100%',
|
||||
railOpacity: 0.9
|
||||
});
|
||||
}
|
||||
|
||||
if (collapse == 'on') {
|
||||
if (body.hasClass('fixed-sidebar')) {
|
||||
if (!body.hasClass('body-small')) {
|
||||
body.addClass('mini-navbar');
|
||||
}
|
||||
} else {
|
||||
if (!body.hasClass('body-small')) {
|
||||
body.addClass('mini-navbar');
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if (fixednavbar == 'on') {
|
||||
$(".navbar-static-top").removeClass('navbar-static-top').addClass('navbar-fixed-top');
|
||||
body.addClass('fixed-nav');
|
||||
}
|
||||
|
||||
if (boxedlayout == 'on') {
|
||||
body.addClass('boxed-layout');
|
||||
}
|
||||
|
||||
if (fixedfooter == 'on') {
|
||||
$(".footer").addClass('fixed');
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// check if browser support HTML5 local storage
|
||||
function localStorageSupport() {
|
||||
return (('localStorage' in window) && window['localStorage'] !== null)
|
||||
}
|
||||
|
||||
// For demo purpose - animation css script
|
||||
function animationHover(element, animation) {
|
||||
element = $(element);
|
||||
element.hover(
|
||||
function () {
|
||||
element.addClass('animated ' + animation);
|
||||
},
|
||||
function () {
|
||||
//wait for animation to finish before removing classes
|
||||
window.setTimeout(function () {
|
||||
element.removeClass('animated ' + animation);
|
||||
}, 2000);
|
||||
});
|
||||
}
|
||||
|
||||
function SmoothlyMenu() {
|
||||
if (!$('body').hasClass('mini-navbar') || $('body').hasClass('body-small')) {
|
||||
// Hide menu in order to smoothly turn on when maximize menu
|
||||
$('#side-menu').hide();
|
||||
// For smoothly turn on menu
|
||||
setTimeout(
|
||||
function () {
|
||||
$('#side-menu').fadeIn(400);
|
||||
}, 200);
|
||||
} else if ($('body').hasClass('fixed-sidebar')) {
|
||||
$('#side-menu').hide();
|
||||
setTimeout(
|
||||
function () {
|
||||
$('#side-menu').fadeIn(400);
|
||||
}, 100);
|
||||
} else {
|
||||
// Remove all inline style from jquery fadeIn function to reset menu state
|
||||
$('#side-menu').removeAttr('style');
|
||||
}
|
||||
}
|
||||
|
||||
// Dragable panels
|
||||
function WinMove() {
|
||||
var element = "[class*=col]";
|
||||
var handle = ".ibox-title";
|
||||
var connect = "[class*=col]";
|
||||
$(element).sortable(
|
||||
{
|
||||
handle: handle,
|
||||
connectWith: connect,
|
||||
tolerance: 'pointer',
|
||||
forcePlaceholderSize: true,
|
||||
opacity: 0.8
|
||||
})
|
||||
.disableSelection();
|
||||
}
|
||||
|
||||
|
||||
4
WebRoot/js/jquery-2.1.1.js
vendored
Normal file
4
WebRoot/js/jquery-2.1.1.js
vendored
Normal file
File diff suppressed because one or more lines are too long
11
WebRoot/js/plugins/iCheck/icheck.min.js
vendored
Normal file
11
WebRoot/js/plugins/iCheck/icheck.min.js
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/*! iCheck v1.0.2 by Damir Sultanov, http://git.io/arlzeA, MIT Licensed */
|
||||
(function(f){function A(a,b,d){var c=a[0],g=/er/.test(d)?_indeterminate:/bl/.test(d)?n:k,e=d==_update?{checked:c[k],disabled:c[n],indeterminate:"true"==a.attr(_indeterminate)||"false"==a.attr(_determinate)}:c[g];if(/^(ch|di|in)/.test(d)&&!e)x(a,g);else if(/^(un|en|de)/.test(d)&&e)q(a,g);else if(d==_update)for(var f in e)e[f]?x(a,f,!0):q(a,f,!0);else if(!b||"toggle"==d){if(!b)a[_callback]("ifClicked");e?c[_type]!==r&&q(a,g):x(a,g)}}function x(a,b,d){var c=a[0],g=a.parent(),e=b==k,u=b==_indeterminate,
|
||||
v=b==n,s=u?_determinate:e?y:"enabled",F=l(a,s+t(c[_type])),B=l(a,b+t(c[_type]));if(!0!==c[b]){if(!d&&b==k&&c[_type]==r&&c.name){var w=a.closest("form"),p='input[name="'+c.name+'"]',p=w.length?w.find(p):f(p);p.each(function(){this!==c&&f(this).data(m)&&q(f(this),b)})}u?(c[b]=!0,c[k]&&q(a,k,"force")):(d||(c[b]=!0),e&&c[_indeterminate]&&q(a,_indeterminate,!1));D(a,e,b,d)}c[n]&&l(a,_cursor,!0)&&g.find("."+C).css(_cursor,"default");g[_add](B||l(a,b)||"");g.attr("role")&&!u&&g.attr("aria-"+(v?n:k),"true");
|
||||
g[_remove](F||l(a,s)||"")}function q(a,b,d){var c=a[0],g=a.parent(),e=b==k,f=b==_indeterminate,m=b==n,s=f?_determinate:e?y:"enabled",q=l(a,s+t(c[_type])),r=l(a,b+t(c[_type]));if(!1!==c[b]){if(f||!d||"force"==d)c[b]=!1;D(a,e,s,d)}!c[n]&&l(a,_cursor,!0)&&g.find("."+C).css(_cursor,"pointer");g[_remove](r||l(a,b)||"");g.attr("role")&&!f&&g.attr("aria-"+(m?n:k),"false");g[_add](q||l(a,s)||"")}function E(a,b){if(a.data(m)){a.parent().html(a.attr("style",a.data(m).s||""));if(b)a[_callback](b);a.off(".i").unwrap();
|
||||
f(_label+'[for="'+a[0].id+'"]').add(a.closest(_label)).off(".i")}}function l(a,b,f){if(a.data(m))return a.data(m).o[b+(f?"":"Class")]}function t(a){return a.charAt(0).toUpperCase()+a.slice(1)}function D(a,b,f,c){if(!c){if(b)a[_callback]("ifToggled");a[_callback]("ifChanged")[_callback]("if"+t(f))}}var m="iCheck",C=m+"-helper",r="radio",k="checked",y="un"+k,n="disabled";_determinate="determinate";_indeterminate="in"+_determinate;_update="update";_type="type";_click="click";_touch="touchbegin.i touchend.i";
|
||||
_add="addClass";_remove="removeClass";_callback="trigger";_label="label";_cursor="cursor";_mobile=/ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);f.fn[m]=function(a,b){var d='input[type="checkbox"], input[type="'+r+'"]',c=f(),g=function(a){a.each(function(){var a=f(this);c=a.is(d)?c.add(a):c.add(a.find(d))})};if(/^(check|uncheck|toggle|indeterminate|determinate|disable|enable|update|destroy)$/i.test(a))return a=a.toLowerCase(),g(this),c.each(function(){var c=
|
||||
f(this);"destroy"==a?E(c,"ifDestroyed"):A(c,!0,a);f.isFunction(b)&&b()});if("object"!=typeof a&&a)return this;var e=f.extend({checkedClass:k,disabledClass:n,indeterminateClass:_indeterminate,labelHover:!0},a),l=e.handle,v=e.hoverClass||"hover",s=e.focusClass||"focus",t=e.activeClass||"active",B=!!e.labelHover,w=e.labelHoverClass||"hover",p=(""+e.increaseArea).replace("%","")|0;if("checkbox"==l||l==r)d='input[type="'+l+'"]';-50>p&&(p=-50);g(this);return c.each(function(){var a=f(this);E(a);var c=this,
|
||||
b=c.id,g=-p+"%",d=100+2*p+"%",d={position:"absolute",top:g,left:g,display:"block",width:d,height:d,margin:0,padding:0,background:"#fff",border:0,opacity:0},g=_mobile?{position:"absolute",visibility:"hidden"}:p?d:{position:"absolute",opacity:0},l="checkbox"==c[_type]?e.checkboxClass||"icheckbox":e.radioClass||"i"+r,z=f(_label+'[for="'+b+'"]').add(a.closest(_label)),u=!!e.aria,y=m+"-"+Math.random().toString(36).substr(2,6),h='<div class="'+l+'" '+(u?'role="'+c[_type]+'" ':"");u&&z.each(function(){h+=
|
||||
'aria-labelledby="';this.id?h+=this.id:(this.id=y,h+=y);h+='"'});h=a.wrap(h+"/>")[_callback]("ifCreated").parent().append(e.insert);d=f('<ins class="'+C+'"/>').css(d).appendTo(h);a.data(m,{o:e,s:a.attr("style")}).css(g);e.inheritClass&&h[_add](c.className||"");e.inheritID&&b&&h.attr("id",m+"-"+b);"static"==h.css("position")&&h.css("position","relative");A(a,!0,_update);if(z.length)z.on(_click+".i mouseover.i mouseout.i "+_touch,function(b){var d=b[_type],e=f(this);if(!c[n]){if(d==_click){if(f(b.target).is("a"))return;
|
||||
A(a,!1,!0)}else B&&(/ut|nd/.test(d)?(h[_remove](v),e[_remove](w)):(h[_add](v),e[_add](w)));if(_mobile)b.stopPropagation();else return!1}});a.on(_click+".i focus.i blur.i keyup.i keydown.i keypress.i",function(b){var d=b[_type];b=b.keyCode;if(d==_click)return!1;if("keydown"==d&&32==b)return c[_type]==r&&c[k]||(c[k]?q(a,k):x(a,k)),!1;if("keyup"==d&&c[_type]==r)!c[k]&&x(a,k);else if(/us|ur/.test(d))h["blur"==d?_remove:_add](s)});d.on(_click+" mousedown mouseup mouseover mouseout "+_touch,function(b){var d=
|
||||
b[_type],e=/wn|up/.test(d)?t:v;if(!c[n]){if(d==_click)A(a,!1,!0);else{if(/wn|er|in/.test(d))h[_add](e);else h[_remove](e+" "+t);if(z.length&&B&&e==v)z[/ut|nd/.test(d)?_remove:_add](w)}if(_mobile)b.stopPropagation();else return!1}})})}})(window.jQuery||window.Zepto);
|
||||
2
WebRoot/js/plugins/pace/pace.min.js
vendored
Normal file
2
WebRoot/js/plugins/pace/pace.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -48,8 +48,74 @@ String str_date2 = currentTime.toString(); //将Date型日期时间转换成字
|
||||
<h1 class="heading_title_text text-center">VANTEN信息管理系统</h1>
|
||||
<div class="row">
|
||||
<%@ include file="module/sidebar.jsp"%>
|
||||
<%-- <%!public String getIpAddr(HttpServletRequest request) {
|
||||
String ip = request.getHeader("x-forwarded-for");
|
||||
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
|
||||
ip = request.getHeader("Proxy-Client-IP");
|
||||
}
|
||||
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
|
||||
ip = request.getHeader("WL-Proxy-Client-IP");
|
||||
}
|
||||
if (ip == null || ip.length() == 0 || "unknown".equalsIgnoreCase(ip)) {
|
||||
ip = request.getRemoteAddr();
|
||||
}
|
||||
return ip;
|
||||
}%>
|
||||
<%
|
||||
counter = getIpAddr(request);
|
||||
try {
|
||||
sql = conn.prepareStatement("update counter set visitCount=visitCount+1");
|
||||
int rtn = sql.executeUpdate();
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
try {
|
||||
sql = conn.prepareStatement("insert into iplist(IP,times,userName)values(?,?,?)");
|
||||
sql.setString(1, counter);
|
||||
sql.setString(2, str_date1);
|
||||
sql.setString(3, (String)user0);
|
||||
int rtn = sql.executeUpdate();
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
%> --%>
|
||||
<%-- <%=counter %> --%>
|
||||
<div class="col-lg-1 col-md-1 hidden-xs"></div>
|
||||
<div class="col-lg-9 col-md-9">
|
||||
<div id="carousel-example-generic" class="carousel slide"
|
||||
data-ride="carousel">
|
||||
<!-- Indicators -->
|
||||
<ol class="carousel-indicators">
|
||||
<li data-target="#carousel-example-generic" data-slide-to="0"
|
||||
class="active"></li>
|
||||
<li data-target="#carousel-example-generic" data-slide-to="1"></li>
|
||||
<li data-target="#carousel-example-generic" data-slide-to="2"></li>
|
||||
</ol>
|
||||
|
||||
<!-- Wrapper for slides -->
|
||||
<div class="carousel-inner" role="listbox">
|
||||
<div class="item active">
|
||||
<img src="images/index1.jpg" alt="...">
|
||||
<div class="carousel-caption">...</div>
|
||||
</div>
|
||||
<div class="item">
|
||||
<img src="images/index3.jpg" alt="...">
|
||||
<div class="carousel-caption">...</div>
|
||||
</div>
|
||||
...
|
||||
</div>
|
||||
|
||||
<!-- Controls -->
|
||||
<a class="left carousel-control" href="#carousel-example-generic"
|
||||
role="button" data-slide="prev"> <span
|
||||
class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||||
<span class="sr-only">Previous</span>
|
||||
</a> <a class="right carousel-control" href="#carousel-example-generic"
|
||||
role="button" data-slide="next"> <span
|
||||
class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||||
<span class="sr-only">Next</span>
|
||||
</a>
|
||||
</div>
|
||||
<div class="jumbotron">
|
||||
<h1 class="text-center">欢迎访问</h1>
|
||||
<p class="text-center">15信管2班</p>
|
||||
@@ -69,9 +135,9 @@ String str_date2 = currentTime.toString(); //将Date型日期时间转换成字
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<%@ include file="module/footer.jsp"%>
|
||||
</div>
|
||||
|
||||
<script src="js/jquery-1.11.2.min.js" type="text/javascript"></script>
|
||||
<script src="js/bootstrap.js" type="text/javascript"></script>
|
||||
</body>
|
||||
|
||||
@@ -62,7 +62,7 @@
|
||||
<ul class="nav nav-sidebar text-center">
|
||||
<h3>云服务</h3>
|
||||
<li><a href="chartroom/login.jsp">聊天室</a></li>
|
||||
<li><a href="#">论坛(建设中)</a></li>
|
||||
<li><a href="index.jsp">论坛</a></li>
|
||||
<li><a href="JSPhandle/vipdownload_check_show.jsp">信2资源站(维护中)</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
class="caret"></span></a>
|
||||
<ul class="dropdown-menu" role="menu">
|
||||
<li><a href="chartroom/login.jsp">聊天室</a></li>
|
||||
<li><a href="#">论坛(建设中)</a></li>
|
||||
<li><a href="index.jsp">论坛</a></li>
|
||||
<li><a href="JSPhandle/vipdownload_check_show.jsp">信2资源站(维护中)</a></li>
|
||||
</ul></li>
|
||||
<li class="divider"></li>
|
||||
|
||||
100
WebRoot/send.html
Normal file
100
WebRoot/send.html
Normal file
@@ -0,0 +1,100 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>发表帖子</title>
|
||||
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="css/font-awesome.css" rel="stylesheet">
|
||||
<link href="forum/css/plugins/iCheck/custom.css" rel="stylesheet">
|
||||
<link href="forum/css/plugins/summernote/summernote.css" rel="stylesheet">
|
||||
<link href="forum/css/plugins/summernote/summernote-bs3.css" rel="stylesheet">
|
||||
<link href="forum/css/animate.css" rel="stylesheet">
|
||||
<link href="forum/css/style.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h2>发表帖子</h2>
|
||||
</div>
|
||||
<div class="col-md-4 pull-right">
|
||||
<a class="btn btn-default pull-right createNew" href="index.jsp"
|
||||
role="button">回到首页</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<form action="send.jsp" method="post">
|
||||
<div class="form-group">
|
||||
|
||||
<label for="textTitle">主题</label>
|
||||
<input type="text" class="form-control" id="exampleInputEmail1" placeholder="主题">
|
||||
<!--<input type="text" class="form-control" name="subject"></div>-->
|
||||
<div class="form-group">
|
||||
|
||||
<label for="textContent">内容</label>
|
||||
<textarea rows="10" cols="135" name="content"
|
||||
class="form-control" placeholder="内容"></textarea>
|
||||
<input class="btn btn-default pull-right createNew" type="submit" value="发表帖子">
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Mainly scripts -->
|
||||
<script src="js/jquery-2.1.1.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
|
||||
<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
|
||||
|
||||
<!-- Custom and plugin javascript -->
|
||||
<script src="js/inspinia.js"></script>
|
||||
<script src="js/plugins/pace/pace.min.js"></script>
|
||||
|
||||
<!-- iCheck -->
|
||||
<script src="js/plugins/iCheck/icheck.min.js"></script>
|
||||
|
||||
<!-- SUMMERNOTE -->
|
||||
<script src="js/plugins/summernote/summernote.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('.i-checks').iCheck({
|
||||
checkboxClass : 'icheckbox_square-green',
|
||||
radioClass : 'iradio_square-green',
|
||||
});
|
||||
|
||||
|
||||
$('.summernote').summernote();
|
||||
|
||||
});
|
||||
var edit = function() {
|
||||
$('.click2edit').summernote({
|
||||
focus : true
|
||||
});
|
||||
};
|
||||
var save = function() {
|
||||
var aHTML = $('.click2edit').code(); //save HTML If you need(aHTML: array).
|
||||
$('.click2edit').destroy();
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
119
WebRoot/send.jsp
Normal file
119
WebRoot/send.jsp
Normal file
@@ -0,0 +1,119 @@
|
||||
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>发表帖子</title>
|
||||
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||
<link href="css/font-awesome.css" rel="stylesheet">
|
||||
<link href="forum/css/plugins/iCheck/custom.css" rel="stylesheet">
|
||||
<link href="forum/css/plugins/summernote/summernote.css"
|
||||
rel="stylesheet">
|
||||
<link href="forum/css/plugins/summernote/summernote-bs3.css"
|
||||
rel="stylesheet">
|
||||
<link href="forum/css/animate.css" rel="stylesheet">
|
||||
<link href="forum/css/style.css" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%
|
||||
if (session.getAttribute("actualuser") == null) {
|
||||
out.println(
|
||||
"<script language=javascript>alert('登录超时 (1440 秒未活动)或未登录,请重新登录。');window.location.href='index.html'</script>");
|
||||
return;
|
||||
}
|
||||
Object user0 = session.getAttribute("actualuser");
|
||||
/* out.println("欢迎"+user0);//输出当前session用户 */
|
||||
%>
|
||||
<%@ include file="module/top.jsp"%>
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<%@ include file="module/sidebar.jsp"%>
|
||||
<div class="col-lg-1 col-md-1 hidden-xs"></div>
|
||||
<div class="col-lg-9 col-md-9">
|
||||
<div class="row">
|
||||
<div class="col-md-8">
|
||||
<h2>发表帖子</h2>
|
||||
</div>
|
||||
<div class="col-md-2 pull-right">
|
||||
<a class="btn btn-default pull-right createNew" href="index.jsp"
|
||||
role="button">回到首页</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<form action="forum/send.jsp" method="post">
|
||||
<div class="form-group">
|
||||
|
||||
<label for="textTitle">主题</label> <input type="text"
|
||||
class="form-control" id="exampleInputEmail1" name="subject" placeholder="主题">
|
||||
<!--<input type="text" class="form-control" name="subject"></div>-->
|
||||
<div class="form-group">
|
||||
|
||||
<label for="textContent">内容</label>
|
||||
<textarea rows="10" cols="135" name="content"
|
||||
class="form-control" placeholder="内容"></textarea>
|
||||
<input class="btn btn-default pull-right createNew"
|
||||
type="submit" value="发表帖子">
|
||||
</div></div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="module/footer.jsp"%>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Mainly scripts -->
|
||||
<script src="js/jquery-2.1.1.js"></script>
|
||||
<script src="js/bootstrap.js" type="text/javascript"></script>
|
||||
<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
|
||||
<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
|
||||
|
||||
<!-- Custom and plugin javascript -->
|
||||
<script src="js/inspinia.js"></script>
|
||||
<script src="js/plugins/pace/pace.min.js"></script>
|
||||
|
||||
<!-- iCheck -->
|
||||
<script src="js/plugins/iCheck/icheck.min.js"></script>
|
||||
|
||||
<!-- SUMMERNOTE -->
|
||||
<script src="js/plugins/summernote/summernote.min.js"></script>
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('.i-checks').iCheck({
|
||||
checkboxClass : 'icheckbox_square-green',
|
||||
radioClass : 'iradio_square-green',
|
||||
});
|
||||
|
||||
|
||||
$('.summernote').summernote();
|
||||
|
||||
});
|
||||
var edit = function() {
|
||||
$('.click2edit').summernote({
|
||||
focus : true
|
||||
});
|
||||
};
|
||||
var save = function() {
|
||||
var aHTML = $('.click2edit').code(); //save HTML If you need(aHTML: array).
|
||||
$('.click2edit').destroy();
|
||||
};
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -79,7 +79,11 @@
|
||||
ex.printStackTrace();
|
||||
}
|
||||
%>
|
||||
|
||||
<%
|
||||
sql.close();
|
||||
rs.close();
|
||||
conn.close();
|
||||
%>
|
||||
</table>
|
||||
</div>
|
||||
<div class="admin_btn pull-right">
|
||||
@@ -88,6 +92,7 @@
|
||||
</a> <a href="change_admin.jsp">
|
||||
<button type="button" class="btn btn-primary">修改管理员</button>
|
||||
</a>
|
||||
<a href="delete_admin.jsp" class="btn btn-danger" role="button">删除管理员</a>
|
||||
<!-- Button trigger modal -->
|
||||
<button type="button" class="btn btn-primary" data-toggle="modal"
|
||||
data-target=".bs-example-modal-lg">查看总表</button>
|
||||
|
||||
@@ -88,7 +88,9 @@
|
||||
</a> <a href="change_adminjob.jsp">
|
||||
<button type="button" class="btn btn-primary">修改岗位</button>
|
||||
</a>
|
||||
<a href="delete_job.jsp" class="btn btn-danger" role="button">删除岗位</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user