<?php $this->load->view('template/head_front'); ?>
<!--[if lt IE 9]>
<div class="row">
  <h3 class="text-center">Este programa solo funciona con versiones superiores a Internet Explorer 9</h3>
</div>
<![endif]-->
<![if IE 9]>
<?php $this->load->view('header_login.php'); ?>
<!--[if lt IE 9]>
        <h1>Este programa solo funciona con versiones superiores a Internet Explorer 9</h1>
<![endif]-->
<![if IE 9]>
<div class="container">
    <div class="row login-row">

        <div class="messages" style="">
            <?php if (isset($message)): ?>
                 <div class="error"><?= $message ?></div>
             <?php endif; ?>

        </div>

        <div class="col-lg-6 col-md-6 login-container-admin">
            <h3><?= $titulo  ?></h3>
            <?php
             $form_data         = array(
               'name'  => 'login_form',
               'id'    => 'login-form',
               'class' => 'login-form'
             );
            ?>
            <?php echo form_open('usuarios/login', $form_data); ?>
            <?php
				//Definiciones
             $attributes_labels = array(
               'class' => 'control-label',
             );
             $usuario           = array(
               'name'     => 'TEX_USUARIO',
               'id'       => 'TEX_USUARIO',
               'class'    => 'form-control focus',
               'value'    => '',
               'required' => ''
             );
             $password          = array(
               'name'                   => 'TEX_CONTRASENA',
               'id'                     => 'TEX_CONTRASENA',
               'class'                  => 'form-control',
               'required'               => '',
               'data-parsley-minlength' => '4'
             );
            ?> 
            <div class="form-group input-type"> 
                <?php echo form_label('Usuario', 'usuario', $attributes_labels); ?>
                <div class="input-group">
                    <div class="input-group-addon">
                        <i class="fa fa-user"></i>
                    </div>
                    <?php echo form_input($usuario) ?>   
                    <span class="fa fa-times fa-2x form-control-feedback error-icon" aria-hidden="true"></span>
                </div>
            </div> 
            <div class="form-group input-type"> 
                <?php echo form_label('Contraseña', 'password', $attributes_labels); ?>
                <div class="input-group">
                    <div class="input-group-addon">
                        <i class="fa fa-key"></i>
                    </div>
                    <?= form_password($password) ?>   
                    <span class="fa fa-times fa-2x form-control-feedback error-icon" aria-hidden="true"></span>
                </div>
            </div>            

            <div class="input-group submit-forms">
                <?= form_submit('submit', 'Ingresar', "class='btn btn-default btn-login'"); ?>
            </div>
            <?= form_close(); ?>
        </div>
    </div>
    <![endif]>
    <?php $this->load->view('template/footer_front') ?>  

<style>

.footer {
    
    
    width: auto;
}
</style>