<!--#include file="../../../conn/conn4.asp" -->
<!--#include file="top.asp" -->
<%

action=Request.QueryString("action")
if action="login" then
M_login=Request.Form("M_login")
M_pwd=Request.Form("M_pwd")
sql="Select * from member Where M_login='"&M_login&"' and M_pwd='"&M_pwd&"'"
		set rs=Server.CreateObject("ADODB.RecordSet")
		rs.open sql,conn,1,1
		if not rs.eof then
session("M_login")=M_login
session("M_pwd")=M_pwd
session.timeout=5000
Response.Write"<script>alert('登录成功!');window.location='index.asp';</script>"
else
Response.Write"<script>alert('账号或密码错误!');window.location='login.asp';</script>"
end if
end if

if action="unlogin" then
session("M_login")=""
session("M_pwd")=""
Response.Write"<script>alert('退出成功!');window.location='index.asp';</script>"
end if

%>
<!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%></title>
<meta name="keywords" content="<%=keywords%>" />
<meta name="description" content="<%=content%>" />
    <link rel="stylesheet" href="style/mobile.css" />   
    <script src="jquery/jquery-1.10.1.min.js"></script>    
    <script src="jquery/myjs.js"></script>    
</head> 
<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 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
%>
<div id="feedback">
        	<h2>会员登录</h2>
<div id="dvminfo"><form action="login.asp?action=login"  method="post" name="myform" id="myform">
<script type="text/javascript">
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 class="ui-input" style="margin-top:8px"><input name="M_login" 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 type="password" name="M_pwd" type="text" id="TBEmail" value="密码" class="rbin" onClick="if (this.value=='密码') this.value='';" onBlur="if (this.value=='') this.value='密码';" /></div>
<input type="submit" value="登录" style="height:40px; width:100px;"> <input type="button" value="注册" onClick="window.location='reg.asp'" style="height:40px; width:100px;">
</form></div>
	 
	 </div>
	 
	 <img onClick="this.style.width='0px';this.style.display='none';" id="imgpromptf88a0" style="z-index:999; position:absolute; display:none;"><script src="js/2.js"></script>
<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>
