javastr="" 
<%'打开数据库打开数据表
dim conn   
dim connstr
on error resume next
connstr="DBQ="+server.mappath("../riwoniang/moludemei.mdb")+";DefaultDir=;DRIVER={Microsoft Access Driver (*.mdb)};"
set conn=server.createobject("adodb.connection")
conn.open connstr%>

javastr=javastr+"<table border=0 cellpadding=0 cellspacing=0>"
<%sql="select * from shop_gg where ggid=16"
set rs=conn.execute(sql)
b=split(rs("458"),".")
a=split(rs("458url"),",")
if rs("458")="" then
elseif b(1)="swf" then%>
javastr=javastr+"<tr><td><embed src=\"../../<%=rs("458")%>\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"<%=a(0)%>\" height=\"<%=a(1)%>\"></embed></td></tr>"
<%elseif b(1)="jpg" or b(1)="gif" then%>
javastr=javastr+"<tr><td><a href=\"<%=a(2)%>\" target=\"_blank\"><img src=\"../../<%=rs("458")%>\" width=\"<%=a(0)%>\" height=\"<%=a(1)%>\" border=0></a></td></tr>"
<%end if%>
javastr=javastr+"</table>"
<!--GOOGLE广告 -->
javastr=javastr+"<iframe src=\"../../ad_two.asp?action=price\" scrolling=\"no\" width=\"700\" height=\"60\" frameborder=0></iframe>"

<%'添加点击
conn.execute("update price set count=count+1 where bookid="&request("id")&" ")
'取产品变量值
sql="select * from price where bookid="&request("id")&""
set rs=conn.execute(sql)
bookname=rs("bookname")
bookid=rs("bookid")
money=split(rs("money"),"|")
hao=rs("hao")
huai=rs("huai")
pic1=rs("pic1")
pic2=rs("pic2")
content=rs("content")
att=rs("att")
anclassid=rs("anclassid")
nclassid=rs("nclassid")
ppid=rs("ppid")
hid=replace(rs("hid"),"|","<br>")
kucun=rs("kucun")
chengjiaocount=rs("chengjiaocount")
Pcount=rs("count")
updatetime=rs("updatetime")
datetime=rs("datetime")
rs.close
'取一条滚动新闻
sql="select top 1 * from news_moban order by updatetime desc"
set rs=conn.execute(sql)
newstitle=rs("title")
pathlink=rs("pathlink")
rs.close%>

