📄 gradeupdate.asp
字号:
<%Response.Expires=0
class1=Session("class")
if class1<7 then Response.Write "没有权限" : Response.end
ok=Request.Form("ok")
update=Request.Form("update")
oldgrade=Request.Form("oldgrade")
username=Request.Form("username")
why=Request.Form("why")
why=server.HTMLEncode(why)
why="<font color=green>"&why&"</font>"
myself="<font color=red>"&Session("usernickname")&"</font>"
IF update="" then
Response.Write "<title>出错提示 - 柠檬树聊天室</title>"
Response.write "<body bgcolor=#FFFFFF><br><br><br><br><br><p align='center'>出错提示:<font color=#FF0000>无法升级!</font></p>"
Response.write "<p align='center'><a href='javascript:history.go(-1);'>点击这里进行修改</a></p></body>"
Response.end
END IF
if update>7 and class1<10 then
Response.Write "<title>出错提示 - 柠檬树聊天室</title>"
Response.write "<body bgcolor=#FFFFFF><br><br><br><br><br><p align='center'>出错提示:<font color=#FF0000>无法升级!</font></p>"
Response.write "<p align='center'><a href='javascript:history.go(-1);'>点击这里进行修改</a></p></body>"
Response.end
END IF
IF len(why)<28 then
Response.Write "<title>出错提示 - 柠檬树聊天室</title>"
Response.write "<body bgcolor=#FFFFFF><br><br><br><br><br><p align='center'>出错提示:<font color=#FF0000>请详细写明原因!</font></p>"
Response.write "<p align='center'><a href='javascript:history.go(-1);'>点击这里进行修改</a></p></body>"
Response.end
END IF
n=Year(date())
y=Month(date())
r=Day(date())
s=Hour(time())
f=Minute(time())
m=Second(Time())
if len(y)=1 then y="0" & y
if len(r)=1 then r="0" & r
if len(s)=1 then s="0" & s
if len(f)=1 then f="0" & f
sj=n & "-" & y & "-" & r & " " & s & ":" & f
detail=myself& " 把 <font color=red>"& username &"</font><font color=blue> 从 <font color=red>"& oldgrade &"</font> 级"&ok&"到 <font color=red>"& update &"</font> 级</font><br><font color=a22255> [原因:] </font>"& why
%>
<!--#include file="conn.asp"-->
<%
Set rs = Conn.Execute("update Chatuser set grade='"&update&"' where username='"&username&"'")
Set rs1 = Conn.Execute( "Insert Into public1(time1,detail) Values('"&sj&"','"&detail&"')")
rs.close
rs1.close
Response.Write "<title>操作完毕 - 柠檬树聊天室</title>"
Response.write "<body bgcolor=#FFFFFF><br><br><br><br><br><p align='center'>操作完毕:<font color=#FF0000>级别操作完毕!</font></p>"
Response.write "<p align='center'><a href='javascript:history.go(-3);'>点击这里返回</a></p></body>"
Response.end
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -