<%@ Page Language="C#" AutoEventWireup="true" debug="true"  Inherits="WinLibClass.Form.Admin.Login"  CodePage="65001" %>
<!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>
<TITLE> <%=WinLibClass.Config.Global.WebSiteConfig.WebSiteName%>网 - 后台管理系统 - 管理员登陆 </TITLE>
<META NAME="Generator" CONTENT="EditPlus">
<META NAME="Author" CONTENT="">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="">



<script type="text/javascript" src="/PaiPaiJS/jquery-1.4.2.js?1000"></script>
<script type="text/javascript" src="/artDialog4.1.1/artDialog.js?skin=default"></script>
<script type="text/javascript" src="/artDialog4.1.1/artDialog.iframeTools.js"></script>
<script type="text/javascript" src="/PaiPaiJS/Common_Main.js?t=2010"></script>
<script type="text/javascript" src="/PaiPaiJS/jquery.tips.js?1000"></script>
<script type="text/javascript" src="/PaiPaiJS/function.js?t=2010"></script>


<style>
.Clear{clear:both;}
body {
	TEXT-ALIGN: center; 
	background-image: url(images/login_bg_01.gif) ;
	background-color:#7F8F9F;
	background-repeat:repeat-x ;
	MARGIN-RIGHT: auto; MARGIN-LEFT: auto;
}
a{color:#4F7A9D; font-size:12px;}

.frmClass{
margin:0px;padding:0px;
}

.box{ 
	width:750px; 
	height:503px;
	MARGIN-RIGHT: auto; MARGIN-LEFT: auto;margin-top:80px;		
	background:url(images/login_bg_04.png) no-repeat 0 0; 
}
.box1{width:100%;height:100%;}
.login_logo{width:100%;height:203px;}
.inputs{width:100%;height:63px;}
.empytyLeft{width:438px;float:left;height:100%;}
.inputright{width:312px;float:left;text-align:left;}
.login_input{}
.inp1,.inp2{width:150px;height:15px;border:0px;}
.inp2{margin-top:16px;}
.buttons{width:100%;height:80px;margin-top:10px;}

.but1{width:78px;height:28px;cursor:pointer;float:left;}
.but2{width:78px;height:28px;cursor:pointer;float:left;margin-left:10px;}
.jszc{

}
</style>

</HEAD>



<BODY id="paipai">


<form id="loginform" autocomplete="off" class="frmClass">	

<div class="box">
	<div class="box1">
	
		<div class="login_logo"></div>
		<div class="inputs">
			<div class="empytyLeft"></div>
			<div class="inputright">
				<div class="login_input"><input id="userID" name="username" class="inp1" type="text" value="" /><span  id="userIDTip" class="tip_span" ></span></div>	 
				<div class="login_input"><input id="userPW" name="password" class="inp2" type="password" value="" /><span class="tip_span"  id="userPWTip"></span></div>
			</div>
		</div>	
		<div class="buttons">
			<div class="empytyLeft"></div>
			<div class="inputright">			
				<div class="but1" onclick="return ajaxlogin();" title="登陆"><a href="javascript:void(0);" ></a></div>
				<div class="but2"  >
				<a href="javascript:void(0);" onclick="$('#userID').val('');$('#userPW').val('');">重新填写</a>
				</div>
			</div>
		</div>	
		

		<div class="login_input" style="height:"><div id="tips" ></div></div>
		<div class="jszc">郑州全搜索提供技术支持</div>		
	</div>	
	<div class="Clear"></div>
</div>

</form>	




		<!-- #引用公用的用户登陆 -->
<script type="text/javascript"> 
var IMG_PATH	="/website/Tpl/default/Public/images/";		
var APP		='/admin/index.aspx?s=';	
var REQUEST_URI ='/admin/';
var loading='<div id="ajaxLoading" style=" margin:0 auto; width:120px;"><img class="vam" src="'+IMG_PATH+'wait.gif" /> 内容正在加载...</div>';

$(document).ready(function(){

});



//登录操作
function ajaxlogin() {
	var exp  = new Date();
	var pass=true;
	var loginwrongtime=Common.getCookie('loginwrongtime');
	
	if(pass){
		//var queryString = $('#loginform').formSerialize();
		var queryString = $('#loginform').serialize();

		$.post("login.aspx?isadd=100",queryString,function(msg){
			if(msg==1){
				if(loginwrongtime>2){
					$('#verifycodeInput').removeClass("displayNone");
					$('#verifycodeInput').html(codehtml);
				}
				Alert('登录失败！请注意您的输入',3);
			}else if(msg==3){
				$('#verifycodeInput').removeClass("displayNone");
				$('#verifycodeInput').html(codehtml);
				Alert('验证码有误，请重新输入',3);
			}else if(msg==2){
				Alert('您的账号已经被冻结，请联系拍拍客服',3);
			}else{
			//	dologinurl();//跳转本页 /admin/
				//location.href= APP + REQUEST_URI + "Default";
				//location.href= APP + "/admin1/Default";//17:12 2010-10-16 修改,方便测试新后台界面
				
				location.href= "default/Default.aspx";
			}
		});
	}
}


</script> 
</BODY>
</HTML>
