sale_manageView.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:5k
源码类别:
Applet
开发平台:
Java
- <%@ page contentType="text/html; charset=gb2312"%>
- <%@ page import="java.sql.*,java.lang.*"%>
- <jsp:useBean id="sale_manageBeans" class="MyFly.Bean.sale_manageBeans" scope="request"/>
- <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>
- <html>
- <head>
- <title>站内消息管理</title>
- <meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
- </head>
- <body>
- <p> </p>
- <table width="595" height="2%" border="0" align="center" cellpadding="0" cellspacing="0">
- <tr>
- <td height="26" align="center"><span class="style1">站内消息管理</span></td>
- </tr>
- </table>
- <table width="595" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
- <tr valign="middle" bgcolor="#799ae1">
- <td width="377" height="29" align="center"><font color="#FFFFFF">留言标题</font></td>
- <td width="133" align="center"><font color="#FFFFFF">用户名</font></td>
- <td width="133" align="center"><font color="#FFFFFF">添加时间</font></td>
- <td width="133" align="center"><font color="#FFFFFF">回复(是/否)</font></td>
- <td align="center"><font color="#FFFFFF">编辑</font></td>
- <td align="center"><font color="#FFFFFF">删除</font></td>
- </tr>
- <%
- int size=15;
- String strNum=request.getParameter("pageNum");
- int cur;
- sale_manageBeans.init(size);
- int pageNum=sale_manageBeans.get_pageCount(); //取得总页数
- if(strNum == null || strNum.equals(""))
- {
- cur=1;
- }
- else
- {
- cur=Integer.parseInt(strNum);//取得要显示的页
- }
- if(cur < 1)
- {
- cur = 1;
- }
- if(cur > pageNum)
- {
- cur = pageNum;
- }
- sale_manageBeans.get_pageRow(cur);
- for(int i=0; i<sale_manageBeans.getItems(); i++)
- {
- %>
- <tr>
- <td height="28" align="left"> <%=sale_manageBeans.getTitle(i)%></td>
- <td width="133" align="center"><font color="#FFFFFF"><%=sale_manageBeans.getUsername(i)%></font></td>
- <td align="center"> <%=sale_manageBeans.getAppendTime(i)%></a></td>
- <td align="center"> <%=sale_manageBeans.getIsHuifu(i)%></a></td>
- <td width="41" align="center"><a href="sale_manageEdit.jsp?index=<%=sale_manageBeans.getSelID(i)%>"><img src="../images/admin/edit.gif" alt="回复" width="19" height="18" border="0"></a></td>
- <td width="34" align="center"><a href="sale_manageDel.jsp?index=<%=sale_manageBeans.getSelID(i)%>"><img src="../images/admin/del.gif" alt="删除" width="16" height="16" border="0"></a></td>
- </tr>
- <%
- }
- %>
- </table>
- <div align="center"><a href="sale_manageView.jsp?pageNum=<%=1%>">首页
- <a href="sale_manageView.jsp?pageNum=<%=cur-1 %>">上一页</a>
- <a href="sale_manageView.jsp?pageNum=<%=cur+1 %>">下一页</a>
- <a href="sale_manageView.jsp?pageNum=<%=pageNum%>">尾页</a> 页次: <STRONG><FONT
- color=red><%=cur%></FONT>/<%=pageNum%></STRONG>页 <B><%=size%></B>条/页 转到:
- <script language="javascript">
- function fun(str)
- {
- window.location="sale_manageView.jsp?pageNum=" +str;
- }
- </script>
- <SELECT name=sel
- onchange="fun(sel.options[sel.options.selectedIndex].value)" size=cur>
- <%
- for(int i=pageNum; i>=1; i--)
- {
- %>
- <OPTION selected value=<%=i%>>第<%=i%>页</OPTION>
- <%
- }
- %>
- </SELECT>
- </div>
- <form name="form1" method="post" action="sale_manageAdd.jsp">
- <div align="center">
- <input type="submit" name="Submit" value="添加">
- </div>
- </form>
- </body>
- </html>