<?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=""><a href="<?php echo site_url('monitoreo/panel_control/panel_control/informe_principal');     ?>" aria-expanded="false" style="background-color:#F0F0F0">General</a></li>
                    <li class=""><a href="<?php echo site_url('monitoreo/panel_control/panel_control/informe_finiquitados');        ?>" aria-expanded="false" style="background-color:#25a541">Finiquitados</a></li>
                    <li class=""><a href="<?php echo site_url('monitoreo/panel_control/panel_control/informe_formulados');     ?>" aria-expanded="false" style="background-color:#1ecce5">Formulados</a></li>
                    <li class="active" ><a  data-toggle="tab" href="<?php echo site_url('monitoreo/panel_control/panel_control/informe_ocupacion_efectiva'); ?>" aria-expanded="true" style="background-color:#fdff39">Ocupación Efectiva</a></li>
                    <li class=""><a href="<?php echo site_url('monitoreo/panel_control/panel_control/informe_ocupacion_irregular');?>" aria-expanded="false" style="background-color:#f44d4d">Ocupados de Manera Irregular</a></li>
                    <li class=""><a href="<?php echo site_url('monitoreo/panel_control/panel_control/informe_adjudicados');?>" aria-expanded="false" style="background-color:#1ddb00">Adjudicados</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-12">
                                <div class="box box-primary">
                                    <div class="box-body">
                                        <table id="tabla_empate3" class="table table-striped table-hover">
                                            <thead>
                                                <tr>
                                                    <th><?php echo lang('geocolonias_dpto_cod');?></th>
                                                    <th><?php echo lang('geocolonias_dist_cod');?></th>
                                                    <th><?php echo lang('geocolonias_col_cod');?></th>
                                                    <th><?php echo lang('geocolonias_id_codgeo');?></th>
                                                    <th><?php echo lang('geocolonias_col_desc');?></th>
                                                    <th></th>
                                                </tr>
                                                <tr>
                                                <?php echo form_open(current_url(), array('class' => 'form-horizontal', 'id' => 'form-create_geocolonia')); ?>
                                                    <th><input id="dpto_cod" name="dpto_cod" type="text" class="form-control" 
                                                    placeholder="<?php echo lang('geocolonias_dpto_cod');?>" 
                                                    value="<?php if (isset($_SESSION['arraywhere_geocolonia']['dpto_cod'])) 
                                                                 {  
                                                                    echo $_SESSION['arraywhere_geocolonia']['dpto_cod'];
                                                                 }else{
                                                                    echo '';
                                                                 } ?>"
                                                    enable autofocus></th>

                                                    <th><input id="dist_cod" name="dist_cod" type="text" class="form-control" 
                                                    placeholder="<?php echo lang('geocolonias_dist_cod');?>" 
                                                    value="<?php if (isset($_SESSION['arraywhere_geocolonia']['dist_cod'])) 
                                                                 {  
                                                                    echo $_SESSION['arraywhere_geocolonia']['dist_cod'];
                                                                 }else{
                                                                    echo '';
                                                                 } ?>"
                                                    enable></th>

                                                    <th><input id="col_cod" name="col_cod" type="text" class="form-control" 
                                                    placeholder="<?php echo lang('geocolonias_col_cod');?>" 
                                                    value="<?php if (isset($_SESSION['arraywhere_geocolonia']['col_cod'])) 
                                                                 {  
                                                                    echo $_SESSION['arraywhere_geocolonia']['col_cod'];
                                                                 }else{
                                                                    echo '';
                                                                 } ?>"
                                                    enable></th>

                                                    <th><input id="id_codgeo" name="id_codgeo" type="text" class="form-control" 
                                                    placeholder="<?php echo lang('geocolonias_id_codgeo');?>" 
                                                    value="<?php if (isset($_SESSION['arraywhere_geocolonia']['id_codgeo'])) 
                                                                 {  
                                                                    echo $_SESSION['arraywhere_geocolonia']['id_codgeo'];
                                                                 }else{
                                                                    echo '';
                                                                 } ?>"
                                                    enable></th>

                                                    <th><input id="col_desc" name="col_desc" type="text" class="form-control" 
                                                    placeholder="<?php echo lang('geocolonias_col_desc');?>" 
                                                    value="<?php if (isset($_SESSION['arraywhere_geocolonia']['col_desc'])) 
                                                                 {  
                                                                    echo $_SESSION['arraywhere_geocolonia']['col_desc'];
                                                                 }else{
                                                                    echo '';
                                                                 } ?>"
                                                    enable></th>

                                                    <th><?php echo form_button(array('type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => 'buscar', 'id' => 'boton'));
                                                     ?></th>

                                                <?php echo form_close();?>
                                                </tr>
                                            </thead>
                                            <tbody class="muestra_geocolonias">
                                            <?php if (isset($v_empate3)):?>
                                                <?php foreach ($v_empate3 as $values):?>
                                                    <tr>
                                                        <td><?php echo htmlspecialchars($values->dpto_cod,  ENT_QUOTES, 'UTF-8'); ?></td>                               
                                                        <td><?php echo htmlspecialchars($values->dist_cod,  ENT_QUOTES, 'UTF-8'); ?></td>                                       
                                                        <td><?php echo htmlspecialchars($values->col_cod,   ENT_QUOTES, 'UTF-8'); ?></td>                                   
                                                        <td><?php echo htmlspecialchars($values->id_codgeo, ENT_QUOTES, 'UTF-8'); ?></td>                                       
                                                        <td><?php echo htmlspecialchars($values->col_desc,  ENT_QUOTES, 'UTF-8'); ?></td>                   
                                                        <td>
                                                            <?php echo anchor('man_espacial/geocolonias/geocolonias/edit/'.$values->gid, lang('actions_edit')); ?>
                                                            <?php echo '&nbsp;';?>
                                                            <?php echo anchor('man_espacial/geocolonias/geocolonias/delete/'.$values->gid, lang('actions_delete')); ?>
                                                        </td>
                                                    </tr>
                                                <?php endforeach;?>
                                            <?php else:?>
                                                <tr>
                                                    <td colspan="10" align="center"><b>NO HAY RESULTADOS</b></td>
                                                </tr>
                                            <?php endif;?>
                                            </tbody>
                                        </table>
                                        <?php echo $pagination; ?>
                                    
                                    </div>
                                </div>
                            </div>
                        </div><!-- /.box-body -->
                    </div><!-- /.tab-pane -->
                </div><!-- /.tab-content -->
            </div><!-- nav-tabs-custom -->                          
        </div>
    </section>
</div>
