<!DOCTYPE html>

<!--[if IE 8]> <html lang="en" class="ie8"> <![endif]-->

<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->

<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->

<!-- BEGIN HEAD -->

<head>

	<meta charset="utf-8" />

	<title><?php echo $page_title;?></title>

	<meta content="width=device-width, initial-scale=1.0" name="viewport" />

	<meta content="" name="description" />

	<meta content="" name="author" />

	<!-- BEGIN GLOBAL MANDATORY STYLES -->

	<link href="<?php echo base_url();?>assets/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>

	<link href="<?php echo base_url();?>assets/css/bootstrap-responsive.min.css" rel="stylesheet" type="text/css"/>

	<link href="<?php echo base_url();?>assets/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

	<link href="<?php echo base_url();?>assets/css/style-metro.css" rel="stylesheet" type="text/css"/>

	<link href="<?php echo base_url();?>assets/css/style.css" rel="stylesheet" type="text/css"/>

	<link href="<?php echo base_url();?>assets/css/style-responsive.css" rel="stylesheet" type="text/css"/>

	<link href="<?php echo base_url();?>assets/css/default.css" rel="stylesheet" type="text/css" id="style_color"/>

	<link href="<?php echo base_url();?>assets/css/uniform.default.css" rel="stylesheet" type="text/css"/>

	<!-- END GLOBAL MANDATORY STYLES -->

	<!-- BEGIN PAGE LEVEL STYLES -->

	<link href="<?php echo base_url();?>assets/css/login.css" rel="stylesheet" type="text/css"/>

	<!-- END PAGE LEVEL STYLES -->

	<link rel="shortcut icon" href="<?php echo base_url();?>assets/image/favicon.ico?v=1.0" />

</head>

<!-- END HEAD -->

<!-- BEGIN BODY -->

