hf.asp
来自「百堂数字点卡程序v1.0后台路径:http://域名/admin 管理帐号和密码」· ASP 代码 · 共 88 行
ASP
88 行
<%@ CODEPAGE = "936" %>
<!--#include file="conn.asp"-->
<%
if session("admin_rank")<>1 and session("admin_rank")<>2 then
response.write("<script>alert('您无权查看本页,SORRY!');window.location=('login.asp')</script>")
response.end
end if
%>
<%
set rs=server.createobject("adodb.recordset")
%><head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="css.css">
</head>
<%
if request("action")="save" then
if trim(request("hf_content"))<>"" then
sql="select * from ts where id="&int(request("id"))
rs.open sql,conn,3,3
rs("zt")=true
rs("title")=request("title")
rs("content")=request("content")
rs("hf_content")=request("hf_content")
rs.update
response.write("<script>alert('提交成功!');window.location=('delts.asp')</script>")
response.end
rs.close
else
%> <script language=vbs>
<!--
msgbox"回复内容不能为空!请填写好再回复"
window.location.href="delts.asp"
-->
</script>
<% end if
else
%>
<body style="background-color: #F0FBF1">
<div align="center">
<table border="0" width="778" cellspacing="1">
<tr>
<td width="82%" style="padding-left: 10px">
<form method="POST" action="hf.asp?action=save">
<input type="hidden" name="id" value="<%=int(request("id"))%>">
<p> <table border="1" width="780" cellspacing="0" height="122" bordercolorlight="#C0C0C0" bordercolordark="#FFFFFF" cellpadding="0">
<tr>
<td width="100%" style="padding-left: 10px" height="39">
<%
sql="select * from ts where id="&request("id")
rs.open sql,conn,3,3
%>投诉会员名: <%=rs("user_name")%>
</td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="36">标
题: <input type="text" name="title" size="20" value="<%=rs("title")%>" class=input>
</td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="86">内
容:
<textarea rows="6" name="content" cols="42" class=input><%=rs("content")%></textarea>
</td>
</tr>
<tr>
<td width="100%" style="padding-left: 10px" height="40">
<font color="#FF0000"><b>回 复:</b></font><textarea rows="6" name="hf_content" cols="42" class=input></textarea>
</td>
</tr>
</table>
</div>
<p> <input type="submit" value="提交" name="B1" class=input>
<input type="reset" value="重写" name="B2" class=input></p>
</p>
</form>
</td>
</tr>
</table>
</div>
<%
end if
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?