<!--#include file="conn.asp"-->
<!--#include file="webconfig.asp"-->
<html>
<head>
<title><%=webname%>--首页</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="mt_style.css" rel="stylesheet" type="text/css">
<style>
td{font-size:9pt;line-height:120%;color:#353535} 
body{font-size:9pt;line-height:120%} 

a:link          { color: #000000; text-decoration: none }
a:visited       { color: #000000; text-decoration: none }
a:active        { color: #000000; text-decoration: none }
a:hover         { color: #336699; text-decoration: none; position: relative; right: 0px; top: 1px }
</style>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦！：）';return false;" <%if bulletinshow then%>
onload="javascript:window.open('bulletinshow.asp','','width=<%=bulletinwidth%>,height=<%=bulletinheight%>,toolbar=no, status=no, menubar=no, resizable=yes, scrollbars=yes');" <%end if%>>
<%dim dada,dadaurl,xiao1,xiao2,xiao3,xiao1url,xiao2url,xiao3url,tx1,tx1url,tx2,tx2url,tx3,tx3url
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_gg",conn,1,1
dada=trim(rs("458"))
dadaurl=trim(rs("458url"))
xiao1=trim(rs("2541"))
xiao1url=trim(rs("2541url"))
xiao2=trim(rs("2542"))
xiao2url=trim(rs("2542url"))
xiao3=trim(rs("2543"))
xiao3url=trim(rs("2543url"))
tx1=trim(rs("1441"))
tx1url=trim(rs("1441url"))
tx2=trim(rs("1442"))
tx2url=trim(rs("1442url"))
tx3=trim(rs("1443"))
tx3url=trim(rs("1443url"))
rs.close
set rs=nothing
%>
<!--#include file="webtop.asp"-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center" bordercolor="#EDECEC">
  <tr> 
    <td width="180" valign="top" bgcolor="#FFFFFF" bordercolor="#FFFFFF"> 
      <%if request.cookies("songxf")("username")="" and request.cookies("songxf")("shjianame")="" then%>
      <!--#include file="userinfo.asp"-->
      <%end if%>
      <!--#include file="searchinfo.asp"-->
      <!--#include file="gouwucheinfo.asp"-->
      <!--#include file="fenleiinfo.asp"-->
      <!--#include file="dingdaninfo.asp" -->
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td background="images/bj_x.gif" height="1"></td>
        </tr>
        <tr> 
          <td height="57"><!--#include file="gonggaoinfo.asp"--> 
          </td>
        </tr>
        <tr> 
          <td height="1" background="images/bj_x.gif"></td>
        </tr>
        <tr> 
          <td>             <br>
          </td>
        </tr>
      </table>      
    </td>
    <td width="2" valign="top" background="images/bj_x.gif"></td>
    <td valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF"> 
      <div align="center">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td background="images/bj_x.gif" height="1"></td>
          </tr>
          <tr>
            <td height="22"> 
<div align="center"><!--#include file="xinxi.asp"--></div>
            </td>
          </tr>
          <tr>
            <td background="images/bj_x.gif" height="1"></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td background="images/bj_x.gif" height="1"></td>
          </tr>
          <tr><td valign="top"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="3">
                <tr> 
                  <td><b><font color="#FF9900">最新推荐特价商品>>></font></b></td>
                </tr>
                <%set rs=server.createobject("adodb.recordset")
						  rs.open "select Top 3 * from shop_books where tejiabook=1 and bestbook=1 order by bookid,bookname desc",conn,1,1
						  if rs.recordcount=0 then 
						  response.write "<tr><td>　暂无推荐特价</td></tr>"
						  else
						  %>
                <tr> 
                  <%
						  while not rs.eof%>
                  <td align=center><a href=list.asp?id=<%=rs("bookid")%> target=_blank> 
                    <%if rs("bookpic")="" then 
	response.write "<div align=center><a href=list.asp?id="&rs("bookid")&" target=_blank><img src=images/emptybook.gif width=75 height=75 border=0></a></div>"
	else%>
                    <img src="<%=trim(rs("zhuang"))%>" width=150 border=0 height="150" alt="<%=trim(rs("bookname"))%>"></a> <br>
					<b><font color=red>促销价:<%=trim(rs("huiyuanjia"))%>元</font></b>
                    <%end if%>
                  </td>
                  <%
			rs.movenext
		    wend
			%>
                </tr>
                <%
						  end if
						  rs.close
						  %>
              </table>
            </td>
          </tr>
          <tr> 
            <td background="images/bj_x.gif" height="1"></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
          <tr>
            <td align="center"><a href="<%=tx1url%>"><img src="<%=tx1%>" width="567" height="85" border="0"></a></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td background="images/bj_x.gif" height="1"></td>
          </tr>
          <tr> 
            <td height="22" bgcolor="#3CB0FF"> 
              <table cellspacing=0 cellpadding=0 width=170 height="20">
                <tr> 
                  <td width=5>&nbsp;</td>
                  <td> 
                    <div align="center"></div>
                     
                    <b><font color="#333333">最新商品上架排行>>></font></b> 
                  </td>
                </tr>
              </table>
            </td>
          </tr>
          <tr> 
            <td height="1" background="images/bj_x.gif"></td>
          </tr>
          <tr> 
            <td>
              <!--include file="shangping_tj.asp" -->
			 <%set rs=server.CreateObject("adodb.recordset")
		  rs.open "select Top 8 * from shop_books where newsbook=1 order by bookid desc",conn,1,1
		if rs.recordcount=0 then 
		%>
        <table width="370" border="0" cellspacing="0" cellpadding="5" align="center">
          <tr>
            <td align=center>对不起，暂无新品！</td>
          </tr>
        </table>
        <%
		else
		%>
		<script language="JavaScript">
			<!--
			function demo(Page,scrl){
			//if (false)window.close();
			// if  (!window.win || win.closed)  
			// {
			 window.open(Page,"gouwu","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=2,width=450,height=350,scrollbars="+scrl+",resizable=1");
			// }
			// else{
			//  win.close();
			//  win=open(Page,"gouwu","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=2,width=450,height=350,scrollbars="+scrl+",resizable=1");
			//  } 
			}
			//-->
		</script>
		<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
        <%
		dim jpi
		jpi=0
		while not rs.eof
		jpi=jpi+1
		if jpi >4 then 
		jpi=1
		end if
		if jpi=1 then response.Write("<tr>")
		response.Write("<td width='25%'>")
		%>
		
        <!--#include file="zwxm-shangping_j.asp"-->		
        <%
		response.Write("</td>")
		if jpi=4 then response.Write("</tr><tr><td colspan='4' height=1 background='images/bj_x1.gif'></td></tr>")
		rs.movenext
		wend
		if jpi<4 then 
			for jpj=jpi+1 to 4
				response.Write("<td width='25%'><table width='100%'><tr><td><img src='images/zwxblank.gif'  width='75' border='0' height='75'></td></tr></table></td>")
			next
			response.Write("</tr><tr><td colspan='4' height=1 background='images/bj_x1.gif'></td></tr>")
		end if
		response.Write("</table>")		
		end if
		rs.close
		set rs=nothing
		%>			  
			  
            </td>
          </tr>
        </table>
        <table width="100%" height="89" border="0" cellpadding="0" cellspacing="0" align="center">
          <tr> 
            <td background="images/bj_x.gif" height="1"></td>
          </tr>
          <tr align="center"> 
            <td height="70" align="center"><a href="<%=tx2url%>"><img src="<%=tx2%>" width="567" height="85" border="0"></a></td>
          </tr>
          <tr> 
            <td background="images/bj_x.gif" height="1"></td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td background="images/bj_x.gif" height="1"></td>
          </tr>
          <tr> 
            <td height="22" bgcolor="#3CB0FF"> 
              <table cellspacing=0 cellpadding=0 width=170 height="20">
                <tr> 
                  <td width=5>&nbsp;</td>
                  <td> 
                    <div align="center"></div>
                     
                    <strong>精品热卖<font color="#333333">>>></font> </strong></td>
                </tr>
              </table>
            </td>
          </tr>
          <tr> 
            <td background="images/bj_x.gif" height="1"></td>
          </tr>
		 <tr><td>
		 <%set rs=server.createobject("adodb.recordset")
		rs.open "select Top 20 * from shop_books where bestbook=1 order by bookid desc",conn,1,1
		if rs.recordcount=0 then 
		%>
        <table width="370" border="0" cellspacing="0" cellpadding="5" align="center">
          <tr>
            <td align=center>暂无推荐精品</td>
          </tr>
        </table>
        <%
		else
		%>

		<table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
        <%
		'dim jpi
		jpi=0
		while not rs.eof
		jpi=jpi+1
		if jpi >4 then 
		jpi=1
		end if
		if jpi=1 then response.Write("<tr>")
		response.Write("<td width='25%'>")
		%>
		
        <!--#include file="zwxm-shangping_j.asp"-->		
        <%
		response.Write("</td>")
		if jpi=4 then response.Write("</tr><tr><td colspan='4' height=1 background='images/bj_x1.gif'></td></tr>")
		rs.movenext
		wend
		if jpi<4 then 
			for jpj=jpi+1 to 4
				response.Write("<td width='25%'><table width='100%'><tr><td><img src='images/zwxblank.gif'  width='75' border='0' height='75'></td></tr></table></td>")
			next
			response.Write("</tr><tr><td colspan='4' height=1 background='images/bj_x1.gif'></td></tr>")
		end if
		response.Write("</table>")		
		end if
		rs.close
		set rs=nothing
		%>
		 
		 </td></tr> 
        </table>     
       </div>
      </td>
  </tr>
</table>
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>         
    <td> 
      <div align="center"></div>          
      <!--#include file="service1.asp"-->
      <!--#include file="copyright.asp"-->
    </td>
  </tr>
</table>
</body>
</html>