<%dbdns="../"%>
<!--#include file="../inc/conn.asp"-->
<%
'sca.asp?aid=分类&bid=条数&cid=每条字数&did=要不要前两字&eid=时间&fid=推荐
'aid  0其它 1合作 2采购 3供应 4代理 5招商
'did  0不要 1要
'cid  一个中文字算两个字符
'eid  0不要 1要
'fid  0为不推荐 1为推荐

aid=int(request.querystring("aid"))
bid=int(request.querystring("bid"))
cid=int(request.querystring("cid"))
did=int(request.querystring("did"))
eid=int(request.querystring("eid"))
fid=int(request.querystring("fid"))
if aid=0 then a="[<a href=sca_tlist.asp?scasort="&aid&" target=_blank>其它</a>]"
if aid=1 then a="[<a href=sca_tlist.asp?scasort="&aid&" target=_blank>合作</a>]"
if aid=2 then a="[<a href=sca_tlist.asp?scasort="&aid&" target=_blank>求</a>]"
if aid=3 then a="[<a href=sca_tlist.asp?scasort="&aid&" target=_blank>供</a>]"
if aid=4 then a="[<a href=sca_tlist.asp?scasort="&aid&" target=_blank>代理</a>]"
if aid=5 then a="[<a href=sca_tlist.asp?scasort="&aid&" target=_blank>招商</a>]"
if did=1 then d=a else d="·"
if fid=1 then f=" and dlxf_key3=1"

scaview="<p style=""line-height:150%"">"
set rs=server.createobject("adodb.recordset")
sql="select top "&bid&" * from dlxf_sca where dlxf_key=1 and dlxf_key1=1 and dlxf_key2=1"&f&" and dlxf_scasort="&aid&" order by dlxf_id desc"
rs.open sql,conn,1,1
do while not rs.eof
scatitle=trim(rs("dlxf_scatitle"))
if eid=1 then newdate=" <font color=999999>("&month(rs("dlxf_begindate"))&"-"&day(rs("dlxf_begindate"))&")</font>" else newdate=""

scaview=scaview&d&" <a href="&application("cityurl")&"sca_view.asp?id="&rs("dlxf_id")&" target=_blank>"&LeftT(scatitle,cid)&"</a>"&newdate&"<br>"

rs.movenext
loop
rs.close%>
document.write('<%=scaview%>')