⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index1.asp

📁 电子商务购物系统
💻 ASP
字号:
<!--#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="css.css" rel="stylesheet" type="text/css">
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">-->
<%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
%>
<%dim gg1,gg2,gg3,gg4,gg1url,gg2url,gg3url,gg4url
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_gg",conn,1,1
gg1=trim(rs("1601"))
gg1url=trim(rs("1601url"))
gg2=trim(rs("1602"))
gg2url=trim(rs("1602url"))
gg3=trim(rs("1603"))
gg3url=trim(rs("1603url"))
gg4=trim(rs("1604"))
gg4url=trim(rs("1604url"))
rs.close
set rs=nothing
%>
<!--#include file="webtop.asp"-->
<table width="760" border="0" cellspacing="0" cellpadding="0" align="center"  class="table-zuoyou">
  <tr> 
    <td valign="top" width="180"> 
      <%if request.cookies("snsn")("username")="" then%>
      <!--#include file="userinfo.asp"-->
      <%end if%>
      <!--#include file="searchinfo.asp"-->
      <!--#include file="gouwucheinfo.asp"-->
      <!--#include file="fenleiinfo.asp"-->
      <table width="100%" class="table-shangxia" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="23" bgcolor="f1f1f1"> 友情广告</td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td> <br>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" >
              <tr> 
                <td height="65" width="181"> 
                  <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr> 
                      <td> 
                        <div align="right"><a href=<%=dadaurl%> target="_blank"><img src=<%=dada%>  border="0" width="166" height="55"></a></div>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr> 
                <td height="65" width="181"> 
                  <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr> 
                      <td> 
                        <div align="right"><a href=<%=xiao1url%> target="_blank"><img src=<%=xiao1%> border="0" width="166" height="55"></a></div>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <td height="65" width="181">
                  <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
                    <tr> 
                      <td> 
                        <div align="right"><a href=<%=xiao2url%> target="_blank"><img src=<%=xiao2%>  border="0" width="166" height="55"></a></div>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td>&nbsp;</td>
        </tr>
      </table>
    </td>
    <td width="400" valign="top" bgcolor="#FFFFFF" bordercolor="#FFFFFF" class="table-zuoyou"> 
      <div align="center"> 
        <table width="100%" class="table-shangxia" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td height="23">  
              <!--#include file="xinxi.asp"-->
            </td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
          <tr> 
            <td width="199" valign="top"> 
              <table width="100%%" border="0" cellspacing="0" cellpadding="3">
                <tr> 
                  <td><b><font color="#FF9900">新品上架&gt;&gt;&gt;</font></b></td>
                </tr>
                <%set rs=server.createobject("adodb.recordset")
						  rs.open "select Top 6 * from shop_books where newsbook=1 order by bookid desc",conn,1,1
						  if rs.recordcount=0 then 
						  response.write "<tr><td> 暂无新品</td></tr>"
						  else
						  while not rs.eof
						  %>
                <tr> 
                  <td> <a href=list.asp?id=<%=rs("bookid")%>> 
                    <%if len(trim(rs("bookname")))>13 then
	response.write left(trim(rs("bookname")),13)&"...."
	else
	response.write trim(rs("bookname"))
	end if%>
                    </a></td>
                </tr>
                <%
						  rs.movenext
						  wend
						  end if
						  rs.close
						  %>
              </table>
            </td>
            <td width="171" valign="top"> 
              <table width="100%" border="0" cellspacing="0" cellpadding="3">
                <tr> 
                  <td><b><font color="#FF9900">推荐特价&gt;&gt;&gt;</font></b></td>
                </tr>
                <%set rs=server.createobject("adodb.recordset")
						  rs.open "select Top 1 * 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> 
                  <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%>
                    </a>
                    <table width="150" border="0" cellspacing="0" cellpadding="0" height="150">
                      <tr>
                        <td background="images/xt.gif">
                          <div align="center"><a href=list.asp?id=<%=rs("bookid")%>><img src="<%=trim(rs("zhuang"))%>" width=115 border=0 height="115" alt="<%=trim(rs("bookname"))%>"></a></div>
                        </td>
                      </tr>
                    </table>
                    <a href=list.asp?id=<%=rs("bookid")%>> </a> 
                    <%end if%>
                  </td>
                </tr>
                <%
						  end if
						  rs.close
						  %>
              </table>
            </td>
          </tr>
        </table>
        <table width="100%" class="table-shangxia" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td height="23" bgcolor="f2f2f2"> 精品热卖 </td>
          </tr>
        </table>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
        </table>
        <%set rs=server.createobject("adodb.recordset")
		rs.open "select Top 5 * 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
		while not rs.eof
		%>
        <!--#include file="shangping_j.asp"-->
        <%rs.movenext
		wend
		end if
		set rs=server.createobject("adodb.recordset")
		rs.open "select Top 6 * from zhuanti  order by newsid 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="0">
        </table>
        <table width="100%" class="table-xia" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td height="23" bgcolor="f2f2f2"> 商品专题</td>
          </tr>
        </table>
        <table width="370" border="0" cellspacing="0" cellpadding="5" align="center">
          <%
			while not rs.eof
			%>
          <tr> 
            <td align=center height=22 width="21" class="table-xia">·</td>
            <td align=left height=22 width="216" class="table-xia"><a href=listzt.asp?id=<%=rs("newsid")%>><%=replace(trim(rs("title")),"<br>","")%></a></td>
            <td align=left height=22 width="103" class="table-xia"><%=year(rs("updatetime"))&"."&month(rs("updatetime"))&"."&day(rs("updatetime"))%></td>
          </tr>
          <%
			rs.movenext
		    wend
			%>
        </table>
        <%
		end if
		rs.close
		set rs=nothing
		%>
      </div>
    </td>
    <td width="180" valign="top"> 
      <!--#include file="newsinfo.asp"-->
      <!--#include file="gonggaoinfo.asp"-->
      <table width="100%" class="table-shangxia" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="23" bgcolor="f1f1f1"> 友情广告</td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td> <br>
            <table width="178" border="0" cellspacing="0" cellpadding="0" height="68">
              <tr> 
                <td height="65" width="181"> 
                  <table width="96%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td> 
                        <div align="right"><a href=<%=xiao3url%> target="_blank"><img src=<%=xiao3%>  border="0" width="166" height="55"></a></div>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr> 
                <td height="65"> 
                  <table width="96%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td> 
                        <div align="right"><a href="<%=tx1url%>" target=_blank><img src="<%=tx1%>" border="0" width="166" height="55"></a></div>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <br>
          </td>
        </tr>
      </table>
      <!--#include file="xiaoshouinfo.asp"-->
      <table width="100%" class="table-shangxia" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="23" bgcolor="f1f1f1"> 友情广告</td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td> <br>
            <table width="178" border="0" cellspacing="0" cellpadding="0" height="68">
              <tr> 
                <td height="65">
                  <table width="96%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td> 
                        <div align="right"><a href="<%=tx2url%>" target=_blank><img src="<%=tx2%>" width="166" height="55" border="0"></a></div>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr> 
                <td height="65"> 
                  <table width="96%" border="0" cellspacing="0" cellpadding="0">
                    <tr> 
                      <td> 
                        <div align="right"><a href="<%=tx3url%>" target=_blank><img src="<%=tx3%>" width="166" height="55" border="0"></a></div>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            <br>
          </td>
        </tr>
      </table>
      <!--#include file="toupiaoinfo.asp"-->
    </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>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -