📄 doqueryresource.jsp
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<%@ include file="../../rolejsp/head.jsp"%>
<%@ page contentType="text/html; charset=gb2312" %>
<%@ page import="cn.com.wap.rese.Rese" %>
<%@ page import="cn.com.wap.reseOP.ReseOP" %>
<%@ page import="java.util.*" %>
<title>Insert title here</title>
</head>
<body>
<%
session.setAttribute("pushPage",request.getParameter("pushPage"));
session.getAttribute("allyID");
//System.out.println("iiiiiiiiiiiiii: "+session.getAttribute("allyID"));
session.setAttribute("serviceCode",request.getParameter("serviceCode"));
session.setAttribute("accessDate",request.getParameter("accessDate"));
ReseOP rop = new ReseOP();
Vector vec = new Vector();
vec = rop.Search(request);
int count = 20;
int total = vec.size();
int pcount = total % count == 0 ? total / count : total / count + 1;
pcount = (pcount == 0) ? 1 : pcount;
int pnum = 1;
if (request.getParameter("pnum") != null)
pnum = Integer.parseInt(request.getParameter("pnum"));
if(vec == null)
{
out.print("查询失败!");
out.close();
}
%>
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#A7C4F7" bordercolorlight="#A7C4F7" bordercolordark="#FFFFFF" bgcolor="#efefef">
<tr>
<td width="10%" height="20" bgcolor="38669E"><div align="center" class="f3">编号</div></td>
<td width="10%" height="20" bgcolor="38669E"><div align="center" class="f3">Push页面</div></td>
<td width="10%" height="20" bgcolor="38669E"><div align="center" class="f3">业务代码</div></td>
<td width="10%" height="20" bgcolor="38669E"><div align="center" class="f3">手机号码</div></td>
<td width="10%" height="20" bgcolor="38669E"><div align="center" class="f3">合作商ID</div></td>
<td width="10%" height="20" bgcolor="38669E"><div align="center" class="f3">访问时间</div></td>
<td width="10%" height="20" bgcolor="38669E"><div align="center" class="f3">Count</div></td>
</tr>
<%
int cur = count * pnum - count;
int flag = count * pnum > total ? total - cur : count;
for(int i = 0;i < flag; i++)
{
Rese re = (Rese)vec.get(cur++);
out.print("<td>"+re.getId()+"</td>");
out.print("<td>"+re.getPushPage()+"</td>");
out.print("<td>"+re.getServiceCode()+"</td>");
out.print("<td>"+re.getMobile()+"</td>");
out.print("<td>"+re.getAllyID()+"</td>");
out.print("<td>"+re.getAccessDate()+"</td>");
out.print("<td><a href='amply.jsp?PushPage="+re.getPushPage()+"&ServiceCode="+re.getServiceCode()+"&AllyID="+re.getAllyID()+"&AccessDate="+re.getAccessDate()+"'>"+re.getRecordCount()+"</a></td>");
out.print("</tr>");
}
%>
</table>
<form action="doQueryResource.jsp" method="post">
<table width="90%" bgcolor="#f5f5f5" align="center">
<tr>
<td>
<div align="right">共<%=pcount%>页
<select name="pnum"><%for (int i = 1; i <= pcount; i++) {%>
<option value=<%=i %> <%=pnum==i?"selected":"" %>>第<%=i%>页</option>
<%
}
%>
</select>
<input type="hidden" name="pushPage" value="<%=request.getParameter("pushPage")%>" />
<input type="hidden" name="allyID" value="<%=request.getParameter("allyID")%>" />
<input type="hidden" name="serviceCode" value="<%=request.getParameter("serviceCode")%>" />
<input type="hidden" name="accessDate" value="<%=request.getParameter("accessDate")%>" />
<input type="submit" name="submit" value="确定"></div>
</td>
</tr>
</table>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -