
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../images/csss.css" rel="stylesheet" type="text/css">
<link href="mt_style.css" rel="stylesheet" type="text/css">
<title><%=shjname%></title>
<style type="text/css">
<!--
.big {
	border-top: 1px solid #CCCCCC;
	border-right: 1px solid #CCCCCC;
	border-bottom: 1px solid #999999;
	border-left: 1px solid #CCCCCC;
}
-->
</style>
<script language="javascript">
  // Support for all collection
  var allSupport = document.all!=null

  function setupEventObject(e) {
    // Map NS event object to IEs
    if (e==null) return // IE returns
    window.event = e
    window.event.fromElement = e.target
    window.event.toElement = e.target
    window.event.srcElement = e.target
    window.event.x = e.x
    window.event.y = e.y
    // Route the event to the original element
    // Necessary to make sure _tip is set.
    window.event.srcElement.handleEvent(e);
  }


  function checkName(src) {
    // Look for tooltip in IE
    while ((src!=null) && (src._tip==null))
      src = src.parentElement
    return src
  }

  function getElement(elName) {
    // Get an element from its ID
    if (allSupport)
      return document.all[elName]
    else
      return document.layers[elName]
  }

  function writeContents(el, tip) {
    // Replace the contents of the tooltip
    if (allSupport)
      el.innerHTML = tip
    else {
      // In NS, insert a table to work around
      // stylesheet rendering bug.
      // NS fails to apply style sheets when writing
      // contents into a positioned element.
      el.document.open()
      el.document.write("<TABLE WIDTH=200 BORDER=1 bordercolor=black><TR><TD WIDTH=100% BGCOLOR=blue>")
      el.document.write(tip)
      el.document.write("</TD></TR></TABLE>")
      el.document.close()
    }
  }

  function getOffset(el, which) {
    // Function for IE to calculate position 
    // of an element.
    var amount = el["offset"+which] 
    if (which=="Top")
      amount+=el.offsetHeight
    el = el.offsetParent
    while (el!=null) {
      amount+=el["offset"+which]
      el = el.offsetParent
    }
    return amount
  }
  

  function setPosition(el) {
    // Set the position of an element
    src = window.event.srcElement
    if (allSupport) {
      el.style.pixelTop = getOffset(src, "Top")
      el.style.pixelLeft = getOffset(src, "Left")
    } else
    {
      el.top = src.y + 20 //window.event.y + 15
      el.left = src.x //window.event.x
    }
  }
      
  function setVisibility(el, bDisplay) {
    // Hide or show to tip
    if (bDisplay)
      if (allSupport)
        el.style.visibility = "visible" 
      else
        el.visibility = "show";
    else
      if (allSupport)
        el.style.visibility = "hidden"
      else
        el.visibility = "hidden"
  }


  function displayContents(tip) {
    // Display the tooltip. 
    var el = getElement("tipBox")
    writeContents(el, tip)
    setPosition(el)
    setVisibility(el, true)
  }


  function doMouseOver(e) {
    // Mouse moves over an element
    setupEventObject(e)
    var el, tip
    if ((el = checkName(window.event.srcElement))!=null)
      if  (!el._display) {
        displayContents(el._tip)
        el._display = true
      }
  }

  function doMouseOut(e) {
    // Mouse leaves an element
    setupEventObject(e)
    el = checkName(window.event.srcElement)
    var el, tip
    if ((el = checkName(window.event.srcElement))!=null)
      if (el._display)
        if ((el.contains==null) || (!el.contains(window.event.toElement))) {
          setVisibility(getElement("tipBox"), false)
          el._display = false
        }
  }

  function doLoad() {
    // Do Loading
    if ((window.document.captureEvents==null) && (!allSupport))
      return // Not IE4 or NS4
    if (window.document.captureEvents!=null)  // NS - capture events
      window.document.captureEvents(Event.MOUSEOVER | Event.MOUSEOUT)
    window.document.onmouseover = doMouseOver;
    window.document.onmouseout = doMouseOut;
  }

  window.onload = doLoad
  // -->