<body class="login">

	<!-- BEGIN LOGO -->

	<div class="logo">

		<img src="<?php echo base_url();?>assets/image/logo-big.png" alt="" /> 

	</div>

	<!-- END LOGO -->

	<!-- BEGIN LOGIN -->

	<div class="content">

		<!-- BEGIN LOGIN FORM -->

		<form class="form-vertical login-form" id="login-form" action="<?php echo base_url();?>login/submit/">

			<h3 class="form-title"><?php echo $this->lang->line('login_login_to_your_account');?></h3>

			<div class="alert alert-error hide">

				<button class="close" data-dismiss="alert"></button>

				<span><?php echo $this->lang->line('login_enter_your_username_and_password');?></span>

			</div>

			<div class="control-group">

				<!--ie8, ie9 does not support html5 placeholder, so we just show field title for that-->

				<label class="control-label visible-ie8 visible-ie9"><?php echo $this->lang->line('login_username');?></label>

				<div class="controls">

					<div class="input-icon left">

						<i class="icon-user"></i>

						<input class="m-wrap placeholder-no-fix" type="text" placeholder="<?php echo $this->lang->line('login_username');?>" id="username" name="username"/>

					</div>

				</div>

			</div>

			<div class="control-group">

				<label class="control-label visible-ie8 visible-ie9"><?php echo $this->lang->line('login_password');?></label>

				<div class="controls">

					<div class="input-icon left">

						<i class="icon-lock"></i>

						<input class="m-wrap placeholder-no-fix" type="password" placeholder="<?php echo $this->lang->line('login_password');?>" id="password" name="password"/>

					</div>

				</div>

			</div>
			
			<div class="control-group">

				<img src="<?php echo base_url();?>captcha/captcha.php" id="captcha" /><br/><br/>

				<input type="text" name="captcha" id="captcha-form" autocomplete="off" style="width: 186px;" placeholder="<?php echo $this->lang->line('login_enter_the_words_above');?>" /><br />
				
				<a href="javascript:void(0);" onclick="
					document.getElementById('captcha').src='<?php echo base_url();?>captcha/captcha.php?'+Math.random();
					document.getElementById('captcha-form').focus();"
					id="change-image"><?php echo $this->lang->line('login_get_another_captcha');?></a>

			</div>

			<div class="form-actions">

				<input class="no_display" type="hidden" id="<?php echo $this->security->get_csrf_token_name(); ?>" name="<?php echo $this->security->get_csrf_token_name(); ?>" value="<?php echo $this->security->get_csrf_hash(); ?>" />
				
				<button type="submit" id="login-btn" class="btn blue pull-right">

				<?php echo $this->lang->line('login_login_button');?> <i class="m-icon-swapright m-icon-white"></i>

				</button>            

			</div>

		</form>

		<!-- END LOGIN FORM -->      
	</div>

	<!-- END LOGIN -->

	<!-- BEGIN COPYRIGHT -->

	<div class="copyright">

		<?php echo date('Y');?> &copy; <?php echo $this->lang->line('website_name');?>.

	</div>

	<!-- END COPYRIGHT -->

	<!-- BEGIN JAVASCRIPTS(Load javascripts at bottom, this will reduce page load time) -->

	<!-- BEGIN CORE PLUGINS -->

	<script src="<?php echo base_url();?>assets/js/jquery-1.10.1.min.js" type="text/javascript"></script>

	<script src="<?php echo base_url();?>assets/js/jquery-migrate-1.2.1.min.js" type="text/javascript"></script>

	<!-- IMPORTANT! Load jquery-ui-1.10.1.custom.min.js before bootstrap.min.js to fix bootstrap tooltip conflict with jquery ui tooltip -->

	<script src="<?php echo base_url();?>assets/js/jquery-ui-1.10.1.custom.min.js" type="text/javascript"></script>      

	<script src="<?php echo base_url();?>assets/js/bootstrap.min.js" type="text/javascript"></script>

	<!--[if lt IE 9]>

	<script src="<?php echo base_url();?>assets/js/excanvas.min.js"></script>

	<script src="<?php echo base_url();?>assets/js/respond.min.js"></script>  

	<![endif]-->   

	<script src="<?php echo base_url();?>assets/js/jquery.slimscroll.min.js" type="text/javascript"></script>

	<script src="<?php echo base_url();?>assets/js/jquery.blockui.min.js" type="text/javascript"></script>  

	<script src="<?php echo base_url();?>assets/js/jquery.cookie.min.js" type="text/javascript"></script>

	<script src="<?php echo base_url();?>assets/js/jquery.uniform.min.js" type="text/javascript" ></script>

	<!-- END CORE PLUGINS -->

	<!-- BEGIN PAGE LEVEL PLUGINS -->

	<script src="<?php echo base_url();?>assets/js/jquery.validate.min.js" type="text/javascript"></script>

	<!-- END PAGE LEVEL PLUGINS -->

	<!-- BEGIN PAGE LEVEL SCRIPTS -->

	<script src="<?php echo base_url();?>assets/js/app.js" type="text/javascript"></script>

	<script type="text/javascript">
		var base_url = '<?php echo base_url();?>';
		var lang_login_enter_your_username_and_password = '<?php echo $this->lang->line('login_enter_your_username_and_password');?>';
		var lang_login_username_is_required = '<?php echo $this->lang->line('login_username_is_required');?>';
		var lang_login_password_is_required = '<?php echo $this->lang->line('login_password_is_required');?>';
		var lang_forgot_password_email_is_required = '<?php echo $this->lang->line('forgot_password_email_is_required');?>';
		var lang_forgot_password_password_is_required = '<?php echo $this->lang->line('forgot_password_password_is_required');?>';
		var lang_forgot_password_confirm_password_is_required = '<?php echo $this->lang->line('forgot_password_confirm_password_is_required');?>';
	</script>
	
	<script src="<?php echo base_url();?>assets/js/login.js" type="text/javascript"></script>      

	<!-- END PAGE LEVEL SCRIPTS --> 

	<script>

		jQuery(document).ready(function() {     

		  App.init();

		  Login.init();

		});

	</script>

	<!-- END JAVASCRIPTS -->

</body>

<!-- END BODY -->

</html>