home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
221.214.14.186
/
221.214.14.186.tar
/
221.214.14.186
/
wh
/
qim
/
article.asp
< prev
next >
Wrap
Text File
|
2006-06-01
|
8KB
|
219 lines
<%
'==================================
'=╬─ ╝■ ├√ú║article.asp
'=╩╩╙├░µ▒╛ú║FeitecCMS AC V1.3 Free
'=╣ª ─▄ú║╛¡╡Σ╜╠│╠
'=╫≈ ╒▀ú║╙Ω│╟[From to FeitecStudio]
'=╚╒ ╞┌ú║2006-2-19 18:09
'=░µ ╚¿ú║http://www.feitec.com/
'=╝╝╩⌡╠╓┬█ú║6602510íó14040543ú¿╨┬╩╓╚║ú⌐
'==================================
%>
<!--#include file="Ft_config.asp"-->
<!--#include file="Ft_conn.asp"-->
<!--#include file="Ft_format.asp"-->
<!--#include file="Ft_lib.asp"-->
<%
sub_title="╛¡╡Σ╜╠│╠"
call head()
call body()
call foot()
sub body()
dim totalart,currentpage,totalpages,i,cat_id,class_id,page,flname
'╔Φ╓├╬─╒┬╧╡═│╬¬─¼╚╧╖╓╥│┤≤╨í╡─▒╢┬╩
pagenum=pagenum*2
if request.querystring("cat_id")<>"" then
cat_id=checksql("╬─╒┬╖╓└α",request.querystring("cat_id"),0,4)
sql="select cat_id from Ft_art_cat where cat_id="&cat_id
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.redirect("showerr.asp?errmsg=<br><li>├╗╙╨┤╦╖╓└α╗≥╕├╖╓└α╥╤╔╛│²úí</li>")
response.end
end if
rs.close
set rs=nothing
end if
if request.querystring("class_id")<>"" then
class_id=checksql("╬─╒┬╫╙└α",request.querystring("class_id"),0,4)
sql="select class_id from Ft_art_class where class_id="&class_id
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.redirect("showerr.asp?errmsg=<br><li>├╗╙╨┤╦╫╙└α╗≥╕├╫╙└α╥╤╔╛│²úí</li>")
response.end
end if
rs.close
set rs=nothing
end if
if request.querystring("page")<>"" then
page=checksql("╬─╒┬╖╓╥│",request.querystring("page"),0,8)
end if
'==================================
'=╣ª ─▄ú║╚í│÷╡▒╟░─ú░σ
'==================================
StrTemp=split(mb_art,"|||@@@|||")
dim Ft_mbstr
Ft_mbstr=replace(StrTemp(0),"{left_pub}",left_pub())
Ft_mbstr=replace(Ft_mbstr,"$hotnum$",hotnum)
set rs3=server.createobject("adodb.recordset")
if request.querystring("cat_id")<>"" then
sql="select top "&hotnum&" art_id,art_title,art_count,cat_id from Ft_art where cat_id="&cat_id&" order by art_count DESC,art_date DESC"
else
sql="select top "&hotnum&" art_id,art_title,art_count,cat_id from Ft_art order by art_count DESC,art_date DESC"
end if
rs3.open sql,conn,1,1
do while not rs3.eof
topart=topart+"<img src="""&signimgpath&"/biao.gif"" border=""0""> <a href=""showart.asp?id="&rs3("art_id")&""" title=""╙╬└└┤╬╩²ú║"&rs3("art_count")&""">"&rs3("art_title")&"</a><br>"
rs3.movenext
loop
if rs3.eof and rs3.bof then
topart="<p align=""center"" class=""disable_font"">├╗╙╨╧α╣╪╬─╒┬</p>"
end if
rs3.close
set rs3=nothing
'╫≤└╕╩Σ│÷
Ft_mbstr=replace(Ft_mbstr,"$topart$",topart)
if cat_id<>"" and request.querystring("class_id")="" then
sql="select * from Ft_art where cat_id="&cat_id&" order by istop=1,art_date desc"
elseif class_id<>"" then
sql="select * from Ft_art where class_id="&class_id&" order by istop=1,art_date desc"
else
sql="select * from Ft_art order by istop=1,art_date DESC"
end if
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
set rscat = server.createobject("adodb.recordset")
sqlcat="select * from Ft_art_cat"
rscat.open sqlcat,conn,1,1
do while not rscat.eof
colparam1=rscat("cat_id")
artcat="<tr><td width=""20%""><a href=""?cat_id="&rscat("cat_id")&"""> <strong>í╛"&rscat("cat_name")&"í┐</strong></a></td><td width=""*"">"
set rsclass = server.createobject("adodb.recordset")
sqlclass="select * from Ft_art_class where cat_id=" &colparam1& ""
rsclass.open sqlclass,conn,1,1
if not(rsclass.bof and rsclass.eof) then
do while not rsclass.eof
artclass="<a href=""?cat_id="&rsclass("cat_id")&"&class_id="&rsclass("class_id")&""">"&rsclass("class_name")&"</a> "
artclass2=artclass2+artclass
rsclass.movenext
loop
else
artclass2="╘▌╬▐╫╙└α"
end if
rsclass.close
set rsclass=nothing
catclasslist=catclasslist+artcat+artclass2+"</td></tr>"
artclass2=""
rscat.movenext
loop
if rscat.bof and rscat.eof then
catclasslist="<tr><td width=""20%""><strong>í╛╘▌╬▐┤≤└αí┐</strong></td><td width=""*""></td></tr>"
end if
rscat.close
set rscat=nothing
Ft_mbstr=replace(Ft_mbstr,"$catclasslist$",catclasslist)
flname=""
if request.querystring("class_id")<>"" then
sql="select class_name from Ft_art_class where class_id="&request.querystring("class_id")
set rsclass=conn.execute(sql)
if not rsclass.eof then
flname=rsclass("class_name")
else
flname=""
end if
rsclass.close
set rsclass=nothing
elseif request.querystring("class_id")="" and request.querystring("cat_id")<>"" then
sql="select cat_name from Ft_art_cat where cat_id="&request.querystring("cat_id")
set rscat=conn.execute(sql)
if not rscat.eof then
flname=rscat("cat_name")
else
flname=""
end if
rscat.close
set rscat=nothing
end if
if flname="" then
cattotal="─┐╟░▒╛╒╛╣▓╙╨<span class=""key_font"">"&rs.recordcount&"</span>╞¬╬─╒┬ "
else
cattotal="<span class=""key_font"">í╛"&flname&"í┐</span>╖╓└α╣▓╙╨<span class=""key_font"">"&rs.recordcount&"</span>╞¬╬─╒┬ "
end if
Ft_mbstr=replace(Ft_mbstr,"$cattotal$",cattotal)
Ft_mbstr_artlist=split(Ft_mbstr,"///")
'╬─╒┬┴╨▒φ╟░╡──┌╚▌╩Σ│÷
response.write Ft_mbstr_artlist(0)
if not rs.eof then
rs.movefirst
rs.pagesize=pagenum
if trim(request.querystring("page"))<>"" then
currentpage=cint(request.querystring("page"))
if currentpage>rs.pagecount then
currentpage=rs.pagecount
end if
else
currentpage=1
end if
totalart=rs.recordcount
if currentpage<>1 then
if(currentpage-1)*pagenum<totalart then
rs.move(currentpage-1)*pagenum
end if
end if
if (totalart mod pagenum)=0 then
totalpages=totalart\pagenum
else
totalpages=totalart\pagenum+1
end if
i=0
do while not rs.eof and i<pagenum
'╬─╒┬╠╪╨╘
artsignimg="<a href=""showart.asp?id="&rs("art_id")&""" target=""_blank"">"
if rs("istop")=1 then
artsignimg=artsignimg+"<img src="""&signimgpath&"/ztop.gif"" border=""0"" alt=""╓├╢Ñ╬─╒┬"">"
elseif rs("user_view")=1 then
artsignimg=artsignimg+"<img src="""&signimgpath&"/userview.gif"" border=""0"" alt=""╗ß╘▒╬─╒┬"">"
elseif rs("user_view")=2 then
artsignimg=artsignimg+"<img src="""&signimgpath&"/vipview.gif"" border=""0"" alt=""VIP╗ß╘▒╬─╒┬"">"
else
artsignimg=artsignimg+"<img src="""&signimgpath&"/normal.gif"" border=""0"" alt=""╞╒═¿╬─╒┬"">"
end if
artsignimg=artsignimg+"</a>"
'╬─╒┬▒Ω╠Γ
arttitle=" <a href=""showart.asp?id="&rs("art_id")&""">"&rs("art_title")&"</a> "
if DateDiff("d",rs("art_date"),now())<1 then
arttitle=arttitle+"<img src="""&signimgpath&"/new.gif"" border=""0"">"
end if
if rs("art_good")=1 then
arttitle=arttitle+" <span class=""key_font"">[╝÷]</span>"
elseif rs("art_good")=2 then
arttitle=arttitle+" <span class=""key_font"">[╛½]</span>"
end if
Ft_mbstr=replace(Ft_mbstr_artlist(1),"$artsignimg$",artsignimg)
Ft_mbstr=replace(Ft_mbstr,"$arttitle$",arttitle)
Ft_mbstr=replace(Ft_mbstr,"$artdate$"," "&rs("art_date"))
Ft_mbstr=replace(Ft_mbstr,"$artcount$",rs("art_count"))
'┴╨▒φ╩Σ│÷
response.write Ft_mbstr
i=i+1
rs.movenext
loop
else
if rs.eof and rs.bof then
response.write"<tr align=""center"" class=""tablebody""><td height=""70"" colspan=""4"" class=""disable_font"">┤╦╖╓└α╡▒╟░╘▌╩▒├╗╙╨╬─╒┬úí</td></tr>"
end if
rs.close
set rs=nothing
end if
response.write Ft_mbstr_artlist(2)
'╖╓╥│
Ft_mbstr=replace(Ft_mbstr_artlist(3),"$artpage$","")
if totalart>pagenum then
showpage totalart,pagenum,"article.asp?"
end if
response.write Ft_mbstr
end sub
%>