customerQun.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:6k
源码类别:
Applet
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="java.sql.*,java.lang.*"%>
- <jsp:useBean id="customerBeans" class="MyFly.Bean.customerBeans" scope="request"/>
- <script language="javascript">
- function showDiv(divId)
- {
- document.getElementById(divId).style.display= 'block';
- }
- function CheckAll(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- // if (e.name != 'chkall')
- e.checked = true// form.chkall.checked;
- }
- }
- function CheckOthers(form)
- {
- for (var i=0;i<form.elements.length;i++)
- {
- var e = form.elements[i];
- // if (e.name != 'chkall')
- if (e.checked==false)
- {
- e.checked = true;// form.chkall.checked;
- }
- else
- {
- e.checked = false;
- }
- }
- }
- </script>
- <STYLE type=text/css>
- BODY {
- BACKGROUND: #799ae1; FONT: 9pt 宋体; MARGIN: 0px
- }
- TABLE {
- BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px
- }
- TD {
- FONT: 12px 宋体
- }
- IMG {
- BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; BORDER-RIGHT: 0px; BORDER-TOP: 0px; VERTICAL-ALIGN: bottom
- }
- A {
- COLOR: #000000; FONT: 12px 宋体; TEXT-DECORATION: none
- }
- A:hover {
- COLOR: #428eff; TEXT-DECORATION: underline
- }
- .sec_menu {
- BACKGROUND: #d6dff7; BORDER-BOTTOM: white 1px solid; BORDER-LEFT: white 1px solid; BORDER-RIGHT: white 1px solid; OVERFLOW: hidden
- }
- .menu_title {
- }
- .menu_title SPAN {
- COLOR: #215dc6; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
- }
- .menu_title2 {
- }
- .menu_title2 SPAN {
- COLOR: #428eff; FONT-WEIGHT: bold; LEFT: 8px; POSITION: relative; TOP: 2px
- }
- .style1 {color: #FF0000}
- </STYLE>
- <script language="javascript" src="../js/column.js"></script>
- <html>
- <head>
- <title>会员管理</title>
- <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
- </head>
- <body>
- <table width="595" height="2%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td height="33" align="center"><span class="style1">短信息管理(点击用户可以实现发消息功能)</span></td>
- </tr>
- </table>
- <form name="form1" method="post" action="message.jsp">
- <table width="796" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
- <tr valign="middle" bgcolor="#799ae1">
- <td width="119" height="29" align="center"><font color="#FFFFFF">选择用户发消息</font></td>
- <td width="119" height="29" align="center"><font color="#FFFFFF">账号</font></td>
- <td width="118" align="center"><font color="#FFFFFF">用户名</font></td>
- <td width="70" height="29" align="center"><font color="#FFFFFF">性别</font></td>
- <td width="125" align="center"><font color="#FFFFFF">联系地址</font></td>
- <td width="128" align="center"><font color="#FFFFFF">Email</font></td>
- <td width="55" align="center"><font color="#FFFFFF">删除</font></td>
- </tr>
- <%
- int size=15;
- String strNum=request.getParameter("pageNum");
- int cur;
- customerBeans.init(size);
- int pageNum=customerBeans.get_pageCount(); //取得总页数
- if(strNum == null || strNum.equals(""))
- {
- cur=1;
- }
- else
- {
- cur=Integer.parseInt(strNum);//取得要显示的页
- }
- if(cur < 1)
- {
- cur = 1;
- }
- if(cur > pageNum)
- {
- cur = pageNum;
- }
- customerBeans.get_pageRow(cur);
- //System.out.print(customerBeans.getItems());
- for(int i=0; i<customerBeans.getItems(); i++)
- {
- %>
- <tr>
- <td height="28" align="center"><input type="checkbox" name="checkbox" value="<%=customerBeans.getName(i)%>"></td>
- <td height="28" align="center"> <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>
- <td align="center"> <%=customerBeans.getUserName(i)%></td>
- <td align="center"> <%=customerBeans.getSex(i)%></td>
- <td align="center"> <%=customerBeans.getAddress(i)%></td>
- <td align="center"> <%=customerBeans.getEmail(i)%></td>
- <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>
- </tr>
- <%
- }
- %>
- <tr valign="middle" bgcolor="#799ae1">
- <td width="119" height="29" align="center"><input type="button" name="Submit" value="全选" onClick="CheckAll(this.form)">
- <input type="button" name="Submit2" value="反选" onClick="CheckOthers(this.form)"></td>
- <td width="119" height="29" align="center" ><font color="#FFFFFF"><a href="customerManage.jsp?pageNum=<%=1%>">首页 </a></font></td>
- <td width="118" align="center"><font color="#FFFFFF"><a href="customerManage.jsp?pageNum=<%=cur-1 %>">上一页</a></font></td>
- <td width="70" height="29" align="center"><font color="#FFFFFF"><a href="customerManage.jsp?pageNum=<%=cur+1 %>">下一页</a></font></td>
- <td width="125" align="center"><font color="#FFFFFF"><a href="customerManage.jsp?pageNum=<%=pageNum%>">尾页</a></font></td>
- <td colspan="2" align="center">页次:<font color="#FF0000"><%=cur%></font><%=pageNum%></td>
- </tr>
- <tr valign="middle" bgcolor="#799ae1">
- <td width="119" height="29" align="center" colspan="7">
- <input type="submit" name="Submit3" value="发送信息" onMouseOver="showDiv('divId')">
- (mouseover will display div)
- <div style='display:none;' id='divId'><textarea name="content" cols="20" rows="5"></textarea></div>
- </td>
- </tr>
- </table>
- </form>
- </body>
- </html>