index.jsp
上传用户:manager48
上传日期:2022-07-31
资源大小:997k
文件大小:3k
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml" >
- <%@page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <head>
- <title>网盟留言本</title>
- <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
- <meta name="author" content="jezz" />
- <link href="images/web.css" rel="stylesheet" type="text/css">
- <jsp:useBean id="mypage" class="wm.bean.page" scope="page"/>
- </head>
- <body>
- <div id="wrapper">
- <div id="header">
- <div id="logo"></div>
- <div id="blog-header">
- <h1 class="blog-title"><a href="index.jsp">WMgbook 1.0</a></h1>
- <div class="blog-desc">欢迎光临网盟留言本</div>
- </div>
- <div id="menu">
- <ul>
- <li><a href="index.jsp">留言首页</a></li>
- <li><a href="new.jsp">签写留言</a></li>
- <li><a href="http://www.wangmeng.cn" target="_blank">官方网站</a></li>
- </ul>
- </div><!--menu -->
-
- </div><!--header -->
-
- <div id="mainWrapper">
- <div id="content" class="content-wide">
-
-
- <%
- ResultSet rs = mypage.myQuery(request,response,10);
- while(rs.next())
- {
-
- String email = rs.getString("email") ;
- String content = rs.getString("content") ;
- String restore=rs.getString("restore");
- String restore_time=rs.getString("restore_time");
- request.setAttribute("restore",restore);
-
- %>
-
- <div class="textbox">
- <div class="textbox-title">
-
- <div class="textbox-label">[ <%=rs.getString("sj")%> | 留言者: <%=rs.getString("xm")%> ]</div>
- </div>
- <div class="textbox-content"><%=content%></div>
- <c:if test="${!empty restore}">
- <div class="textbox-content-reply"><%=restore%><div class="text-box-replytime">回复时间:<%=restore_time%></div></div>
- </c:if>
- <div class="textbox-bottom">邮箱: <%=email%> <c:if test="${!empty login}">| <a href="reply.jsp?id=<%=rs.getString("id")%>">回复</a> | <a href="del.jsp?id=<%=rs.getString("id")%>" onclick="javascript:return confirm('Delete message!nAre you sure?');">删除</a></c:if></div>
- </div><!--textbox -->
- <%
- }
- String footer = mypage.PageFooter();
-
- %>
- <div class="article-bottom">
- <div class="pages">
- <%out.println(footer);%>
- </div>
- </div><!--article-bottom -->
-
- </div><!--content -->
- </div><!--mainWrapper -->
- <div id="footer">
- <div id="innerFooter">Powered by WMgbook 1.0™ Copyright ©</div>
- </div>
-
- </div>
- <% rs.close();
- mypage.all_close();%>
- </body>
- </html>