📄 message_reply.asp
字号:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%Response.CodePage=65001%>
<%Response.Charset="UTF-8"%>
<!--#include file="getHeader.asp"-->
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<!--#include file="adminCheck.asp"-->
<!--#include file="../func.asp"-->
<!--#include file="db_conn_admin.asp"-->
<head>
<title> 回复留言 </title>
<meta http-equiv="Content-Type" content="<%=header%>; charset=utf-8" />
<meta name="Author" content="微普科技http://www.wiipu.com"/>
<link rel="stylesheet" href="admin.css" type="text/css"/>
</head>
<%
id=Trim(request.queryString("id"))
id=CInt(id)
action=Trim(request.queryString("action"))
If action="save" Then
reply=HTMLEncode(request.form("reply"))
sqlStr="update WP_msg set msg_reply='"&reply&"' where msg_id="&id
conn.execute(sqlStr)
Response.redirect "info.asp?info=2905"
End if
sqlStr="select * from WP_msg where msg_id="&id
set rs = server.createobject("ADODB.RecordSet")
rs.open sqlStr,conn,1,1
silent=rs("msg_isSilent")
content=rs("msg_content")
reply=rs("msg_reply")
rs.close
Set rs=Nothing
%>
<body>
<%
If silent="1" Then
response.write "该留言为悄悄话,无需回复。"
else
%>
<form action="?id=<%=id%>&action=save" method="post">
<h2>回复[ID:<%=id%>]留言</h2>
原内容:<br/>
<%=content%>
<hr/>
回复:<br/>
<textarea name="reply" rows="4" cols="20"><%=ReHTMLEncode(reply)%></textarea><br/>
<input type="submit" value="保存"/>
</form>
<%End if%>
<hr/>
【<a href="message.asp">返回留言列表</a>】<br/>
<br/>
Copyright(c)WiiPu微普科技
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -