<!--#include file=top.asp-->

<head>
</head>
<script language="JavaScript">
	
	<!--
	
	function OpenNews() 
	{
			window.name = "news"
			win = window.open('../shangpintj.asp?id=&request("bookid")&','newswin','left=110,width=350,height=220,scrollbars=1');
	}
	//-->
	</script>
<body topmargin="0">
<table border="0" width="1024" cellspacing="0" cellpadding="0" height="986">
  <tr>
    <td width="100" height="503"></td>
    <td width="168" height="503" valign="top">
    <table border="0" width="100%" cellspacing="0" cellpadding="0" height="169">
      <tr>
        <td width="100%" height="115" valign="top">
          <table border="0" width="100%" cellspacing="0" cellpadding="0">
            <tr>
              <td width="100%"><img border="0" src="moban/2/images/class.gif"></td>
            </tr>
            <tr>
              <td width="170" valign="top" align="center">
                <div align="center">
                  <center>
                  <table border="0" width="167" cellspacing="0" cellpadding="0" >
                    <tr>
                      <td width="167" height="6" background="moban/2/images/class_top.gif"></td>
                    </tr>
                    <tr>
                      <td width="167" height="285" background="moban/2/images/class_mid.gif" valign="top" align="center">
                      <table width="100%" cellpadding="0" cellspacing="0">
  <%set rs=server.CreateObject("adodb.recordset")
rs.open "select top 10 * from shop_shjclass where shjname='"&shjianame&"' order by shjclassidorder",conn,1,1
if rs.bof and rs.eof then
response.write"&nbsp;&nbsp;<font color=red>暂无数据！</font>"
else
do while not rs.eof
%>
<tr>
<td width="100%" valgin="top" height=20>
&nbsp;&nbsp;<img src=moban/2/images/class_c.gif width=5 height=5>&nbsp;<a href=guidelist.asp?shjclassid=<%=rs("shjclassid")%>&id=<%=id%>><%=left(rs("shjclass"),10)%></a></td>
</tr>
<tr>
<td align="center" valgin="top" height=1><img border="0" src="moban/2/images/class_line.gif" width="148" height="1">
</td>
</tr>
<%rs.movenext
loop	
rs.close
set rs=nothing
end if
%>
</table>

                      </td>
                    </tr>
                    <tr>
                      <td width="167" height="8" background="moban/2/images/class_d.gif"></td>
                    </tr>
                  </table>
                  </center>
                </div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td width="100%" height="18">
          <table border="0" width="100%" cellspacing="0" cellpadding="0" height="114">
            <tr>
              <td width="100%" height="53"><img border="0" src="moban/2/images/youhui.gif"></td>
            </tr>
            <tr>
              <td width="100%" height="61" valign="top" align="center">
                <div align="center">
                  <center>
                  <table border="0" width="167" cellspacing="0" cellpadding="0" >
                    <tr>
                      <td width="167" background="moban/2/images/youhui_T.gif" height="8"></td>
                    </tr>
                    <tr>
                      <td width="167" background="moban/2/images/youhui_m.gif"  align="center" height="200" valign="top">
                      <table width="100%" cellpadding="0" cellspacing="0">
<%
shjiaid=rs_shjia("shjiaid")
set rsy=server.CreateObject("adodb.recordset")
rsy.open "select top 5 * from youhui where shjiaid="&shjiaid,conn,1,1
if rsy.bof and rsy.eof then
response.write"&nbsp;&nbsp;<font color=red>暂无数据！</font>"
else
do while not rsy.eof
%>
<tr>
<td  valign="top"> 
&nbsp;&nbsp;<a href=youhuishow.asp?youhuiid=<%=rsy("id")%>&id=<%=id%>><%=rsy("yhname")%></a>
</td>
</tr>
<tr>
<td align="center">
<img border="0" src="moban/2/images/youhui_line.gif" >
</td>
</tr>
<%rsy.movenext
loop	
rsy.close
set rsy=nothing
end if
%>
</table>
                      </td>
                    </tr>
                    <tr>
                      <td width="167" background="moban/2/images/youhui_D.gif" height="10"></td>
                    </tr>
                  </table>
                  </center>
                </div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td width="100%" height="18" valign="top" align="center">
          <table border="0" width="100%">
            <tr>
              <td width="100%"><img border="0" src="moban/2/images/lianxi.gif"></td>
            </tr>
            <tr>
              <td width="100%" align="center">&nbsp;&nbsp;<img border="0" src="moban/2/images/lc.gif">&nbsp;<%=rs_shjia("tel")%><br>
              &nbsp;&nbsp;<img border="0" src="moban/2/images/lc.gif">&nbsp;<%=rs_shjia("dz")%>
              </td>
            </tr>
            <tr>
              <td width="100%"></td>
            </tr>
          </table>
        </td>
      </tr>
      <tr>
        <td width="100%" height="18" valign="top" align="center">
          <div align="center">
            <center>
            <table border="0" width="167" background="moban/2/images/renzheng.gif" height="140">
              <tr>
                <td width="100%" valign="top" align="center">
                  <table border="0" width="100%" height="127">
                    <tr>
                      <td width="100%" height="123" valign="top">                <table border="0" width="100%">
                  <tr>
                    <td width="100%"><img src="../images/ring01.gif" broder="0">   
                     认证状态</td>                                                                                                                                                                 
                  </tr>
                  <tr>
                    <td width="100%">商家认证：                                                                                                                                                                         
<%if rs_shjia("tj")=5 then
response.write "<img src=../images/icon1.gif alt=超级商家>"
end if%>&nbsp;                                                                                                                                                                         
<%if rs_shjia("renzheng")=1 then
response.write "<img src=../images/yingyezhizhao.gif alt=营业执照认证商家>"
end if%>
<%if rs_shjia("renzheng2")=1 then                                                                                                                                                                         
response.write "&nbsp;<img src=../images/mobile.gif alt=电话认证商家>"
end if%>
<%if rs_shjia("renzheng3")=1 then                                                                                                                                                                         
response.write "&nbsp;<img src=../images/estrella_6.gif alt=钻石认证商家>"
end if%>
<%if rs_shjia("renzheng4")=1 then                                                                                                                                                                         
response.write "&nbsp;<img src=../images/vip_renzheng.gif alt=ＶＩＰ认证商家>"
end if%>
<br>
商家星级：&nbsp;<img src=../images/estrella_<%=rs_shjia("tj")%>.gif alt=<%=rs_shjia("tj")%>星级商家 ></td>
                  </tr>
                </table></td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            </center>
          </div>
        </td>
      </tr>
    </table>
    </td>
    <td width="642" height="503" valign="top">
    <table border="0" width="640" cellspacing="0" cellpadding="0" height="986">
      <tr>
        <td width="640" colspan="3" height="9" background="moban/2/images/body_top.gif"></td>
      </tr>
      <tr>
        <td width="2" height="986" background="moban/2/images/body_left.gif"><img src=moban/2/images/body_left.gif border=0></td>
        <td width="636" height="986" background="moban/2/images/body_mid.gif" valign="top">
          <table border="0" width="542" cellspacing="0" cellpadding="0" height="92">
            <tr><form name="userlogin" method="post" action="../checkuserlogin.asp"></form>
            </tr>
            <tr>
              <td width="634" height="1">
                <table border="0" width="633" cellspacing="1" cellpadding="2">
                  <tr>
                    <td width="382" height="32">
                      <table border="0" width="92%">
                        <tr>
                          <td width="100%"><marquee direction="left" width="376" height="20" scrollamount="1" id=info onMouseOver=info.stop() onMouseOut=info.start()><font color="red"><%=rs_shjia("content")%></font></marquee></td>
                        </tr>
                      </table>
                    </td>
                    <td width="235" height="32" background="moban/2/images/sobg.gif">
                     <form method="post" action="search.asp?id=<%=rs_shjia("shjiaid")%>">      
                      <table border="0" width="231" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="72">&nbsp;<img border="0" src="moban/2/images/so.gif">   
                            搜索</td>                                                                                                                              
                          <td width="105"><input type="text"  class=wenbenkuang  name="searchkey" size="15"></td>  
                          <td width="48"><INPUT  name="submit" border="0" src="moban/2/images/search.gif" type="image" align="absmiddle" ></td>
                        </tr></form>
                      </table>
                      
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
            <tr>
              <td width="634" height="2" valign="top" align="center">
                                          <div align="center">
                              <center>
                              <table border="0" width="634" height="138" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="634" background="moban/2/images/center2.gif" height="138" valign="top">
                                    <table border="0" width="100%" height="100%">
                                      <tr>
                                        <td width="24%"></td>
                                        <td width="76%" valign="middle" align="center">
                                        <%if rs_shjia("textbanner")<>"" then%>
                                        <a href="<%=rs_shjia("texturl")%>" targrt=_top><strong><font size="6" color="#ffffff" face="华文行楷"><%=left(rs_shjia("textbanner"),16)%></font></strong></a>
                                        <%else%>
                                        <strong><font size="6" color="#ffffff" face="华文行楷"><%=rs_shjia("name")%>欢迎您！</font></strong>
                                        <%end if%>
                                        </td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                              </center>
                            </div>
              </td>
            </tr>
            <tr>
              <td width="634" height="1" valign="top" align="center">
                               <div align="center">
                              <center>
                              <table border="0" width="625" height="34" cellspacing="1" cellpadding="2">
                                <tr>
                                  <td width="100%" background="moban/2/images/center.gif"  width="625" height="34">
                                    <table border="0" width="100%">
                                      <tr>
                                        <td width="4%"></td>
                                        <td width="96%"><a href="index.asp?id=<%=rs_shjia("shjiaid")%>"><font color="#106DA0"><b>首页</b></font></a>&nbsp;&gt;&nbsp;<font color="#CC6600"><b>商品详细信息</b></font></td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                              </center>
                            </div>
              </td>
            </tr>
            <tr>
              <td width="634" height="1" valign="top" align="center">
              <%
              bookid=request.querystring("bookid")
              set rs_book=server.createobject("adodb.recordset")
              sql="select * from shop_books where bookid="&bookid
              rs_book.open sql,conn,1,1
              %>              
                      <table border="0" width="96%">
                        <tr>
                          <td width="100%">
                          <table border="0"  width=588 height=1>
                            <tr>
                              <td align="center" valign="top" >
<div align="center">
  <center>
  <table border="0" width="219" cellspacing="0" cellpadding="0">
    <tr>
      <td width="217" height="220" background="../images/cla.gif" valign="middle" align="center">
      <%if rs_book("zhuang")="" then 
response.write "<img src=../images/emptybookd.gif width=200 border=0>"
else%>
<A HREF=../show.asp?id=<%=rs_book("bookid")%> TARGET=_blank><img src="../<%=trim(rs_book("zhuang"))%>" width=200 border=0 alt="点击新窗口浏览商品大图" height="200"></a> 
<%end if%> 
      </td>
    </tr>
    <tr>
      <td width="217" align="center"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr><td height="25" align="center" valign="top">
<A HREF=../show.asp?id=<%=rs_book("bookid")%> TARGET=_blank><img src=../imagess/dt.gif border=0></a>
</td></tr></table></td>
    </tr>
  </table>
  </center>
