home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
221.214.14.186
/
221.214.14.186.tar
/
221.214.14.186
/
wh
/
qim
/
pic.asp
< prev
next >
Wrap
Text File
|
2006-06-01
|
8KB
|
198 lines
<%
'==================================
'=╬─ ╝■ ├√ú║pic.asp
'=╩╩╙├░µ▒╛ú║FeitecCMS AC V1.21 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 totalpic,Currentpage,totalpages,countI,catname,catid,page
StrTemp=split(mb_pic,"|||@@@|||")
dim StrTemp2,Ft_mbstr2
'StrTemp2=split(StrTemp(0),"///")
'╫≤└╕╣½╣▓─┌╚▌╧╘╩╛
sql="SELECT top "&hotnum&" * from Ft_pic ORDER by pic_count DESC,pic_date DESC"
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,1
do while not rs2.eof
csname=rs2("pic_name")
if instr(csname,"<font color")<>0 then
pictitle=split(csname,">")
pic_title=replace(pictitle(1),"</font","")
else
pic_title=csname
end if
toppic=toppic+"<img src="""&signimgpath&"/biao.gif"" border=""0""> <a href=""viewpic.asp?id="&rs2("pic_id")&""" title=""═╝╞¼├√│╞ú║"&pic_title&" ╡π╗≈┤╬╩²ú║"&rs2("pic_count")&" ═╝╞¼╝≥╜Θú║"&rs2("pic_content")&" ╝╙╚δ╩▒╝Σú║"&rs2("pic_date")&""" target=""_blank"">"&rs2("pic_name")&"</a><br>"
rs2.movenext
loop
if rs2.eof and rs2.bof then
toppic="<span class=""disable_font"">─┌╚▌╒²╘┌╕ⁿ╨┬╓«╓╨í¡í¡</span>"
end if
rs2.close
set rs2=nothing
'╫≤└╕╩Σ│÷
Ft_mbstr2=replace(StrTemp(0),"{left_pub}",left_pub())
Ft_mbstr2=replace(Ft_mbstr2,"$hotnum$",hotnum)
Ft_mbstr2=replace(Ft_mbstr2,"$toppic$",toppic)
if request.querystring("page")<>"" then
page=checksql("▒┌╓╜╖╓╥│",request.querystring("page"),0,8)
end if
if request.querystring("cat_id")<>"" then
catid=checksql("▒┌╓╜╖╓└α",request.querystring("cat_id"),0,4)
sql="select * from Ft_pic where cat_id="&catid&" order by pic_id DESC"
else
sql="select * from Ft_pic order by pic_id DESC"
end if
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
totalpic=rs.recordcount
sql="select * from Ft_pic_cat"
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,1
do while not rs2.eof
piccat=piccat+"<span class=""key_font"">|</span> <a href=""?cat_id="&rs2("cat_id")&""" >"&rs2("cat_name")&"</a>"
rs2.movenext
loop
if rs2.bof and rs2.eof then
piccat="<span class=""disable_font"">|</span> ╘▌╬▐╖╓└α"
end if
rs2.close
set rs2=nothing
Ft_mbstr2=replace(Ft_mbstr2,"$piccat$",piccat)
if request.querystring("cat_id")<>"" then
catname=""
sql="select cat_name from Ft_pic_cat where cat_id="&cint(request.querystring("cat_id"))
set rscat=conn.execute(sql)
catname=rscat("cat_name")
rscat.close
set rscat=nothing
cattotalnum="<span class=""key_font"">í╛"&catname&"í┐</span>╖╓└α╣▓╙╨<span class=""key_font"">"&rs.recordcount&"</span>╒┼═╝╞¼ "
else
cattotalnum="─┐╟░▒╛╒╛╣▓╙╨<span class=""key_font"">"&rs.recordcount&"</span>╒┼═╝╞¼ "
end if
'╙╥└╕╖╓└α╩Σ│÷
Ft_mbstr2=replace(Ft_mbstr2,"$cattotalnum$",cattotalnum)
Ft_mbstr_piclist=split(Ft_mbstr2,"///")
'╬─╒┬┴╨▒φ╟░╡──┌╚▌╩Σ│÷
response.write Ft_mbstr_piclist(0)
'═╝╞¼┴╨▒φ
if not rs.eof then
rs.movefirst
if pagenum mod 3 <>0 then
pagenum=pagenum-(pagenum mod 3)
end if
rs.pagesize=pagenum
if trim(request.querystring("page"))<>"" then
currentpage=cint(page)
if currentpage>rs.pagecount then
currentpage=rs.pagecount
end if
else
currentpage=1
end if
totalpic=rs.recordcount
if currentpage<>1 then
if (currentpage-1)*pagenum<totalpic then
rs.move(currentpage-1)*pagenum
end if
end if
if (totalpic mod pagenum)=0 then
totalpages=totalpic\pagenum
else
totalpages=totalpic\pagenum+1
end if
countI = 0 '╝╞╩²╞≈
Do while not rs.eof and countI<pagenum
if (countI Mod 3 = 0 And countI <> 0) then '▓╗╓╗╥╗╨╨ú¼├┐╨╨╧╘╩╛3╕÷
'▓╗╓╗╥╗╨╨ú¼├┐╨╨╧╘╩╛3╕÷
response.write Ft_mbstr_piclist(1)
end if
csname=rs("pic_name")
if instr(csname,"<font color")<>0 then
pictitle=split(csname,">")
pic_title=replace(pictitle(1),"</font","")
else
pic_title=csname
end if
if session("feitec_adminlogin")=feitec_sessionvar then
picimg="<a href=""viewpic.asp?id="&rs("pic_id")&""" target=""_blank""><img src="""&rs("pic_pic")&""" title=""├√│╞ú║"&pic_title&" ╝≥╜Θú║"&rs("pic_content")&" ╡π╗≈ú║"&rs("pic_count")&""" width=""140"" height=""105"" border=""0"" style=""CURSOR: hand;filter:alpha(opacity=70)"" onmouseover=""javascript:toup2(this)"" onMouseOut=""javascript:todown2(this);""></a>"
else
if user_system<>0 then
if rs("user_view")<>0 then
if request.Cookies("userlogin")=user_session then
sql="select * from Ft_user where lock=0 and name='"&split(request.Cookies("userdata"),"||")(0)&"' and passed=1"
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,1
if not rs2.eof then
usertype=rs2("user_type")
end if
rs2.close:set rs2=nothing
if rs("user_view")=2 and usertype<>2 then
picimg="<img src="""&signimgpath&"/picuserpic.gif"" alt=""VIP╗ß╘▒═╝╞¼"">"
else
picimg="<a href=""viewpic.asp?id="&rs("pic_id")&""" target=""_blank""><img src="""&rs("pic_pic")&""" title=""├√│╞ú║"&pic_title&" ╝≥╜Θú║"&rs("pic_content")&" ╡π╗≈ú║"&rs("pic_count")&""" width=""140"" height=""105"" border=""0"" style=""CURSOR: hand;filter:alpha(opacity=70)"" onmouseover=""javascript:toup2(this)"" onMouseOut=""javascript:todown2(this);""></a>"
end if
else
picimg="<img src="""&signimgpath&"/picuserpic.gif"" alt=""╗ß╘▒═╝╞¼"">"
end if
else
picimg="<a href=""viewpic.asp?id="&rs("pic_id")&""" target=""_blank""><img src="""&rs("pic_pic")&""" title=""├√│╞ú║"&pic_title&" ╝≥╜Θú║"&rs("pic_content")&" ╡π╗≈ú║"&rs("pic_count")&""" width=""140"" height=""105"" border=""0"" style=""CURSOR: hand;filter:alpha(opacity=70)"" onmouseover=""javascript:toup2(this)"" onMouseOut=""javascript:todown2(this);""></a>"
end if
else
picimg="<a href=""viewpic.asp?id="&rs("pic_id")&""" target=""_blank""><img src="""&rs("pic_pic")&""" title=""├√│╞ú║"&pic_title&" ╝≥╜Θú║"&rs("pic_content")&" ╡π╗≈ú║"&rs("pic_count")&""" width=""140"" height=""105"" border=""0"" style=""CURSOR: hand;filter:alpha(opacity=70)"" onmouseover=""javascript:toup2(this)"" onMouseOut=""javascript:todown2(this);""></a>"
end if
end if
picname="["&rs("pic_name")&"]"
if rs("user_view")=1 then
picname=picname+" <img src="""&signimgpath&"/userview.gif"" border=""0"" alt=""╗ß╘▒═╝╞¼"">"
elseif rs("user_view")=2 then
picname=picname+" <img src="""&signimgpath&"/vipview.gif"" border=""0"" alt=""VIP╗ß╘▒═╝╞¼"">"
end if
'═╝╞¼╦⌡┬╘═╝╩Σ│÷
Ft_mbstr2=replace(Ft_mbstr_piclist(2),"$picimg$",picimg)
Ft_mbstr2=replace(Ft_mbstr2,"$picname$",picname)
response.write Ft_mbstr2
countI = countI + 1
rs.movenext
loop
'╫ε║≤╥╗╨╨▓╗╫π3╕÷<td>╘≥╠φ╝╙╘ñ╢¿═╝╞¼
modCountI = (countI Mod 3)
if modCountI <> 0 then
for i = modCountI + 1 to 3
'╡▒╥╗╨╨╓╨═╝╞¼▓╗╫π╩▒ú¼╠µ╗╗═╝╞¼╩Σ│÷
response.write Ft_mbstr_piclist(3)
next
end if
elseif rs.eof and rs.bof then
response.write"<table class=""tableborder"" cellspacing=""1"" cellpadding=""4"" align=""center""><tr class=""tablebody""><td height=""70"" align=""center"" class=""disable_font"">┤╦╖╓└α╘▌╬▐═╝╞¼........</td>"
end if
rs.close
Set rs = Nothing
'═╝╞¼▒φ╕±╜ß╩°
response.write Ft_mbstr_piclist(4)
'╖╓╥│╩Σ│÷
if totalpic>pagenum then
Ft_mbstr2=replace(Ft_mbstr_piclist(5),"$picpage$",showpage(totalpic,pagenum,"pic.asp?"))
else
Ft_mbstr2=replace(Ft_mbstr_piclist(5),"$picpage$","")
end if
response.write Ft_mbstr2
end sub
%>