⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cfph.jsp

📁 jsp注册
💻 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 + -