📄 messagedetail.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.*" %>
<!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=gb2312" />
<title>南昌公交查询网</title>
<style type="text/css">
<!--
body {
background-image: url();
margin-left: 100px;
margin-right: 100px;
margin-top: 0px;
margin-bottom: 0px;
background-color: #FFFFFF;
}
.STYLE4 {font-size: 14px}
.STYLE7 {font-weight: bold}
.STYLE2 {font-weight: bold}
.style13 {font-size: small; font-weight: bold; }
.style6 {font-size: small}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
color: #FF0000;
}
a:active {
text-decoration: none;
color: #FF0000;
}
.style1 {color: #FF0000}
-->
</style></head>
<body>
<p>
<%
String Title=new String(request.getParameter("title").getBytes("ISO8859_1"),"GBK");
String UserName=new String(request.getParameter("username").getBytes("ISO8859_1"),"GBK");
String Content="";
String Contact="";
Statement sql=null;
Connection con=null;
ResultSet re=null;
//out.println("fdsaf");
try{ Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
}
catch(ClassNotFoundException e){}
try{ con=DriverManager.getConnection("jdbc:odbc:nbos","","");
sql=con.createStatement();
String condition="select * from Messages where Title='"+Title+"' and UserName='"+UserName+"'";
re=sql.executeQuery(condition);
if (re.next()){
Content=re.getString("Content");
// out.println(Content);
}
re.close(); }
catch(Exception e)
{} %>
</p>
<TABLE cellSpacing=1 cellPadding=3 width=650 align=center bgColor=#003399
border=0>
<TBODY>
<TR>
<TD background=../Picture/topbg.gif height=20></TD>
</TR>
<TR bgColor=#7da4ec>
<TD bgcolor="#7da4ec"><div align="center" class="STYLE2">留言详细信息<FONT color=#ffffff> </FONT></div></TD>
</TR>
<TR bgColor=#e8f3ff>
<TD bgcolor="#e8f3ff"><!--查询结果显示开始-->
<TABLE cellSpacing=1 cellPadding=3 width=639 bgColor=#003399 border=0>
<TBODY>
<TR bgColor=#e8f3ff>
<TD width="58"><span class="style13">主题</span>:</TD>
<TD width="566"><span class="style6"><%=Title%></span></TD>
</TR>
<TR bgColor=#7da4ec>
<TD colspan="2"> </TD>
</TR>
<TR bgColor=#e8f3ff>
<TD height="54"><span class="style6"><strong>内容:</strong></span></TD>
<TD><span class="style6"><%=Content%></span></TD>
</TR>
<TR bgColor=#7da4ec>
<TD colspan="2"> </TD>
</TR>
<TR bgColor=#e8f3ff>
<TD><span class="style6"><strong>留言人</strong>:</span></TD>
<TD><%=UserName%></TD>
</TR>
<TR bgColor=#7da4ec>
<TD colspan="2"> </TD>
</TR>
</TBODY>
</TABLE>
<!--查询结果显示结束-->
<div align="center"></div> <div align="center"><BR>
<IMG
src="../Picture/close_window.gif" width="78" height="21" border=0
style="CURSOR: hand" onclick=window.close()></div></TD>
</TR>
<TR>
<TD background=../Picture/bottombg.gif
height=20></TD>
</TR>
</TBODY>
</TABLE>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -