home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
221.214.14.186
/
221.214.14.186.tar
/
221.214.14.186
/
wh
/
qim
/
showdiary.asp
< prev
next >
Wrap
Text File
|
2006-06-01
|
4KB
|
117 lines
<%
'==================================
'=╬─ ╝■ ├√ú║showdiary.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"-->
<%
'ID▓╬╩²╙╨╨º╨╘┼╨╢╧╝░╨┬╬┼▒Ω╠Γ╢┴│÷
dim did,page
if request.querystring("id")="" then
response.redirect("showerr.asp?errmsg=<br><li>╣½╕µID▓╗─▄╬¬┐╒ú¼╟δ╓╕╢¿▓┘╫≈╢╘╧≤úí</li>")
response.end
else
did=checksql("╣½╕µID",request.querystring("id"),0,8)
sql="select d_id,d_title from Ft_diary where d_id="&did
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
else
d_title=replaceText(rs("d_title"))
sub_title=d_title&"-╒╛╬±╣½╕µ"
end if
rs.close
set rs=nothing
end if
call head()
call body()
call foot()
sub body()
'==================================
'=╣ª ─▄ú║Σ»└└╝╞╩²
'==================================
set rscount=conn.execute("select d_count,d_id from Ft_diary")
sql="UPDATE Ft_diary SET d_count = d_count + 1 where d_id="&did
conn.execute (sql)
rscount.close
set rscount=nothing
'==================================
'=╣ª ─▄ú║╚í│÷╡▒╟░─ú░σ
'==================================
StrTemp=split(mb_other,"|||@@@|||")
Ft_mbstr=StrTemp(2)
'==================================
'=╣ª ─▄ú║╫≤└╕─┌╚▌╧╘╩╛
'==================================
Ft_mbstr=replace(Ft_mbstr,"{left_pub}",left_pub())
Ft_mbstr=replace(Ft_mbstr,"$hotnum$",hotnum)
set rs2 = server.createobject("adodb.recordset")
sql="select top "&hotnum&" d_id,d_title,d_date from Ft_diary order by d_date DESC"
rs2.open sql,conn,1,1
if rs2.bof and rs2.eof then
newdiary="<span class=""disable_font"">─┌╚▌╒²╘┌╕ⁿ╨┬╓«╓╨úí</span>"
else
rs2.movefirst
do while not rs2.eof
newdiary=newdiary+"<img src="""&signimgpath&"/biao.gif"" border=""0""> <a href=?id="&rs2("d_id")&">"&rs2("d_title")&"</a><br>"
rs2.movenext
loop
end if
rs2.close
set rs2=nothing
Ft_mbstr=replace(Ft_mbstr,"$newdiary$",newdiary)
'==================================
'=╣ª ─▄ú║╙╥└╕─┌╚▌╧╘╩╛
'==================================
sql="select * from Ft_diary where d_id="&did
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
Ft_mbstr=replace(Ft_mbstr,"$d_poster$",rs("d_poster"))
Ft_mbstr=replace(Ft_mbstr,"$d_date$",rs("d_date"))
Ft_mbstr=replace(Ft_mbstr,"$d_count$",rs("d_count"))
Ft_mbstr=replace(Ft_mbstr,"$d_title$",rs("d_title"))
Ft_mbstr=replace(Ft_mbstr,"$d_content$",replace(ChangeEmot(rs("d_content")),"<IMG","<IMG onload=""javascript:ContentImage(this);"" onmousewheel=""return cgimg(this);"" "))
nextrsd=server.CreateObject("adodb.recordset")
sql="select top 1 d_id,d_title from Ft_diary where d_id>"&did&" order by d_id"
set nextrsd=conn.execute(sql)
if nextrsd.eof then
nextdiary="╔╧╥╗╞¬ú║<span class='disable_font'>├╗╙╨╔╧╥╗╠⌡╝╟┬╝</span>"
else
a2=nextrsd("d_id")
nextdiary="╔╧╥╗╞¬ú║<a href='showdiary.asp?id="&a2&"'>"&nextrsd("d_title")&"</a>"
end if
nextrsd.close
set nextrsd=nothing
backrsd=server.CreateObject("adodb.recordset")
sql="select top 1 d_id,d_title from Ft_diary where d_id<"&did&" order by d_id desc"
set backrsd=conn.execute(sql)
if backrsd.eof then
backdiary="╧┬╥╗╞¬ú║<span class='disable_font'>├╗╙╨╧┬╥╗╠⌡╝╟┬╝</span>"
else
a0=backrsd("d_id")
backdiary="╧┬╥╗╞¬ú║<a href='showdiary.asp?id="&a0&"'>"&backrsd("d_title")&"</a>"
end if
backrsd.close
set backrsd=nothing
Ft_mbstr=replace(Ft_mbstr,"$nextdiary$",nextdiary)
Ft_mbstr=replace(Ft_mbstr,"$backdiary$",backdiary)
'==================================
'=╣ª ─▄ú║╩Σ│÷
'==================================
response.write Ft_mbstr
rs.close
set rs=nothing
end sub
%>