home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
221.214.14.186
/
221.214.14.186.tar
/
221.214.14.186
/
wh
/
qim
/
viewpic.asp
< prev
next >
Wrap
Text File
|
2006-06-01
|
13KB
|
310 lines
<%
'==================================
'=╬─ ╝■ ├√ú║viewpic.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"-->
<%
if request.querystring("id")="" then
response.redirect("showerr.asp?errmsg=<br><li>▒┌╓╜ID▓╗─▄╬¬┐╒ú¼╟δ╓╕╢¿▓┘╫≈╢╘╧≤úí</li>")
response.end
end if
dim csid,csurl,csname,userview
csid=checksql("▒┌╓╜ID",request.querystring("id"),0,8)
sql="select * from Ft_pic where pic_id="&csid
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
rs.close
set rs=nothing
else
csurl=rs("pic_url")
csname=rs("pic_name")
cscount=rs("pic_count")
userview=rs("user_view")
moneypay=rs("moneypay")
picid=rs("pic_id")
' sql="update Ft_pic set pic_count = pic_count + 1 where pic_id="&csid
' conn.execute(sql)
rs.close
set rs=nothing
if instr(csname,"<font color")<>0 then
pictitle=split(csname,">")
pic_title=replace(pictitle(1),"</font","")
else
pic_title=csname
end if
sub_title=pic_title&"-Σ»└└═╝╞¼"
end if
call head()
call body()
call foot()
sub body()
if request.form("addremark")="true" then
call localsubmit()
dim remarker,remarker_ip,remark,remark_date
remarker=checksql("╞└┬█╒▀",request.form("remarker"),1,10)
remarker_ip=checksql("╞└┬█╒▀IP",request.form("remarker_ip"),1,30)
picid=checksql("ͼƬID",request.form("pic_id"),0,8)
remark=checksql("╞└┬█─┌╚▌",request.form("remark"),1,151)
if usecode=1 then
GetCode=checksql("╤Θ╓ñ┬δ",request.form("GetCode"),1,6)
valicode=Session("yangzeng")
if GetCode<>valicode then
response.redirect("showerr.asp?errmsg=<br><li>╤Θ╓ñ┬δ┤φ╬≤úí")
response.end
end if
end if
sql="select * from Ft_pic_remark where pic_id="&picid
set rsremark=server.createobject("adodb.recordset")
rsremark.open sql,conn,1,3
rsremark.addnew
rsremark("remarker")=remarker
rsremark("remark")=remark
rsremark("pic_id")=picid
rsremark("remarker_ip")=remarker_ip
rsremark("remark_date")=now()
rsremark.update
rsremark.close
set rsremark=nothing
Response.Write " <script> alert('─·╥╤╛¡│╔╣ª╠ß╜╗╞└┬█╨┼╧óú¼╕╨╨╗─·╡─╞└┬█íúíúíú\n\n "& webname &" "& date() &"'); location.href='viewpic.asp?id="&picid&"'</script>"
Response.End
end if
StrTemp=split(mb_pic,"|||@@@|||")
dim StrTemp2,Ft_mbstr2
Ft_mbstr2=replace(StrTemp(1),"$csname$",csname)
Ft_mbstr2=replace(Ft_mbstr2,"$cscount$",cscount)
if userview=1 then
Ft_mbstr2=replace(Ft_mbstr2,"$userview$","<span class=""key_font"">╗ß╘▒═╝╞¼</span> <span class=""disable_font"">╧√╖╤"&moneypay&"╕÷╜≡▒╥</span>")
elseif userview=2 then
Ft_mbstr2=replace(Ft_mbstr2,"$userview$","<span class=""key_font"">VIP╗ß╘▒═╝╞¼</span> <span class=""disable_font"">╧√╖╤"&moneypay&"╕÷╜≡▒╥</span>")
else
Ft_mbstr2=replace(Ft_mbstr2,"$userview$","╞╒═¿═╝╞¼")
end if
if session("feitec_adminlogin")=feitec_sessionvar then
piccontent="<img onmousewheel=""return cgimg(this);"" src="""&csurl&""" onload=""javascript:DrawImage(this);"">"
sql="update Ft_pic set pic_count = pic_count + 1 where pic_id="&csid
conn.execute(sql)
else
if user_system<>0 and userview<>0 then
if request.Cookies("userlogin")=user_session then
dim userarray,username
curarray=split(request.Cookies("userdata"),"||")
username=curarray(0)
sql="select * from Ft_user where lock=0 and name='"&username&"' and passed=1"
set rs2=server.createobject("adodb.recordset")
rs2.open sql,conn,1,3
if not rs2.eof then
if rs2("user_money")<0 then
response.write"<script>alert('"&username&"ú¼─π╡─╜≡▒╥╩²╥╤▓╗╣╗ú¼╟δ╝░╩▒│Σ╓╡úí');location.href='index.asp';</script>"
response.end
elseif userview=2 then
if rs2("user_type")<>2 then
response.write"<script>alert('─·▓╗╩╟VIP╗ß╘▒ú¼╬▐╚¿▓Θ┐┤┤╦╥│');location.href='index.asp';</script>"
response.end
else
rs2("user_money")=rs2("user_money")-moneypay
rs2.update
end if
elseif userview=1 then
rs2("user_money")=rs2("user_money")-moneypay
rs2.update
end if
else
response.write"<script>alert('├╗╙╨┤╦╗ß╘▒╗≥┤╦╗ß╘▒╒²╘┌╔≤║╦╗≥┤╦╗ß╘▒╥╤▒╗╦°╢¿');location.href='index.asp';</script>"
response.end
end if
rs2.close
set rs2=nothing
piccontent="<img onmousewheel=""return cgimg(this);"" src="""&csurl&""" onload=""javascript:DrawImage(this);"">"
sql="update Ft_pic set pic_count = pic_count + 1 where pic_id="&csid
conn.execute(sql)
else
piccontent="<br><p align=""center"" class=""disable_font"">─π├╗╙╨╚¿╧▐▓Θ┐┤┤╦╥│ú¼╟δ<a href=""user.asp"">╫ó▓ß</a>╬¬╗ß╘▒í¡í¡</p><br>"
end if
else
piccontent="<img onmousewheel=""return cgimg(this);"" src="""&csurl&""" onload=""javascript:DrawImage(this);"">"
sql="update Ft_pic set pic_count = pic_count + 1 where pic_id="&csid
conn.execute(sql)
end if
end if
'═╝╞¼╓≈╠σ▒φ╕±╩Σ│÷
Ft_mbstr2=replace(Ft_mbstr2,"$piccontent$",piccontent)
'response.write Ft_mbstr2
'═╝╞¼┐Γ┐∞╦┘╡╝║╜Σ»└└
firstrsd=server.CreateObject("adodb.recordset")
sql="select top 1 pic_id,pic_name from Ft_pic order by pic_id"
set firstrsd=conn.execute(sql)
dim firstid
firstid=firstrsd("pic_id")
csname=firstrsd("pic_name")
if instr(csname,"<font color")<>0 then
pictitle=split(csname,">")
pic_title=replace(pictitle(1),"</font","")
else
pic_title=csname
end if
picnav= "<button onClick=""window.location='?id="&firstid&"'"" title="""&pic_title&""" class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put'>═╝┐Γ┐Γ╩╫</button> "
firstrsd.close
set firstrsd=nothing
backrsd=server.CreateObject("adodb.recordset")
sql="select top 1 * from Ft_pic where pic_id<"&csid&" order by pic_id desc"
set backrsd=conn.execute(sql)
if backrsd.eof then
picnav=picnav+"<button disabled class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put'>╡┌╥╗╒┼</button> "
else
a0=backrsd("pic_id")
csname=backrsd("pic_name")
if instr(csname,"<font color")<>0 then
pictitle=split(csname,">")
pic_title=replace(pictitle(1),"</font","")
else
pic_title=csname
end if
picnav=picnav+"<button onClick=""window.location='?id="&a0&"'"" title="""&pic_title&""" class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put'>╔╧╥╗╒┼</button> "
end if
backrsd.close
set backrsd=nothing
nextrsd=server.CreateObject("adodb.recordset")
sql="select top 1 * from Ft_pic where pic_id>"&csid&" order by pic_id"
set nextrsd=conn.execute(sql)
if nextrsd.eof then
picnav=picnav+"<button disabled class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put'>╫ε║≤╥╗╒┼</button> "
else
a2=nextrsd("pic_id")
csname=nextrsd("pic_name")
if instr(csname,"<font color")<>0 then
pictitle=split(csname,">")
pic_title=replace(pictitle(1),"</font","")
else
pic_title=csname
end if
picnav=picnav+"<button onClick=""window.location='?id="&a2&"'"" title="""&pic_title&""" class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put'>╧┬╥╗╒┼</button> "
end if
nextrsd.close
set nextrsd=nothing
lastrsd=server.CreateObject("adodb.recordset")
sql="select top 1 pic_id,pic_name from Ft_pic order by pic_id desc"
set lastrsd=conn.execute(sql)
dim lastid
lastid=lastrsd("pic_id")
csname=lastrsd("pic_name")
if instr(csname,"<font color")<>0 then
pictitle=split(csname,">")
pic_title=replace(pictitle(1),"</font","")
else
pic_title=csname
end if
picnav=picnav+"<button onClick=""window.location='?id="&lastid&"'"" title="""&pic_title&""" class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put'>═╝┐Γ┐Γ╬▓</button> <button onClick=""window.location='pic.asp'"" title=""╗╪▒┌╓╜Σ»└└╥│├µ"" class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put'>╗╪─┐┬╝</button> <button onClick=""window.close()"" title=""╣╪▒╒╡▒╟░╥│├µ"" class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put'>╣╪▒╒</button>"
lastrsd.close
set lastrsd=nothing
Ft_mbstr2=replace(Ft_mbstr2,"$picnav$",picnav)
'╘┌╧▀╞└┬█╝░╞└┬█▒φ╕±
dim totalremark,currentpage,totalpages,i
sql5="select * from Ft_pic_remark where pic_id="&picid&" order by remark_date desc"
set rs5=server.createobject("adodb.recordset")
rs5.open sql5,conn,1,1
vv=rs5.pagecount
Ft_mbstr2=replace(Ft_mbstr2,"$total_remark$",rs5.recordcount)
if not rs5.eof then
rs5.movefirst
rs5.pagesize=pageremark
if trim(request("page"))<>"" then
currentpage=clng(request("page"))
if currentpage>rs5.pagecount then
currentpage=rs5.pagecount
end if
else
currentpage=1
end if
totalremark=rs5.recordcount
if currentpage<>1 then
if (currentpage-1)*pageremark<totalremark then
rs5.move(currentpage-1)*pageremark
end if
end if
if (totalremark mod pageremark)=0 then
totalpages=totalremark\pageremark
else
totalpages=totalremark\pageremark+1
end if
i=0
do while not rs5.eof and i<pageremark
artremarklist=" <img src="""&signimgpath&"/biao.gif"" border=""0""> "&ubb2html(formatstr(rs5("remark")), true, true)&" <span class=""disable_font"">["&rs5("remarker")&" "&rs5("remark_date")&"]</span><br>"
artremarkout=artremarkout+artremarklist
i=i+1
rs5.movenext
loop
elseif rs5.eof and rs5.bof then
artremarkout="<span class=""disable_font"">╘▌╩▒╗╣├╗╙╨╞└┬█</span>"
end if
Ft_mbstr2=replace(Ft_mbstr2,"$artremarklist$",artremarkout)
if currentpage<>"" then
remarkpage="╡┌"¤tpage&"╥│ú¼╣▓"
else
remarkpage="╡┌0╥│ú¼╣▓"
end if
if totalpages<>"" then
remarkpage=remarkpage+""&totalpages&"╥│,╣▓<span class=""key_font"">"&rs5.recordcount&"</span>╠⌡╞└┬█ "
else
remarkpage=remarkpage+"0╥│,╣▓<span class=""key_font"">"&rs5.recordcount&"</span>╠⌡╞└┬█ "
end if
i=1
for i=1 to totalpages
if i=currentpage then
remarkpage=remarkpage+" <span class=""key_font"">"&i&"</span>"
else
remarkpage=remarkpage+" <a href=""?id="&picid&"&page="&i&""">"&i&"</a>"
end if
next
rs5.close
set rs5=nothing
remarkpage=remarkpage+" "
Ft_mbstr2=replace(Ft_mbstr2,"$remarkpage$",remarkpage)
if usecode=1 then
Ft_mbstr2=replace(Ft_mbstr2,"$usecode$"," ╤Θ ╓ñ ┬δ <input name=""GetCode"" type=""text"" size=""4"" maxlength=""4""> <img src=""Ft_Getcode.asp"">")
else
Ft_mbstr2=replace(Ft_mbstr2,"$usecode$","")
end if
if request.Cookies("userlogin")=user_session then
Ft_mbstr2=replace(Ft_mbstr2,"$user_remarker$","value=""╗ß╘▒_"&split(request.Cookies("userdata"),"||")(0)&""" readonly")
else
Ft_mbstr2=replace(Ft_mbstr2,"$user_remarker$","xxx")
end if
remarker_ip = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If remarker_ip = "" Then remarker_ip = Request.ServerVariables("REMOTE_ADDR")
Ft_mbstr2=replace(Ft_mbstr2,"$remarker_ip$",remarker_ip)
if artremark_ok=1 or session("feitec_adminlogin")=feitec_sessionvar then
remarksubmit="<input type=""submit"" name=""submit"" value=""╖ó▒φ"" class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put' onclick=""{if(confirm('─·╚╖╢¿╥¬╠ß╜╗┤╦╠⌡╞└┬█┬≡?\n\n╫ó╥Γú║╟╨╝╔▓╗╥¬║·┬╥╠ß╜╗╞└┬█ú¼╖±╘≥║≤╣√╫╘╕║úí')){return true;}return false;}""> <input type=""reset"" name=""reset"" value=""╓╪╨┤"" class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put'><input type=""hidden"" name=""pic_id"" value="""&picid&"""><input type=""hidden"" name=""addremark"" value=""true"">"
elseif artremark_ok=2 then
if user_system<>0 then
if request.Cookies("userlogin")=user_session then
remarksubmit="<input type=""submit"" name=""submit"" value=""╖ó▒φ"" class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put' onclick=""{if(confirm('─·╚╖╢¿╥¬╠ß╜╗┤╦╠⌡╞└┬█┬≡?\n\n╫ó╥Γú║╟╨╝╔▓╗╥¬║·┬╥╠ß╜╗╞└┬█ú¼╖±╘≥║≤╣√╫╘╕║úí')){return true;}return false;}""><input type=""reset"" name=""reset"" value=""╓╪╨┤"" class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put'><input type=""hidden"" name=""pic_id"" value="""&picid&"""><input type=""hidden"" name=""addremark"" value=""true"">"
else
remarksubmit="<input type=""submit"" name=""submit"" value=""╗ß╘▒▓┼─▄╖ó▒φ╞└┬█"" disabled>"
end if
else
remarksubmit="<input type=""submit"" name=""submit"" value=""╖ó▒φ"" class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put' onclick=""{if(confirm('─·╚╖╢¿╥¬╠ß╜╗┤╦╠⌡╞└┬█┬≡?\n\n╫ó╥Γú║╟╨╝╔▓╗╥¬║·┬╥╠ß╜╗╞└┬█ú¼╖±╘≥║≤╣√╫╘╕║úí')){return true;}return false;}""> <input type=""reset"" name=""reset"" value=""╓╪╨┤"" class=""put"" onmouseover=this.className='overput' onmouseout=this.className='put'><input type=""hidden"" name=""pic_id"" value="""&picid&"""><input type=""hidden"" name=""addremark"" value=""true"">"
end if
else
remarksubmit="<input type=""submit"" name=""submit"" value=""╞└┬█╣ª─▄╥╤╣╪▒╒"" disabled>"
end if
'╞└┬█╩Σ│÷
Ft_mbstr2=replace(Ft_mbstr2,"$remarksubmit$",remarksubmit)
response.write Ft_mbstr2
end sub
%>