修复登录页问题,添加论坛表情
This commit is contained in:
@@ -18,9 +18,20 @@
|
||||
<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">
|
||||
<script src="js/jquery-2.1.1.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
<script src="js/bootstrap.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>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
@@ -52,16 +63,24 @@
|
||||
<div class="mail-tools">
|
||||
<div class="btn-group pull-right"></div>
|
||||
<form action="forum/deletesend.jsp" method="post">
|
||||
<%
|
||||
if (!adminuser.equals("")) {
|
||||
%>
|
||||
<input class="btn btn-danger deleteTitle pull-right"
|
||||
type="submit" value="删除帖子">
|
||||
<%
|
||||
} else {
|
||||
out.print("");
|
||||
}
|
||||
%>
|
||||
<%
|
||||
Connection con;
|
||||
Statement sql;
|
||||
ResultSet rs;
|
||||
int id = 0;
|
||||
String regex1 = "<(?!img).*?>";
|
||||
String regex1 = "<(?!image).*?>";
|
||||
/* String username = "admin"; */
|
||||
String subject = "", content = "", username = "";
|
||||
String subject = "", content = "", username = null;
|
||||
Date time = new Date();
|
||||
SimpleDateFormat sdf = new SimpleDateFormat();
|
||||
sdf.format(time);
|
||||
@@ -74,7 +93,7 @@
|
||||
"root", "");
|
||||
sql = con.createStatement();
|
||||
String send = null;
|
||||
content = "select id,subject,username,time,flag from send order by flag desc,id";
|
||||
content = "select id,subject,username,flag,updatetime from send order by flag desc,updatetime desc";
|
||||
rs = sql.executeQuery(content);
|
||||
while (rs.next()) {
|
||||
id = rs.getInt("id");
|
||||
@@ -82,15 +101,7 @@
|
||||
username = rs.getString("username");
|
||||
String str = String.valueOf(id);
|
||||
%>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
@@ -102,7 +113,7 @@
|
||||
%>
|
||||
|
||||
<td><a href=" >"><strong><script
|
||||
type='text/html' style='display:inline;color:red;'><%=subject%></script></strong></a>
|
||||
type='text/html' style='display:inline;color:red;'><%=subject%></script></strong></a>
|
||||
</td>
|
||||
<%
|
||||
}
|
||||
@@ -110,8 +121,7 @@
|
||||
//不置顶不匹配
|
||||
%>
|
||||
|
||||
<td><a href="detail.jsp?id=<%=id%>"><%=subject%></a>
|
||||
</td>
|
||||
<td><a href="detail.jsp?id=<%=id%>"><%=subject%></a></td>
|
||||
|
||||
<%
|
||||
}
|
||||
@@ -120,7 +130,7 @@
|
||||
%>
|
||||
|
||||
<td><a href="detail.jsp?id=<%=id%>"><strong><script
|
||||
type='text/html' style='display:inline;color:red;'><%=subject%></script></strong></a>
|
||||
type='text/html' style='display:inline;color:red;'><%=subject%></script></strong></a>
|
||||
</td>
|
||||
|
||||
<%
|
||||
@@ -129,12 +139,12 @@
|
||||
//不置顶但匹配
|
||||
%>
|
||||
<td><a href="detail.jsp?id=<%=id%>"><script
|
||||
type='text/html' style='display:inline'><%=subject%></script></a>
|
||||
type='text/html' style='display:inline'><%=subject%></script></a>
|
||||
</td>
|
||||
<%
|
||||
}
|
||||
%>
|
||||
<td class="text-right mail-date"><%=username%>  <%=rs.getDate("time")%> <%=rs.getTime("time")%></td>
|
||||
<td class="text-right mail-date"><%=username%> <%=rs.getDate("updatetime")%> <%=rs.getTime("updatetime")%></td>
|
||||
</tr>
|
||||
|
||||
</tbody>
|
||||
@@ -161,18 +171,7 @@
|
||||
|
||||
|
||||
<!-- Mainly scripts -->
|
||||
<script src="js/jquery-2.1.1.js"></script>
|
||||
<script src="js/bootstrap.min.js"></script>
|
||||
<script src="js/bootstrap.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({
|
||||
|
||||
Reference in New Issue
Block a user