119 lines
3.5 KiB
Plaintext
119 lines
3.5 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=GB18030"
|
|
pageEncoding="GB18030" import="java.sql.*"%>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<jsp:useBean id="gg" class="com.DB" scope="page" />
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
<title>Insert title here</title>
|
|
<link href="../css/style.css" rel="stylesheet" type="text/css">
|
|
</head>
|
|
<body>
|
|
<table width="985" height="548" border="0" cellpadding="0"
|
|
cellspacing="0">
|
|
<tr>
|
|
<td valign="top" background="../image/RIGHT.jpg"><table
|
|
width="985" height="50" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td> </td>
|
|
</tr>
|
|
</table>
|
|
<form id="form1" name="form1" method="post"
|
|
action="tingche_chaxun.jsp" onSubmit="return check()">
|
|
<table width="400" height="30" border="0" align="center"
|
|
cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="227"> 消费检索: <select name="yonghu_type">
|
|
<option value="" selected>请选出查询方式</option>
|
|
<option value="会员支付">会员支付</option>
|
|
<option value="顾客支付">顾客支付</option>
|
|
</select></td>
|
|
<td width="173"><input type="submit" name="Submit"
|
|
value="信息查询" /></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
<table width="873" height="55" border="0" align="center"
|
|
cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td width="139" height="31" align="center" bgcolor="#ECE9D8">账户信息</td>
|
|
<td width="109" align="center" bgcolor="#ECE9D8">支付方式</td>
|
|
<td width="81" align="center" bgcolor="#ECE9D8">支付金额</td>
|
|
<td width="355" align="center" bgcolor="#ECE9D8">备注信息</td>
|
|
<td width="189" align="center" bgcolor="#ECE9D8">支付时间</td>
|
|
</tr>
|
|
|
|
<%
|
|
int CountPage = 0;
|
|
int CurrPage = 1;
|
|
int PageSize = 50;
|
|
int CountRow = 0;
|
|
String StrPage = request.getParameter("Page");
|
|
if (StrPage == null)
|
|
{
|
|
CurrPage = 1;
|
|
}
|
|
else
|
|
{
|
|
CurrPage = Integer.parseInt(StrPage);
|
|
}
|
|
Connection con=gg.getCon();
|
|
if (con != null)
|
|
{
|
|
try
|
|
{
|
|
|
|
String yonghu_type1="";
|
|
String yonghu_type=request.getParameter("yonghu_type");
|
|
if (yonghu_type!=null){
|
|
yonghu_type1=new String(request.getParameter("yonghu_type").getBytes("ISO-8859-1"),"GB18030");
|
|
}
|
|
String sqlyy = "Select * from feiyong where yonghu_type='"+yonghu_type1+"'";
|
|
|
|
ResultSet rs=gg.GetRs(sqlyy);
|
|
if(!rs.next())
|
|
{
|
|
out.println("对不起,暂时没有信息");
|
|
}
|
|
else{
|
|
rs.last();
|
|
int i = 0;
|
|
CountRow = rs.getRow();
|
|
CountPage = (CountRow/PageSize);
|
|
if (CountRow%PageSize>0)
|
|
CountPage++;
|
|
Integer n = (CurrPage-1)*5+1;
|
|
rs.first();
|
|
rs.absolute(CurrPage*PageSize-PageSize+1);
|
|
while (i<PageSize && !rs.isAfterLast())
|
|
{
|
|
%>
|
|
<tr>
|
|
<td align="center"><%=rs.getString("username")%></td>
|
|
<td align="center"><%=rs.getString("zhifu_type")%></td>
|
|
<td align="center"><%=rs.getString("jine")%></td>
|
|
<td align="center"><%=rs.getString("beizhu")%></td>
|
|
<td align="center"><%=rs.getString("shijian")%></td>
|
|
</tr>
|
|
<%
|
|
rs.next();
|
|
i++;
|
|
}
|
|
}
|
|
}
|
|
|
|
catch (SQLException e)
|
|
{
|
|
out.println(e.getMessage());
|
|
}
|
|
finally
|
|
{
|
|
con.close();
|
|
}
|
|
}
|
|
%>
|
|
</table></td>
|
|
</tr>
|
|
</table>
|
|
</body>
|
|
</html> |