<%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030" import="java.sql.*"%> Insert title here
 
  消费检索:
<% 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 <% rs.next(); i++; } } } catch (SQLException e) { out.println(e.getMessage()); } finally { con.close(); } } %>
账户信息 支付方式 支付金额 备注信息 支付时间
<%=rs.getString("username")%> <%=rs.getString("zhifu_type")%> <%=rs.getString("jine")%> <%=rs.getString("beizhu")%> <%=rs.getString("shijian")%>