<!--#include file="conn/conn.asp" -->
<!--#include file="conn/function.asp" -->
<!DOCTYPE HTML>
<html>
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
<head>
<meta content='text/html; charset=utf-8' http-equiv='Content-Type' />
<meta charset='utf-8' />
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<style>
body{ font-family:"微软雅黑"; line-height:200%; color:#666666;}
</style>
</head>
<body>
<%
G_title=Request.Form("G_title")
G_name=Request.Form("G_name")
G_mail=Request.Form("G_mail")
G_phone=Request.Form("G_phone")
G_msg=Request.Form("G_msg")

if IsValidStr(G_title)=false or IsValidStr(G_name)=false or IsValidStr(G_mail)=false or IsValidStr(G_phone)=false or IsValidStr(G_msg)=false then
call box("含有非法字符，请重新输入！","back","error")
end if
if G_title<>"" or G_name<>"" or G_mail<>"" or G_phone<>"" or G_msg<>"" then
conn.Execute ("insert into SL_guestbook(G_title,G_name,G_phone,G_email,G_Msg,G_time) values('"&Replace_Text(G_title)&"','"&Replace_Text(G_name)&"','"&Replace_Text(G_phone)&"','"&Replace_Text(G_mail)&"','"&Replace_Text(G_msg)&"','"&now()&"')")
call sendmail("您的网站“"&C_webtitle&"”有新的留言","您的网站“"&C_webtitle&"”收到新的留言<br>标题："&Replace_Text(G_title)&"<br>姓名："&Replace_Text(G_name)&"<br>电话："&Replace_Text(G_phone)&"<br>邮箱："&Replace_Text(G_mail)&"<br>消息："&Replace_Text(G_msg)&"<br>留言时间："&now(),C_email)
call box("留言成功，请耐心等待回复!","index.asp?type=guestbook","success")
else
call box("请填全信息!","back","error")
end if

%>
</body>
</html>