</div>
                              </td>
                              <td width="367" valign="top" height="1">
                                <table border="0" width="100%" >
                                  <tr>
                                    <td width="100%" valign="top" height="48">
                                        <table border="0" width="357" background="moban/2/images/booknamebg.gif" height="48" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width="100%">&nbsp;<b><%=trim(rs_book("bookname"))%></b></td>
                                          </tr>
                                        </table>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="100%" height="21"><img border="0" src="moban/2/images/123.gif"> 
                                     商品数量：&nbsp;&nbsp;&nbsp;&nbsp;<%=trim(rs_book("kucun"))%>  <%=rs_book("bookchuban")%><br>                                               
                                      <img border="0" src="moban/2/images/book_line.gif">
                                      </td>      
                                  </tr>
                                  <tr>
                                    <td width="100%" height="21"><img border="0" src="moban/2/images/123.gif"> 
                                      是否团购：&nbsp;&nbsp;&nbsp;&nbsp;[<a  href="../tuangou.asp?shjiaid=<%=shjiaid%>&bookid=<%=rs_book("bookid")%>&bookname=<%=rs_book("bookname")%>&name=<%=rs_book("shjianame")%>" onClick="OpenNews()" target="newswin">是</a>] [<a href="#">否</a>]<br>                                                  
                                 <img border="0" src="moban/2/images/book_line.gif">     
                                  </td>   
                                  </tr>
                                  <tr>
                                    <td width="100%" height="21"><img border="0" src="moban/2/images/123.gif"> 
                                      商品人气：&nbsp;&nbsp;&nbsp;&nbsp;<%=trim(rs_book("liulancount"))%>                                            
                                      &nbsp;&nbsp;&nbsp;&nbsp;<%if rs_book("kucun")>0 then%><font color=red>热卖中</font><%else%><font color=blue>缺货</font><%end if%><br>                                             
                                      <img border="0" src="moban/2/images/book_line.gif">
                                      </td>
                                  </tr>
                                  <tr>
                                    <td width="100%" height="5">
                                    <img border="0" src="moban/2/images/123.gif">
                                    <img src="../imagess/ps.gif" align="absmiddle">                                                
				<%                                                                             
			set rs_shjfk=server.CreateObject("adodb.recordset")
			strshjiafk="select * from fkfs where shjiaid="&rs_shjia("shjiaid")
			rs_shjfk.open strshjiafk,conn,1,1
			%>
				[<%                                                                             
			if rs_shjfk.recordcount<>0 then			
			response.write "<a href=about.asp?id="&rs_shjfk("shjiaid")&">配送/支付方式</a>"
			response.write ""
			else
			response.write  " "
			end if%>]                                                                             
				[<%
			if rs_shjfk.recordcount<>0 then			
			response.write "<a href=about.asp?id="&rs_shjfk("shjiaid")&">售后服务条款</a>"
			response.write ""
			else
			response.write  " "
			end if%>]                                                                             
				<%
			set rs_shjps=server.CreateObject("adodb.recordset")
			strshjiaps="select * from ps where shjiaid="&rs_shjia("shjiaid")
			rs_shjps.open strshjiaps,conn,1,1
			%><br><img border="0" src="moban/2/images/book_line.gif">
                                    </td>
                                  </tr>
                                  <tr>
                                    <td width="100%" height="4"><img src="../imagess/jg1.gif" align="absmiddle"> <font color="#00CCFF">￥<%=formatnumber(rs_book("shichangjia"),2,true)%>元</font>                                               
                                    &nbsp;&nbsp;&nbsp;<img src="../imagess/jg3.gif" align="absmiddle"> <font color=red>￥<%=formatnumber(rs_book("huiyuanjia"),2,true)%>元</font>                                               
                                    &nbsp;&nbsp;&nbsp;<img src="../imagess/jg2.gif" align="absmiddle"> <font color="#FF6600">￥<%=formatnumber(rs_book("Vipjia"),2,true)%>元</font>                                               
                                    <br><img border="0" src="moban/2/images/book_line.gif"></td>
                                  </tr>
                                  <tr>
                                    <td width="100%" height="4"></td>
                                  </tr>
                                  <tr>
                                    <td width="100%" height="4" align="center">
                                                      <%
if rs_book("checkcard")=1 then
%>
                  <a href="../getcard.asp?id=<%=rs_book("bookid")%>" target="_blank" ><img src="../images/buy.gif"  border=0></a> （<span class="style1">在线取卡</span>）                                                              
