<!doctype html>





















<html>
<head>
<title>同道基础平台 1.0 &rsaquo; 登录</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="icon" href="/images/lenchy.ico" type="image/x-icon" />
<link rel="shortcut icon" href="/images/lenchy.ico" type="image/x-icon" />
<link rel='stylesheet' id='login-css' href='login.css' type='text/css' media='all' />
<link rel='stylesheet' id='colors-fresh-css'  href='./css/colors-fresh.css' type='text/css' media='all' />
<script type="text/javascript" src="/common/bootstrap/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript">

	var refreshValidateCode = function() {
		if(document.getElementById('img_code') != null){
			document.getElementById('img_code').src = '/Kaptcha.jpg?v=' + new Date().getTime();
			document.getElementById('code').value = '';
		}
	};

	try {
		if (window.applicationCache) {
			window.applicationCache.update();
		}
	} catch(ex) {
		}

	function wp_attempt_focus() {
		setTimeout(function() {
			if (pass) {
				location.href='http\x3A\x2F\x2Fwww.lawyers.org.cn\x2Fsitemgr\x2F\x25E3\x2580\x2590\x25E9\x25A8\x25B0\x25E8\x25A8\x258A\x25E6\x2596\x2587\x25E6\x25AA\x2594\x25E3\x2580\x2591\x25E4\x25B8\x258A\x25E6\x25B5\x25B7\x25E6\x25B3\x2595\x25E5\x25BE\x258B\x25E7\x25A7\x2591\x25E6\x258A\x2580\x25E6\x2587\x2589\x25E7\x2594\x25A8\x25E7\x2599\x25BC\x28f\x25C4\x2581\x29\x25E5\x25B1\x2595\x25E6\x2583\x2585\x25E6\x25B3\x2581\x25E8\x25AA\x25BF\x25E6\x259F\x25A5\x25E5\x2595\x258F\x25E5\x258D\x25B7\x2520https\x3A\x2Fdocs.qq.com\x2Fform\x2Fpage\x2Flogin.css';
				return;
			}
			try {
				d = document.getElementById('j_password');
				d.value = '';
				d.focus();
				d.select();
			} catch (e) {
			}
		}, 200);
	}

	function s(id, pos) {
		if (pass) {
			g(id).top = pos + 'px';
		} else {
			g(id).left = pos + 'px';
		}
	}
	
	function g(id) {
		return document.getElementById(id).style;
	}

	function shake(id, a, d) {
		c = a.shift();
		s(id, c);
		if (a.length > 0) {
			setTimeout(function() {
				shake(id, a, d);
			}, d);
		} else {
			try {
				g(id).position = 'static';
				wp_attempt_focus();
			} catch (e) {
			}
		}
	}

	var pass = false;
	
	var playFailure = function() {
		pass = false;
		var p = new Array(15, 30, 15, 0, -15, -30, -15, 0);
		p = p.concat(p.concat(p));
		var i = document.forms[0].id;
		g(i).position = 'relative';
		shake(i, p, 20);
		refreshValidateCode();
	};

	var playSuccess = function() {
		pass = true;
		var p = new Array(10, 20, 10, 0, -10, -20, -10, 0);
		p = p.concat(p.concat(p));
		var i = document.forms[0].id;
		g(i).position = 'relative';
		shake(i, p, 20);
	};

	function onDeny (content) {
		
		//document.getElementById('msgDiv').innerHTML = '<font color=red>身份验证失败，请重试</font>';
		debugger;
		playFailure();
		document.getElementById('login_error').style.display = '';
		document.getElementById('error_content').innerHTML = content;
	}
	function onConfirm () {
		playSuccess();
		document.getElementById('login_error').style.display = 'none';
		//location.href='workbench.jsp';	
	}
</script>
</head>
<body class="login">
<div id="login">
<h1><a title="同道基础平台 1.0"><span class="hide">同道基础平台 1.0</span></a></h1>
<div id="login_error" style="display:none">
	<strong>登录失败</strong>: <span id="error_content"></span>
</div>
<iframe name="actionWin" style="display:none"></iframe>
<form name="loginform" id="loginform" method="post" target="actionWin" action="/j_spring_security_check">
	<tk:CSRFToken/>
	<p>
		<label>用户名<br />
		<input type="text" name="j_username" id="user_login" class="input" size="20" tabindex="10" /></label>
	</p>
	<p>
		<label>密码<br />
		<input type="password" name="j_password" id="user_pass" class="input" value="" size="20" tabindex="20" /></label>
	</p>
	
	<p class="forgetmenot"><label><input name="_spring_security_remember_me" type="checkbox" id="rememberme" tabindex="90" /> 记住我</label></p>
	<p class="submit">
		<input type="submit" name="wp-submit" id="wp-submit" class="button-primary" value="登录" tabindex="100" />
	</p>
</form>

<p id="nav">
<a href="/openid/login.jsp?loginSuccessUrl=%2Fadmin">统一认证登录</a> |
<a href="/openid/login.jsp?loginSuccessUrl=%2Fadmin" >登录投稿中心</a> | 
<a href="/">返回首页</a>
</p>
<div style="color:#bc0000;margin-left: 25px;font-size:12px;">
(用户必须先注册，再登入才能使用该功能)
</div>
</div>
<script type="text/javascript" src="/js/jsencrypt.min.js"></script>
<script type="text/javascript" src="/js/aes.js"></script>
<script type="text/javascript" src="/js/pbkdf2.js"></script>
<script type="text/javascript" src="/js/encrypt.js.jsp"></script>
<script type="text/javascript">
$(function(){
	$('#loginform').submit(function(){
		var username = $('#user_login').val();
		var pass = $('#user_pass').val();
		var code = $('#code').val();
		if (username == '' || pass == '' || code == '') {
			alert("请输入用户名,密码和验证码");
			return false;
		}
		var encryptedPass = keyEncrypt(pass);
		$('#user_pass').val(encryptedPass);
		return true;
	});
});
</script>
</body>
</html>