</script>
<style TYPE="text/css">
<base target="_top">
<!--    
     #tipBox {position: absolute; width: 150px; z-index: 100;border: 1pt black solid; background: yellow; visibility: hidden}
    A:link {text-decoration:none;  color: #4D7DA1} 
    A:visited {text-decoration:none;  color: #5f5faf} 
    A:active { color:ee0000;}
    A:hover { color: red; }
        -->
</style>
</head>
<SCRIPT LANGUAGE="JavaScript">
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}

  function checkuu()
{
    if(checkspace(document.userlogin.username.value)) {
	document.userlogin.username.focus();
    alert("用户名不能为空！");
	return false;
  }
    if(checkspace(document.userlogin.userpassword.value)) {
	document.userlogin.userpassword.focus();
    alert("密码不能为空！");
	return false;
  }
	
  }
</script>
<body topmargin="0" leftmargin="0" background="moban/1/images/bg.gif" >
<table border="0" width="950" background="moban/1/images/top.gif" height="131" cellspacing="0" cellpadding="0" >
  <tr>
    <td width="100%" valign="top" height="119">
      <table border="0" width="100%" cellspacing="0" cellpadding="0" height="106">
        <tr>
          <td width="27%" height="60" align="center"><font size=4 face=黑体 color=#ffffff><strong><u><%=rs_shjia("name")%></u></strong></font><br><font color="#ffffff" size=3>http://<%=rs_shjia("url")%></font></td>
          <td width="47%" height="53" valign="middle" align="center">
            <table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr>
                <td width="12%" align="center"><a href="index.asp?id=<%=rs_shjia("shjiaid")%>"><font color="#FFFFFF"><b>首页</b></font></a></td>
                <td width="1%"><img border="0" src="moban/1/images/line1.gif"></td>
                <td width="14%" align="center"><a href="list.asp?id=<%=rs_shjia("shjiaid")%>"><font color="#FFFFFF"><b>新品推荐</b></font></a></td>
                <td width="1%"><img border="0" src="moban/1/images/line1.gif"></td>
                <td width="14%" align="center"><a href="hot.asp?id=<%=rs_shjia("shjiaid")%>"><font color="#FFFFFF"><b>热卖排行</b></font></a></td>
                <td width="1%"><img border="0" src="moban/1/images/line1.gif"></td>
                <td width="14%" align="center"><a href="boot.asp?id=<%=rs_shjia("shjiaid")%>"><font color="#FFFFFF"><b>特价促销</b></font></a></td>
                <td width="1%"><img border="0" src="moban/1/images/line1.gif"></td>
                <td width="14%" align="center"><a href="gbook.asp?id=<%=rs_shjia("shjiaid")%>"><font color="#FFFFFF"><b>客户留言</b></font></a></td>
                <td width="1%"><img border="0" src="moban/1/images/line1.gif"></td>
                <td width="14%" align="center"><a href="about.asp?id=<%=rs_shjia("shjiaid")%>&action=about"><font color="#FFFFFF"><b>关于我们</b></font></a></td>
              </tr>
            </table>
          </td>
          <td width="26%" height="53"></td>
        </tr>
        <tr>
          <td width="27%" height="53" valign="middle" align="center"></td>
          <td width="47%" height="53" valign="middle" align="center"><a href="<%=rs_shjia("texturl")%>" targrt=_top><strong><font size=5 color="#ffffff" ><%=left(rs_shjia("textbanner"),16)%></font></strong></a></td>
           <td width="26%" height="53"></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<table border="0" width="950" cellspacing="0" cellpadding="0" height="1">
  <tr>
    <td width="950" background="moban/1/images/tbbg2.gif" height="1" valign="top">
      <table border="0" width="950" cellspacing="0" cellpadding="0" height="167">
        <tr>
          <td width="100%" height="30">
          <form name="form2" method="post" action="search.asp?id=<%=rs_shjia("shjiaid")%>">
            <table border="0" width="100%" cellspacing="0" cellpadding="0" height="28">
              <tr>
                <td width="28%" height="28"></td>
                <td width="4%" height="28"></td>
                <td width="19%" align="right" height="28"><img border="0" src="moban/1/images/so1.gif"> 
                  <font color="#FFFFFF"><b> 商品搜索</b></font></td> 
                <td width="18%" align="center" height="28"><input class=wenbenkuang name="searchkey" type="text" size=25>
                </td>
                <td width="9%" height="28">&nbsp;<INPUT  name="submit" border="0" src="moban/1/images/go.gif" type="image" align="absmiddle" ></td>
                <td width="22%" height="28"></td>
              </tr>
              </form>
            </table>
            
          </td>
        </tr>
        <tr>
          <td width="100%" height="137" valign="top">
            <table border="0" width="902" height="1" cellspacing="0" cellpadding="0">
              <tr>
                <td width="249" height="1" valign="top">
                  <table border="0" width="100%" cellspacing="0" cellpadding="0" height="149">
                    <tr>
                      <td width="100%" height="99"></td>
                    </tr>
                    <tr>
                      <td width="100%" height="31">
                        <table border="0" width="99%">
                          <tr>
                            <td width="21%"></td>
                            <td width="79%"><font color="#FF6600"><b>商家公告</b></font></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td width="100%" height="19">
                        <table border="0" width="256" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="56"></td>
                            <td width="180" height="68" background="moban/1/images/loginbg.gif" align="center"><marquee direction="up" width="98%" height="65" scrollamount="1" id=info onMouseOver=info.stop() onMouseOut=info.start()><font color="red"><%=rs_shjia("content")%></font></marquee>
</td> <td width="10" height="68"></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
                <td width="449" height="1" valign="top">
                  <table border="0" width="100%" cellspacing="0" cellpadding="0" height="187">
                    <tr>
                      <td width="100%" height="35">
                        <table border="0" width="100%" height="27" cellspacing="0" cellpadding="0">
                          <tr>
                            <td width="1%"></td>
                            <td width="443" height="27" background="moban/1/images/lan.gif">
                              <table border="0" width="100%">
                                <tr>
                                  <td width="5%"></td>
                                  <td width="82%"><b><font color="#FF6600">热卖</font><font color="#999999">商品</font></b></td>
                                  <td width="13%"><a href=hot.asp?id=<%=rs_shjia("shjiaid")%> ><font color="#FF6600">更多..</font></a></td>
                                </tr>
                              </table>
                            </td>
                            <td width="1"></td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td width="500" height="152" valign="middle" align="center"> 
          <%set rs=server.CreateObject("adodb.recordset")
		  rs.open "select Top 2 * from shop_books where shjiaid="&id&" and shjiabestbook=1 and info=0 order by liulancount,chengjiaocount desc",conn,1,1
		  if rs.eof then 
		  response.write "对不起，暂无热卖商品！"
		  'response.End
		  else
		  %> 
                        <div align="center">
                          <center>
                          <table border="0" width="448" height="152">
                            <tr>
                              <td width="448" height="152" background="moban/1/images/hotbg.gif" align="center">
                              <div align="center">
                               <center>
                                <table border="0" width="100%">
                                <%
		dim i_1,i_count
		i_1=int((rs.recordcount+1)/2)
		if i_1>1 then 
		i_1=1
		end if
		'response.write i_1
		for i_count=1 to i_1%>
                                  <tr>
                                    <td width="63%">
                                      <table border="0" width="273">
                                        <tr>
                                          <td width="145" ><img src="../images/ring01.gif">
<a href=../list.asp?id=<%=rs("bookid")%> >                                                                                                                                                                                                                             
<%if len(trim(rs("bookname")))>12 then
	response.write left(trim(rs("bookname")),10)&".."
	else
	response.write trim(rs("bookname"))
	end if%>
</a>
<br><font color="#999999"> 
<%if len(trim(rs("bookcontent")))>12 then
	response.write left(trim(rs("bookcontent")),10)&"..."
	else
	response.write trim(rs("bookcontent"))
	end if%>
</font><br>
市场价：<s><%=formatnumber(rs("shichangjia"),2)&"元"%></s><br>
会员价：<font color=#FF6600><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td><a href="../gouwu.asp?id=<%=rs("bookid")%>&action=add" target="_blank"><img src="moban/1/images/goumai.gif"  border=0 width="60" height="16"></a> 
  <a href="../shoucang.asp?id=<%=rs("bookid")%>&action=add" target="_blank"><img src="moban/1/images/shoucang.gif"  border=0 width="60" height="16"></a></td> 
</tr>
</tbody> 
</table>
</td>
<td width="114" align="center"><%if rs("bookpic")="" then 
response.write "<div align=center><a href=../list.asp?id="&rs("bookid")&" ><img src=../moban/1/images/emptybook.gif width=90 height=90 border=0></a></div>"
else%>
<a href=../list.asp?id=<%=rs("bookid")%> ><img src="../<%=trim(rs("bookpic"))%>"  width=110 border=0 height="110"></a> 
<%end if%>  
</td> 
                                        </tr>
                                      </table>
                                      <%rs.movenext%>
                                    </td>
                                    <td width="37%">
                                    
                                      <table border="0" width="101%">
                                        <tr>
                                          <td width="100%" colspan="2">
&nbsp;<img src="../images/ring01.gif">
<a href=../list.asp?id=<%=rs("bookid")%> >                                                                                                                                                            
<%if len(trim(rs("bookname")))>10 then
	response.write left(trim(rs("bookname")),10)&""
	else
	response.write trim(rs("bookname"))
	end if%>
</a>
<br><font color="#999999"> 
<%if len(trim(rs("bookcontent")))>10 then
	response.write left(trim(rs("bookcontent")),10)&""
	else
	response.write trim(rs("bookcontent"))
	end if%>
</font></td>

                                        </tr>
                                        <tr>
                                          <td width="56%" align="center">市场价：<s><%=formatnumber(rs("shichangjia"),2)&"元"%></s><br>
会员价：<font color=#FF6600><%=formatnumber(rs("huiyuanjia"),2)&"元"%></font></td>
                                                                                    <%if rs.eof then%>
                                          <%else%>
                                          <td width="60" align="center"><%if rs("bookpic")="" then 
response.write "<div align=center><a href=../list.asp?id="&rs("bookid")&" ><img src=../moban/1/images/emptybook.gif width=40 height=40 border=0></a></div>"
else%>
<a href=../list.asp?id=<%=rs("bookid")%> ><img src="../<%=trim(rs("bookpic"))%>"  width=60 border=0 height=60></a> 
<%end if%></td>   
                                        </tr>
                                        <tr>
                                          <td width="100%" colspan="2" align="center"><a href="../gouwu.asp?id=<%=rs("bookid")%>&action=add" target="_blank"><img src="moban/1/images/goumai.gif" border=0></a> 
                                            <a href="../shoucang.asp?id=<%=rs("bookid")%>&action=add" target="_blank"><img src="moban/1/images/shoucang.gif"  border=0 width="60" height="16"></a> 
</td>                                           
                                        </tr>
                                      </table>
                                      <%rs.movenext%>
                                    </td>
                                  </tr>
                                </table>
                                <%end if%>
                                </center>
                               </div>
                              </td>
                            </tr>
                            <%next%>
                           <%
                           rs.close
                           set rs=nothing%>
                          </table>
                          <%end if%>
                          </center>
                        </div>
                      </td>
                    </tr>
                  </table>
                </td>
                <td width="198" height="1" valign="top" align="center">
                  <div align="center">
                    <center>
                  <table border="0" width="190" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="1"></td>
                      <td width="190" height="205" background="moban/1/images/login.gif" valign="top" algin="center">
                      <form name="userlogin" method="post" action="../checkuserlogin.asp">
                      <div algin="center">
                      <center>
                        <table border="0" width="190" cellspacing="1" height="133" algin="center" cellpadding="2">
                          <tr>
                            <td width="100%" height="72"></td>
                          </tr>
                          <tr>
                            <td width="100%" height="23">&nbsp;&nbsp;&nbsp; 用户名：<input type="text" class=wenbenkuang  name="username" size="14" value="请输入您的用户名！">                                                                                                                                                                                              
                            </td>
                          </tr>
                          <tr>
                            <td width="100%" height="19">&nbsp;&nbsp;&nbsp; 密　码：<input type="password" class=wenbenkuang  name="userpassword" size="14" value="请输入密码">
                            </td>
                          </tr>
                          <tr>
                            <td width="100%" height="10">&nbsp;&nbsp;&nbsp; 验证码：                                                                                                                                                                                                
<input class=wenbenkuang name=verifycode type=text value="<%If GetCode=9999 Then Response.Write "9999"%>请输入验证码！" maxLength=4 size=6>
<img src=../GetCode.asp></td>                                                                                                                                                                                               
                          </tr>
                          <tr>
                            <td width="100%" height="9" align="center">
                            <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> </td>
                          </tr>
                        </table>
                        </center>
                        </div>
                        </form>
                      </td>
                      <td width="8"></td>
                    </tr>
                  </table>
                    </center>
                  </div>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
  <table border="0" width="950" cellspacing="0" cellpadding="0" height="276">
    <tr>
      <td width="259" height="276" valign="top">
        <table border="0" width="161" cellspacing="0" cellpadding="0">
          <tr>
            <td width="53">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td width="104">
              <table border="0" width="100%" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="100%"><img border="0" src="moban/1/images/tl.gif"></td>
                </tr>
                <tr>
                  <td width="100%" background="moban/1/images/bl.gif" valign="top" align="center">
                    <div align="center">
                      <center>
                      <table border="0" width="98%" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="100%"><font color="#FF6600"><b>商家动态</b></font></td>
                        </tr>
                        <tr>
                          <td width="100%" bgcolor="#F4F4F4" height="1"></td>
                        </tr>
                        <tr>
                          <td width="100%" align="center" valign="top"><%
set rs_news=server.CreateObject("adodb.recordset")
strnews="select top 20 * from news where shjiaid="&id
rs_news.open strnews,conn,1,1
%>
<table width=100% border=0 align=center cellpadding=0 cellspacing=0>
<% do while not rs_news.eof %>
<tr>
<td height=23 valign="top">　·                                                                                               
<% if len(replace(trim(rs_news("title")),"<br>",""))>10 then
	response.write "<a href=""javascript:;"" onClick=""javascript:window.open('news_shjia.asp?id="&rs_news("newsid")&"','news','width=432,height=480,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"" title="&year(rs_news("addtime"))&"年"&month(rs_news("addtime"))&"月"&day(rs_news("addtime"))&"日发布>"&left(trim(rs_news("title")),8)&".."&"</a><br>"
	else
	response.write "<a href=""javascript:;"" onClick=""javascript:window.open('news_shjia.asp?id="&rs_news("newsid")&"','news','width=432,height=480,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');return false;"" title="&year(rs_news("addtime"))&"年"&month(rs_news("addtime"))&"月"&day(rs_news("addtime"))&"日发布>"&trim(rs_news("title"))&"</a><br>"
	end if%>
</td>
</tr>
<%rs_news.movenext
	loop
	rs_news.close
	set rs_news=nothing%>
</table></td>
                        </tr>
                      </table>
                      </center>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td width="100%"><img border="0" src="moban/1/images/dl.gif"></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td width="53">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
            <td width="104" rowspan="2">
              <table border="0" width="100%" cellspacing="0" cellpadding="0">
              <tr><td height="5"> </td></tr>
                 <tr>
                  <td width="100%"><img border="0" src="moban/1/images/tl.gif"></td>
                </tr>
                <tr>
                  <td width="100%" background="moban/1/images/bl.gif" align="center" valign="top">
                    <div align="center">
                      <center>
                      <table border="0" width="98%" cellspacing="0" cellpadding="0">
                        <tr>
                          <td width="100%"><font color="#FF6600"><b>商品分类</b></font></td>
                        </tr>
                        <tr>
                          <td width="100%" bgcolor="#F4F4F4" height="1"></td>
                        </tr>
                        <tr>
                          <td width="100%" valign="top"><table width="100%" cellpadding="2" cellspacing="2">
  <%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>
&nbsp;&nbsp;&nbsp;<img src=../image/fengge/1/ring01.gif width=9 height=9>&nbsp;<a href=guidelist.asp?shjclassid=<%=rs("shjclassid")%>&id=<%=id%>><%=rs("shjclass")%></a>
</td>
</tr>

<%rs.movenext
loop	
rs.close
set rs=nothing
end if
%>
</table></td>
                        </tr>
                      </table>
                      </center>
                    </div>
                  </td>
                </tr>
                <tr>
                  <td width="100%"><img border="0" src="moban/1/images/dl.gif"></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td width="53"></td>
          </tr>
        </table>
      </td>
      <td width="443" height="276" valign="top">
        <table border="0" width="443" height="74">
          <tr>
            <td width="443" background="moban/1/images/lan.gif" height="23">
              <table border="0" width="443">
                <tr>
                  <td width="6%"></td>
                  <td width="82%"><font color="#FF6600"><b>特价</b></font><font color="#999999"><b>推荐</b></font></td>
                  <td width="13%"><a href="boot.asp?id=<%=rs_shjia("shjiaid")%>"><font color="#FF6600">更多..</font></a></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td width="443" align="center"><table width="100%" border="0" cellspacing="0" cellpadding="5" align="center" height="202">
<tr> 
<td align="center" height="192"> 
<%set rs_s=server.CreateObject("adodb.recordset")
		  rs_s.open "select Top 8 * from shop_books where shjiaid="&id&" and shjiabestbook=1 and info=0 order by adddate,bookid desc",conn,1,1
		  if rs_s.eof and rs_s.bof then
		  response.write "<p align=center>对不起，暂无推荐商品！</p>"
		  'response.End
		  else
		  %>
<table cellspacing=0 cellpadding=0 border=0 width="100%" height="170">
<%
			dim i1_1,i1_count
			i1_1=int((rs_s.recordcount+1)/4)
			if i1_1>2 then 
			i1_1=2
			end if
			'response.write i1_1
			for i1_count=1 to i1_1%>
<tr> 
<td height="170" align="center" valign="top" width="1"><img border="0" src="moban/1/images/line.gif"></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_s("bookpic")="" then 
response.write "<a href=../list.asp?id="&rs_s("bookid")&" ><img src=../images/emptybook.gif width=90 height=90 border=0></a>"
else%>
<a href=../list.asp?id=<%=rs_s("bookid")%> ><img src="../<%=trim(rs_s("bookpic"))%>" width=90 border=0 height=90></a> 
<%end if%> 
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="60%" align="center" bgcolor="#F7F4EF"><a href=../list.asp?id=<%=rs_s("bookid")%> onmouseover="this._tip='<%=rs_s("bookname")%>'">                       
	<%if len(trim(rs_s("bookname")))>6 then
	response.write left(trim(rs_s("bookname")),6)&""
	else
	response.write trim(rs_s("bookname"))
	end if%>
</a><br>
市场价：<s><%=formatnumber(rs_s("shichangjia"),2)&"元"%></s><br>
会员价：<font color=#FF6600><%=formatnumber(rs_s("huiyuanjia"),2)&"元"%></font><br>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td align="center"><a href="../gouwu.asp?id=<%=rs_s("bookid")%>&action=add" target="_blank"><font color=#e0d2c1><b>购买</b></font></a>&nbsp;<a href="../shoucang.asp?id=<%=rs_s("bookid")%>&action=add" target="_blank"><font color=#e0d2c1><b>收藏</b></font></a></td>
</tr>
</tbody> 
</table>
<%rs_s.movenext%>
</td>
</tr>
</table>
<td height="170" align="center" valign="top" width="1"><img border="0" src="moban/1/images/line.gif"></td>
<td valign="top" width="50%" height="170"> 
<%if rs_s.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_s("bookpic")="" then 
				response.write "<a href=../list.asp?id="&rs_s("bookid")&" ><img src=../images/emptybook.gif width=90 height=90 border=0></a></div>"
				else%>
				<a href=../list.asp?id=<%=rs_s("bookid")%> ><img src="../<%=trim(rs_s("bookpic"))%>"  width=90 border=0 height=90></a> 
				<%end if%> 
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="60%" align="center" bgcolor="#F7F4EF"><a href=../list.asp?id=<%=rs_s("bookid")%> onmouseover="this._tip='<%=rs_s("bookname")%>'">                      
<%if len(trim(rs_s("bookname")))>6 then
	response.write left(trim(rs_s("bookname")),6)&""
	else
	response.write trim(rs_s("bookname"))
	end if%>
</a><br>
市场价：<s><%=formatnumber(rs_s("shichangjia"),2)&"元"%></s><br>
会员价：<font color=#FF6600><%=formatnumber(rs_s("huiyuanjia"),2)&"元"%></font><br>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td><a href="../gouwu.asp?id=<%=rs_s("bookid")%>&action=add" target="_blank"><font color=#e0d2c1><b>购买</b></font></a>&nbsp;<a href="../shoucang.asp?id=<%=rs_s("bookid")%>&action=add" target="_blank"><font color=#e0d2c1><b>收藏</b></font></a></td>
</tr>
</tbody> 
</table>
<%rs_s.movenext%>
</td>
</tr>
</table>
<%end if%>
</td>
<td height="170" align="center" valign="top" width="1"><img border="0" src="moban/1/images/line.gif"></td>
<td valign="top" width="50%" height="170"> 
<%if rs_s.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_s("bookpic")="" then 
				response.write "<a href=../list.asp?id="&rs_s("bookid")&" ><img src=../images/emptybook.gif width=90 height=90 border=0></a></div>"
				else%>
				<a href=../list.asp?id=<%=rs_s("bookid")%> ><img src="../<%=trim(rs_s("bookpic"))%>"  width=90 border=0 height=90></a> 
				<%end if%> 
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="60%" align="center" bgcolor="#F7F4EF"><a href=../list.asp?id=<%=rs_s("bookid")%>  onmouseover="this._tip='<%=rs_s("bookname")%>'">                        
<%if len(trim(rs_s("bookname")))>6 then
	response.write left(trim(rs_s("bookname")),6)&""
	else
	response.write trim(rs_s("bookname"))
	end if%>
</a><br>
市场价：<s><%=formatnumber(rs_s("shichangjia"),2)&"元"%></s><br>
会员价：<font color=#FF6600><%=formatnumber(rs_s("huiyuanjia"),2)&"元"%></font><br>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td><a href="../gouwu.asp?id=<%=rs_s("bookid")%>&action=add" target="_blank"><font color=#e0d2c1><b>购买</b></font></a>&nbsp;<a href="../shoucang.asp?id=<%=rs_s("bookid")%>&action=add" target="_blank"><font color=#e0d2c1><b>收藏</b></font></a></td>
</tr>
</tbody> 
</table>
<%rs_s.movenext%>
</td>
</tr>
</table>
<%end if%>
</td>
<td height="170" align="center" valign="top" width="1"><img border="0" src="moban/1/images/line.gif"></td>
<td valign="top" width="50%" height="170"> 
<%if rs_s.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_s("bookpic")="" then 
				response.write "<a href=../list.asp?id="&rs_s("bookid")&" ><img src=../images/emptybook.gif width=90 height=90 border=0></a></div>"
				else%>
				<a href=../list.asp?id=<%=rs_s("bookid")%> ><img src="../<%=trim(rs_s("bookpic"))%>"  width=90 border=0 height=90></a> 
				<%end if%> 
</TD>
</TR>
</TBODY>
</TABLE>
</td>
</tr>
<tr>
<td width="60%" align="center" bgcolor="#F7F4EF"><a href=../list.asp?id=<%=rs_s("bookid")%> onmouseover="this._tip='<%=rs_s("bookname")%>'">                         
<%if len(trim(rs_s("bookname")))>6 then
	response.write left(trim(rs_s("bookname")),6)&".."
	else
	response.write trim(rs_s("bookname"))
	end if%>
</a><br>
市场价：<s><%=formatnumber(rs_s("shichangjia"),2)&"元"%></s><br>
会员价：<font color=#FF6600><%=formatnumber(rs_s("huiyuanjia"),2)&"元"%></font><br>
<table cellpadding=0 cellspacing=0>
<tbody> 
<tr> 
<td><a href="../gouwu.asp?id=<%=rs_s("bookid")%>&action=add" target="_blank"><font color=#e0d2c1><b>购买</b></font></a>&nbsp;<a href="../shoucang.asp?id=<%=rs_s("bookid")%>&action=add" target="_blank"><font color=#e0d2c1><b>收藏</b></font></a></td>
</tr>
</tbody> 
</table>
<%rs_s.movenext%>
</td>
</tr>
</table>
<%end if%>
</td>
<td height="170" align="center" valign="top" width="1"><img border="0" src="moban/1/images/line.gif"></td>
</tr>
<%next%>
<%
rs_s.close
set rs_s=nothing%>
</table>
<%end if%>
</td>
</tr>
</table></td>
          </tr>
          <tr>
            <td width="100%" height="18"></td>
          </tr>
        </table>
      </td>
      <td width="242" height="276" valign="top">
        <table border="0" width="100%" height="150">
          <tr>
            <td width="100%" height="80" valign="top">
              <table border="0" width="186" cellspacing="0" cellpadding="0" height="76">
                <tr>
                  <td width="186" height="8"><img border="0" src="moban/1/images/tl.gif"></td>
                </tr>
                <tr>
                  <td width="186" height="63" background="moban/1/images/bl.gif"><table width="100%" border="0" cellpadding="0" cellspacing="0" align="center" height="70">
<tr> 
<td height="20" align=cneter>&nbsp;<font color="#FF6600"><b><img border="0" src="moban/1/images/gouwuche.gif"> 
  我的购物车</b></font></td>                                                                                                                                                                                  
</tr>
<tr> 
<td height="1" align=cneter bgcolor="#F4F4F4"></td>
</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
					%>
<tr> 
<td height="20">　您的购物车有<font color=red><%=rec_count%></font>件产品 
</td>
</tr>
<tr> 
<td height="20">　总金额：<font color=red><%=rs("zongji")%></font>元 
</td>
</tr>
<tr> 
<td height="20">　<a href="../gouwu.asp?action=show&lx=1" target="_blank">查看购物车/结帐&gt;&gt;</a></td>
</tr>
<tr> 
<td height="10">　<a href=../user.asp?action=shoucang>我的收藏&gt;&gt;</a></td>
</tr>
<tr> 
<td height="5">&nbsp; <a href="../user.asp">用户中心&gt;&gt;</a></td>                                                                                                                                                                                  
</tr>
<tr> 
<td height="5">&nbsp; <a href="logout1.asp">注销退出&gt;&gt;</a></td>                                                                                                                                                                                  
</tr>
<%rs.close
	set rs=nothing
	else%>
<tr> 
<td height="20"> 
　您的购物车有<font color=red>0</font>件产品<br>
　总金额：<font color=red>0</font>元
</td>
</tr>
<tr> 
<td height="1"></td>
</tr>
<%end if%>
</table></td>
                </tr>
                <tr>
                  <td width="184" height="5"><img border="0" src="moban/1/images/dl.gif"></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr>
            <td width="188" height="18">
              <table border="0" width="120" height="187" cellspacing="0" cellpadding="0">
                <tr>
                  <td width="188" valign="top" background="moban/1/images/lianxi.gif">
                    <table border="0"  cellspacing="0" cellpadding="0" height="187" width="188">
                      <tr>
                        <td width="188" height="18"  colspan="2"></td>
                      </tr>
                      <tr>
                        <td width="58" height="26">     
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;      
                        </td>
                        <td width="130" height="26" ><%=rs_shjia("tel")%>  
                            
                        </td>
                      </tr>
                      <tr>
                        <td width="188" height="23"  colspan="2"></td>
                      </tr>
                      <tr>
                        <td width="58" height="26">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        </td>
                        <td width="188" height="26" ><a href="#" onmouseover="this._tip='<%=rs_shjia("dz")%>'"><%=left(rs_shjia("dz"),10)%></a>
                        </td>
                      </tr>
                      <tr>
                        <td width="188" height="20"  colspan="2"></td>
                      </tr>
                      <tr>
                        <td width="58" height="23">
                          &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </td>
                        <td width="130" height="26"><a onmouseover="this._tip='<%=rs_shjia("UserEmail")%>'" href="mailto:<%=rs_shjia("UserEmail")%>"><%if len(rs_shjia("UserEmail"))>23 then response.write("发EMAIL给商家")%> </td>
                      </tr>
                      <tr>
                        <td width="188" height="20"  colspan="2"></td>
                      </tr>
                      <tr>
                        <td width="58" height="23">
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
                        </td>
                        <td width="130" height="29">
      <%if rs_shjia("renzheng")=1 then
response.write "<img src=../images/yingyezhizhao.gif alt=企业营业执照认证商家 width=34 height=20>"
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%>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>
      </td>
    </tr>
  </table>
 
  <table border="0" width="950">
    <tr>
      <td width="100%" align="center">
        <div align="center">
          <center>
          <table border="0" width="850" height="24">
            <tr>
              <td width="850" background="moban/1/images/diline.gif" height="24" align="center"><a href="about.asp?id=<%=rs_shjia("shjiaid")%>&action=about">关于我们</a> 
                | <a href="about.asp?id=<%=rs_shjia("shjiaid")%>&action=lianxi">联系方式</a>                                         
                | <a href="about.asp?id=<%=rs_shjia("shjiaid")%>&action=fukuan">付款方式</a>| <a href="../bbs/">社区论坛</a></td>                         
            </tr>
          </table>
          </center>
        </div>
      </td>
    </tr>
    <tr>
      <td width="100%" align="center"><table width="750"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr> 
<td width="173" height="80" align="center" class="table-you"><%if rs_shjia("logo")<>"" then%><img src=../<%=trim(rs_shjia("logo"))%> width=150 height=60 border=0><%else%>
<font size=4 face=黑体 color=#FF9933><strong><u><%=rs_shjia("name")%></u></strong></font><br><font color="#FF9933" size=3>http://<%=rs_shjia("url")%></font>       
<%end if%>       
<td width="504">
　公司地址：<%=rs_shjia("dz")%>　邮政编码：<%=rs_shjia("pc")%><br>
　客服邮箱：<a href="mailto:<%=rs_shjia("UserEmail")%>"><%=rs_shjia("UserEmail")%></a>　客服电话：<%=rs_shjia("tel")%><br>
　版权所有 &copy; 2006-2007 <a href=index.asp?id=<%=rs_shjia("shjiaid")%>><%=rs_shjia("name")%></a>　<a href=admin_login.asp >[管理入口]</a>
</td>
</tr>
</table>
</td>
    </tr>
    <tr><td height=1 align="center">
        <div align="center">
          <center>
          <table border="0" width="850" height="1" cellspacing="0" cellpadding="0">
            <tr>
              <td width="850" bgcolor="#E1E1E1" height="1"></td>
            </tr>
          </table>
          </center>
        </div>
      </td></tr>
  </table>
  <div ID="tipBox" align="center"></div> 
</body>
<%if rs_shjia("oicq")<>"" and rs_shjia("oicq")<>"0" then%>
<!--#include file="qq.asp"-->
<%end if%>
</html>
