<!DOCTYPE html>
	<html lang="en">
		<head>
			<title><?php echo $this->config->item('company').' -- '.lang('common_powered_by').' Invento Bangladesh' ?></title>
			<meta charset="UTF-8" />
			<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
			<base href="<?php echo base_url();?>" />
			<link rel="icon" href="<?php echo base_url();?>favicon.ico" type="image/x-icon"/>
			<link rel="stylesheet" rev="stylesheet" href="<?php echo base_url();?>css/bootstrap-3.min.css?<?php echo APPLICATION_VERSION; ?>" />
			<link rel="stylesheet" rev="stylesheet" href="<?php echo base_url();?>css/font-awesome.css?<?php echo APPLICATION_VERSION; ?>" />
			<link rel="stylesheet" rev="stylesheet" href="<?php echo base_url();?>css/unicorn-login.css?<?php echo APPLICATION_VERSION; ?>" />
			<link rel="stylesheet" rev="stylesheet" href="<?php echo base_url();?>css/unicorn-login-custom.css?<?php echo APPLICATION_VERSION; ?>" />
                        <?php if (is_rtl_lang()){?>
                        <link rel="stylesheet" rev="stylesheet" href="<?php echo base_url();?>css/rtl.css?<?php echo APPLICATION_VERSION; ?>" />
                        <?php } ?>
			<title>Invento POS System <?php echo lang('login_login'); ?></title>

			<script src="<?php echo base_url();?>js/jquery-1.5.2.min.js?<?php echo APPLICATION_VERSION; ?>" type="text/javascript" language="javascript" charset="UTF-8"></script>
			<script src="<?php echo base_url();?>js/bootstrap.min.js?<?php echo APPLICATION_VERSION; ?>" type="text/javascript" language="javascript" charset="UTF-8"></script>

			<script type="text/javascript">
			$(document).ready(function()
			{
				$(".login-form input:first").focus();
			});
			</script>
		</head>
		<body>
		
			<div id="container">
				<div id="logo">
					<?php echo img(
					array(
					'src' => $this->Appconfig->get_logo_image(),
					)); ?>
				</div>
			<?php if (is_on_demo_host()) { ?>
					
					<div class="alert alert-success text-center">

						<h2><?php echo lang('login_press_login_to_continue'); ?></h2>
						</div>
						<?php } ?>
						<div id="loginbox">            
							<?php echo form_open('login/do_reset_password/'.$key,array('class'=>'form login-form')) ?>
							<h2><?php echo lang('login_reset_password'); ?></h2>
							<div class="input-group">
								<span class="input-group-addon"><i class="fa fa-lock"></i></span>
								<?php echo form_password(array(
									'name'=>'password', 
									'class'=>'form-control', 
									'placeholder'=>lang('login_password'), 
									'size'=>'20')); ?>
								</div>
							<div class="input-group">
								<span class="input-group-addon"><i class="fa fa-lock"></i></span>
									<?php echo form_password(array(
									'name'=>'confirm_password', 
									'class'=>'form-control', 
									'placeholder'=> lang('login_confirm_password'), 
									'size'=>'20')); ?>
							</div>
									<hr />
									<div class="form-actions">
										<div class="pull-left">
											<?php echo anchor('login', lang('login_login')); ?><br />


											<?php echo date("Y")?> <?php echo lang('login_version'); ?> <span class="label label-info"><?php echo APPLICATION_VERSION; ?>

										</div>
										<div class="pull-right"><input type="submit" class="btn btn-success" value="<?php echo lang('login_reset_password'); ?>" /></div>
									</div>
								</form>

							</div>
							
							<?php if (isset($error_message)) {?>
							<div class="alert alert-danger">
								<strong><?php echo json_encode(lang('common_error')); ?></strong>
								<?php echo $error_message; ?>
							</div>
						<?php } ?>
				 </div>
		</body>
	</html>