<!--#include file="system/conn.asp"--><!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta name="keywords" content="<%=keywords%>" />
<meta name="description" content="<%=description%>" />
<title><%=indexwebname%></title>
<link rel="stylesheet" type="text/css" href="s/c.css?ver=0330" />
<script type="text/javascript" src="j/myfocus-2.0.4.min.js"></script>
<script type="text/javascript" src="j/jq.js"></script>
<script type="text/javascript" src="j/fb/fb.js?v=2.1.1"></script>
<link rel="stylesheet" type="text/css" href="j/fb/fb.css?v=2.1.1" />
<script type="text/javascript" src="j/js.js"></script>
</head>
<body>
<div id="container">
<%subTop%>
<div class="wrap_content home">
	<div class="banner" id="banner"><%
Set Rs=Server.CreateObject("ADODB.RecordSet")
Rs.Open "Select top 1 * From gg",Conn,1,1
If Not Rs.Bof And Not Rs.Eof Then
	index_ad1=Rs("index_ad1")
	index_ad1url=Rs("index_ad1url")
	index_ad1title=Rs("index_ad1title")
	index_ad2=Rs("index_ad2")
	index_ad2url=Rs("index_ad2url")
	index_ad2title=Rs("index_ad2title")
	index_ad3=Rs("index_ad3")
	index_ad3url=Rs("index_ad3url")
	index_ad3title=Rs("index_ad3title")


	indexc_ad1=Rs("indexc_ad1")
	indexc_ad1url=Rs("indexc_ad1url")
	indexc_ad1title=Rs("indexc_ad1title")
	indexc_ad2=Rs("indexc_ad2")
	indexc_ad2url=Rs("indexc_ad2url")
	indexc_ad2title=Rs("indexc_ad2title")
	indexc_ad3=Rs("indexc_ad3")
	indexc_ad3url=Rs("indexc_ad3url")
	indexc_ad3title=Rs("indexc_ad3title")
End If
Rs.Close
%>
		<div class="pic">
		<ul>
			<%If index_ad1<>"" Then%><li><a href="<%=index_ad1url%>" title="<%=index_ad1title%>" target="_blank"><img src="<%=index_ad1%>" alt="<%=index_ad1title%>" text="<%=index_ad1title%>" /></a></li><%End If%>
			<%If index_ad2<>"" Then%><li><a href="<%=index_ad2url%>" title="<%=index_ad2title%>" target="_blank"><img src="<%=index_ad2%>" alt="<%=index_ad2title%>" text="<%=index_ad2title%>" /></a></li><%End If%>
			<%If index_ad3<>"" Then%><li><a href="<%=index_ad3url%>" title="<%=index_ad3title%>" target="_blank"><img src="<%=index_ad3%>" alt="<%=index_ad3title%>" text="<%=index_ad3title%>" /></a></li><%End If%>
		</ul>
		</div>
	</div>
	<ul class="hp">
		<%If indexc_ad1<>"" Then%><li><img src="<%=indexc_ad1%>" alt="<%=indexc_ad1title%>" /><p><a href="<%=indexc_ad1url%>" target="_blank"><%=indexc_ad1title%></a></p></li><%End If%>
		<%If indexc_ad2<>"" Then%><li><img src="<%=indexc_ad2%>" alt="<%=indexc_ad2title%>" /><p><a href="<%=indexc_ad2url%>" target="_blank"><%=indexc_ad2title%></a></p></li><%End If%>
		<%If indexc_ad3<>"" Then%><li><img src="<%=indexc_ad3%>" alt="<%=indexc_ad3title%>" /><p><a href="<%=indexc_ad3url%>" target="_blank"><%=indexc_ad3title%></a></p></li><%End If%>
	</ul>
	<div class="pt">New Products</div>
	<ul class="pl"><%
Rs.Open "SELECT TOP 8 id,cpmc,cptd,cpxh,cpslt,(SELECT gjtb FROM gj WHERE gj.id=cp.gjid) AS gjtb FROM cp WHERE cpstate>0 AND syxs>0 ORDER BY sypx Desc,cpord Desc,id Desc",Conn,1,1
Do While Not Rs.Bof And Not Rs.Eof
id=Rs("id"):cpmc=Rs("cpmc"):cptd=Rs("cptd"):cpxh=Rs("cpxh"):cpslt=Rs("cpslt"):gjtb=Rs("gjtb")
%>
		<li>
			<a href="p.asp?id=<%=id%>" title="<%=cpmc%>" class="i"><img src="<%=cpslt%>" alt="<%=cpmc%>图片" /></a>
			<a href="p.asp?id=<%=id%>" title="<%=cpmc%>详细信息" class="t"><%If gjtb<>"" Then%><img src="<%=gjtb%>" align="absmiddle" /><%End If%><%=cpmc%></a>
			<p><%=cptd%></p>
			<span><%=cpxh%></span>
			<a href="xjd.asp?id=<%=id%>" class="xjd">马上询价</a>
		</li><%
Rs.MoveNext
Loop
Rs.Close
%>
	</ul>
	<div class="clear"></div>
	
	<div class="lks"><div class="t">友情链接</div><%
Rs.Open "Select lname,lurl From links Where lstate>0 Order By lord Desc,id",Conn,1,1
linenum = 8
i=1
If Not Rs.Bof And Not Rs.Eof Then

Do While Not Rs.Bof And Not Rs.Eof
%><a href="<%=Rs(1)%>" target="_blank"><%=Rs(0)%></a><%
If i mod linenum = 0 Then
If i <> Rs.RecordCount Then Response.Write "<br />"
Else
	Response.Write "<span>|</span>"
End If
i = i+1
Rs.MoveNext
Loop
End if
Rs.Close
%></div>

	</div>
</div>
<%subBottom%>
</div>
</body>
</html><%Conn.Close:Set Conn=Nothing%>