listbook.jsp
资源名称:shop.rar [点击查看]
上传用户:yatiankong
上传日期:2014-05-16
资源大小:5604k
文件大小:32k
源码类别:
Applet
开发平台:
Java
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
- <HTML><HEAD><TITLE></TITLE>
- <%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*,java.io.*,java.util.*" errorPage="" %>
- <jsp:useBean id="productinfoBean" class="MyFly.Bean.productinfoBean" scope="request"/>
- <jsp:useBean id="productvoteBean" class="MyFly.Bean.productvoteBean" scope="request"/>
- <jsp:useBean id="productremarkBeans" class="MyFly.Bean.productremarkBeans" scope="request"/>
- <jsp:useBean id="useclassBeans" class="MyFly.Bean.useclassBeans" scope="request"/>
- <jsp:useBean id="characterclassBeans" class="MyFly.Bean.characterclassBeans" scope="request"/>
- <META http-equiv=Content-Type content="text/html; charset=gb2312">
- <%@ include file ="top.jsp" %>
- <%
- request.setCharacterEncoding("gb2312");
- %>
- <%!
- StringBuffer convert(StringBuffer sour){
- for(int i=0;i<sour.length();i++){
- if(sour.substring(i,i+1).equals("n")){
- sour.delete(i,i+1);
- sour.insert(i,"</p><p>");
- }
- }
- return sour;
- }
- %>
- <%!
- String fun(String str)
- {
- try
- {
- return new String(str.getBytes("ISO8859_1"));
- }
- catch(Exception e)
- {
- return "";
- }
- }
- %>
- <%
- String proType=fun(request.getParameter("proType"));
- String proNum=request.getParameter("proNum").replace(',', '#');
- productinfoBean.getNew(proNum);//传递的值
- %>
- <script language="javascript">
- function openScript(url,name, width, height){
- var Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
- }
- </script>
- <LINK href="image/buyok_shop.css" type=text/css rel=stylesheet>
- <LINK href="image/table.css" type=text/css rel=stylesheet>
- <META content="MSHTML 6.00.2900.3086" name=GENERATOR>
- </HEAD>
- <BODY>
- <TABLE class=grayline cellSpacing=0 cellPadding=0 width=762 align=center
- bgColor=#ffffff border=0>
- <TR>
- <TD vAlign=top align="center" width=200 bgColor=#fafafa>
- <SCRIPT language=JavaScript>
- function checkform(){
- if (document.loginbox.name.value.length ==0){
- alert("出错了,您没有填写用户名。");
- document.loginbox.name.focus();
- return false;
- }
- if (document.loginbox.password.value.length==0){
- alert("出错了,您没有填写密码。");
- document.loginbox.password.focus();
- return false;
- }
- if (document.loginbox.yzm.value.length==0){
- alert("出错了,您没有填写验证码。");
- document.loginbox.yzm.focus();
- return false;
- }
- return true;
- }
- </SCRIPT>
- <STYLE type=text/css>BODY {
- FONT-SIZE: 12px
- }
- TD {
- FONT-SIZE: 12px
- }
- TH {
- FONT-SIZE: 12px
- }
- BODY {
- MARGIN: 0px
- }
- </STYLE>
- <TABLE cellSpacing=0 cellPadding=0 width=200 border=0>
- <TBODY>
- <TR>
- <TD vAlign=center align=middle>
- <TABLE cellSpacing=0 cellPadding=0 width=200 border=0>
- <TR>
- <TD vAlign=center align=middle>
- <TABLE cellSpacing=0 cellPadding=0 width=190 align=center
- border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=left width=190 height=52><IMG
- height=51 alt=登陆
- src="image/login_top.gif"
- width=190></TD>
- </TR>
- <TR>
- <TD height=11><IMG height=14 alt=1
- src="image/login_1.gif"
- width=190></TD>
- </TR>
- <TR>
- <TD vAlign=top align=left
- background=image/login_bg.gif height=7>
- <TABLE height=87 cellSpacing=0 cellPadding=0
- width="100%" border=0>
- <%
- String userid=(String)session.getAttribute("userid");
- String goods_num=String.valueOf((Integer)session.getAttribute("goods_num"));
- String goods_price=String.valueOf((Float)session.getAttribute("goods_price"));
- if(userid==null)
- {
- %>
- <FORM name=loginbox onsubmit="return checkform();"
- action=check_login.jsp method=post>
- <TBODY>
- <TR>
- <TD vAlign=top align=left height=16>
- <TABLE height=72 cellSpacing=2 cellPadding=0
- width="100%" border=0>
- <TBODY>
- <TR>
- <TD align=right width="31%">用户名:</TD>
- <TD width="45%" height=22><INPUT
- style="BORDER-RIGHT: #ece2d2 1px solid; BORDER-TOP: #ece2d2 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ece2d2 1px solid; COLOR: #666666; BORDER-BOTTOM: #ece2d2 1px solid; FONT-FAMILY: verdana"
- alt=请填写要登陆的用户名 maxLength=16 size=10
- name=name></TD>
- <TD vAlign=top align=left width="24%"
- rowSpan=3><INPUT type=image
- src="image/login.gif"
- name=imageField></TD>
- </TR>
- <TR>
- <TD align=right>密 码:</TD>
- <TD height=22><input
- style="BORDER-RIGHT: #ece2d2 1px solid; BORDER-TOP: #ece2d2 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ece2d2 1px solid; COLOR: #666666; BORDER-BOTTOM: #ece2d2 1px solid; FONT-FAMILY: verdana"
- type=password alt=请填写正确的密码 maxlength=16 size=10
- name=password>
- <INPUT type=hidden value=ok
- name=login></TD>
- </TR>
- <TR>
- <TD align=right>验证码:</TD>
- <TD vAlign=center height=22><div align="right">
- <input
- style="BORDER-RIGHT: #ece2d2 1px solid; BORDER-TOP: #ece2d2 1px solid; FONT-SIZE: 8pt; BORDER-LEFT: #ece2d2 1px solid; COLOR: #666666; BORDER-BOTTOM: #ece2d2 1px solid; FONT-FAMILY: verdana"
- alt=请根据右边的图片填写验证码 maxlength=4 size=4 name=yzm>
- <img src="checkCode/image.jsp" width="38" height="21" border=0></div></td>
- <TR>
- <TD align=middle width=95><IMG height=5 alt=4
- src="image/login_bt.gif" width=5> <A href="reginfo.jsp">注 册</A></TD>
- <TD align=middle width=95 colspan="2"><IMG height=5 alt=3
- src="image/login_bt.gif" width=5> <A
- href="UserCenter/findstep1.jsp">找回密码</A></TD>
- </TR>
- </TBODY>
- </TABLE></TD>
- </TR>
- </form>
- <TD height=13><IMG height=13 alt=2
- src="image/login_2.gif"
- width=190></TD>
- </TR>
- </TABLE>
- <TR>
- <%
- }
- else
- {
- String name=(String)session.getAttribute("name");
- // System.out.print(goods_num);
- if(goods_price=="null")
- {
- goods_price="0";
- }
- if(goods_num=="null")
- {
- goods_num="0";
- }
- /// if(goods_price==0)
- //{
- // goods_price=0;
- // }
- %>
- <TABLE height=16 cellSpacing=0 cellPadding=0
- width="100%" border=0>
- <TBODY>
- <TR>
- <TD vAlign="middle" align="center"
- background="image/login_bg.gif"
- height=25><%=name%>,您的购物车中有 <FONT color=red> <%=goods_num%></FONT> 件图书</TD>
- </TR>
- <TR>
- <TD vAlign=center align=middle
- background=image/login_bg.gif
- height=25>总计货款: <FONT color=red><%=goods_price%></FONT> 元</TD>
- </TR>
- <TR>
- <TD vAlign=center align=middle
- background=image/login_bg.gif
- height=25><A
- href="UserCenter/usermanage.jsp"><FONT
- color=red><U
- title=进入会员中心>会员中心</U></FONT></A> <SPAN
- style="CURSOR: hand"
- onclick="window.open('shopcar/cartlist.jsp','blank_','scrollbars=yes,resizable=no,width=650,height=450')"><FONT
- color=red><U title=查看购物车>购 物 车</U></FONT></SPAN></TD>
- </TR>
- <TR>
- <TD height=13><IMG height=13 alt=2
- src="image/login_2.gif"
- width=190></TD>
- </TR>
- </TBODY>
- </TABLE>
- <%}%>
- </TBODY>
- </TABLE></TD>
- </TR>
- </TABLE></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=0 cellPadding=0 width=200 border=0>
- <TBODY>
- <TR>
- <TD>
- <TABLE height="100%" cellSpacing=0 cellPadding=0 width=200
- align=left 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=600>
- <TABLE height=226 cellSpacing=0 cellPadding=0 width=190
- align=center background=image/leftlist_bg.jpg border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=middle
- background=image/leftlist_bg.jpg bgColor=#ebebeb
- height=189><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=<%=java.net.URLEncoder.encode(useclassBeans.getUseclassName(3*i_q+j_q),"utf-8")%>
- &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></TR>
- <TR>
- <TD>
- <TABLE cellSpacing=0 cellPadding=0 width=200 align=left border=0>
- <TBODY>
- <TR>
- <TD><IMG height=73 src="image/help.gif"
- width=200></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD>
- <TD class=left vAlign=top align=left width=560>
- <TABLE cellSpacing=0 cellPadding=0 width=559 align=center border=0>
- <TBODY>
- <TR>
- <TD width="559" height=4 align=middle vAlign=top><IMG height=201
- src="image/book_list.jpg" width=550></TD></TR>
- <TR>
- <TD vAlign=center align=left height=20> <IMG
- height=11 src="image/jt_2.gif" width=11> 目前位置:<A
- href="default.jsp">首页</A> > 查看<SPAN
- class=red1>《<%=productinfoBean.getProductName()%>》</SPAN>详细资料</TD></TR>
- <TR>
- <TD background=image/bgline.gif height=1></TD></TR>
- <TR>
- <TD height="301" align=middle vAlign=top>
- <TABLE cellSpacing=0 cellPadding=0 width=550 align=center
- border=0><TBODY>
- <TR>
- <TD vAlign=top align=left height=85>
- <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
- <TBODY>
- <TR>
- <TD width=220 height="310" align=right vAlign=center>
- <TABLE cellSpacing=0 cellPadding=0 width="100%"
- border=0>
- <TBODY>
- <TR>
- <TD vAlign=top align=left>
- <TABLE height=230 cellSpacing=0 cellPadding=0
- width=196 align=center border=0>
- <TBODY>
- <TR>
- <TD vAlign=center align=middle width=196
- background="image/list_bg.jpg"><IMG class=4l
- height=170 alt=红颜露水
- src="product_image/<%=productinfoBean.getMaxPicture()%>" width=130
- border=0>
- </TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=7 cellPadding=0 width="95%"
- align=right border=0>
- <TBODY>
- <TR>
- <TD vAlign=center
- align=right> 原价:¥<%=productinfoBean.getMarketPrice()%> 会员价:<SPAN
- class=red1>¥<%=productinfoBean.getPreferPrice()%><A
- class=font></A></SPAN></TD></TR></TBODY></TABLE></TD>
- <TD vAlign=top align=left width=340>
- <TABLE cellSpacing=2 cellPadding=0 width="100%"
- border=0>
- <TBODY>
- <TR>
- <TD><IMG height=36 src="image/list_xx.jpg"
- width=248></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=0 cellPadding=0 width="100%"
- border=0>
- <TBODY>
- <TR>
- <TD>
- <TABLE cellSpacing=2 cellPadding=0 width="100%"
- align=left border=0>
- <TBODY>
- <TR vAlign=center align=left>
- <TD width=11 height=16><IMG height=11
- src="image/jt_3.gif" width=11></TD>
- <TD width=75 height=16>【书 名】</TD>
- <TD width=237 height=16><%=productinfoBean.getProductName()%> </TD></TR>
- <TR>
- <TD colSpan=3 height=1>
- <TABLE height=1 cellSpacing=0 cellPadding=0
- width="100%" align=left border=0>
- <TBODY>
- <TR>
- <TD
- background=image/line.gif></TD></TR></TBODY></TABLE></TD></TR>
- <TR vAlign=center align=left>
- <TD height=16><IMG height=11
- src="image/jt_3.gif" width=11></TD>
- <TD height=16>【条形号码】</TD>
- <TD height=16><%=proNum%> </TD></TR>
- <TR>
- <TD colSpan=3 height=1>
- <TABLE height=1 cellSpacing=0 cellPadding=0
- width="100%" align=left border=0>
- <TBODY>
- <TR>
- <TD
- background=image/line.gif></TD></TR></TBODY></TABLE></TD></TR>
- <TR vAlign=center align=left>
- <TD height=16><IMG height=11
- src="image/jt_3.gif" width=11></TD>
- <TD height=16>【作 者】</TD>
- <TD height=16><%=productinfoBean.getAuthor()%> </TD></TR>
- <TR>
- <TD colSpan=3 height=1>
- <TABLE height=1 cellSpacing=0 cellPadding=0
- width="100%" align=left border=0>
- <TBODY>
- <TR>
- <TD
- background=image/line.gif></TD></TR></TBODY></TABLE></TD></TR>
- <TR vAlign=center align=left>
- <TD height=16><IMG height=11
- src="image/jt_3.gif" width=11></TD>
- <TD height=16>【上架日期】</TD>
- <TD height=16><%=productinfoBean.getShangData()%></TD></TR>
- <TR>
- <TD colSpan=3 height=1>
- <TABLE height=1 cellSpacing=0 cellPadding=0
- width="100%" align=left border=0>
- <TBODY>
- <TR>
- <TD
- background=image/line.gif></TD></TR></TBODY></TABLE></TD></TR>
- <TR vAlign=center align=left>
- <TD height=16><IMG height=11
- src="image/jt_3.gif" width=11></TD>
- <TD height=16>【出版社】</TD>
- <TD height=16><%=productinfoBean.getPublish()%></TD></TR>
- <TR>
- <TD colSpan=3 height=1>
- <TABLE height=1 cellSpacing=0 cellPadding=0
- width="100%" align=left border=0>
- <TBODY>
- <TR>
- <TD
- background=image/line.gif></TD></TR></TBODY></TABLE></TD></TR>
- <TR vAlign=center align=left>
- <TD height=16><IMG height=11
- src="image/jt_3.gif" width=11></TD>
- <TD height=16>【所属类别】</TD>
- <TD height=16><%=productinfoBean.getUseclassID()%> </TD></TR>
- <TR>
- <TD colSpan=3 height=1>
- <TABLE height=1 cellSpacing=0 cellPadding=0
- width="100%" align=left border=0>
- <TBODY>
- </TBODY></TABLE></TD></TR>
- <TR>
- <TD colSpan=3 height=1>
- <TABLE height=1 cellSpacing=0 cellPadding=0
- width="100%" align=left border=0>
- <TBODY>
- <TR>
- <TD
- background=image/line.gif></TD></TR></TBODY></TABLE></TD></TR>
- <TR>
- <TD height=16><IMG height=11
- src="image/jt_3.gif" width=11></TD>
- <TD height=16>【图书库存】</TD>
- <TD height=16><SPAN
- class=red1><STRONG><%=productinfoBean.getStorage()%></STRONG></SPAN> </TD></TR>
- <TR>
- <TD colSpan=3 height=1>
- <TABLE height=1 cellSpacing=0 cellPadding=0
- width="100%" align=left border=0>
- <TBODY>
- <TR>
- <TD
- background=image/line.gif></TD></TR></TBODY></TABLE></TD></TR>
- <TR vAlign=center align=left>
- <TD width=11 height=16><IMG height=11
- src="image/jt_3.gif" width=11></TD>
- <TD width=75 height=16>【书 名】</TD>
- <TD width=237 height=16><%=productinfoBean.getProductName()%> </TD></TR>
- <TR>
- <TD colSpan=3 height=1>
- <TABLE height=1 cellSpacing=0 cellPadding=0
- width="100%" align=left border=0>
- <TBODY>
- <TR>
- <TD
- background=image/line.gif></TD></TR></TBODY></TABLE></TD></TR>
- <TR vAlign=center align=left>
- <TD width=11 height=16><IMG height=11 src="image/jt_3.gif" width=11></TD>
- <TD height=16><input onClick="showSub('vote')" type=button value=我要投票 name=Submit3></TD>
- <TD height=16><input onClick="showSub('comment')" type=button value=我要评论 name=Submit32>
- <input onClick="showSub('view')" type=button value=查看评论 name=Submit322> </TD>
- </TR>
- <TR>
- <TD colSpan=3 height=1>
- <TABLE height=1 cellSpacing=0 cellPadding=0
- width="100%" align=left border=0>
- <TBODY>
- <TR>
- <TD
- background=image/line.gif></TD></TR></TBODY></TABLE></TD></TR>
- <TR>
- <TD colSpan=3 height=1>
- <TABLE height=1 cellSpacing=0 cellPadding=0
- width="100%" align=left border=0>
- <TBODY>
- <TR>
- <TD
- background=image/line.gif></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
- <TABLE cellSpacing=5 cellPadding=0 width="100%"
- border=0>
- <TBODY>
- <TR>
- <TD vAlign="middle" align="center"><span style="CURSOR: hand" onClick="openScript('purchasecart.jsp?bookid=<%= proNum %>','pur',650,300);"><img src="image/buynow.gif" alt=千寻万觅,要的就是她 width="106" height="40" border=0></span>
- <SPAN style="CURSOR: hand"
- onclick="openScript('UserCenter/collection.jsp?bookid=<%= proNum %>','collection',650,300);"> <IMG src="image/favnow.gif"
- alt=好东东,收藏起来先 width="104" height="39"
- border=0></SPAN>
- </TD>
- </TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
- </TBODY></TABLE></TD></TR></TBODY></TABLE>
- <TABLE id=vote style="MARGIN-TOP: 5px" cellSpacing=0 cellPadding=0
- width="101%" align=center border=0 background="bgColor=#fbfdf7">
- <TBODY>
- <TR>
- <TD width="43%" height="84" style="LINE-HEIGHT: 28px">
- <FORM name=form1 action="productvote.jsp?proType=<%=proType%>&proNum=<%=proNum.replace('#', ',')%>"
- method=post>
- 您对该产品的评价:<BR>
- <INPUT type=radio value="best" name="productvote">
- 非常满意
- <INPUT type=radio value="good" name="productvote">
- 比较满意 <BR>
- <INPUT
- type=radio value="middle" name="productvote">
- 一般满意
- <INPUT type=radio value="bad"
- name="productvote">
- 不满意
- <input type=submit value="投 票" name=Submit>
- <BR>
- </FORM></TD>
- <TD width="57%">
- <DIV align=right>
- <table width="100%" border="0" cellspacing="0">
- <tr>
- <td width="20%"> </td>
- <td width="80%"><%
- int good;
- int best;
- int middle;
- int bad;
- int total_p;
- if(productvoteBean.getNew(proNum))
- {
- best=productvoteBean.getGood();
- good=productvoteBean.getBest();
- middle=productvoteBean.getMiddle();
- bad=productvoteBean.getBad();
- total_p=good+middle+bad+best;
- }
- else
- {
- good=0;
- middle=0;
- bad=0;
- best=0;
- total_p=0;
- }
- %></td>
- </tr>
- <tr>
- <td height="15">投票结果:</td>
- <td>已经有 <font color="#FF0000"><%=total_p%> </font>位 客人 投票</td>
- </tr>
- </table>
- <table width="100%" height="39" border="0" cellspacing="0">
- <tr>
- <td width="23%" height="39">非常满意<font color="#FF0000"><%=best%></font></td>
- <td width="24%">比较满意<font color="#FF0000"><%=good%></font></td>
- <td width="21%">一般满意<font color="#FF0000"><%=middle%></font></td>
- <td width="32%">不满意<font color="#FF0000"><%=bad%></font></td>
- </tr>
- </table>
- </DIV></TD>
- </TR>
- </TBODY>
- </TABLE>
- <TABLE class=px12b2 id=comment style="MARGIN-TOP: 5px" cellSpacing=1
- cellPadding=2 width="92%" align=center bgColor=#bbd798 border=0>
- <TBODY>
- <TR>
- <TD bgColor=#fbfdf7>
- <FORM name=form2 onsubmit="return check()"
- action=productremark.jsp?proType=<%=proType%>&proNum=<%=proNum.replace('#', ',')%> method=post>
- 您的留言:<BR>
- 留言标题:
- <INPUT
- class=inputStyleCopy size=30 name=title>
- <BR>
- 留言内容:
- <TEXTAREA class=inputStyleCopy name=content rows=5 cols=70></TEXTAREA>
- <BR>
- <INPUT type=submit value="发 表" name=Submit2>
- 留言字数不超过200个
- </FORM></TD>
- </TR>
- </TBODY>
- </TABLE>
- <TABLE class=px12b2 id=view style="MARGIN-TOP: 5px" cellSpacing=1
- cellPadding=2 width="92%" align=center bgColor=#fbfdf7 border=0>
- <TBODY>
- <%
- productremarkBeans.getQuery("5",proNum);
- if(productremarkBeans.getItems() > 0)
- {
- for(int i=0; i<productremarkBeans.getItems(); i++)
- {
- out.println("<tr><td> </td><td height="25">"+"<font color=red>标题:</font>"+" "+convert(new StringBuffer(productremarkBeans.getTitle(i)))+"<br>"+"<font color=blue>内容:</font>"+" "+convert(new StringBuffer(productremarkBeans.getContent(i)))+"</td></tr>");
- }
- }
- else
- {
- out.println("<tr><td> </td><td height="25">"+"<font color=red>暂时还没有该产品的用户评论</font>"+"</td></tr>");
- }
- %>
- </TBODY>
- </TABLE>
- <TABLE class=px12b2 style="MARGIN-TOP: 5px" height=106 cellSpacing=1
- cellPadding=2 width="99%" align=center bgColor=#bbd798 border=0>
- <TBODY>
- <%
- StringBuffer str=new StringBuffer(productinfoBean.getIntroduce());
- str=convert(str);
- %>
- <TR>
- <TD bgColor=#fbfdf7><%=str%>
- </TD>
- </TR>
- </TBODY>
- </TABLE> </TD></TR><td height="2"></TBODY></TABLE>
- <LINK
- href="image/buyok_shop.css" type=text/css rel=stylesheet>
- <STYLE type=text/css>BODY {
- MARGIN: 0px
- }
- </STYLE>
- <%@ include file ="foot.jsp" %>
- </BODY></HTML>
- <SCRIPT language=javascript>
- var vote=document.getElementById("vote");
- var comment=document.getElementById("comment");
- var view=document.getElementById("view");
- vote.style.display="none";
- comment.style.display="none";
- view.style.display="none";
- function showSub(str){
- vote.style.display="block";
- comment.style.display="block";
- view.style.display="block";
- if(str=="vote"){
- comment.style.display="none";
- view.style.display="none";
- }
- if(str=="comment"){
- vote.style.display="none";
- view.style.display="none";
- }
- if(str=="view"){
- vote.style.display="none";
- comment.style.display="none";
- }
- }
- function check(){
- if(document.form2.title.value==""||document.form2.content.value==""){
- alert("信息不完整");
- return false;
- }
- if(document.form2.content.value.length>100){
- alert("字数过多");
- return false;
- }
- }
- </SCRIPT>