<!--#include file="conn.asp" -->
<% adm_power_page=6 '分配本页的用户访问权限 %>
<!--#include file="admin_dn.asp" -->
<!--#include file="../inc/config.asp" -->
<!--#include file="../inc/mail_inc.asp" -->
<% 
if Trim(Request.QueryString("w"))="save" then
sql="update msm set bak='"&request("bak")&"',fldat=#"&date&"#,flyes=true where id="&request("id")
conn.execute(sql)

%>
<script language="VBScript" type="text/VBScript">
msgbox "提交成功"
</script>
<%
  if jmail_info and Trim(Request.Form("tz"))="yes" then
  call SendMail(Request.Form("mail"),"您在"&home_page_name&"的答复!!","你好:<br>你提交的问题:"&Trim(Request.Form("body"))&"<br>答复:"&request("bak")&jmail_qname)
  end if
end if
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<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 leftmargin="2" topmargin="0">
<p>答复问题：</p>
<p>&nbsp;</p>

<%

sql="select * from msm where id="&request("id")
rs.open sql,conn,1,1
if not rs.eof then


 %>
<form name="form1" method="post" action="adm_msm.asp?w=save">
  <table width="90%" height="239" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bordercolorlight="" bordercolordark="ffffff"
>
    <tr> 
      <td width="18%" bgcolor="#FAFAFA"> <div align="left">提问者：</div></td>
      <td><%=rs("userid")  %> <input name="id" type="hidden" id="id" value="<%=request("id")%>"></td>
      <td bgcolor="#FAFAFA"><div align="center">提交时间:</div></td>
      <td><font color="#FF0000"><%=rs("dat")  %></font></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FAFAFA"> <div align="left">问题类别：</div></td>
      <td width="37%"><%=rs("class")  %>&nbsp;</td>
      <td width="14%" bgcolor="#FAFAFA"> <div align="center">相关域名:</div></td>
      <td width="31%"><%=rs("url")  %>&nbsp;</td>
    </tr>
    <tr> 
      <td height="26" bgcolor="#FAFAFA"> 
        <div align="left">问　题：</div></td>
      <td colspan="3"><%=rs("body")  %> <input name="mail" type="hidden" id="mail" value="<%=rs("mail")%>">
        <input name="body" type="hidden" id="body" value="<%=rs("body")%>"></td>
    </tr>
    <tr> 
      <td height="97" bgcolor="#FAFAFA"> <div align="left">回　答：</div></td>
      <td colspan="3"><textarea name="bak" cols="40" rows="5" id="bak"><%=rs("bak")%></textarea></td>
    </tr>
    <tr> 
      <td height="22" bgcolor="#FAFAFA">Email通知客户:</td>
      <td><input name="tz" type="checkbox" id="tz" value="yes" checked>
        自动把回复内容发送用email给客户</td>
      <td bgcolor="#FAFAFA"><div align="center">用户email:</div></td>
      <td><%=rs("mail")  %> </td>
    </tr>
    <tr> 
      <td height="22" bgcolor="#FAFAFA">上次回复时间:</td>
      <td colspan="3"><font color="#FF0000"><%=rs("fldat") %>&nbsp;</font></td>
    </tr>
    <tr> 
      <td height="25" bgcolor="#FAFAFA">&nbsp;</td>
      <td colspan="3" bgcolor="#FAFAFA"> <input type="submit" name="Submit" value="确定回复"> 
      </td>
    </tr>
  </table>
</form>
<% 
else
Response.Write("对不起，，你查询的记录不存在")
end if

 %>
<p align="center"><a href="javascript:history.back(2)">-返回前页-</a></p>
<p align="center">&nbsp; </p>
</body>
</html>
