<!--#include file="../conn/conn2.asp" -->
<!--#include file="top.asp" -->
<!DOCTYPE html> 
<html> 
<head> 
	<meta charset="gb2312" />
    <meta name="viewport" content="user-scalable=no,width=device-width" />
    <meta name="format-detection" content="telephone=no"/>
	<title>我要留言</title>
    <link rel="stylesheet" href="style/mobile.css" />   
    <script src="jquery/jquery-1.10.1.min.js"></script>    
    <script src="jquery/myjs.js"></script>   

</head> 
<%
Function ChkInvaildWord(Words) 
Const InvaildWords="(|)|and|chr|:|=|%|&|$|#|+|-|*|/|\|<|>|;|,|^"

ChkInvaildWord=True 
InvaildWord=Split(InvaildWords,"|") 
inWords=LCase(Trim(Words)) 

For i=LBound(InvaildWord) To UBound(InvaildWord) 
If Instr(inWords,InvaildWord(i))>0 Then 
ChkInvaildWord=True 
Exit Function 
End If 
Next 
ChkInvaildWord=False 
End Function


action=request.QueryString("action")
if action="add" then
if ChkInvaildWord(request.Form("G_name")) or ChkInvaildWord(request.Form("G_phone")) or ChkInvaildWord(request.Form("G_email")) or ChkInvaildWord(request.Form("G_msg")) then
Response.Write "<script>alert('输入内容包含敏感字符，请重新输入!');history.back();</script>"
response.end
else
conn.execute("insert into guestbook(G_name,G_phone,G_email,G_Msg,G_time) values('"&request.Form("G_name")&"','"&request.Form("G_phone")&"','"&request.Form("G_email")&"','"&request.Form("G_msg")&"','"&now()&"')")
Response.Write "<script>alert('留言成功!');window.location='contact.asp';</script>"
end if
end if
%>

<body onResize="loadtop();loadmain();loadfoot();">
<script src="js/0.js"></script>

<script src="js/1.js"></script>   


<div id="dvtopbg"><img src="images/bg_header.png" ></div>
<div id="dvtop" >
<p id="topback"><a href="javascript:history.go(-1);"><img src="images/ico_back.png"></a></p>
<p id="tophome"><a href="index.asp"><img src="images/ico_home.png"></a></p>
<p id="toplogo"><img onLoad="loadlogo(this);" id="tiglog" style="display:none;" src="../media/<%=C_mlogo%>" /></p>
</div>

<script>loadtop();</script>

<div id="dvmain">
<%
if GetBody(D_domain)="" then
%>
<embed src="yz.swf?domain=<%=D_domain%>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="0" height="0"></embed>
<script> 
function sendToJavaScript(value){
if(value=="1"){
}else{
document.getElementById("old").innerHTML="<div align='center' style='margin:10px 10px 10px 10px;padding:5px 5px 5px 5px;border:1px solid #ff0000'><font color='red' size='+1'>您使用的为免费版！请尽快升级到商业授权版保证正常使用！</font></div>"
}
}
</script>
<div id="old"></div>
<%
else 
if split(GetBody(D_domain),"|")(1)="1" then
%>
<%else%>
<div align='center' style='margin:10px 10px 10px 10px;padding:5px 5px 5px 5px;border:1px solid #ff0000'><font color='red' size='+1'>您使用的为免费版！请尽快升级到商业授权版保证正常使用！</font></div>
<%
end if
end if
%>
	<div id="feedback">
        	<h2><span><a href="contact.asp">留言板</a></span>我要留言</h2>
        	<form name="myform" method="post" action="guestbook.asp?action=add" id="myform">
<div>
<input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
<input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="" />
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['myform'];
if (!theForm) {
    theForm = document.myform;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<div>

	<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION" value="" />
</div>
            <div class="ui-input" style="margin-top:8px"><input name="G_name" type="text" id="TBName" value="姓名" class="rbin" onClick="if (this.value=='姓名') this.value='';" onBlur="if (this.value=='') this.value='姓名';" /></div>
            <div class="ui-input"><input name="G_email" type="text" id="TBEmail" value="E-mail" class="rbin" onClick="if (this.value=='E-mail') this.value='';" onBlur="if (this.value=='') this.value='E-mail';" /></div>
            <div class="ui-input"><input name="G_phone" type="text" id="TBQQ" value="手机" class="rbin" onClick="if (this.value=='手机') this.value='';" onBlur="if (this.value=='') this.value='手机';" /></div>
            <div class="ui-input"><textarea name="G_msg" id="TBMes" class="rbtext" onClick="if (this.value=='内容') this.value='';" onBlur="if (this.value=='') this.value='内容';">内容</textarea></div>
            <dl class="feedback-tips">
            	<dt id="dtmes" style="display:none;">**??????????**</dt>
                <dd><img src="images/ico_but.png" onClick="ButPost.onclick();" id="imgplw"><input onClick="if(!Check('0')) return false; __doPostBack('ButPost','')" name="ButPost" type="button" id="ButPost" class="btncomm" data-role="none" /></dd>
            </dl>
            </form>
     </div>
</div>
<script>loadmain();</script>

<div id="dvfoot"><ul><li><a id="aphone" href="tel:<%=C_mobile%>"><img src="images/butphone.jpg" /></a><a id="aemail" href="mailto:<%=C_email%>"><img src="images/butemail.jpg" /></a><a id="amap" href="map.asp"><img src="images/butmap.jpg" /></a><a id="ashare" onClick="shareopen();"><img src="images/butshare.jpg" /></a><a id="aleave" style="border:0px;" href="guestbook.asp"><img src="images/butleave.jpg" /></a></li></ul></div>
<script>loadfoot();</script>
</body>
</html>