📄 ptbdeal.jsp
字号:
<%@ page language="java" import="java.util.*,domain.*" pageEncoding="gb2312"%>
<%
List<Offers> o = (List<Offers>) request.getAttribute("offer");
Iterator io = o.iterator();
int pages = 1;
int totalPage = 0;
pages = (Integer) request.getAttribute("whichpage");
totalPage = (Integer) request.getAttribute("totalPage");
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE>交易撮合</TITLE>
<style type="text/css">
<!--
.STYLE3 {
font-family: "宋体";
font-size: 14px;
}
.tasklist {
BORDER-TOP: #aad1ef 1px solid; WIDTH: 700px; BORDER-BOTTOM: #aad1ef 1px solid
}
.listtable {
MARGIN: 0px auto; WIDTH: 700px
}
.listtable TH {
BORDER-RIGHT: #e4e4e4 1px solid; PADDING-RIGHT: 8px; BORDER-TOP: #e4e4e4 1px; PADDING-LEFT: 8px; FONT-WEIGHT: normal; BACKGROUND: #e4effa; PADDING-BOTTOM: 10px; BORDER-LEFT: #e4e4e4 1px solid; PADDING-TOP: 10px; BORDER-BOTTOM: #e4e4e4 1px solid
}
.listtable TD {
BORDER-RIGHT: #e4e4e4 1px solid; PADDING-RIGHT: 10px; BORDER-TOP: #e4e4e4 1px solid; PADDING-LEFT: 10px; PADDING-BOTTOM: 16px; VERTICAL-ALIGN: middle; BORDER-LEFT: #e4e4e4 1px solid; COLOR: #333; LINE-HEIGHT: 18px; PADDING-TOP: 16px; BORDER-BOTTOM: #e4e4e4 1px
}
-->
</style>
</HEAD>
<script>
function checkform(){
var page = document.getElementById("Page").value;
var regString = /^[0-9]{0,9}$/;
if(!page.match(regString)){
alert("您输入的页码有错误!");
return false;
}
}
</script>
<BODY>
<table width="100%" height="21" border="0" cellspacing="0" cellpadding="0" background="images/pt2.jpg">
<tr>
<td height="21"><br><span class="STYLE27"> 交易中的帖子</span>
</td>
</tr>
</table>
<br>
<div align="center">
<DIV class=tasklist>
<table class=listtable width="700" border="1" cellpadding="0" cellspacing="0" bgcolor="#ffffff">
<tr bgcolor="#e4effa" height="31">
<th>
产品名称
</th>
<th width="65">
需要数量
</th>
<th>
价格
</th>
<th>
开始时间
</th>
<th>
结束时间
</th>
<th width="65">
状态
</th>
</tr>
<%
while (io.hasNext()) {
Offers of = (Offers)io.next();
%>
<tr height="28">
<td class="STYLE3"><%=of.getProductstitle() %></td>
<td><%=of.getAmount() %></td>
<td><%=of.getPrice() %></td>
<td><%=of.getPost_time() %></td>
<td><%=of.getEnd_time() %></td>
<td><%=of.getState() %></td>
</tr>
<%
}
%>
</table>
</DIV>
<br>
<%
if (pages != 1) {
out.println("<a href=/webpk/ptbuying.do?Page=1>首页</a>");
out.println("<a href=/webpk/ptbuying.do?Page="
+ (pages - 1) + ">上一页</a>");
}
if (pages != totalPage) {
out.println("<a href=/webpk/ptbuying.do?Page="
+ (pages + 1) + ">下一页</a>");
out.println("<a href=/webpk/ptbuying.do?Page=" + totalPage
+ ">尾页</a>");
}
%>
第<%=pages%>页/共<%=totalPage%>页
<form action="/webpk/ptbuying.do" method="post" onsubmit="return checkform();">
输入页数:
<input type="text" name="Page" id="Page"/>
<input type="submit" value="GO" />
</form>
<table width="100%" height="24" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center">
技术支持 电话:010-51778949; E-Mail:yuxiangqian@hotmail.com; MSN:yuxiangqian@hotmail.com; QQ:641593276
</td>
</tr>
<tr>
<td align="center">
Copyright 2004-2008 蜘蛛工作室:www.zhzhcn.cn All Rights Reserved
</td>
</tr>
</table>
</div>
</BODY>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -