<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>Login</title>
	<link href="<?php echo base_url()?>template/css/bootstrap.min.css" rel="stylesheet">
	<link href="<?php echo base_url()?>template/css/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
	<link href="<?php echo base_url()?>template/css/main.css" rel="stylesheet" type="text/css">

</head>
<body class="bg-home">
<div class="overlay"></div>
	<div class="container div-login">
<?php
$input_doc = array(
        'name'          => 'documento',
        'id'            => 'documento',
        'type'			=> 'text',
        'value'			=> '',
        'placeholder'   => 'Documento',
        'autofocus'   => 'autofocus',
        'class'         => 'form-control'
);
$input_pass = array(
        'name'          => 'password',
        'id'            => 'password',
        'type'			=> 'password',
        'value'         => '',
        'placeholder'   => 'Contraseña',
        'class'         => 'form-control'
);
//phpinfo();
?>
		<div class="row">
			<?php if ($error){
			?>
			<div class="alert alert-error msg-err-login center">
            	<a class="close" data-dismiss="alert" href="#">×</a><?php echo $error ?>
          	</div>
          	<?php
          	}
          	?>
			<div class="col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-8 col-xs-offset-2 div-form-login">

			    <h2>Login</h2>
				<img id="logo-login" src="<?php echo base_url() ?>template/img/login.png" />
				<?php echo form_open('login/login_user') ?>
				<div class="form-group">

					<?php echo form_input($input_doc); ?>
					<!--<label for="username"></label>
					<input type="text" name="username" id="username" class="form-control" placeholder="Documento">-->
				</div>
				<div class="form-group">
					<?php echo form_input($input_pass); ?>
					<!--
					<label for="password"></label>
					<input type="password" name="password" id="password" class="form-control" placeholder="Contraseña">-->
				</div>
			
				<button type="submit" name="entrar" id="entrar" class="btn btn-primary btn-action" data-loading-text="<i class='fa fa-spin fa-spinner'></i> Comprobando datos...">
					<i class="fa fa-sign-in"></i>
					Entrar
				</button>
				</form>
			</div>
		</div>
	</div>
</body>
 	<!-- jQuery -->
    <script src="<?php echo base_url()?>template/js/jquery.min.js"></script>
    <!-- Bootstrap Core JavaScript -->
    <script src="<?php echo base_url()?>template/js/bootstrap.min.js"></script>
	<script src="<?php echo base_url()?>template/js/main.js"></script>
</html>
