📄 purchase_payment_seltime_frame.jsp
字号:
<%@ page language="java" contentType="text/html; charset=gb2312"%>
<jsp:directive.page import="com.captainli.dboperation.PaymentDA"/>
<jsp:directive.page import="java.util.ArrayList"/>
<jsp:directive.page import="com.captainli.bean.PaymentBean"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>Insert title here</title>
<link rel="stylesheet" type="text/css" href="../css/sys.css">
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color: #FFFFFF;
}
a:link {
color: #1A438E;
text-decoration: underline;
}
a:visited {
text-decoration: underline;
}
a:hover {
text-decoration: none;
color: #000000;
}
a:active {
text-decoration: underline;
}
-->
</style>
</head>
<%
String starttime = "";
String endtime = "";
ArrayList arryPayment = null;
if(request.getParameter("starttime") != null && request.getParameter("endtime") != null){
starttime = request.getParameter("starttime");
endtime = request.getParameter("endtime");
arryPayment = new PaymentDA().showPaymentByP_time(starttime, endtime);
}else{
arryPayment = new PaymentDA().showAllPayment();
}
%>
<%
int intPageSize; //一页显示的记录数
int intRowCount; //记录总数
int intPageCount;//总页数
int intPage; //待显示页码
String strPage; //请求页码
//设置一页显示的记录数
intPageSize = 10;
//取得显示的页码
strPage = request.getParameter("page");
if(strPage == null){//刚打开网页的时候,表明没有参数,此时显示第1页数据
intPage = 1;
}
else{//将字符串转换成整型
intPage = Integer.parseInt(strPage);
//if(intPage <= 1)
// intPage = 1;
}
//获取记录总数
intRowCount = arryPayment.size();
//记算总页数
intPageCount = (intRowCount + intPageSize-1) / intPageSize;
int startNum = (intPage - 1) * intPageSize;//当前页起始索引
int endNum = startNum + intPageSize;//当前页结束索引
if(endNum >= arryPayment.size()){
endNum = arryPayment.size();
}
%>
<body>
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#C4D8ED">
<tr>
<td><img src="../images/system/r_1.gif" alt="" /></td>
<td width="100%" background="../images/system/r_0.gif"><table cellpadding="0" cellspacing="0" width="100%">
<tr>
<td> 付款单查询</td>
<td align="right"> </td>
</tr>
</table></td>
<td><img src="../images/system/r_2.gif" alt="" /></td>
</tr>
<tr>
<td></td>
<td><table align="center" cellpadding="4" cellspacing="1" class="toptable grid" border="1">
<tr align="center">
<td class="category" width="258">付款单编号</td>
<td width="221" height="30" class="category">付款单时间</td>
<td width="120" class="category">付款金额(元)</td>
<td width="214" class="category">付款供应商</td>
<td width="110" class="category">是否按单结算</td>
</tr>
<%
for(int i = startNum;i < endNum;i++){
PaymentBean bean = (PaymentBean)arryPayment.get(i);
%>
<tr onMouseOver="this.className='highlight'" onMouseOut="this.className=''" onDblClick="javascript:var win=window.open('purchase_payment_sel_show.jsp?p_id=<%= bean.getP_id() %>','详细信息','width=853,height=470,top=176,left=161,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no,scrollbars=yes'); win.focus()">
<td align="center"><%= bean.getP_no() %></td>
<td align="center" height="25"><%= bean.getP_time() %></td>
<td align="center"><%= bean.getP_sett() %></td>
<td align="center"><%= bean.getI_name() %></td>
<td align="center"><%if(bean.getP_p_no().equals("")){ %>否<%}else{ %>是<%} %></td>
</tr>
<%} %>
<tr>
<td colspan="11" height="30" class="category"><table cellpadding=0 cellspacing=0 width="100%">
<tr>
<td width="20%" align="left" style="color:#FF0000;"> 双击查看付款单</td>
<td width="80%" align="right"><table cellpadding=0 cellspacing=0 width="100%">
<tr>
<td width="20%" align="left" style="color:#FF0000;"> </td>
<td width="80%" align="right"> 第<%= intPage%>页 共<%= intPageCount%>页
<% //以下是分页的“上一页”“下一页”,有上一页就有链接,没有就为文字,下一页同理 %>
<% if(intPage > 1){ %>
<a href="purchase_payment_sel_frame.jsp?page=<%= intPage-1%>&starttime=<%= starttime %>&endtime=<%= endtime %>">上一页</a>
<% }else{ %>
上一页
<%}%>
<% if(intPage < intPageCount){ %>
<a href="purchase_payment_sel_frame.jsp?page=<%= intPage+1%>&starttime=<%= starttime %>&endtime=<%= endtime %>">下一页</a>
<% }else{ %>
下一页
<%}%></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td><img src="../images/system/r_4.gif" alt="" /></td>
<td></td>
<td><img src="../images/system/r_3.gif" alt="" /></td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -