<?php $this->load->view('template/head_front.php'); ?>
<!--[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
$data_view['logo']       = 'uploads/logo.png';
$data_view['bienvenida'] = 'Bienvenido a <br>' . $nombre_empresa;
shuffle($images);
$this->load->view('header_acceso.php', $data_view);
$claves_aleatorias       = array_rand($images, 1);
?>
<style>
body {background:url('<?php echo base_url($images[$claves_aleatorias]) ?>') !important;}
.footer-texto {color: #ffffff !important; font-size: 14px !important; 
	text-shadow:1px 1px rgba(0,0,0,0.4);}
	.footer-texto a, .footer-texto a:hover { color: #FC873A;text-shadow:none}
	.parsley-errors-list li {color: #F00; font-size: 15px; margin-top: 3px; line-height: 15px;}
	</style>
	<div class="container">
	<div class="messages">
		<?= ($this->session->flashdata('success')) ? '<div class="success">' . $this->session->flashdata('success') . '</div>' : ''; ?>

		<?= ($this->session->flashdata('error')) ? '<div class="error">' . $this->session->flashdata('error') . '</div>' : ''; ?>
	</div>
	<div class="row login-row">
	<div class="messages" style="">
	<?php if (isset($message)): ?>
		<div class="error"><?= $message ?></div>
		<?php endif; ?>
		<?php if (isset($message2)): ?>
			<div class="error"><?= $message2 ?></div>
			<?php endif; ?>
			</div>
			<?php  if ($validacion_maquina): ?>
				<div class="col-lg-5 col-md-5 col-xs-12 login-container">
				<h3><?= $mensaje_login ?></h3>
				<?php
				$form_data         = array(
					'name'  => 'login_form',
					'id'    => 'login-form',
					'class' => 'login-form'
					// 'data-parsley-validate'=>""
				);
				?>
				<?php echo form_open('moduloVotacion', $form_data); ?>
				<?php
				//Definiciones
				$attributes_labels = array(
					'class' => 'control-label',
				);
				?>
				<div class="form-group input-type">
				<?= form_label('Identificación', 'NUM_IDETER', $attributes_labels); ?>
				<div class="input-group">
				<div class="input-group-addon">
				<i class="fa fa-user"></i>
				</div>
				<?=
				form_input(['name'              => 'NUM_IDETER', 'id'                => 'NUM_IDETER', 'class'             => 'form-control',
				'data-parsley-type' => 'number', 'required'          => '', 'autocomplete'             => 'off', 'autofocus'         => true])
				?>
				</div>
				</div>
				<div class="input-group submit-forms">
				<?= form_submit('submit', 'Ingresar', "class='btn btn-default btn-login' style='margin-bottom:20px;'"); ?>
				</div>
				<?= form_close(); ?>
				</div>
				</div>
				<?php else: ?>
				<h3 style="color: red;background: #f39b15;padding: 30px;">Este dispositivo no está autorizado para ejecutar este proceso, comuníquese con el administrador</h3>
					<?php endif; ?>
					<![endif]>
					<?php $this->load->view('template/footer_front') ?>
					