?? wealthsort.jsp
字號(hào):
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="com.lovo.util.Page"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<% Page currPage = (Page)session.getAttribute("wealthPage");
int i= (currPage.getCurrPage() - 1) * currPage.getPageRows() + 1 ; %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'userMag.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<link rel="stylesheet" rev="stylesheet" href="css/block.css" />
<style type="text/css">
<!--
#pageform {
text-align: right;
position: relative;
right: 40px;
}
#page {
width: 30px;
}
-->
</style>
</head>
<body>
<div id="rightWraper">
<div class="text">
<form action="servlet/SelectUserDO?wealth=wealth" method="post">
<div class="r_title"> 財(cái)富排名 </div>
<hr size="1">
<div style="text-align:center;height:30px">
用戶搜索:
<input type="text" name="author" />
<input type="submit" value="搜索">
</div>
<hr height="5" size="1">
您當(dāng)前的財(cái)富排名是${sessionScope.sort + 1}
<table border="1" cellSpacing=0 cellPadding=3 width=98%>
<tr align="center" height="28px">
<td width="8%">
排名
</td>
<td width="15%" align="left">
名稱(chēng)
</td>
<td width="10%">
級(jí)別
</td>
<td width="12%">
財(cái)富
</td>
<td width="15%">
注冊(cè)時(shí)間
</td>
<td width="15%">
Email
</td>
</tr>
<c:forEach items="${sessionScope.wealthList}" var="po">
<tr align="center" height="28px">
<td>
<%= i++ %>
</td>
<td>
${po.name}
</td>
<td>
${po.level.id}
</td>
<td>
${po.wealth}
</td>
<td>
${po.registerTime}
</td>
<td>
${po.email}
</td>
</tr>
</c:forEach>
</table>
</form>
<form id="pageform" action="servlet/WealthSortDO" method="post">
<span><a
href="servlet/WealthSortDO?page=1">首頁(yè)</a>
</span>
<span><a
href="servlet/WealthSortDO?page=${sessionScope.wealthPage.currPage - 1}">上頁(yè)</a>
</span>
<span><a
href="servlet/WealthSortDO?page=${sessionScope.wealthPage.currPage + 1}">下頁(yè)</a>
</span>
<span><a
href="servlet/WealthSortDO?page=${param.maxPages}">末頁(yè)</a>
</span> 到
<input type="text" name="page" id="page" />
頁(yè)
<input type="submit" value="GO">
<span>第${sessionScope.wealthPage.currPage}頁(yè)</span>
<span>共${param.maxPages}頁(yè)</span>
</form>
</div>
</body>
</html>
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -