<!--#include file="../Include/Const.Asp" -->
<!--#include file="../Include/ConnDatabase.asp" -->
<!--#include file="../Include/System_Language.asp" -->
<!--#include file="../Include/Version.Asp" -->
<!--#include file="CheckAdmin.Asp"-->
<%
'*********************************************
'软件名称：电家企业网站内容管理系统
'软件开发：电脑家园工作室
'网    址：http://www.537600.cn
'服务  QQ：530051328
'服务邮箱：bbfhq@163.com
'微信公众号：diannaojiayuan
'*********************************************
%>
<%
Dim ID, musername,MesName,Content,mReplyContent
Dim mLinkman, mTelephone, mEmail, AddTime
ID = request.QueryString("ID")
conn.Execute "update DianJiaCMS_Message set SeeFlag = -1 where ID="&ID
Call MesEdit()
If request("Action")="SaveEdit" then
set rs = server.createobject("adodb.recordset")
sql="select * from DianJiaCMS_Message where ID="&ID
rs.open sql,conn,1,3
rs("ReplyContent")=request("ReplyContent")
rs("ReplyTime")=Now()
rs.update
rs.close
set rs=Nothing
response.write "<script language='javascript'>alert('回复成功！');location.replace('DianJiaCMS_Funct_Message.Asp');</script>"
response.end
End if
%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="<%=DianJiaCMS_Lang_Copyright(13)%>">
<meta name="author" content="<%=DianJiaCMS_Lang_Copyright(3)%>">
<title><%=DianJiaCMS_Lang_Copyright(1)%> <%=Soft_Version%></title>
<!--#Include file="DianJiaCMS_Css.Asp"-->
</head>

<body>
<!--#Include file="DianJiaCMS_Top.Asp"-->
<!--#Include file="DianJiaCMS_Meun.Asp"-->
<div id="wrap">
	<%
	If InStr(CompanyAdminPurview, "|17,") = 0 Then
		response.Write ("<br /><br /><div style='height:100%; text-align:center' class='main'><font style=""color:red; font-size:14px;"")>"&DianJiaCMS_Lang_System(26)&"</font></div>")
		response.End
	End If
	%>
    <div class="main">
        <div class="row">
            <ol class="breadcrumb">
                <li><i class="fa fa-home"></i> 当前位置</li>
                <li>企业应用</li>
                <li class="active">查看留言信息</li>
            </ol>	
        </div>	
        <div class="row">
            <div class="col-md-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <h2><i class="fa fa-gears"></i><span class="break"></span><strong>查看留言信息</strong></h2>
                    </div>
                    <form name="editForm" method="post" action="?Action=SaveEdit&id=<%=id%>" class="form-horizontal">
                    <div class="panel-body">
                        <div class="form-group">
                            <label class="col-md-2 control-label" for="text-input">留言标题：</label>
                            <div class="col-md-4">
								<p class="form-control-static"><%=MesName%></p>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-md-2 control-label" for="text-input">留言会员：</label>
                            <div class="col-md-4">
								<p class="form-control-static"><%=musername%></p>
                            </div>
                        </div> 
                        <div class="form-group">
                            <label class="col-md-2 control-label" for="text-input">联系电话：</label>
                            <div class="col-md-4">
								<p class="form-control-static"><%=mTelephone%></p>
                            </div>
                        </div> 
                        <div class="form-group">
                            <label class="col-md-2 control-label" for="text-input">电子信箱：</label>
                            <div class="col-md-4">
								<p class="form-control-static"><%=mEmail%></p>
                            </div>
                        </div> 
                        <div class="form-group">
                            <label class="col-md-2 control-label" for="text-input">留言时间：</label>
                            <div class="col-md-4">
								<p class="form-control-static"><%=AddTime%></p>
                            </div>
                        </div> 
						<div class="form-group">
                            <label class="col-md-2 control-label" for="text-input">留言内容：</label>
                            <div class="col-md-4">
								<p class="form-control-static"><%=Content%></p>
                            </div>
                        </div>						
						<div class="form-group">
                            <label class="col-md-2 control-label" for="text-input">回复内容：</label>
                            <div class="col-md-4">
								<p class="form-control-static"><textarea name="ReplyContent" cols="60" rows="8"><%=mReplyContent%></textarea></p>
                            </div>
                        </div>
                    </div>
					 
                        <div class="form-group">
                            <div class="col-md-2 control-label"></div>
                            <div class="col-md-10">
							<input name="Submit" type="submit" value="回复" />							
                            </div>
							 
                        </div>
                    </form>   
                 </div>
             </div>
         </div>  
    </div>
    <!--#Include file="DianJiaCMS_End.Asp"-->
</div>
<!--#Include file="DianJiaCMS_Js.Asp"-->
</body>
</html>
<%
Sub MesEdit()
Set rs = server.CreateObject("adodb.recordset")
sql = "select * from DianJiaCMS_Message where ID="& ID
rs.Open sql, conn, 1, 1
muserName = rs("userName")
MesName = rs("MesName")
Content = ReStrReplace(rs("Content"))
mReplyContent = rs("ReplyContent")
mLinkman = rs("Linkman")
mTelephone = rs("Telephone")
mEmail = rs("Email")
AddTime = rs("AddTime")
rs.Close
Set rs = Nothing
End Sub
%>