javastr=javastr+"<table width=100% border=0 cellpadding=0 cellspacing=0>"
javastr=javastr+"<tr><td height=2></td></tr>"
javastr=javastr+"<tr><td class=top3 style=\"padding-left:20px\">"
javastr=javastr+"<table width=100% border=0 cellspacing=0 cellpadding=0><tr>"
javastr=javastr+"<td class=pricelist1 height=30><%=bookname%></td>"
javastr=javastr+"<td><marquee height=22 width=200 direction=left scrollamount=2><a href=\"../../bigqd/<%=pathlink%>\" target=_blank class=\"14 00\"><%=newstitle%></a></marquee></td>"
javastr=javastr+"<td class=pricelist3 align=right>报价：<%=money(1)%>元～<%=money(0)%>元</td>"
javastr=javastr+"<td width=10></td></tr></table></td></tr>"
javastr=javastr+"<tr><td align=center>"
javastr=javastr+"<table width=100% border=0 cellspacing=0 cellpadding=0>"
javastr=javastr+"<tr><td width=280 class=tdcolor style=\"padding:10px\"><img src=\"../../<%=pic1%>\" height=\"250\" width=\"280\" style=\"border:1px solid ccc\"></td>"
javastr=javastr+"<td valign=top align=center style=\"padding:10px\">"
javastr=javastr+"<table width=100% border=0 cellspacing=0 cellpadding=0>"
javastr=javastr+"<tr><td bgcolor=#F1FAFE style=\"border:1px solid #d8f1fc;padding:10px\">"
javastr=javastr+"<table width=100% border=0 cellspacing=0 cellpadding=0><tr><td class=pricelist2 valign=top><%=hid%></td><td width=40% rowspan=2 valign=top>"
<%sql="select * from shjia where anclassid="&anclassid&" and flag=2 order by num desc"
set rs=conn.execute(sql)
if not rs.eof then
i=0
do while not rs.eof
shjianame=replace(rs("name"),"青岛","")
shjianame=replace(shjianame,"有限","")
shjianame=replace(shjianame,"公司","")
shjianame=replace(shjianame,"科技","")
shjianame=replace(shjianame,"技术","")
shjianame=replace(shjianame,"专卖","")%>
javastr=javastr+"<img src=\"../../image/jian.gif\" border=0>&nbsp;"
javastr=javastr+"<a href=\"../../user/index.asp?id=<%=rs("shjiaid")%>\" target=_blank class=00><%=shjianame%></a><br>"
javastr=javastr+"<%=rs("tel")%><br>"
<%rs.movenext
i=i+1
if i>5 then exit do
loop
end if
rs.close%>
javastr=javastr+"</td></tr><tr><td class=pad><%=hao%><br><%=huai%></td></tr></table></td></tr><tr>"
javastr=javastr+"<td align=center bgcolor=#F1FAFE style=\"padding:5px\"><table width=80% border=0 cellspacing=0 cellpadding=0>"
javastr=javastr+"<tr><td><a href=\"../../uindex/index.asp?action=goumai&id=<%=bookid%>&from=IT532商品库\" class=pricelist1>购买产品</a></td>"
javastr=javastr+"<td class=pricelist1>加入收藏</td>"
javastr=javastr+"<td><a href=\"http://forum.it532.cn\" class=pricelist1 target=_blank>进入论坛</a></td>"
javastr=javastr+"</tr></table></td></tr></table></td></tr></table></td></tr>"
<!--产品详细开始 -->
javastr=javastr+"<tr><td align=center>"
javastr=javastr+"<table cellpadding=2 cellspacing=0 width=100% border=0>"
<!--橙线 -->
javastr=javastr+"<tr><td style=\"padding:10px\">"
javastr=javastr+"<table cellpadding=2 cellspacing=0 width=100% border=0><tr>"
<!--产品综述 -->
javastr=javastr+"<tr><td class=\"bottomborder menuzs\">产品综述</td></tr>"
javastr=javastr+"<td class=pricecontent valign=top><%=content%></td></tr>"
<!--产品报价 -->
javastr=javastr+"<tr><td class=\"bottomborder menuzs\">产品报价</td></tr>"
javastr=javastr+"<tr><td>"
javastr=javastr+"<table width=100% border=0 cellpadding=3 cellspacing=1>"
javastr=javastr+"<tr><td bgcolor=#FFFFFF>报价商</td>"
javastr=javastr+"<td bgcolor=#FFFFFF>产品名称</td>"
javastr=javastr+"<td bgcolor=#FFFFFF>报价</td>"
javastr=javastr+"<td bgcolor=#FFFFFF>库存状况</td>"
javastr=javastr+"<td bgcolor=#FFFFFF>销售状态</td>"
javastr=javastr+"<td bgcolor=#FFFFFF>更新时间</td>"
javastr=javastr+"</tr>"
<%sql="select top 15 * from price_shjia where bookname like '%"&bookname&"%'"
set rs=conn.execute(sql)
if not rs.eof then
while not rs.eof
shjiaid=rs("shjiaid")
shjianame=rs("shjianame")
shjia_money=split(rs("money"),"|")
shjia_updatetime=formatdatetime(rs("updatetime"),2)
shjia_att=rs("att")
shjia_kucun=rs("kucun")%>
javastr=javastr+"<tr><td bgcolor=#FFFFFF><a href=\"../../user/index.asp?id=<%=shjiaid%>\" target=_blank class=00><%=shjianame%></a></td>"
javastr=javastr+"<td bgcolor=#FFFFFF class=pricelist2><%=bookname%></td>"
javastr=javastr+"<td bgcolor=#FFFFFF class=pricelist2><%=shjia_money(0)%>元</td>"
javastr=javastr+"<td bgcolor=#FFFFFF class=pricelist2><%=shjia_kucun%></td>"
javastr=javastr+"<td bgcolor=#FFFFFF class=pricelist2><%=att%></td>"
javastr=javastr+"<td bgcolor=#FFFFFF class=pricelist2><%=shjia_updatetime%></td>"
javastr=javastr+"</tr>"
<%rs.movenext
wend
end if%>
javastr=javastr+"</table>"
javastr=javastr+"</td></tr>"
<!--产品比较 -->
javastr=javastr+"<form action=\"../../price/price_fairly.asp\" method=\"post\" name=\"myform\">"
javastr=javastr+"<tr><td class=\"bottomborder\">"
javastr=javastr+"<table width=100% border=0 cellpadding=0 cellspacing=0><tr>"
javastr=javastr+"<td class=\"menuzs\">比一比</td>"
javastr=javastr+"<td align=right><input type=submit name=submit class=go-wenbenkuang value=\"提交您选择的商品进行比较\"></td>"
javastr=javastr+"</tr></table>"
javastr=javastr+"</td></tr>"
javastr=javastr+"<tr><td>"
javastr=javastr+"<table cellspacing=0 cellpadding=0 border=0>"
<%sql="select * from price where nclassid="&nclassid&" and bookid<>"&bookid&" order by updatetime desc"
set rs=conn.execute(sql)
i=0
do while not rs.eof%>
javastr=javastr+"<tr>"
<%if not rs.eof then
money=split(rs("money"),"|")%>
javastr=javastr+"<td><table cellspacing=0 cellpadding=0 border=0>"
javastr=javastr+"<tr><td class=price>报价:<%=money(1)%>元</td><td class=pricecontent style=\"padding-left:5px\"><font color=#FE7800><%=left(rs("bookname"),15)%></font></td></tr><tr>"
javastr=javastr+"<td valign=top style=\"padding-top:3px\"><a href=../<%=rs("booklink")%>><img src=\"../../<%=rs("pic1")%>\" width=80 height=60 class=img></a><br><input type=\"checkbox\" name=\"selectbookid\" id=\"selectbookid\" value=\"<%=rs("bookid")%>\"></td>"
javastr=javastr+"<td style=\"padding-left:10px\"><%=replace(rs("hid"),"|","<br>")%></td>"
javastr=javastr+"</tr>"
javastr=javastr+"</table>"
javastr=javastr+"</td>"
<%rs.movenext
end if
if not rs.eof then
money=split(rs("money"),"|")%>
javastr=javastr+"<td><table cellspacing=0 cellpadding=0 border=0>"
javastr=javastr+"<tr><td class=price>报价:<%=money(1)%>元</td><td class=pricecontent style=\"padding-left:5px\"><font color=#FE7800><%=left(rs("bookname"),15)%></font></td></tr><tr>"
javastr=javastr+"<td valign=top style=\"padding-top:3px\"><a href=../<%=rs("booklink")%>><img src=\"../../<%=rs("pic1")%>\" width=80 height=60 class=img></a><br><input type=\"checkbox\" name=\"selectbookid\" id=\"selectbookid\" value=\"<%=rs("bookid")%>\"></td>"
javastr=javastr+"<td style=\"padding-left:10px\"><%=replace(rs("hid"),"|","<br>")%></td>"
javastr=javastr+"</tr>"
javastr=javastr+"</table>"
javastr=javastr+"</td>"
<%rs.movenext
end if
if not rs.eof then
money=split(rs("money"),"|")%>
javastr=javastr+"<td><table cellspacing=0 cellpadding=0 border=0>"
javastr=javastr+"<tr><td class=price>报价:<%=money(1)%>元</td><td class=pricecontent style=\"padding-left:5px\"><font color=#FE7800><%=left(rs("bookname"),15)%></font></td></tr><tr>"
javastr=javastr+"<td valign=top style=\"padding-top:3px\"><a href=../<%=rs("booklink")%>><img src=\"../../<%=rs("pic1")%>\" width=80 height=60 class=img></a><br><input type=\"checkbox\" name=\"selectbookid\" id=\"selectbookid\" value=\"<%=rs("bookid")%>\"></td>"
javastr=javastr+"<td style=\"padding-left:10px\"><%=replace(rs("hid"),"|","<br>")%></td>"
javastr=javastr+"</tr>"
javastr=javastr+"</table>"
javastr=javastr+"</td>"
javastr=javastr+"</tr>"
<%rs.movenext
end if
i=i+1
if i>=4 then exit do
loop%>
javastr=javastr+"</table>"
<%rs.close%>
javastr=javastr+"</td></tr></form>"
<!--产品评论 -->
<%set rs=server.createobject("adodb.recordset")
rs.open "select * from shop_pinglun where bookid="&bookid&" order by pinglundate desc",conn,1,1
plcount=rs.recordcount%>
javastr=javastr+"<tr><td class=\"bottomborder\">"
javastr=javastr+"<table width=100% border=0 cellpadding=0 cellspacing=0><tr>"
javastr=javastr+"<td class=\"menuzs\">商品评论</td>"
javastr=javastr+"<td align=right><%if plcount<>0 then%><a href=\"../../listpl.asp?id=<%=bookid%>\" target=_blank>浏览该商品的全部<%=plcount%>条评论>></a><%end if%></td>"
javastr=javastr+"</tr></table>"
javastr=javastr+"</td></tr>"

javastr=javastr+"<tr><td>"

javastr=javastr+"<table width=100% border=0 cellspacing=0 cellpadding=0>"
javastr=javastr+"<tr>"
javastr=javastr+"<td style=\"padding-top:5px\">"
<%i=0
do while not rs.eof%>
javastr=javastr+"<table width=98% border=0 align=center cellpadding=2 cellspacing=0 style=\"border-bottom:1px dotted #cccccc\">"
javastr=javastr+"<tr>"
javastr=javastr+"<td width=20><img src=\"../../image/pinglun01.gif\" width=20 height=20></td>"
javastr=javastr+"<td><%=rs("pinglunname")%></td>"
javastr=javastr+"<td><a href=\"../../listpl.asp?id=<%=bookid%>#<%=trim(rs("pingluntitle"))%>\" target=_blank><%=trim(rs("pingluntitle"))%></a></td>"
javastr=javastr+"<td><%=trim(rs("pinglundate"))%></td>"
javastr=javastr+"<td><%=rs("ip")%></td>"
javastr=javastr+"</tr>"
<%if trim(rs("huifu"))<>"" then%>
javastr=javastr+"<tr>"
javastr=javastr+"<td colspan=5 style=\"padding-left:20px\"><b><font color=#ff6600>销售商回复：</font></b><%=rs("huifu")%></td>"
javastr=javastr+"</tr>"
<%end if%>
javastr=javastr+"</table>"
<%rs.movenext
i=i+1
if i>=10 then exit do
loop%>
javastr=javastr+"</td></tr></table>"
javastr=javastr+"<table cellpadding=0 cellspacing=0 border=0 width=100%>"
javastr=javastr+"<tr>"
javastr=javastr+"<td><table width=500 border=0 cellpadding=0 cellspacing=4>"
javastr=javastr+"<form name=pinglunform method=post action=\"../../price/moban_plsave.asp?action=save&bookid=<%=bookid%>\">"
javastr=javastr+"<tr>"
javastr=javastr+"<td width=65>姓 名：</td>"
javastr=javastr+"<td><input class=wenbenkuang name=pinglunname type=text id=pinglunname maxlength=18>"
javastr=javastr+"</td></tr>"
javastr=javastr+"<tr><td>标 题：</td>"
javastr=javastr+"<td><input class=wenbenkuang name=pingluntitle type=text id=pingluntitle size=50 value=\"对产品<%=bookname%>的评论\">"
javastr=javastr+"</td></tr>"
javastr=javastr+"<tr><td valign=top>内 容：</td>"
javastr=javastr+"<td><textarea class=wenbenkuang name=pingluncontent cols=50 rows=3 id=pingluncontent style=\"BORDER-RIGHT: #ffffff 1px groove; border-top: border-left: color: #333333; border-bottom: height: 18px\"></textarea>"
javastr=javastr+"</td></tr>"
javastr=javastr+"<tr><td>&nbsp;</td>"
javastr=javastr+"<td><input class=go-wenbenkuang name=submit value=提交保存 type=submit onclick=\"return check();\">"
javastr=javastr+"</td></tr></form></table></td></tr></table>"

javastr=javastr+"</td></tr>"
<!--产品新闻 -->
javastr=javastr+"<tr><td class=\"bottomborder menuzs\">新闻中心</td></tr>"
javastr=javastr+"<tr><td>"
javastr=javastr+"<table width=100% border=0 cellspacing=0 cellpadding=1>"
<%sql="select top 30 * from news_moban where att<>5 order by updatetime desc"
set rs=conn.execute(sql)
while not rs.eof
text=rs("title")%>
javastr=javastr+"<tr>"
javastr=javastr+"<td>·<a href=\"../<%=rs("pathlink")%>\" target=_blank><font color=\"<%=rs("titlecolor")%>\"><%=text%></font></a><font color=#6D6D6D>-<%=day(rs("updatetime"))%>日</font></td>"
<%rs.movenext
text=rs("title")%>
javastr=javastr+"<td>·<a href=\"../<%=rs("pathlink")%>\" target=_blank><font color=\"<%=rs("titlecolor")%>\"><%=text%></font></a><font color=#6D6D6D>-<%=day(rs("updatetime"))%>日</font></td>"
<%rs.movenext
wend%>
javastr=javastr+"</table>"

javastr=javastr+"</td></tr>"

javastr=javastr+"</table>"
javastr=javastr+"</td></tr></table>"
javastr=javastr+"</td></tr>"
<!--产品详细结束 -->
javastr=javastr+"</table>"

document.write(javastr)