?? cfph.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="errorpage.jsp" %>
<jsp:directive.page import="data.DBConnectionBean"/>
<!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">
<head>
<link href="mycss.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>無標題文檔</title>
<style type="text/css">
<!--
.STYLE3 {color: #FFFFFF; font-weight: bold; }
.STYLE5 {color: #0000CC; font-weight: bold; }
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
</head>
<jsp:useBean id="db" class="data.DBConnectionBean"/>
<body>
<%
String id=(String)session.getAttribute("id");
if(id!=null){%>
<table width="622" border="1" align="left" cellspacing="0" bordercolor="#ECE9D8">
<tr>
<td width="616" bgcolor="#996666"><table width="614" height="16" border="1" align="center" cellspacing="0" bordercolor="#993300">
<tr>
<td width="127" bgcolor="#ECE9D8"><div align="center"><span class="STYLE3"><a href="message.jsp">查看個人資料</a></span></div></td>
<td width="162" bgcolor="#ECE9D8"><div align="center"><span class="STYLE3"><a href="edit.jsp">編輯個人資料</a></span></div></td>
<td width="137" bgcolor="#996666"><div align="center"><span class="STYLE5">財富排行榜</span></div></td>
<td width="170" bgcolor="#ECE9D8"><div align="center"><span class="STYLE3"><a href="../message/message.jsp">短信息</a></span></div></td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="center">這里顯示的是財富前十的人</div></td>
</tr>
<tr>
<td height="84"><table width="216" height="22" border="1" align="center" cellpadding="0" cellspacing="1" bordercolor="#996666">
<tr>
<td width="126"><div align="center">賬號</div></td>
<td width="78"><div align="center">財富</div></td>
</tr>
</table>
<table width="219" height="22" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#993300">
<%ResultSet rs=db.cfph();
while (rs.next()){ %><tr>
<td width="130"><div align="center"><%=rs.getString("id")%></div></td>
<td width="83"><div align="center"><%=rs.getString("money")%></div></td>
</tr><% }%>
</table> </td>
</tr>
</table>
<%
}
else
{
%>
<script language="JavaScript">
alert("出錯!您還沒登陸!點確定返回首頁登陸部落....");
</script>
<meta HTTP-EQUIV=REFRESH CONTENT="0;URL=/xunibuluo/index.jsp">
<%
}
%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -