product_bbs_replay.asp

来自「能进行网上购物的需求」· ASP 代码 · 共 68 行

ASP
68
字号
<!--#include file="conn.asp"-->
<%
if session("admin_name")="" then
        response.redirect "default.asp"
end if
%>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from 56770_dvote where id="&request("id")
rs.open sql,conn,1,3
if request("action")<>"save" then
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>回复</title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>

<body>
<body bgcolor="#FFFFCC" text="#000000" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" border="0" cellspacing="1" cellpadding="2" vspace="0" hspace="0" bgcolor="#FFFFFF">
<tr bgcolor="#FFCC33">
<td height="27" bgcolor="#FFCC33" background="images/admin_bg_1.gif">.:: 56770网络制作 http://www.56770.com</td>
</tr>
</table>
<form action="product_bbs_replay.asp?action=save&id=<%=request("id")%>" method="post" name="form" id="form">
     <table width="100%" border="0" width="100%" bgcolor="#6699CC">
          <tr> 
            <td width="65%" align="right" height="30"><strong>管 理 员 回 复 </strong></td>
            <td align="right"></td>
          </tr>
        </table>
  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
       <tr> 
      <td width="30%" align="center" valign="middle" bgcolor="#BBD1E8">评论内容:</td>
      <td width="70%" bgcolor="#BBD1E8"><%=rs("content")%>
      </td>
    </tr>
 <tr> 
      <td width="30%" align="center" valign="middle" bgcolor="#BBD1E8">回复<font color="#990033"><%=rs("user_id")%></font>的评论</td>
      <td width="70%" bgcolor="#BBD1E8"><textarea name="replay" cols="45" rows="8" class="1" id="replay"><%=rs("replay")%></textarea> 
      </td>
    </tr>
    <tr> 
      <td height="30" colspan="2" align="center" bgcolor="#D6DFF7"> <input type="submit" class=log value="回复评论" name="button"> 
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input name="Submit2" type="reset" class=log id="Submit2" value="清除重写"> 
      </td>
    </tr>
  </table>
  </form>
<%
else
if request.form("replay")="" then
response.write"<SCRIPT language=JavaScript>alert('内容不能为空!');"
response.write"javascript:history.go(-1)</SCRIPT>"
else
rs("replay")=Server.HTMLEncode(request.form("replay"))
rs.update
rs.close
set rs=nothing
response.redirect "product_bbs.asp"
end if
end if
%>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?