📄 lyshow.asp
字号:
<%'注意:防止多次发送,以及防止非法登录
if session("admin_login")<>true then
response.Write("<html><link href=../style.css rel=stylesheet type=text/css><body><table height=100% width=100% align=center valign=middle><tr><td align=center valign=center><p align=center>您没有登录或者已经超时!!请点击下面的链接,进入登录界面!!</p><p align=center>-->> <a href=../login/login.asp>登录</a> <<--</p></td></tr></table></body></html>")
response.end
end if
%>
<!--#include file="../../conn/conn.asp"-->
<%
id = clng(trim(request("id")))
action = trim(request("action"))
if action = "del" then
conn.execute("delete from guestbook where id="&id)
response.Write("<script language='javascript'>window.opener.location=window.opener.location;window.close();</script>")
conn.close
set conn = nothing
response.End()
end if
SQL = "select * from guestbook where id="&id
set rs = Server.CreateObject("adodb.recordset")
rs.open SQL,conn,1,3
rs("ly_read")=1
rs.update
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../style.css" rel="stylesheet" type="text/css">
<title>显示留言</title>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</style></head>
<body>
<table width="100%" height="100%" border="0" cellpadding="4" cellspacing="0">
<tr>
<td valign="top"> <%=rs("ly_contect")%></td>
</tr>
<tr>
<td height="1" align="center"><hr size="1" noshade color="#336633"></td>
</tr>
<tr>
<td height="25" align="center"><input type="button" name="Submit" value="关闭" class="button01" onClick="window.close()">
<input type="button" name="Submit2" value="删除" class="button01" onClick="window.location.href='?action=del&id=<%=id%>'"></td>
</tr>
</table>
</body>
</html>
<%
rs.close
set rs = nothing
conn.close
set conn = nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -