customerManage.jsp
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:4k
源码类别:

Applet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=gb2312"%>
  2. <%@ page import="java.sql.*,java.lang.*"%>
  3. <jsp:useBean id="customerBeans" class="MyFly.Bean.customerBeans" scope="request"/>
  4. <STYLE type=text/css>
  5. BODY {
  6. BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
  7. }
  8. TABLE {
  9. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px
  10. }
  11. TD {
  12. FONT: 12px 宋体
  13. }
  14. IMG {
  15. BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
  16. }
  17. A {
  18. COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
  19. }
  20. A:hover {
  21. COLOR: #428eff; TEXT-DECORATION: underline
  22. }
  23. .sec_menu {
  24. BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
  25. }
  26. .menu_title {
  27. }
  28. .menu_title SPAN {
  29. COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  30. }
  31. .menu_title2 {
  32. }
  33. .menu_title2 SPAN {
  34. COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
  35. }
  36. .style1 {color: #FF0000}
  37. </STYLE>
  38. <script language="javascript" src="../js/column.js"></script>
  39. <html>
  40. <head>
  41. <title>会员管理</title>
  42. <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
  43. </head>
  44. <body>
  45. <table width="595" height="2%" border="0" align="center" cellpadding="0" cellspacing="0">
  46.   <tr> 
  47.     <td height="33" align="center"><span class="style1">会员管理(点击用户可以实现发消息功能)</span></td>
  48.   </tr>
  49. </table>
  50. <table width="796" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
  51.       <tr valign="middle" bgcolor="#799ae1">
  52.         <td width="119" height="29" align="center"><font color="#FFFFFF">账号</font></td>
  53.         <td width="118" align="center"><font color="#FFFFFF">用户名</font></td>
  54.         <td width="70" height="29" align="center"><font color="#FFFFFF">性别</font></td>
  55.         <td width="125" align="center"><font color="#FFFFFF">联系地址</font></td>
  56. <td width="128" align="center"><font color="#FFFFFF">Email</font></td>
  57.         <td width="55" align="center"><font color="#FFFFFF">删除</font></td>
  58.       </tr>
  59.       <%
  60.       int size=15;
  61.       String strNum=request.getParameter("pageNum");
  62.   int cur;
  63.   customerBeans.init(size);
  64.   int pageNum=customerBeans.get_pageCount(); //取得总页数
  65.       if(strNum == null || strNum.equals(""))
  66.   {
  67.        cur=1;
  68.   }
  69.   else
  70.   {
  71.            cur=Integer.parseInt(strNum);//取得要显示的页
  72.   }
  73.   if(cur < 1)
  74.   {
  75.      cur = 1;
  76.   }
  77.   if(cur > pageNum)
  78.   {
  79.      cur = pageNum;
  80.   }
  81.   customerBeans.get_pageRow(cur);
  82.   //System.out.print(customerBeans.getItems());
  83.   for(int i=0; i<customerBeans.getItems(); i++)
  84.   {
  85.   
  86.  %>
  87.       <tr>
  88.         <td height="28" align="center">&nbsp;<a href=# onClick="javascript:window.open('customerManageView.jsp?index=<%=customerBeans.getLeagueID(i)%>','','width=650,height=400,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"><font color="#FF0000"><%=customerBeans.getName(i)%></font></a></td>
  89.         <td align="center">&nbsp;<%=customerBeans.getUserName(i)%></td>
  90.         <td align="center">&nbsp;<%=customerBeans.getSex(i)%></td>
  91.         <td align="center">&nbsp;<%=customerBeans.getAddress(i)%></td>
  92.         <td align="center">&nbsp;<%=customerBeans.getEmail(i)%></td>
  93.  
  94.         <td width="55" align="center"><a href="customerManageDel.jsp?index=<%=customerBeans.getLeagueID(i)%>"><img src="../images/admin/del.gif" alt="" width="16" height="16" border="0"></a></td>
  95.       </tr>
  96.       <%
  97. }
  98. %>
  99.  <tr valign="middle" bgcolor="#799ae1">
  100.         <td width="119" height="29" align="center"><font color="#FFFFFF"><a href="customerManage.jsp?pageNum=<%=1%>">首页 </a></font></td>
  101.         <td width="118" align="center"><font color="#FFFFFF"><a href="customerManage.jsp?pageNum=<%=cur-1 %>">上一页</a></font></td>
  102.         <td width="70" height="29" align="center"><font color="#FFFFFF"><a href="customerManage.jsp?pageNum=<%=cur+1 %>">下一页</a></font></td>
  103.         <td width="125" align="center"><font color="#FFFFFF"><a href="customerManage.jsp?pageNum=<%=pageNum%>">尾页</a></font></td>
  104. <td colspan="2" align="center">页次:<font color="#FF0000"><%=cur%></font><%=pageNum%></td>
  105.       </tr>
  106. </table>
  107. </body>
  108. </html>