<%@ page language="java" contentType="text/html; charset=GB18030" pageEncoding="GB18030" import="java.sql.*"%> Insert title here
 
  车牌号码:
<% int CountPage = 0; int CurrPage = 1; int PageSize = 12; 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 chepaihao1=""; String chepaihao=request.getParameter("chepaihao"); if (chepaihao!=null){ chepaihao1=new String(request.getParameter("chepaihao").getBytes("ISO-8859-1"),"GB18030"); } String sqlyy = "Select * from weigui where chepaihao='"+chepaihao1+"'"; 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("chepaihao")%> <%=rs.getString("states")%> <%=rs.getString("shuoming")%>