photohot.asp

来自「采用ASP+ACCESS+ASPUPJPG组件构成」· ASP 代码 · 共 31 行

ASP
31 行
字号
<!--#include file="mdb/conn.asp" -->
<!--#include file="config.asp" -->
<!--#include file="check.asp" -->
<%
tt=Request.QueryString("t")
idd=Request.QueryString("id")
if tt ="" then 
tt=0
end if
'response.write tt
'response.end
Set rs=Server.CreateObject("ADODB.RecordSet")
sql="select * from desktop where id="&idd
'response.write sql
'response.end
rs.OPEN sql,Conn,1,3
if Rs("hot")="" OR IsNULL(Rs("hot"))=true then
	Rs("hot") ="0"
	else
	Rs("hot") = tt
	end if
rs.update
Rs.close
set Rs = nothing
%>
<script>
function window.onbeforeunload(){
window.opener.location.reload()
}
</script>
<SCRIPT language=JavaScript>alert("设置成功!");window.close();</SCRIPT>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?