<!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><?php echo $L['title'];?></title>
	<link href="<?php echo STATIC_PATH;?>style/font-awesome/style.css" rel="stylesheet"/>
	<link rel="stylesheet" type="text/css" href="<?php echo STATIC_PATH;?>style/login.css">
</head>

<body>
   <div class="loginbox">
		<div class="title">
			<div class="logo">KOD<b>Explorer</b></div>
			<div class='info'>——<?php echo $L['title_name'];?></div>
		</div>
		<form method="post" action="./?user/loginSubmit">
			<div class="inputs">
				<div><span><?php echo $L['username'];?>：</span><input id="username" name='name' type="text" placeholder="<?php echo $L['username'];?>" required/> </div> 
				<div><span><?php echo $L['password'];?>：</span><input id="password" name='password' type="password" placeholder="<?php echo $L['password'];?>" required /></div>
            	<?php if(intval($_SESSION['code_error_time']) >=3){?>
					<div class='check_code'><span><?php echo $L['login_code'];?>：</span><input name='check_code' class="check_code" type="text" placeholder="<?php echo $L['login_code'];?>" required /> <img src='./?user/checkCode' onclick="this.src='./?user/checkCode'" />
					<div style="clear:both;"></div></div>				
				<?php }?>
			</div>
			<div class="actions">
				<input type="submit" id="submit" value="<?php echo $L['login'];?>" />
				<input type="checkbox" class="checkbox" name="rember_password" id='rm' checked='checked' />
				<label for='rm'><?php echo $L['login_rember_password'];?></label>				
			</div>
			<div class="msg"><?php echo $msg;?></div>
			<div style="clear:both;"></div>
			<div class='guest'>
			<a href="./?user/loginSubmit&name=guest&password=guest"><?php echo $L['guest_login'];?><i class=' icon-arrow-right'></i></a></div>
		</form>
	</div>
	<div class="footer">kalcaddle.com 2013 © All Rights Reserved.| <?php echo $L['us'];?></div>
	<script type="text/javascript">
	</script>
</body>
</html>