toubiao.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="productvoteBeans" class="MyFly.Bean.productvoteBeans" scope="request"/>
- <jsp:useBean id="productinfoBean" class="MyFly.Bean.productinfoBean" 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="685" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
- <tr valign="middle" bgcolor="#799ae1">
- <td height="29" colspan="6" align="center"><span class="style1">投票信息查看</span></td>
- </tr>
- <tr valign="middle" bgcolor="#799ae1">
- <td width="246" height="29" align="center"><font color="#FFFFFF">产品名称</font></td>
- <td width="92" height="29" align="center"><font color="#FFFFFF">很好</font></td>
- <td width="93" align="center"><font color="#FFFFFF">好</font></td>
- <td width="78" align="center"><font color="#FFFFFF">一般</font></td>
- <td width="88" align="center"><font color="#FFFFFF">差</font></td>
- <td width="74" align="center"><font color="#FFFFFF">删除</font></td>
- </tr>
- <%
- int size=15;
- String strNum=request.getParameter("pageNum");
- int cur;
- productvoteBeans.init(size);
- int pageNum=productvoteBeans.get_pageCount(); //取得总页数
- if(strNum == null || strNum.equals(""))
- {
- cur=1;
- }
- else
- {
- cur=Integer.parseInt(strNum);//取得要显示的页
- }
- if(cur < 1)
- {
- cur =1;
- }
- if(cur > pageNum)
- {
- cur =pageNum;
- }
- productvoteBeans.get_pageRow(cur);
- for(int i=0; i<productvoteBeans.getItems(); i++)
- {
- %>
- <tr>
- <td height="28" align="left">
-
- <%
- if(productinfoBean.getNew(productvoteBeans.getProductID(i)))
- {
- %>
- <a href=# onClick="javascript:window.open('viewPro.jsp?index=<%=productinfoBean.getProductID().replace('#',',')%>','','width=650,height=400,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"><font color="#FF0000"><%=productinfoBean.getProductName()%></font></a>
- <%
- }
- else
- {
- out.println("未知");
- }
- %>
- </td>
- <td height="28" align="center"> <%=productvoteBeans.getGood(i)%></td>
- <td align="center"><%=productvoteBeans.getBest(i)%></td>
- <td align="center"> <%=productvoteBeans.getMiddle(i)%></td>
- <td align="center"> <%=productvoteBeans.getBad(i)%></td>
- <td width="74" align="center"><a href="toubiaoDel.jsp?index=<%=productvoteBeans.getProductID(i).replace('#', ',')%>"><img src="../images/admin/del.gif" alt="" width="16" height="16" border="0"></a></td>
- </tr>
- <%
- }
- %>
- <tr valign="middle" bgcolor="#799ae1">
- <td width="246" height="29" align="center"><font color="#FFFFFF"><a href="toubiao.jsp?pageNum=<%=1%>">首页</a></font></td>
- <td width="92" height="29" align="center"><font color="#FFFFFF"><a href="toubiao.jsp?pageNum=<%=1%>"><a href="toubiao.jsp?pageNum=<%=cur-1 %>">上一页</a></font></td>
- <td width="93" align="center"><font color="#FFFFFF"> <a href="toubiao.jsp?pageNum=<%=cur+1 %>">下一页</a></font></td>
- <td width="78" align="center"><font color="#FFFFFF"> <a href="toubiao.jsp?pageNum=<%=pageNum%>">尾页</a></font></td>
- <td colspan="2" align="center"> 页次:<font color="#FF0000"><%=cur%></font>/<%=pageNum%></td>
- </tr>
- </table>
- </body>
- </html>