<!--#include file=top.asp-->
<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 10 * 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="100%" cellspacing="0" cellpadding="0" height="182">
            <tr>
                    <%
					if request.Cookies("bjx")("username")<>"" then 
					set rs=server.CreateObject("adodb.recordset")
					rs.open "select count(*) as rec_count from shop_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai=7",conn,1,1
					rec_count=rs("rec_count")
					rs.close
					rs.open "select sum(zonger) as zongji from shop_action where username='"&request.Cookies("bjx")("username")&"' and zhuangtai=7",conn,1,1
					%>
					<div align="center"><a href="../user.asp">用户中心&gt;&gt;</a>&nbsp; 您的购物车有<font color=red><%=rec_count%></font>件产品&gt;&gt;&nbsp;总金额：<font color=red><%=rs("zongji")%></font>元 &gt;&gt;&nbsp; <a href="../gouwu.asp?action=show&lx=1" target="_blank">查看购物车/结帐</a>&gt;&gt;&nbsp;<a href=../user.asp?action=shoucang>我的收藏</a>&gt;&gt;&nbsp;<a href="logout1.asp">注销退出</a></div>                                                   
					<%rs.close     
	                 set rs=nothing
	                 else%>
              <td width="634" height="22" align="center" colspan="2">
              <form name="userlogin" method="post" action="../checkuserlogin.asp">
              <img border="0" src="moban/2/images/login.gif">  
                用户名：<input type="text" class=wenbenkuang  name="username" size="10">                                                                                
                密码：<input type="password" class=wenbenkuang  name="userpassword" size="10">                                                                                   
                验证码：<input class=wenbenkuang name=verifycode type=text value="<%If GetCode=9999 Then Response.Write "9999"%>" maxLength=4 size=6>                                                                                  
<img src=../GetCode.asp><INPUT class=go-wenbenkuang name="imageField" value="登陆" type=submit onFocus="this.blur()">                                                                                    
<INPUT class=go-wenbenkuang onclick="window.location='../reg.asp'" type=reset value="注册" name=Submit2>                                                                                    
<INPUT class=go-wenbenkuang onclick="window.location='../getpwd.asp'" type=button value="找回密码" name=Submit3>                                                                                  
             </form>
             </td>  
             <%end if%>
            </tr>
            <tr>
              <td width="634" height="1" colspan="2">
                <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" value="请输入搜索关键字！"></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="4" colspan="2">
                <div align="center">
                  <center>
                <table border="0" width="636" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="391" background="moban/2/images/ggg.gif" height="204" valign="top">
                      <table border="0" width="391" height="100%">
                        <tr>
                          <td width="52%"></td>
                          <td width="48%" valign="top">
                            <table border="0" width="100%" height="171">
                              <tr>
                                <td width="100%" height="33"></td>
                              </tr>
                              <tr>
                                <td width="100%" height="108" align="center">

                                        <%if rs_shjia("textbanner")<>"" then%>
                                        <a href="<%=rs_shjia("texturl")%>" targrt=_top><strong><font size="4" color="#ffffff" face="华文行楷"><%=left(rs_shjia("textbanner"),16)%></font></strong></a>
                                        <%else%>
                                        <strong><font size="4" color="#ffffff" face="华文行楷"><%=rs_shjia("name")%>欢迎您！</font></strong>
                                        <%end if%>
                                </td>
                              </tr>
                              <tr>
                                <td width="100%" height="18"></td>
                              </tr>
                            </table>
                          </td>
                        </tr>
                      </table>
                    </td>
                    <td width="50%" valign="top">
                      <table border="0" width="100%" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="243" height="53"><map name="FPMap0">
                            <area href="news.asp?id=<%=rs_shjia("shjiaid")%>" shape="rect" coords="187, 40, 241, 59"></map><img border="0" src="moban/2/images/news.gif" usemap="#FPMap0"></td>
                        </tr>
                        <tr>
                          <td width="100%" height="138" align="center">
                            <div align="center">
                              <center>
                              <table border="0" width="241" background="moban/2/images/newsbg.gif" height="138" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="100%" valign="middle" align="center">
                                                                   <%
set rs1s=server.CreateObject("adodb.recordset")
strnews="select top 7 * from news where shjiaid="&id
rs1s.open strnews,conn,1,1
%>
                                                                   <div align="center">
                                                                    <center>
                                  <table border="0" width="100%">
                                  <% do while not rs1s.eof %>
                                    <tr>
                                      <td width="100%">&nbsp;<img src=moban/2/images/cccc.gif broder=0>&nbsp;<a href=newsshow.asp?id=<%=id%>&newsid=<%=rs1s("newsid")%>><%=left(trim(rs1s("title")),17)%></a><br></td>
            </tr>	
    <%rs1s.movenext 
	loop
	rs1s.close
	set rs1s=nothing
	%>
                                  </table>
                                  </center>
                                   </div>
                                  </td>
                                </tr>
                              </table>
                              </center>
                            </div>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
                  </center>
                </div>
              </td>
            </tr>
            <tr>
              <td width="353" height="182" valign="top" align="center">
                <table border="0" width="349" height="23">
                  <tr>
                    <td width="100%"><map name="FPMap1">
                      <area href="hot.asp?id=<%=rs_shjia("shjiaid")%>" shape="rect" coords="316, 10, 343, 22"></map><img border="0" src="moban/2/images/hot_tit.gif" usemap="#FPMap1"></td>
                  </tr>
                  <tr>
                    <td width="100%" valign="top">
          <%set rs=server.CreateObject("adodb.recordset")
		  rs.open "select Top 6 * from shop_books where shjiaid="&id&" and shjiabestbook=1 and info=0 order by liulancount,chengjiaocount desc",conn,1,1
		  if rs.eof and rs.bof then
		  response.write "对不起，暂无热卖商品"
		  'response.End
		  else
		  %> 
<table cellspacing=0 cellpadding=0 border=0 width="100%" height="170">
<%
			
			i_11=int((rs.recordcount+1)/3)
			if i_11>2 then 
			i_11=2
			end if
			'response.write i_11
			for i_count=1 to i_11%>
<tr> 
<td height="170" align="center" valign="top" width="1"></td>
<td valign="top" width="50%" height="170"> 
<table cellspacing=3 cellpadding=0 width="100%">
<tr> 
<td width="40%" align="center">
<TABLE onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width=90 height=90 cellSpacing=1 cellPadding=2 bgColor=#e1e1e1 border=0>
<TBODY>
<TR> 
<TD width=100 height=100 bgColor=#ffffff align=center> 
<%if rs("bookpic")="" then 
response.write "<a href=list1.asp?id="&id&"&bookid="&rs("bookid")&" ><img src=../images/emptybook.gif width=90 height=90 border=0></a>"
else%>
<a href=list1.asp?id=<%=id%>&bookid=<%=rs("bookid")%> ><img src="../<%=trim(rs("bookpic"))%>" width=90 border=0 height=90></a> 
<%end if%> 
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="60%" align="center"><a href=list1.asp?id=<%=id%>&bookid=<%=rs("bookid")%> onmouseover="this._tip='<%=rs("bookname")%>'">                       
	<%if len(trim(rs("bookname")))>8 then
	response.write left(trim(rs("bookname")),8)&""
	else
	response.write trim(rs("bookname"))
	end if%>
</a><br>
市场价：<s><%=formatnumber(rs("shichangjia"),2)&"元"%></s><br>
会员价：<font color=#FF6600><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font><br>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td align="center"><a href="../gouwu.asp?id=<%=rs("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">购买</font></b></a>&nbsp;<a href="../shoucang.asp?id=<%=rs("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">收藏</font></b></a></td>
</tr>
</tbody> 
</table>
<%rs.movenext%>
</td>
</tr>
</table>
<td height="170" align="center" valign="top" width="1"></td>
<td valign="top" width="50%" height="170"> 
<%if rs.eof then%>
<%else%>
<table cellspacing=3 cellpadding=0 width="100%">
<tr> 
<td width="40%" align="center">
<TABLE onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width=100 height=100 cellSpacing=1 cellPadding=2 bgColor=#e1e1e1 border=0>
<TBODY>
<TR> 
<TD width=100 height=100 bgColor=#ffffff align=center> 
				<%if rs("bookpic")="" then 
				response.write "<a href=list1.asp?id="&id&"&bookid="&rs("bookid")&" ><img src=../images/emptybook.gif width=90 height=90 border=0></a></div>"
				else%>
				<a href=list1.asp?id=<%=id%>&bookid=<%=rs("bookid")%> ><img src="../<%=trim(rs("bookpic"))%>"  width=90 border=0 height=90></a> 
				<%end if%> 
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="60%" align="center"><a href=list1.asp?id=<%=id%>&bookid=<%=rs("bookid")%> onmouseover="this._tip='<%=rs("bookname")%>'">                      
<%if len(trim(rs("bookname")))>8 then
	response.write left(trim(rs("bookname")),8)&""
	else
	response.write trim(rs("bookname"))
	end if%>
</a><br>
市场价：<s><%=formatnumber(rs("shichangjia"),2)&"元"%></s><br>
会员价：<font color=#FF6600><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font><br>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td><a href="../gouwu.asp?id=<%=rs("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">购买</font></b></a>&nbsp;<a href="../shoucang.asp?id=<%=rs("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">收藏</font></b></a></td>
</tr>
</tbody> 
</table>
<%rs.movenext%>
</td>
</tr>
</table>
<%end if%>
</td>
<td height="170" align="center" valign="top" width="1"></td>
<td valign="top" width="50%" height="170"> 
<%if rs.eof then%>
<%else%>
<table cellspacing=3 cellpadding=0 width="100%">
<tr> 
<td width="40%" align="center">
<TABLE onmouseover="this.style.backgroundColor='#FF4FAE'" onmouseout="this.style.backgroundColor=''" width=100 height=100 cellSpacing=1 cellPadding=2 bgColor=#e1e1e1 border=0>
<TBODY>
<TR> 
<TD width=100 height=100 bgColor=#ffffff align=center> 
				<%if rs("bookpic")="" then 
				response.write "<a href=list1.asp?id="&id&"&bookid="&rs("bookid")&" ><img src=../images/emptybook.gif width=90 height=90 border=0></a></div>"
				else%>
				<a href=list1.asp?id=<%=id%>&bookid=<%=rs("bookid")%> ><img src="../<%=trim(rs("bookpic"))%>"  width=90 border=0 height=90></a> 
				<%end if%> 
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="60%" align="center"><a href=list1.asp?id=<%=id%>&bookid=<%=rs("bookid")%> onmouseover="this._tip='<%=rs("bookname")%>'">                         
<%if len(trim(rs("bookname")))>7 then
	response.write left(trim(rs("bookname")),7)&""
	else
	response.write trim(rs("bookname"))
	end if%>
</a><br>
市场价：<s><%=formatnumber(rs("shichangjia"),2)&"元"%></s><br>
会员价：<font color=#FF6600><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font><br>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td><a href="../gouwu.asp?id=<%=rs("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">购买</font></b></a>&nbsp;<a href="../shoucang.asp?id=<%=rs("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">收藏</font></b></a></td>
</tr>
</tbody> 
</table>
<%rs.movenext%>
</td>
</tr>
</table>
<%end if%>
</td>
<td height="170" align="center" valign="top" width="1"></td>
</tr>
<%next%>
<%
rs.close
set rs=nothing%>
</table>
<%end if%>
</td>
</tr>
</table>
              </td>
              <td width="279" height="182" valign="top">
                <div align="center">
                  <center>
                <table border="0" width="275" height="31" cellspacing="1" cellpadding="2">
                  <tr>
                    <td width="275" height="1" valign="top" align="center">
                    <table border="0" width="100%" cellspacing="0" cellpadding="0" bgcolor="#F0F3E2" height="38">
                      <tr>
                        <td width="100%" height="20">                      <map name="FPMap2">
                      <area href="list.asp?id=<%=rs_shjia("shjiaid")%>" shape="rect" coords="221, 4, 273, 21"></map><img border="0" src="moban/2/images/new.gif" usemap="#FPMap2"></td>
                      </tr>
                      <tr>
                        <td width="100%" height="18" valign="top" align="center"><%
          set rs_new=server.CreateObject("adodb.recordset")
		  rs_new.open "select Top 4 * from shop_books where shjiaid="&id&" and info=0 order by adddate desc",conn,1,1 
		  if rs_new.eof and rs_new.bof then 
		  response.write "暂无新商品" 
		  'response.End 
		  else 
		  %> 
<table cellspacing=0 cellpadding=0 border=0 width="100%" height="170">
<%
			
			i_11=int((rs_new.recordcount+1)/2)
			if i_11>2 then 
			i_11=2
			end if
			'response.write i_11
			for i_count=1 to i_11%>
<tr> 
<td height="170" align="center" valign="top" width="1"></td>
<td valign="top" width="50%" height="170"> 
<table cellspacing=3 cellpadding=0 width="100%">
<tr> 
<td width="40%" align="center">
<TABLE onmouseover="this.style.backgroundColor='#81A418'" onmouseout="this.style.backgroundColor=''" width=90 height=90 cellSpacing=1 cellPadding=2 bgColor=#C1D786 border=0>
<TBODY>
<TR> 
<TD width=100 height=100 bgColor=#ffffff align=center> 
<%if rs_new("bookpic")="" then 
response.write "<a href=list1.asp?id="&id&"&bookid="&rs_new("bookid")&" ><img src=../images/emptybook.gif width=90 height=90 border=0></a>"
else%>
<a href=list1.asp?id=<%=id%>&bookid=<%=rs_new("bookid")%> ><img src="../<%=trim(rs_new("bookpic"))%>" width=90 border=0 height=90></a> 
<%end if%>  
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="60%" align="center"><a href=list1.asp?id=<%=id%>&bookid=<%=rs_new("bookid")%> onmouseover="this._tip='<%=rs_new("bookname")%>'">                       
	<%if len(trim(rs_new("bookname")))>8 then
	response.write left(trim(rs_new("bookname")),8)&""
	else
	response.write trim(rs_new("bookname"))
	end if%>
</a><br>
市场价：<s><%=formatnumber(rs_new("shichangjia"),2)&"元"%></s><br>
会员价<font color=#FF6600><%=formatnumber(rs_new("huiyuanjia"),2)&"元"%></font><br>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td align="center"><a href="../gouwu.asp?id=<%=rs_new("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">购买</font></b></a>&nbsp;<a href="../shoucang.asp?id=<%=rs_new("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">收藏</font></b></a></td>
</tr>
</tbody> 
</table>
<%rs_new.movenext%>
</td>
</tr>
</table>
<td height="170" align="center" valign="top" width="1"></td>
<td valign="top" width="50%" height="170"> 
<%if rs_new.eof then%>
<%else%>
<table cellspacing=3 cellpadding=0 width="100%">
<tr> 
<td width="40%" align="center">
<TABLE onmouseover="this.style.backgroundColor='#81A418'" onmouseout="this.style.backgroundColor=''" width=100 height=100 cellSpacing=1 cellPadding=2 bgColor=#C1D786 border=0>
<TBODY>
<TR> 
<TD width=100 height=100 bgColor=#ffffff align=center> 
				<%if rs_new("bookpic")="" then 
				response.write "<a href=list1.asp?id="&id&"&bookid="&rs_new("bookid")&" ><img src=../images/emptybook.gif width=90 height=90 border=0></a></div>"
				else%>
				<a href=list1.asp?id=<%=id%>&bookid=<%=rs_new("bookid")%> ><img src="../<%=trim(rs_new("bookpic"))%>"  width=90 border=0 height=90></a> 
				<%end if%>  
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="60%" align="center"><a href=list1.asp?id=<%=id%>&bookid=<%=rs_new("bookid")%> onmouseover="this._tip='<%=rs_new("bookname")%>'">                         
<%if len(trim(rs_new("bookname")))>8 then
	response.write left(trim(rs_new("bookname")),8)&".."
	else
	response.write trim(rs_new("bookname"))
	end if%>
