<!--#include file="conn.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title><%=application("sitename")%></title>
<link href="i.css" type=text/css rel=stylesheet>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	background-image: url(images/bg88.jpg);
	margin-bottom: 0px;
	margin-right: 0px;
}
.style1 {font-size: 14px}
.style11 {
	font-size: 14px;
	color: #990000;
	font-weight: bold;
}
.style12 {color: #990000}
.style13 {color: #333333}
.style15 {font-size: 14px; color: #669933; font-weight: bold; }
-->
</style></head>

<body>
<!-- #include file="head.asp" -->
<TABLE width="960" border=0 align="center" cellPadding=0 cellSpacing=0 bgcolor="#FFFFFF">
  <tr>
    <td> 

    <table width="960" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr>
          <td width="300" valign="top"> 

		  <TABLE width="99%" border=0 align=center cellPadding=0 cellSpacing=0 background="images/bg4.gif">
              <TBODY>
                <TR> 
                  <TD width=156 height=28 background=images/hotnewpro.gif>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span class="style11">促销商品</span></TD>
                  <TD>&nbsp;</TD>
                  <TD width=40>
				  <a href="product_cx.asp"><IMG height=14 src="images/more.gif" width=38 align=absMiddle border=0></a></TD>
                </TR>
              </TBODY>
            </TABLE>

	
			<TABLE width="99%" border=0 align="center" cellPadding=1 cellSpacing=1  >
			<tbody>
					  <TR> 
						<%'促销商品
			sql_new="select top 6 pkid,model,productname,smallpicpath,price1,price"&session("customkind")&",pipai from view_product where good='1' and updown='1' order by goodtime desc"
			
			set rs_new=server.createobject("adodb.recordset")
			rs_new.open sql_new,conn,1,1
			if rs_new.bof or rs_new.eof then
				response.write "<td>此栏暂时没有商品记录！</td>"
			else
	i=1
	do while not rs_new.eof
	pkid=rs_new("pkid")
	model=rs_new("model")
	productname=rs_new("productname")
	smallpicpath=rs_new("smallpicpath")
	price1=rs_new("price1")
	price2=rs_new("price"&session("customkind"))
	pipai=rs_new("pipai")
%>
                            <TD vAlign=top align=middle width=146 height=120><div align="center"> 
                                <A href="show.asp?pkid=<%=pkid%>"> <IMG 
                        src="product/<%=smallpicpath%>" 
                        width='<%=s_picwidth%>' height='<%=s_picheight%>' border="0" class=img1></A> </div>
                              <DIV align="center" style="MARGIN-TOP: 5px; WIDTH: 130px"> 
                                <A class=font_link href="show.asp?pkid=<%=pkid%>" 
                        target=_blank><%=productname%></A></DIV>
							<DIV align="center"><font class='nowprice'>￥<%=price2%></font>&nbsp;&nbsp;<FONT class='oldprice'><del>￥<%=price1%></del></FONT></DIV>
                            </TD>
                            <%
	if i=2 then
		response.write "</tr><tr><td height=10>&nbsp;</td></tr><tr>"
		i=1
	else
		i=i+1
	end if
					rs_new.movenext
					loop
			end if
			rs_new.close
			set rs_new=nothing
			%>
					  </TR>
					</TBODY>
				  </TABLE>
	
	</td>
    <td width="660" valign="top">
	
            <TABLE class=text width="98%" align=center cellSpacing=0 cellPadding=0 border=0>
              <TBODY>
                <TR> 
                  <TD vAlign=bottom height=32><IMG height=19 src="images/dian04.gif" width=10 align=absMiddle> <STRONG>&nbsp;<FONT color=#ff6600>
<%
sql3="select l_title from e_left where l_id="&request.QueryString("l_id")&""
set rs3=server.CreateObject("adodb.recordset")
rs3.open sql3,conn,1,1

if rs3.bof or rs3.eof then
else
	l_title=rs3("l_title")
	response.write l_title
end if
rs3.close
set rs3=nothing
%>
			</FONT></STRONG></TD>
                </TR>
                <TR> 
                  <TD vAlign=top height=25> <DIV align=left><IMG height=25 src="images/line.gif" width=457></DIV></TD>
                </TR>
                <TR> 
                  <TD height="320" vAlign=top>
                    <%

sql3="select * from e_contect where c_parent2="&request.QueryString("l_id")&" order by c_num desc,c_addtime desc"


set rs3=server.CreateObject("adodb.recordset")
rs3.open sql3,conn,1,1

if rs3.bof or rs3.eof then

else
	rs3.pagesize=25
	rs3.absolutepage=1
	if request("page")<>"" then rs3.absolutepage=request("page")
	rowcount =rs3.pagesize
	
	response.write "<table border=0  cellpadding='0' cellspacing='0' width='100%' align=center>"
		
		do while not rs3.eof and rowcount>0
		'set c_parent2=rs3("c_parent2")
		set c_id=rs3("c_id")
		set c_title=rs3("c_title")
		set c_addtime=rs3("c_addtime")
		set detail=rs3("detail")
		'c_addtime=c_addtime
		if detail="1" then
			response.Write "<tr><td height=25 width='3%' align=center><img src=images/king_822.jpg></td>"
			response.Write "<td width='80%'><a href=show_all.asp?pkid="&pkid&"&c_id="&c_id &">"&c_title &"</a></td>"
			response.Write "<td width='17%' align=center><font color=#666666>("&c_addtime&")</font></td></tr>"
			response.Write "<tr><td colspan=3 background=images/newline.gif height=2></td></tr>"
		else
			response.Write "<tr><td height=25 width='3%' align=center><img src=images/dian02.gif></td>"
			response.Write "<td width='80%'><a href=#>"&c_title &"</a></td>"
			response.Write "<td width='17%' align=center><font color=#666666>("&c_addtime&")</font></td></tr>"
			response.Write "<tr><td colspan=3 background=images/newline.gif height=2></td></tr>"

		end if
		rs3.movenext
		rowcount=rowcount-1
		loop
		
		response.write "<tr><td colspan=3 height=8></td></tr><tr><td colspan=3 align=right>每页25条 页码："
		 nowpage=request("page")
		if nowpage="" then nowpage=1
		for i=1 to rs3.pagecount 
		if cint(nowpage)=i then
			response.write "<font color=#ff0000>[<b>" & i & "</b>]</font>&nbsp;"
		else
			response.write "<a href='news.asp?page=" & i & "&l_id=" & request("l_id") & "&c_p="&request("c_p")&"'>[<b>" & i & "</b>]</a>&nbsp;"
		end if
		next 
		response.write "</td></tr>"
	response.write "</table>"
end if
rs3.close
set rs3=nothing

%>
                  </TD>
                </TR>
                <TR> 
                  <TD height="25">&nbsp;</TD>
                </TR>
              </TBODY>
            </TABLE>
            
          </td>
  </tr>
</table>
<!-- #include file="foot.asp" -->

    </td>
  </tr>

<TR><TD>

</TD></TR>
</table>

</body>
</html>
<%
conn.close
set conn=nothing
%>


