<!--#include file="../conn/conn2.asp" -->
<!--#include file="../conn/function.asp" -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=title%>后台管理</title>
<SCRIPT LANGUAGE="JavaScript" src="js/help2.js"></SCRIPT>
<style>
html,body,div,span,p,a,img,ul,li,dl,dt,dd,ol,form,label,form{ margin:0; padding:0; border:0; outline:0; font-size:100%;}
body{ font-size:12px;font-family:微软雅黑; line-height:150%; background-color:#eeeeee}
a{ font-size:12px; color:#000000; text-decoration:none;}
a:link{ color:#000000;}
a:visited{ color:#000000;}
a:hover{ text-decoration:underline; color:#0066ff;}
a:active{ color:#0066ff;}

a img {
	border:none;
}
.container{ width:1000px; margin:0 auto;}
.title{ height:30px; margin-top:10px; background-image:url(img/untitled.png);}
.content{ background-color:#FFFFFF; padding-left:10px; padding-top:10px;padding-bottom:10px;padding-right:10px; line-height:200%;}
.title2{ height:30px; margin-top:10px; background-image:url(img/untitled.png);}
.content2{ background-color:#FFFFFF; padding-left:10px; padding-top:10px;padding-bottom:10px;padding-right:10px; line-height:200%;height:auto !important;}

.input1 {border-top:1px solid #ABADB3;border-left:1px solid #ABADB3;border-right:1px solid #ddd;border-bottom:1px solid #ddd;height:24px;width:400px;padding:0 5px;}
.input2 {border:1px solid #FFB334;outline:2px solid #ffdc97;*border:2px solid #FFB334;*padding:2px 5px;height:24px;width:400px;padding:0 5px;}
.right{width:150px;float:left}
.left{width:800px; padding-right:10px; float:left}
/********光标说明**************/
#pltsTipLayer
{
	FILTER: alpha(opacity=100);
	opacity: 1;
	background: #ffffff;
	color:#0066ff;
	border: 1px solid #dddddd;
}
.Bttd
{
	font-size:12px;
	border:0;
	padding:5px;

}
.kj{ height:23px; background:#0099ff; float:left; position:relative; color:#FFFFFF; margin:5px; padding:5px;}
.div{position:absolute;left: 50%;top: 40%;margin: -190px 0px 0px -150px;padding:10px;overflow:hidden;width:300px; background-color:#FFFFFF; line-height:200%; font-size:15px;text-align:center; border:#CCCCCC solid 1px;}
</style>
</head>

<body>
<%
action=request.QueryString("action")
if action="found" then
C_email2=request.Form("C_email")
if C_email2=C_email then
nadmin=gen_key(10)
conn.execute("Insert into SL_admin(A_login,A_pwd,A_part) values('"&nadmin&"','"&md5(nadmin)&"','1|1|1|1|1|1|1|1|1|1|1|1')")
call sendmail("找回密码邮件","为您新增一个网站临时登录账户，请登陆后及时设置新的密码！<br>账户名："&nadmin&"<br>密码："&nadmin,C_email)
call box("找回密码邮件已发送到您的邮箱，请即时查收！","admin_login.asp","success")
else
call box("您填写的预留邮箱不符，请重新填写！","back","error")
end if
end if
%>
<div style="padding:20px">
<div class="leftbox">
<div class="title"><img src="img/orange.png" style="margin-left:10px; margin-top:5px; margin-right:10px;">找回密码</div>
<div class="content">
<form  method="post" action="found.asp?action=found">
请输入预留的邮箱：<input type="text" name="C_email" class="input1" onfocus="this.className='input2'" onblur="this.className='input1'"/> *主机需已安装Jmail组件<br>
<input name="Submit" type="submit" class="submit" onmouseover="this.className='submit2'" onmouseout="this.className='submit'"  value="确 认" />
</form>
</div>
</div>
</div>
</body>
</html>
<%
Call CloseConn()
Response.End()
%>