<?php
defined('BASEPATH') OR exit('No direct script access allowed');

?>
<div class="content-wrapper ">
	<section class="content-header">
		<?php echo $pagetitle; ?>
		<?php echo $breadcrumb; ?>
	</section>
	<section class="content">
		<div class="row">
			<div class="box-header with-border" style="background-color: #E6E6E6">
			</div>
			<!-- Custom Tabs -->
			<div class="nav-tabs-custom">
				<ul class="nav nav-tabs">
					<li class="active" ><a  data-toggle="tab" href="<?php echo site_url('monitoreo/panel_control/panel_control/empate_principal'); ?>" aria-expanded="true" style="background-color:#F0F0F0">General</a></li>
					<li class=""><a href="<?php echo site_url('monitoreo/panel_control/panel_control/empate_empatados');    	?>" aria-expanded="false">Empatados</a></li>
					<li class=""><a href="<?php echo site_url('monitoreo/panel_control/panel_control/empate_sin_parcelas');     ?>" aria-expanded="false">Cuestionarios sin Parcelas</a></li>
					<li class=""><a href="<?php echo site_url('monitoreo/panel_control/panel_control/empate_sin_cuestionarios');?>" aria-expanded="false">Parcelas sin Cuestionarios</a></li>
				</ul>
				<div class="tab-content" style="background-color:#F0F0F0">
					<div id="tab_1" class="tab-pane active">
						<div class="box-body" style="background-color:#F0F0F0" id="div_reg01">
							<!-- Bloque de Formulario-->
							<div class="col-md-6">
								<div class="box box-primary">

									<div class="box-body">
										<div class="form-group">
											<?php echo form_open(current_url(), array('class' => 'form-horizontal', 'id' => 'form-empate')); ?>
											<div class="col-sm-5">
												<?php $attribute = 'class="selectpicker show-tick form-control" title="Seleccione la colonia" name="dptodistritocolonia" id="dptodistritocolonia" data-live-search="true"';
												
												echo form_dropdown('dptodistritocolonia', $dptodistritocolonia, $dptodistritocolonia_sel, $attribute);   ?>
											</div>
											<?php echo form_button(array('type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => 'EMPATAR', 'id' => 'boton_empatar'));
											?>

											&nbsp;
											&nbsp;

											<?php echo form_button(array('type' => 'submit', 'class' => 'btn btn-success btn-flat', 'content' => 'Verificar Empate', 'id' => 'boton_empatar'));
											?>
											<?php echo form_close();?>
										</div>
										<hr>
										<?php  if (isset($result_empate)):?>
											<div class="form-group">
												<div class="info-box">
													<span class="info-box-icon bg-green">
														<i class="fa fa-check"></i>
													</span>
													<div class="info-box-content">
														<span class="info-box-text">Empatados</span>
														<span class="info-box-number"><?php echo $result_empate['empatados'];?></span>
													</div>
												</div>
											</div>

											<div class="form-group">
												<div class="info-box">
													<span class="info-box-icon bg-red">
														<i class="fa fa-close"></i>
													</span>
													<div class="info-box-content">
														<span class="info-box-text">No en In Temp</span>
														<span class="info-box-number"><?php echo $result_empate['no_en_reg01'];?></span>
													</div>
												</div>
											</div>

											<div class="form-group">
												<div class="info-box">
													<span class="info-box-icon bg-red">
														<i class="fa fa-close"></i>
													</span>
													<div class="info-box-content">
														<span class="info-box-text">No en Reg01</span>
														<span class="info-box-number"><?php echo $result_empate['no_en_in_temp'];?></span>
													</div>
												</div>
											</div>
										<?php else: ?>
											<div class="form-group">
												<h2>Primero elija una colonia para empatar.</h2>
											</div>                                        
										<?php endif; ?>
									</div>
								</div>
							</div>
							<!-- Fin bloque de Formulario-->
							<!-- Bloque de foto-->
							<div class="col-md-6">
							 <div class="box box-info">
								<div class="box-header with-border">
									<h3 class="box-title"><?php echo lang('reg01_vista_foto'); ?></h3>
								</div>
								<div class="box-body">
									<div class="form-group">
										<div class="col-sm-5">
											
										</div>
									</div>                                                                            
								</div>
							</div>
						</div>
						<!-- Fin bloque de Foto-->
						<!-- Bloque de Mapa-->
						<div class="col-md-6">
							<div class="box box-info">
								<div class="box-body">
									<div>
										<div class="col-sm-6">                                                
											<!--<iframe width="530px" height="430px" src="http://192.168.1.254:8060/i3geo/interface/black_osm.htm?chrnvobbac0e7a5cc7ac205s23"></iframe> -->
										</div>
									</div>                                                                            
								</div>
							</div>
						</div>
						<!-- Fin bloque de Mapa-->
					</div><!-- /.box-body -->
				</div><!-- /.tab-pane -->
			</div><!-- /.tab-content -->
		</div><!-- nav-tabs-custom -->                          
	</div>
</section>
</div>
