<table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#BBD3EB">
<tr>
<td class="font1" height="27" align="center" background="<%=basePath %>admin/images/index1_72.gif" bgcolor="#FFFFFF">序号</td>
background="<%=basePath %>admin/images/index1_72.gif" bgcolor="#FFFFFF"><strong>真实姓名</strong></td>
<td class="font1" align="center" background="<%=basePath %>admin/images/index1_72.gif" bgcolor="#FFFFFF"><strong>联系电话</strong></td>
<td class="font1" align="center" background="<%=basePath %>admin/images/index1_72.gif" bgcolor="#FFFFFF"><strong>身份证号码</strong></td>
<td class="font1" align="center" background="<%=basePath %>admin/images/index1_72.gif" bgcolor="#FFFFFF"><strong>联系地址</strong></td>
<td class="font1" align="center" background="<%=basePath %>admin/images/index1_72.gif" bgcolor="#FFFFFF"><strong>联系邮箱</strong></td>
<td class="font1" align="center" background="<%=basePath %>admin/images/index1_72.gif" bgcolor="#FFFFFF"><strong>创建时间</strong></td>
<td class="font1" align="center" background="<%=basePath %>admin/images/index1_72.gif" bgcolor="#FFFFFF"><strong>在用/停用</strong></td>
<td class="font1" align="center" background="<%=basePath %>admin/images/index1_72.gif" bgcolor="#FFFFFF"><strong>删除</strong></td>
</tr>
<%
cb.setEVERYPAGENUM(12);
int cou = cb.getMessageCount("select count(*) from member ");//得到信息总数
String page1=request.getParameter("page");
if(page1==null){page1="1";}
session.setAttribute("busMessageCount", cou + "");
session.setAttribute("busPage", page1);
List pagelist1 = cb.getMessage(Integer.parseInt(page1),"select * from member order by id desc",11);
session.setAttribute("qqq", pagelist1);
int pageCount = cb.getPageCount(); //得到页数
session.setAttribute("busPageCount", pageCount + "");
List pagelist3=(ArrayList)session.getAttribute("qqq");
if(!pagelist3.isEmpty()){
for(int i=0;i<pagelist3.size();i++){
List pagelist2 =(ArrayList)pagelist3.get(i);
%>
<tr align=center>
<td class="font1" height="26" align=center bgcolor="#FFFFFF"><%=i+1 %></td>
<td class="font1" bgcolor="#FFFFFF" align=center><%=pagelist2.get(1).toString() %></td>
<td class="font1" bgcolor="#FFFFFF" align=center><%=pagelist2.get(3).toString() %></td>
<td class="font1" bgcolor="#FFFFFF" align=center><%=pagelist2.get(4).toString() %></td>
<td class="font1" bgcolor="#FFFFFF" align=center><%=pagelist2.get(5).toString() %></td>
<td class="font1" bgcolor="#FFFFFF" align=center><%=pagelist2.get(6).toString() %></td>
<td class="font1" bgcolor="#FFFFFF" align=center><%=pagelist2.get(7).toString() %></td>
<td class="font1" bgcolor="#FFFFFF" align=center><%=pagelist2.get(8).toString() %></td>
<td class="font1" bgcolor="#FFFFFF" align=center><a href="<%=basePath%>MemberServlet?method=ifusem&id=<%=pagelist2.get(0).toString()%>" ><%=pagelist2.get(9).toString() %></a></td>
<td class="font1" bgcolor="#FFFFFF" align=center><a href="<%=basePath%>MemberServlet?method=delm&id=<%=pagelist2.get(0).toString()%>" >删除</a></td>
</tr>
<% }} %>
<tr align="center" bgcolor="#FFFFFF">
<td class="font1" colspan=14>
<input type="hidden" name="pageCount" value="<%= session.getAttribute("busPageCount").toString()%>" /><!--//用于给上面C#script传值-->
<input type="hidden" name="page" value="<%=session.getAttribute("busPage").toString()%>" /><!--//用于给上面C#script传值-->
<a href="#" onClick="top()">首页</a>
<a href="#" onClick="pre()">上一页</a>
共<%=session.getAttribute("busMessageCount").toString()%>条记录,共计<%=session.getAttribute("busPageCount").toString()%>页,当前第<%=session.getAttribute("busPage").toString()%>页
<a href="#" onClick="next()">下一页</a>
<a href="#" onClick="last()">尾页</a>
第<input name="busjump" type="text" size="3" />页 <a href="#" onClick="bjump()">转到</a>
</td>
</tr>
</table>
吧
最新推荐文章于 2021-02-01 08:26:35 发布