productmarkeyView.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="productremarkPageBean" class="MyFly.Bean.productremarkPageBean" 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>
- <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>
- <table width="656" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
- <tr valign="middle" bgcolor="#799ae1">
- <td width="151" height="29" align="center"><font color="#FFFFFF">产品编号</font></td>
- <td width="182" align="center"><font color="#FFFFFF">评论标题</font></td>
- <td width="122" align="center"><font color="#FFFFFF">评论时间</font></td>
- <td width="94" align="center"><font color="#FFFFFF">编辑</font></td>
- <td width="88" align="center"><font color="#FFFFFF">删除</font></td>
- </tr>
- <%
- int size=15;
- String strNum=request.getParameter("pageNum");
- int cur;
- productremarkPageBean.init(size);
- int pageNum=productremarkPageBean.get_pageCount(); //取得总页数
- if(strNum == null || strNum.equals(""))
- {
- cur=1;
- }
- else
- {
- cur=Integer.parseInt(strNum);//取得要显示的页
- }
- if(cur < 1)
- {
- cur =1;
- }
- if(cur > pageNum)
- {
- cur = pageNum;
- }
- productremarkPageBean.get_pageRow(cur);
- for(int i=0; i<productremarkPageBean.getItems(); i++)
- {
- %>
- <tr>
- <td height="28" align="center"> <a href=# onClick="javascript:window.open('../column/viewPro.jsp?index=<%=productremarkPageBean.getProductID(i).replace('#',',')%>','','width=650,height=400,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"><font color="#FF0000"><%=productremarkPageBean.getProductID(i)%></font></a></td>
- <td align="center"> <a href=# onClick="javascript:window.open('productmarkeyContentView.jsp?index=<%=productremarkPageBean.getRemarkID(i)%>','','width=650,height=400,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"><font color="#FF0000"><%=productremarkPageBean.getTitle(i)%></font></a></td>
- <td align="center">
- <%=productremarkPageBean.getappendTime(i)%>
- </td>
- <td width="94" align="center"><a href="productmarkeyEdit.jsp?index=<%=productremarkPageBean.getRemarkID(i)%>"><img src="../images/admin/edit.gif" alt="" width="19" height="18" border="0"></a></td>
- <td width="88" align="center"><a href="productmarkeyDel.jsp?index=<%=productremarkPageBean.getRemarkID(i)%>"><img src="../images/admin/del.gif" alt="" width="16" height="16" border="0"></a></td>
- </tr>
- <%
- }
- %>
- <tr valign="middle" bgcolor="#799ae1">
- <td width="151" height="29" align="center"><font color="#FFFFFF"><a href="productmarkeyView.jsp?pageNum=<%=1%>">首页</a></font></td>
- <td width="182" align="center"><font color="#FFFFFF"><a href="productmarkeyView.jsp?pageNum=<%=cur-1 %>">上一页</a></font></td>
- <td width="122" align="center"><font color="#FFFFFF"><a href="productmarkeyView.jsp?pageNum=<%=cur+1 %>">下一页</a></font></td>
- <td width="94" align="center"><font color="#FFFFFF"><a href="productmarkeyView.jsp?pageNum=<%=pageNum%>">尾页</a></font></td>
- <td width="88" align="center"><font color="#FFFFFF">页次:<font color="#CC0000"><%=cur%></font>/<%=pageNum%></font></td>
- </tr>
- </table>
- </body>
- </html>