📄 guest_del.asp
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<title>留 言 删 除</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css/text.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000" >
<script language=javascript>
function checkpass(thisform,pass)
{
if(thisform.pass.value==""){
alert("请输入管理员密码!")
thisform.pass.focus()
return(false)
}
}
</script>
<%
textdelid=clng(request("textdelid"))
pass=request("pass")
textcaption=request("textcaption")
checkbox=request("checkbox")
sql="select pass from supervisor"
set guestpass=conn.execute(sql)
//是否选择了记住密码
if session("guest")=true then
sql="delete from guest where id="&textdelid
conn.execute sql
response.write"<script language=javascript> window.opener.location.reload();alert('留言删除成功!');window.close();</script>"
end if
//密码是否正确是否为空
if len(pass)>0 and pass<>guestpass("pass") then
response.write"<script language=javascript>alert('密码错误!请重新输入!')</script>"
end if
if pass<>"" and pass=guestpass("pass") then
//密码是否正确
if len(checkbox)>0 then session("guest")=true
sql="delete from guest where id="&textdelid
conn.execute sql
response.write"<script language=javascript> window.opener.location.reload();alert('留言删除成功!');window.close();</script>"
end if
'if pass<> guestpass("pass") and pass<>"" then
'response.write"<script language=javascript>alert('密码错误!请重新输入。')</script>"
'end if
'response.write"<script language=javascript>alert('请输入管理员密码')</script>"
%>
<table width="340" border="0" cellpadding="1" cellspacing="0" height="180" bgcolor="70C570">
<tr>
<td width="351" valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" height="180" bgcolor="F7FEF6">
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0" background="images/about/bgbt.gif">
<tr>
<td align="left" height="20"><font color="#FF0000"> <font color="#FFFFFF">∴</font>
删除主题:<%=textcaption%> </font></td>
<td align="center" width="30" height="13"><a href="javascript:window.close();"><img src="images/del/gb1.gif" width="16" height="16" alt="取 消 删 除" border="0"></a></td>
</tr>
</table>
<br>
<br>
<form name="guestdel" method="post" action="guest_del.asp?textdelid=<%=textdelid%>&textcaption=<%=textcaption%>" onsubmit="return checkpass(guestdel,pass)">
<table width="75%" border="1" align="center" cellpadding="6" cellspacing="0" bordercolor="DCF3DB" bordercolordark="F7FEF6" height="78">
<tr>
<td width="54" bgcolor="F7FEF6" height="42" align="center">密 码:</td>
<td colspan="2" bgcolor="F7FEF6">
<input type="password" name="pass" size="20" maxlength="12" class="text">
</td>
</tr>
<tr>
<td bgcolor="F7FEF6" colspan="3">
<input type="checkbox" name="checkbox" value="checkbox">
<font color="#006633">记住密码,浏览器关闭时密码失效。</font></td>
</tr>
<tr>
<td colspan="3" height="26" bgcolor="F7FEF6" align="center">
<input type="submit" name="Submit" value=" 删 除 " class="text9">
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -