
<SCRIPT LANGUAGE="JavaScript">
<!--
function check()
{
   if(checkspace(document.searchform.searchkey.value !='请输入关键字'))  {
	document.searchform.searchkey.focus();
	alert("请输入查讯关键字！");
	return false;
  }
  if(checkspace(document.searchform.searchkey.value))  {
	document.searchform.searchkey.focus();
	alert("请输入查讯关键字！");
	return false;
  }
   document.searchform.submit();
}
function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
//-->
</script>
<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>
<script language="JavaScript">
function about()
{
window.showModalDialog("about.htm","","dialogWidth:420px;dialogHeight:240px;scroll:no;status:no;help:no");
}
</script>

<body bgcolor="#FFFFFF">
<div align="center"> 
  <table cellspacing=0 cellpadding=0 width=770 background="images/index1.gif" border=0 height="102">
      <tr> 
        <td bgcolor="#efefef" align=center height="79"> 
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td> 
                <div align="center"></div>
                <div align="center"><img src="<%=webbanner%>" height="120" width="770"></div>
                </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <%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
%>
    <table cellspacing=1 cellpadding=2 width=770 border=0>
      <tr bgcolor="#336699"> 
        
      <td align=center width="8%" height="20"><a href="index.asp"><font color="#FFFFFF">首页</font></a></td>
        
      <td align=center height="20" width="8%"><a href="myuser.asp?action=shoucang"><font color="#FFFFFF">收藏夹</font></a></td>
      <td align=center height="20" width="8%"><span style="font-size:12px"><a href="newshop.asp" class="a1"><font color="#FFFFFF">新品上架</font></a></span></td>
      <td align=center height="20" width="8%"><span style="font-size:12px"><a href="class.asp" class="a1"><font color="#FFFFFF">商品分类</font></a></span></td>
      <td align=center height="20" width="8%"><a href="#" class="a1"><font color="#FFFFFF">商品排行</font></a></td>
      <td align=center height="20" width="8%"><a href="tejia.asp" class="a1"><font color="#FFFFFF">特价商品</font></a></td>
      <td align=center height="20" width="8%"><a href="fk.asp" class="a1"><font color="#FFFFFF">留言本</font></a></td>
      <td align=center height="20" width="8%"><span style="font-size:12px"><a href="logout.asp" class="a2"><font color="#FFFFFF">注销</font></a></span></td>
      <td align=center height="20" width="8%"><a href="#" class="a1"><font color="#FFFFFF">关于系统</font></a></td>
      <td align=center height="20" width="8%">&nbsp;</td>
        
      <td align=center height="20" width="8%">&nbsp;</td>
        
      <td align=center height="20" width="8%"><font color="#FFFFFF">&nbsp;</font></td>
      </tr>
    </table>
    <table cellspacing=0 cellpadding=0 width=770 border=0>
      <tr> 
        <td bgcolor="#75A3D0" align=center height="25"> 
          <table width="90%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td> 
                <%
		  '//大类查讯
		  'dim ii,jj
		  'ii=1
		  set rs=server.CreateObject("adodb.recordset")
		  rs.open "select anclass,anclassid from shop_anclass",conn,1,1
		  'jj=rs.recordcount
		  do while not rs.eof
		  response.write "<A href=javascript:turnX('r"&rs("anclassid")&"')>"&trim(rs("anclass"))&"</A> | "
		  'if ii=jj then
			'response.Write "<br>"
			'end if
		  rs.movenext
		  loop
		  rs.close
		  set rs=nothing
		  response.write "<BR>"
		  '二次查讯大类
		  set rs=server.CreateObject("adodb.recordset")
		  rs.open "select anclass,anclassid from shop_anclass",conn,1,1
		  do while not rs.eof
		   response.write "<DIV id=r"&rs("anclassid")&" style='DISPLAY: none'>&nbsp;&nbsp;&nbsp;<font color=red>"&trim(rs("anclass"))&"</font>&nbsp;&nbsp;"
			'//查讯小类
			dim rs2
			set rs2=server.CreateObject("adodb.recordset")
			rs2.open "select nclass,nclassid from shop_nclass where anclassid="&rs("anclassid")&" order by nclassidorder",conn,1,1
			do while not rs2.eof
			response.write "<A href=class.asp?aid="&rs("anclassid")&"&nid="&rs2("nclassid")&">"&trim(rs2("nclass"))&"</A> | " 
             rs2.movenext
			 loop
			 rs2.close
			 set rs2=nothing
			 response.write "</DIV><DIV id=r0101 style='DISPLAY: none'></DIV>"
			rs.movenext
			'ii=ii+1
			loop
				rs.close
				set rs=nothing%>
                <div id=currentLocation></div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
    <table cellspacing=0 cellpadding=0 width=770 background="images/index1.gif" border=0>
      <tr> 
        <td bgcolor="#C5D8EB" align=center height="25" ><span style="font-size:12px"></span> 
          <table width="97%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
              <td width="56%" height="21"><span style="font-size:12px"><font color=#333333><font color="#FFFFFF"> 
                
                </font></font><font color="#FF6600"><font color="#000000">欢迎你的到来 
                请使用域名:http://www.dlfm1057.com 访问本站</font> </font> <font color=#333333>&nbsp;&nbsp;</font> 
                <font color=#333333> <font color="#FFFFFF"> </font></font></span></td>
              
            <td width="44%">
              <table border="0" align="center" cellpadding="0" cellspacing="0" width="100%">
                <tr> 
                  <form name="searchform" method="post" action="research.asp" >
                    <td> 
                      <div align="center"> 
                        <select name="action"style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; FONT: 12px Verdana,Geneva,sans-serif; BORDER-LEFT: #ffffff 1px groove; WIDTH: 80px; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 18px; BACKGROUND-COLOR: #336699" id="action">
                          <option value="1" selected>商品名称</option>
                          <option value="2">商品名称</option>
                          <option value="3">商品简介</option>
                          <option value="4">商品厂商</option>
                        </select>
                        <input name="searchkey" type="text" size="16" value="关键字" style="BORDER-RIGHT: #ffffff 1px groove; BORDER-TOP: #ffffff 1px groove; FONT: 12px Verdana,Geneva,sans-serif; BORDER-LEFT: #ffffff 1px groove; WIDTH: 70px; COLOR: #000000; BORDER-BOTTOM: #ffffff 1px groove; HEIGHT: 19px; BACKGROUND-COLOR: #336699"onFocus="this.value=''">
                        <input style="height:20; font:9pt; BORDER-BOTTOM: #cccccc 1px groove; BORDER-RIGHT: #cccccc 1px groove; BACKGROUND-COLOR: #336699" type="submit" name="Submit" value="立即查询" onClick="return check();" >
                        <input style="height:20; font:9pt; BORDER-BOTTOM: #cccccc 1px groove; BORDER-RIGHT: #cccccc 1px groove; BACKGROUND-COLOR: #336699" type="button" name="Submit2" value="高级查询" onClick="location.href='search.asp'">
                      </div>
                      <div align="center"></div>
                    </td>
                  </form>
                </tr>
              </table>
            </td>
            </tr>
          </table>
        </td>
      </tr>
    </table>
  
</div>
<SCRIPT language=JavaScript>
	var currentCategory =new String("");
	
	//方法turnX的参数说明：
	//cate：当前分类的分类号
	function turnX(cate)
	{
		document.all("currentLocation").style.display="none";
		if(currentCategory != "")
		{
			document.all(currentCategory).style.display="none";
		}
		currentCategory = cate;
		document.all(currentCategory).style.display="";
		return;
	}
</SCRIPT>