</a><br>
市场价：<s><%=formatnumber(rs_new("shichangjia"),2)&"元"%></s><br>
市场价：<font color=#FF6600><%=formatnumber(rs_new("huiyuanjia"),2)&"元"%></font><br>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td><a href="../gouwu.asp?id=<%=rs_new("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">购买</font></b></a>&nbsp;<a href="../shoucang.asp?id=<%=rs_new("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">收藏</font></b></a></td>
</tr>
</tbody> 
</table>
<%rs_new.movenext%>
</td>
</tr>
</table>
<%end if%>
</td>
<td height="170" align="center" valign="top" width="1"></td>
</tr>
<%next%>
<%
rs_new.close
set rs_new=nothing%>
</table>
<%end if%>
</td>
                      </tr>
                    </table>
                    </td>
                  </tr>
                </table>
                  </center>
                </div>
              </td>
            </tr>
            <tr>
              <td width="634" height="4" colspan="2">
                <table border="0" width="94%" height="130">
                  <tr>
                    <td width="100%" valign="top" align="center" height="1">
                      <div align="center">
                        <center>
                        <table border="0" width="630" height="100" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="100%" align="center">
                            <%if rs_shjia("banner")<>"" then%>
                            <a href="<%if rs_shjia("url1")<>"" then%><%=url1%><%else%><%end if%>"><img src="../<%=banner%>" border="0" width="630" height="100"> </a>
                           <%else%>
                            <a href="<%if rs_shjia("url1")<>"" then%><%=url1%><%else%><%end if%>"><embed width="630" height="100" src="moban/2/images/2.swf" align="center"></a>                                                             
                            <%end if%>                                                             
                            </td>
                          </tr>
                        </table>
                        </center>
                      </div>
                    </td>
                  </tr>
                  <tr>
                    <td width="100%" height="250">
                      <table border="0" width="626" cellspacing="0" cellpadding="0" height="1">
                        <tr>
                          <td width="449" height="1" valign="top">
                            <table border="0" width="100%" background="moban/2/images/cuxiao.gif" cellspacing="0" cellpadding="0" height="262">
                              <tr>
                                <td width="449" height="262" valign="top">
                                  <table border="0" width="449" height="199">
                                    <tr>
                                      <td width="441" height="55">
                                      <table border="0" width="100%">
                                        <tr>
                                          <td width="100%" colspan="2"></td>
                                        </tr>
                                        <tr>
                                          <td width="83%"></td>
                                          <td width="17%"><a href="boot.asp?id=<%=rs_shjia("shjiaid")%>"><img border="0" src="moban/2/images/more.gif"></a></td>
                                        </tr>
                                      </table>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td width="441" height="148" valign="top" align="center">
                                      <%set rs_c=server.CreateObject("adodb.recordset")
		  rs_c.open "select Top 3 * from shop_books where shjiaid="&id&" and shjiabestbook=1 and info=0 order by adddate,bookid desc",conn,1,1
		  if rs_c.eof and rs_c.bof then
		  response.write "<p align=center>暂无促销商品</p>"
		  'response.End
		  else
		  %>
<table cellspacing=0 cellpadding=0 border=0 width="439" height="170">
<%
			
			i_12=int((rs_c.recordcount+1)/3)
			if i_12>1 then 
			i_12=1
			end if
			'response.write i_12
			for i_count=1 to i_12%>
<tr> 
<td height="170" align="center" valign="top" width="2"></td>
<td valign="top" width="134" height="170"> 
<table cellspacing=3 cellpadding=0 width="135">
<tr> 
<td width="125" align="center">
<TABLE onmouseover="this.style.backgroundColor='#D39A96'" onmouseout="this.style.backgroundColor=''" width=90 height=90 cellSpacing=1 cellPadding=2 bgColor=#D39A96 border=0>
<TBODY>
<TR> 
<TD width=100 height=100 bgColor=#ffffff align=center> 
<%if rs_c("bookpic")="" then 
response.write "<a href=list1.asp?id="&id&"bookid="&rs_c("bookid")&" ><img src=../images/emptybook.gif width=90 height=90 border=0></a>"
else%>
<a href=list1.asp?id=<%=id%>&bookid=<%=rs_c("bookid")%> ><img src="../<%=trim(rs_c("bookpic"))%>" width=90 border=0 height=90></a> 
<%end if%>     
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="125" align="center"><a href=list1.asp?id=<%=id%>&bookid=<%=rs_c("bookid")%> onmouseover="this._tip='<%=rs_c("bookname")%>'">                       
	<%if len(trim(rs_c("bookname")))>8 then
	response.write left(trim(rs_c("bookname")),8)&""
	else
	response.write trim(rs_c("bookname"))
	end if%>
</a><br>
市场价：<s><%=formatnumber(rs_c("shichangjia"),2)&"元"%></s><br>
会员价：<font color=#FF6600><%=formatnumber(rs_c("huiyuanjia"),2)&"元"%></font><br>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td align="center"><a href="../gouwu.asp?id=<%=rs_c("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">购买</font></b></a>&nbsp;<a href="../shoucang.asp?id=<%=rs_c("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">收藏</font></b></a></td>
</tr>
</tbody> 
</table>
<%rs_c.movenext%>
</td>
</tr>
</table>
<td valign="middle" width="15" height="170" align="center"> 
<img border="0" src="moban/2/images/111.gif" width="1" height="166">
<td height="170" align="center" valign="top" width="2"></td>
<td valign="top" width="127" height="170"> 
<%if rs_c.eof then%>
<%else%>
<table cellspacing=3 cellpadding=0 width="100%">
<tr> 
<td width="40%" align="center">
<TABLE onmouseover="this.style.backgroundColor='#D39A96'" onmouseout="this.style.backgroundColor=''" width=100 height=100 cellSpacing=1 cellPadding=2 bgColor=#D39A96 border=0>
<TBODY>
<TR> 
<TD width=100 height=100 bgColor=#ffffff align=center> 
				<%if rs_c("bookpic")="" then 
				response.write "<a href=list1.asp?id="&id&"bookid="&rs_c("bookid")&" ><img src=../images/emptybook.gif width=90 height=90 border=0></a></div>"
				else%>
				<a href=list1.asp?id=<%=id%>&bookid=<%=rs_c("bookid")%> ><img src="../<%=trim(rs_c("bookpic"))%>"  width=90 border=0 height=90></a> 
				<%end if%>     
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="60%" align="center"><a href=list1.asp?id=<%=id%>&bookid=<%=rs_c("bookid")%> onmouseover="this._tip='<%=rs_c("bookname")%>'">                      
<%if len(trim(rs_c("bookname")))>8 then
	response.write left(trim(rs_c("bookname")),8)&""
	else
	response.write trim(rs_c("bookname"))
	end if%>
</a><br>
市场价：<s><%=formatnumber(rs_c("shichangjia"),2)&"元"%></s><br>
会员价<font color=#FF6600><%=formatnumber(rs_c("huiyuanjia"),2)&"元"%></font><br>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td><a href="../gouwu.asp?id=<%=rs_c("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">购买</font></b></a>&nbsp;<a href="../shoucang.asp?id=<%=rs_c("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">收藏</font></b></a></td>
</tr>
</tbody> 
</table>
<%rs_c.movenext%>
</td>
</tr>
</table>
<%end if%>
</td>
<td valign="middle" width="14" height="170" align="center"> 
<img border="0" src="moban/2/images/111.gif" width="1" height="166">
</td>
<td height="170" align="center" valign="top" width="1"></td>
<td valign="top" width="133" height="170"> 
<%if rs_c.eof then%>
<%else%>
<table cellspacing=3 cellpadding=0 width="100%">
<tr> 
<td width="40%" align="center">
<TABLE onmouseover="this.style.backgroundColor='#D39A96'" onmouseout="this.style.backgroundColor=''" width=100 height=100 cellSpacing=1 cellPadding=2 bgColor=#D39A96 border=0>
<TBODY>
<TR> 
<TD width=100 height=100 bgColor=#ffffff align=center> 
				<%if rs_c("bookpic")="" then 
				response.write "<a href=list1.asp?id="&id&"bookid="&rs_c("bookid")&" ><img src=../images/emptybook.gif width=90 height=90 border=0></a></div>"
				else%>
				<a href=list1.asp?id=<%=id%>&bookid=<%=rs_c("bookid")%> ><img src="../<%=trim(rs_c("bookpic"))%>"  width=90 border=0 height=90></a> 
				<%end if%>     
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="60%" align="center"><a href=list1.asp?id=<%=id%>&bookid=<%=rs_c("bookid")%> onmouseover="this._tip='<%=rs_c("bookname")%>'">                         
<%if len(trim(rs_c("bookname")))>8 then
	response.write left(trim(rs_c("bookname")),8)&".."
	else
	response.write trim(rs_c("bookname"))
	end if%>
</a><br>
市场价：<s><%=formatnumber(rs_c("shichangjia"),2)&"元"%></s><br>
会员价：<font color=#FF6600><%=formatnumber(rs_c("huiyuanjia"),2)&"元"%></font><br>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td><a href="../gouwu.asp?id=<%=rs_c("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">购买</font></b></a>&nbsp;<a href="../shoucang.asp?id=<%=rs_c("bookid")%>&action=add" target="_blank"><b><font color="#FF6600">收藏</font></b></a></td>
</tr>
</tbody> 
</table>
<%rs_c.movenext%>
</td>
</tr>
</table>
<%end if%>
</td>
<td height="170" align="center" valign="top" width="1"></td>
</tr>
<%next%>
<%
rs_c.close
set rs_c=nothing%>
</table>
<%end if%>

                                      </td>
                                    </tr>
                                    <tr>
                                      <td width="441" height="10" ></td>
                                    </tr>
                                  </table>
                                </td>
                              </tr>
                            </table>
                          </td>
                          <td width="180" valign="top" align="center">
                            <div align="center">
                              <center>
                              <table border="0" width="181" cellspacing="0" cellpadding="0">
                                <tr>
                                  <td width="181" align="center"><img border="0" src="moban/2/images/toupiao.gif"></td>
                                </tr>
                                <tr>
                                  <td width="181" align="center">
                                    <table border="0" width="180" cellspacing="0" cellpadding="0" align="center">
                                      <tr>
                                        <td width="180" background="moban/2/images/tpbg.gif" height="219" align="center" valign="top">
 <%
        shjiaid=rs_shjia("shjiaid")
       
		set rs=conn.execute("SELECT * FROM toupiao where shjiaid='"&shjiaid&"' and IsChecked=1 ") 
		if rs.eof then
	  %>
            暂无投票                                                         
            <%else%>
            <table border="0" width="91%" cellspacing="2" cellpadding="2" height="193">
              <tr> 
                <td width=100% align="center" height="50"><b><br>
                 <font color="#006583"><%=rs("Title")%></font></b><br>
                </td>
              </tr>
              <form action="vote.asp" target="newwindow" method=post name=research>
                <tr> 
                  <td valign=top width="100%" height="100"> 
                    <%
for i=1 to 8
	if rs("Select"&i)<>"" then
%>
                    <input style="border: 0" <%if i=1 then%>checked<%end if%> name=Options type=radio value=<%=i%>>
                    <%=i%>.<%=rs("Select"&i)%><br>                                                        
                    <%
	end if
next
%>
                  </td>
                </tr>
                <tr> 
                  <td width="100%" height=25 align=center> 
                    <input type="image" border="0" name="submit" src="moban/2/images/toup.gif" width="59" height="19" style="cursor:hand">
                    <a href="vote.asp?stype=view" target="_blank"><img src="moban/2/images/chakan.gif" width="59" height="19" border="0"></a> 
                  </td>
                </tr>
              </form>
            </table>
            <%end if%>

                                        </td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                              </center>
                            </div>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>
        </td>
        <td width="2" height="986" 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="10" background="moban/2/images/body_down.gif"></td>
      </tr>
    </table>
    </td>
    <td width="100" height="503"></td>
  </tr>
</table>
<!--#include file="copyright.asp"-->
<%if rs_shjia("oicq")<>"" and rs_shjia("oicq")<>"0" then%>
<!--#include file="../1/qq.asp"-->
<%end if%>