<%else%>
<a href="../gouwu.asp?id=<%=rs_book("bookid")%>&action=add" target="_blank" ><img src="../imagess/goumai.gif" width="100" height="25" border=0></a>　<a href="../shoucang.asp?id=<%=rs_book("bookid")%>&action=add" target="_blank" ><img src="../imagess/shoucang.gif" width="100" height="25" border=0></a>&nbsp;&nbsp;                                 
                                                      <%
shjiaid=request.querystring("id")
set rs_shjia=server.createobject("adodb.recordset")
rs_shjia.open "select * from shjia where shjiaid="&shjiaid,conn,1,1
if rs_shjia("oicq")<>"0" and rs_shjia("oicq")<>"" then
response.write "<a target=blank href=http://wpa.qq.com/msgrd?V=1&Uin="&rs_shjia("Oicq")&"&Site=咕噜噜电子商务&Menu=yes><font color=blue>"
response.write "<img border=0 SRC=http://wpa.qq.com/pa?p=1:"&rs_shjia("Oicq")&":1 alt=点击这里与商家联系>"
response.write "</font></a> "
else
response.write "<a href=gbook.asp?id="&rs_shjia("shjiaid")&"><img src=../images/qq3.gif width=85 border=0 height=23></a>"
end if

%>   
                  <%end if%>                                 
                                    </td>
                                  </tr>
                                </table>
                              </td>
                            </tr>
                          </table>
                          </td>
                        </tr>
                        <tr>
                          <td width="100%">
      <table border="0" width="99%" cellspacing="0" cellpadding="0">
        <tr>
          <td width="100%"><img border="0" src="moban/2/images/miaoshu.gif"></td>
        </tr>
        <tr>
          <td width="100%">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<%=rs_book("bookcontent")%> </td>
        </tr>
        <tr>
          <td width="100%">
            <table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td width="27%"><img border="0" src="moban/2/images/tishi.gif"></td>
                <td width="73%">
                <%
                set rsj=server.createobject("adodb.recordset")
                sql="select * from shop_config"
                rsj.open sql,conn,1,1
                response.write(rsj("jiqiao"))
                rsj.close
                set rsj=nothing
                %>
                </td>
              </tr>
              <tr>
                <td width="1%"><img border="0" src="moban/2/images/tishi1.gif"></td>
                <td width="100%">
                  <table border="0" width="100%" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="100%"><b>商品评论：</b></td>
                    </tr>
                    <tr>
                      <td width="100%">
                      
                      <table width=95%  border=0 align=center cellpadding=0 cellspacing=0><tr><td height=30>
        <%
		set rs=server.createobject("adodb.recordset")
		rs.open "select  * from shop_pinglun where bookid="&request("bookid")&" order by pinglundate desc",conn,1,1
		j=rs.recordcount
		plcount=rs.recordcount
		if j>1 then j=1
		for i=1 to j
		%>
<table width="95%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
<tr bgcolor="#FFFFFF"> 
<td align="center">
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="1">
<tr bgcolor="#FFFFFF"> 
<td colspan="2">主题：
<%=trim(rs("pingluntitle"))%></td>
<td width="20%"><img src="../images/level<%=rs("pingji")%>.gif"></td>
</tr>
<tr bgcolor="#FFFFFF"> 
<td colspan="2">作者：                                      
<%=trim(rs("pinglunname"))%>　(<%=trim(rs("pinglundate"))%>)</td>
<td width="20%"><%=trim(rs("ip"))%></td>
</tr>
<tr bgcolor="#FFFFFF"> 
<td colspan="3" bgcolor="#FFFFFF">内容：                                      
<%if len(rs("pingluncontent"))>24 then 
	response.write left(rs("pingluncontent"),20)&"... <a href=""javascript:;"" onClick=""javascript:window.open('../pinglunll.asp?id="&rs("pinglunid")&"','pinglun','width=300,height=400,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"" title="&trim(rs("pingluntitle"))&">[详细内容]</a>" 
	else response.write rs("pingluncontent")
	end if%>
