<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<title>
			<?php echo $this->baseTitle ?>
		</title>
		<link rel="stylesheet" type="text/css" media="screen" href="<?php echo $this->baseUrl ?>assets/thema/login/css/login.css">
		<script type="text/javascript" src="<?php echo $this->baseUrl ?>assets/js/jquery-1.7.2.min.js" ></script>
		<script type="text/javascript" src="<?php echo $this->baseUrl ?>assets/thema/login/js/login.js"></script>
		<script type="text/javascript" src="<?php echo $this->baseUrl ?>assets/js/md5.js"></script>
	</head>
<body>
	<img src="<?php echo $this->baseUrl ?>assets/images/rasio.gif" class="_logo">
	<div id="_box_login">
		<div id="box_login">
			<div class="_titleLogin" style="color: #000">
				<b>R A S I O</b> - LOGIN
			</div>
			<form action="" method="post" id="loginAction">
				<input name="user_name_login" type="text" class="searchfield" id="userName" title="UserName" onfocus="clearText(this)" onblur="clearText(this)" value="USERNAME" />
				<input name="password_login" type="password" class="searchfield" id="password" title="Password" onfocus="clearText(this)" onblur="clearText(this)" value="PASSWORD" />
				<input type="hidden" name="url" value="<?php echo str_ireplace("-*||*-", '//', str_ireplace("-*_*-", '&', $_GET['url'])) ?>">
				<p style="text-align: center">
					<input type="submit" name="submit" id="submit" value="LOGIN" />
				</p>
			</form>
			<p class="_lupa_password">
				<span id="_proses"></span>
			</p>
		</div>
	</div>
</body>
<input type="hidden" id="_key" value="<?php echo $this->data->_keyCode ?>">
<input type="hidden" id="_jum" value="<?php echo $this->data->_keyJuml ?>">
<script type="text/javascript">
$(document).ready(function(){
	$('#loginAction').submit(function(e){
		nPass = excript($('#password').val(), $('#_key').val(), $('#_jum').val());
		lPass = $('#password').val();
		$('#password').val(nPass);
		e.preventDefault();
		$('#_proses').html('<span class="_left20px"><u>Proses Login....</u></span>');
		$.ajax({
		type: 'POST',
			url: '<?php echo $this->baseUrl.'login' ?>',
			data: $(this).serialize(),
			success: function(data) {
				$('#_proses').html('<span class="_left20px"><u>'+data+'</u></span>');
				$('#password').val(lPass);
			}
		})
	})

})
</script>