indexme.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:10k
源码类别:
Applet
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
- <jsp:useBean id="messageboardBean" class="MyFly.Bean.messageboardBean" scope="request"/>
- <jsp:useBean id="messageboardBeans" class="MyFly.Bean.messageboardBeans" scope="request"/>
- <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
- <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
- <HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>星海购书网留言簿</TITLE>
- <%@ include file ="top.jsp" %>
- <META http-equiv=Content-Type content="text/html; charset=gb2312">
- <STYLE type=text/css>BODY {
- MARGIN: 0px
- }
- </STYLE>
- <STYLE type=text/css>BODY {
- MARGIN: 0px
- }
- .STYLE1 {
- COLOR: #ff3300
- }
- .STYLE2 {
- COLOR: #ff0000
- }
- </STYLE>
- <TABLE class=grayline dataSrc="" cellSpacing=0 cellPadding=0 width=760
- align=center border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=left width=210 height=409>
- <STYLE type=text/css>TD {
- FONT-SIZE: 12px
- }
- .lei1 {
- FONT-SIZE: 13px
- }
- </STYLE>
- <LINK href="../image/buyok_shop.css" type=text/css rel=stylesheet
- src="../image/buyok_shop.css">
- <TABLE dataSrc="" height=263 cellSpacing=0 cellPadding=0 width=200
- align=center border=0>
- <TBODY>
- <TR>
- <TD width=206 height=31><IMG height=50 src="../image/lei.gif"
- width=200></TD></TR>
- <TR>
- <TD vAlign=top align=middle height=189>
- <TABLE dataSrc="" height=226 cellSpacing=0 cellPadding=0 width=190
- align=center background=../image/leftlist_bg.jpg border=0
- src="http://www.erbook.com.cn/images/leftlist_bg.jpg">
- <TBODY>
- <TR>
- <TD vAlign=top align=middle
- background=../image/leftlist_bg.jpg bgColor=#ebebeb
- height=189
- src="http://www.erbook.com.cn/images/leftlist_bg.jpg"><TABLE cellSpacing=0 cellPadding=0 width="90%"
- border=0>
- <TBODY>
- <%
- characterclassBeans.getQuery("-1");
- for(int i_c=0; i_c<characterclassBeans.getItems(); i_c++)//第一层循环读出大类
- {
- %>
- <TR>
- <TD>
- <TABLE height=61 cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD height=30>
- <DIV align=left><IMG height=9
- src="../image/bit05.gif" width=8> <SPAN class="lei1 STYLE4"><%=characterclassBeans.getCharacterName(i_c)%></SPAN></DIV></TD>
- </TR>
- <TR>
- <TD height="31">
- <TABLE cellSpacing=0 cellPadding=0 width="90%"
- align=center border=0>
- <TBODY>
- <%
- int j_u=characterclassBeans.getCharacterID(i_c);
- int num1=useclassBeans.getQuerycha(j_u);
- int x = (num1%3 == 0)? num1/3 : num1/3+1; //计算显示的行数
- if(x!=0)
- {
- for(int i_q=0; i_q<x; i_q++)
- { %>
- <TR>
- <% for(int j_q=0; j_q<3; j_q++) //没一行显示4条记录
- {
- if(3*i_q+j_q == num1)//显示完全
- {
- break;
- }
- %>
- <TD height=20>
- <DIV align=left> <A href="prosort.jsp?proType=<%=useclassBeans.getUseclassName(3*i_q+j_q)%>
- &pageNum=1&proNum=<%=useclassBeans.getUseclassID(3*i_q+j_q)%>" target=_blank> <%=useclassBeans.getUseclassName(3*i_q+j_q)%></A>|</DIV></TD>
- <%}%>
- </TR>
- <%
- }
- }
- %>
- </TBODY>
- </TABLE></TD>
- </TR>
- </TBODY>
- </TABLE></TD>
- </TR>
- <%
- }
- %>
- </TBODY>
- </TABLE></TD>
- </TR></TBODY></TABLE><IMG
- height=9 src="../image/leftlist_bottom.gif"
- width=190></TD></TR></TBODY></TABLE></TD>
- <TD class=left vAlign=top align=left width=550>
- <TABLE dataSrc="" cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD colSpan=4><IMG height=201 src="../image/top.gif"
- width=550></TD></TR>
- <TR>
- <TD align=middle width=20 height=20><IMG height=11
- src="../image/jt_2.gif" width=11></TD>
- <TD width=292>当前位置: <A
- href="../default.jsp">首页</A> > 留言簿
- </TD>
- <TD align=middle width=138><A
- href="release.jsp">发表留言</A> </TD>
- </TR>
- <TR>
- <TD background=../image/bgline.GIF colSpan=4 height=1
- src="http://www.erbook.com.cn/guest/images/bgline.GIF"></TD></TR>
- <TR>
- <TD vAlign=top align=middle colSpan=4 height=50><BR>
- <%
- int size=4;
- String strNum=request.getParameter("pageNum");
- int cur;
- if(strNum == null || strNum.equals(""))
- {
- cur=1;
- }
- else
- {
- cur=Integer.parseInt(strNum);//取得要显示的页
- }
- messageboardBeans.init(size);
- int pageNum=messageboardBeans.get_pageCount(); //取得总页数
- messageboardBeans.get_pageRow(cur);
- for(int i=0; i<messageboardBeans.getItems(); i++)
- {
- %>
- <TABLE dataSrc="" cellSpacing=0 cellPadding=0 width=485 align=center
- border=0>
- <TBODY>
- <TR>
- <TD><IMG height=14 src="img/bg_top.jpg"
- width=485></TD></TR>
- <TR>
- <TD vAlign=top align=left background="img/bg_line.jpg "
- height=118
- src="img/bg_line.jpg">
- <TABLE dataSrc="" cellSpacing=1 cellPadding=0 width=475
- align=center border=0>
- <TBODY>
- <TR bgColor=#fafafa>
- <TD vAlign=center align=middle bgColor=#fafafa
- height=25><%=messageboardBeans.getName(i)%></TD>
- <TD vAlign=center align=left bgColor=#fafafa colSpan=2
- height=25>留言主题:<%=messageboardBeans.getTitle(i)%></TD></TR>
- <TR>
- <TD vAlign=center align=middle rowSpan=2><IMG height=100
- src="face/<%=messageboardBeans.getFace(i)%>.gif" width=100></TD>
- <TD vAlign=top align=left colSpan=2 height=80><FONT
- class=new><%=messageboardBeans.getContent(i)%></FONT></TD></TR>
- <TR>
- <TD vAlign=bottom align=left width=180 bgColor=#fafafa
- height=20><IMG height=24 alt=<%=messageboardBeans.getQq(i)%>
- src="../image/oicq.gif" width=24> <A
- href="mailto:<%=messageboardBeans.getMailbox(i)%>"><IMG
- title=给谁说青春不能错发一封信 height=24
- src="../image/email.gif" width=24 border=0></A>
- </TD>
- <TD vAlign=center align=middle width=187 bgColor=#fafafa
- height=24>发表于:<%=messageboardBeans.getTime(i)%></TD></TR>
- <TR>
- <TD colSpan=3>
- <TABLE dataSrc="" cellSpacing=0 cellPadding=0
- width="100%" border=0>
- <TBODY>
- <TR bgColor=#fafafa>
- <TD class=orge align=middle width="22%">版主回复:</TD>
- <TD class=orge width="78%" bgColor=#fafafa
- height=25><%=messageboardBeans.getHuifu(i)%></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
- <TR>
- <TD><IMG height=14 src="img/bg_bt.jpg"
- width=485></TD></TR></TBODY></TABLE>
- <%
- }
- %>
- <TABLE dataSrc="" cellSpacing=5 cellPadding=0 width=550 align=center
- bgColor=#ffffff border=0>
- <tr>
- <td height="20">
- <div align="right"><a href="indexme.jsp?pageNum=<%=1%>">首页
- <%
- if(cur > 1)
- {
- %>
- <a href="indexme.jsp?pageNum=<%=cur-1 %>">上一页</a>
- <%
- }
- %>
- <%
- if(cur < pageNum)
- {
- %>
- <a href="indexme.jsp?pageNum=<%=cur+1 %>">下一页</a>
- <%
- }
- %>
- <a href="indexme.jsp?pageNum=<%=pageNum%>">尾页</a> 页次: <STRONG><FONT
- color=red><%=cur%></FONT>/<%=pageNum%></STRONG>页 <B><%=size%></B>条/页
- </div></td>
- </tr>
- </TABLE>
- </TD>
- </TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
- <%@ include file ="foot.jsp" %>
- </BODY></HTML>