</td>
</tr>
<%if trim(rs("huifu"))<>"" then%>
<tr bgcolor="#FFFFFF">
<td colspan="3"><b><font color="#ff6600">销售商回复：</font></b><%=rs("huifu")%> 
</td>
</tr>
<%end if%>
</table>
</td>
</tr>
</table>
<br>
</td>
</tr>
<%	
rs.movenext
next
if plcount>0 then 
%>
<tr> 
<td align=right><a href=../listpl.asp?id=<%=request("bookid")%> target=_blank>浏览该产品的全部<%=plcount%>条评论>></a>&nbsp;&nbsp;&nbsp;</td>
</tr>
<%end if%>
<tr> 
<td align="center" height="100%">
<table width="95%" align="center" border="0" cellpadding="2" cellspacing="1" bgcolor="#cccccc">
<tr bgcolor="#ffffff"> 
<form name="pinglunform" method="post" action="savepl.asp?action=save&bookid=<%=bookid%>">
<td> 
<table width="95%" align="center" border="0" cellpadding="2" cellspacing="1">
<tr> 
<td width="10%">姓 名：</td>                                
<td width="90%">
<input class="wenbenkuang" name="pinglunname" type="text" id="pinglunname" maxlength="18">
<input type="radio" name="pingji" value="1" checked>☆                                  
<input type="radio" name="pingji" value="2">☆☆                                  
<input type="radio" name="pingji" value="3">☆☆☆                                  
<input type="radio" name="pingji" value="4">☆☆☆☆                                  
<input type="radio" name="pingji" value="5">☆☆☆☆☆
</td>
</tr>
<tr> 
<td width="10%">标 题：</td>                                  
<td width="90%">
<input class="wenbenkuang" name="pingluntitle" type="text" id="pingluntitle" size="70">
</td>
</tr>
<tr> 
<td valign="top">内 容：</td>
<td>
<textarea class="wenbenkuang" name="pingluncontent" cols="70" rows="3" id="pingluncontent" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: BORDER-LEFT: COLOR: #333333; BORDER-BOTTOM: HEIGHT: 18px; BACKGROUND-COLOR:" ";";";" ;></textarea>
</td>
</tr>
<tr>
<td></td>
<td>
<input class="go-wenbenkuang" name="submit" value="提交保存" type="submit" onClick="return check();">
<input class="go-wenbenkuang" onclick="OpenNews()" type="reset" value="推荐给朋友" name="Submit2">
</td>
</tr>
</table>
</td>
</form>
</tr>
</table>

<script LANGUAGE="javascript">
<!--
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function check()
{
  if(checkspace(document.pinglunform.pinglunname.value)) {
	document.pinglunform.pinglunname.focus();
    alert("请填写您的姓名！");
	return false;
  }
  if(checkspace(document.pinglunform.pingluntitle.value)) {
	document.pinglunform.pingluntitle.focus();
    alert("请填写评论标题！");
	return false;
  }
  if(checkspace(document.pinglunform.pingluncontent.value)) {
	document.pinglunform.pingluncontent.focus();
    alert("请填写评论正文！");
	return false;
  }
	  }
//-->
</script>
</td>
</tr>
</table>

                      
                      
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td width="100%"></td>
        </tr>
      </table>
      </td>
                        </tr>
                      </table>
                     
              </td>
            </tr>
          </table>
        </td>
        <td width="2" height="986" valign="top" align="center" background="moban/2/images/body_right.gif"><img src=moban/2/images/body_right.gif border=0></td>
      </tr>
      <tr>
        <td width="640" colspan="3" height="15" background="moban/2/images/body_down.gif"></td>
      </tr>
    </table>
    </td>
    <td width="100" height="503"></td>
  </tr>
</table>
<!--#include file="copyright.asp"-->





















