%set s = Server.CreateObject("shuziren_" & Application("about") & ".yz")
'//广告,s1=位置,s2=宽,s3=高
sub home_gg(s1,s2,s3)
set rs= conn.execute("select tp,url,lx from tp where lbid=6 and wz="&clng(s1)&" and zt=0 order by id desc")
if not rs.eof then
if rs("lx")<>0 then
Response.Write("")
else
Response.Write("")
end if
end if
rs.close
set rs=nothing
end sub
'//你问我答
sub home_zhidao()
Response.Write "
"
set rs= conn.execute("select top 26 id,bt,html from zhidao where zt=1 and lx in(0,1) order by id desc")
do while not rs.eof
Response.Write "
"
rs.movenext
loop
rs.close
set rs=nothing
Response.Write "
"
end sub
'//信息快报
sub home_kb()
Response.Write "
"
set rs = conn.execute("select top 6 bt,bt_b,bt_color,html from news where lbid=30 and zt=1 order by id desc")
do while not rs.eof
bt=rs("bt")
If rs("bt_b") <> 0 Then bt = "" & bt & ""
If rs("bt_color") <> "" Then bt = "" & bt & ""
Response.Write("
")
rs.movenext
loop
rs.close
set rs=nothing
Response.Write "
"
end sub
'//信息咨讯
sub home_news()
Response.Write "
"
set rs = conn.execute("select top 9 bt,bt_b,bt_color,html,sj from news where lbid in(1,2,3,4,5,6) and zt=1 order by id desc")
do while not rs.eof
bt=s.xs_left(rs("bt"),48)
If rs("bt_b") <> 0 Then bt = "" & bt & ""
If rs("bt_color") <> "" Then bt = "" & bt & ""
Response.Write("
")
rs.movenext
loop
rs.close
set rs=nothing
Response.Write "
"
end sub
'//图文头条
sub home_news_img()
set rs = conn.execute("select top 2 tp,bt,html from news where lbid in(1,2,3,4,5,6) and zt=1 and lx=1 order by id desc")
do while not rs.eof
Response.Write "
"
rs.movenext
loop
rs.close
set rs=nothing
Response.Write "
"
end sub
'//分类信息
sub home_classad(lbid,c1,c2,c3) '类别ID,c1=显示条数,C2=列,c3=字符
Response.Write "
"
set rs = conn.execute("select top "&clng(c1)&" bt,html from classad where lbid="&clng(lbid)&" and zt<>0 order by id desc")
i=1
do while not rs.eof
Response.Write "
"
if i"
end if
i=i+1
rs.movenext
loop
rs.close
set rs=nothing
Response.Write "
"
end sub
'//小广告位,参数为位置,中部小广告为0
sub home_gg_x(canshu)
Response.Write "
"
set gg= conn.execute("select top 6 tp,url from tp where lbid=6 and wz="&clng(canshu)&" and zt=0 order by id desc")
if not gg.eof then
do while not gg.eof
Response.Write("
")
gg.movenext
loop
end if
gg.close
set gg=nothing
Response.Write "
"
end sub
'//最新推荐产品
sub home_shop_tui()
'-----------------------------------------------------
'商城首页推荐产品调用子程序
Response.Write "
"
set rs = conn.execute("select top 8 id,mc,xt from tui_chanpin where lbid=0 order by tui_id desc")
if not rs.eof then
i=1
do while not rs.eof
Response.Write "
"
rs.movenext
loop
rs.close
set rs=nothing
Response.Write "
"
end sub
'//最新产品
sub home_cp()
Response.Write "
"
set rs = conn.execute("select top 20 id,mc,jg2 from chanpin where id in (select max(id) from chanpin group by userid) and cang=0 and tui=0 order by id desc")
i=1
do while not rs.eof
Response.Write "
")
rs.movenext
loop
rs.close
set rs=nothing
Response.Write "
"
end sub
'//blog
sub home_blog()
Response.Write "
"
set rs = conn.execute("select top 20 id,huiyuan,bt,b_id from blog where zt=1 and tui=1 and cang=0 order by id desc")
i=1
do while not rs.eof
Response.Write "