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

?>

            <div class="content-wrapper">
                <section class="content-header">
                    <?php echo 'Lotes'; ?>
                    <?php echo $breadcrumb; ?>
                </section>

                <section class="content">
                    <div class="row">
                      <div class="filterable">
                        <div class="col-md-12">
                             <div class="box">
                                <div class="box-header with-border">
                                </div>
                                <div class="box-body" style="overflow-x: scroll">
                                    <table id="tabla" class="table table-striped table-hover">
                                        <thead>
                                            <tr>
                                              <th><?php echo lang('bolotes_id');  ?></th>
                                              <th><?php echo lang('bolotes_lote');     ?></th>
                                              <th><?php echo lang('bolotes_nombre');  ?></th>
                                              <th><?php echo lang('bolotes_cod_catast');   ?></th>
                                              <th><?php echo lang('bolotes_distrito');      ?></th>
                                              <th><?php echo lang('bolotes_manzano');    ?></th>
                                              <th><?php echo lang('bolotes_zonas');      ?></th>
                                              <th><?php echo lang('bolotes_sup_m2');      ?></th>
                                              <th><?php echo lang('bolotes_obs');      ?></th>
                                              <th></th>
                                            </tr>
                                            <tr class="filters">
                                                    <?php echo form_open('man_espacial/parcelas/parcelas/bolotes', array('class' => 'form-horizontal', 'id' => 'form-seach_parcelas')); ?>

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

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

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

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

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

                                                    <th><input id="manzano" name="manzano" type="text" class="form-control" 
                                                                placeholder="<?php echo lang('bolotes_manzano');?>" 
                                                                value="<?php if (isset($_SESSION['arraywhere_parcelas']['manzano'])) 
                                                                       {  
                                                                        echo $_SESSION['arraywhere_parcelas']['manzano'];
                                                                       }else{
                                                                        echo '';
                                                                       } ?>"
                                                                enable autofocus>
                                                    </th>
                                                    
                                                    <th><input id="zonas" name="zonas" type="text" class="form-control" 
                                                                placeholder="<?php echo lang('bolotes_zonas');?>" 
                                                                value="<?php if (isset($_SESSION['arraywhere_parcelas']['zonas'])) 
                                                                       {  
                                                                        echo $_SESSION['arraywhere_parcelas']['zonas'];
                                                                       }else{
                                                                        echo '';
                                                                       } ?>"
                                                                enable autofocus>
                                                    </th>
                                                    
                                                    <th><input id="sup_m2" name="sup_m2" type="text" class="form-control" 
                                                                placeholder="<?php echo lang('bolotes_sup_m2');?>" 
                                                                value="<?php if (isset($_SESSION['arraywhere_parcelas']['sup_m2'])) 
                                                                       {  
                                                                        echo $_SESSION['arraywhere_parcelas']['sup_m2'];
                                                                       }else{
                                                                        echo '';
                                                                       } ?>"
                                                                enable autofocus>
                                                    </th>

                                                    <th><input id="obs" name="obs" type="text" class="form-control" 
                                                                placeholder="<?php echo lang('bolotes_obs');?>" 
                                                                value="<?php if (isset($_SESSION['arraywhere_parcelas']['obs'])) 
                                                                       {  
                                                                        echo $_SESSION['arraywhere_parcelas']['obs'];
                                                                       }else{
                                                                        echo '';
                                                                       } ?>"
                                                                enable autofocus>
                                                    </th>
                                                    
                                                    <th>
                                                    <?php echo form_button(array('type' => 'submit', 'class' => 'btn btn-primary btn-flat glyphicon glyphicon-search', 'id' => 'boton')); ?>
                                                    <?php echo form_close();?>
                                                    </th>
                                                    <th></th>
                                            </tr>
                                        </thead>
                                        <tbody>                                    
<?php foreach ($bolotes as $values):?>
                                            <tr>
                                                <td><?php echo htmlspecialchars($values->gid, ENT_QUOTES, 'UTF-8'); ?></td>       

                                                <td><?php echo htmlspecialchars($values->lote, ENT_QUOTES, 'UTF-8'); ?></td>

                                                <td><?php echo htmlspecialchars($values->nombre, ENT_QUOTES, 'UTF-8'); ?></td>

                                                <td><?php echo htmlspecialchars($values->cod_catast, ENT_QUOTES, 'UTF-8'); ?></td>

                                                <td><?php echo htmlspecialchars($values->distrito, ENT_QUOTES, 'UTF-8'); ?></td>

                                                <td><?php echo htmlspecialchars($values->manzano, ENT_QUOTES, 'UTF-8'); ?></td>

                                                <td><?php echo htmlspecialchars($values->zonas, ENT_QUOTES, 'UTF-8'); ?></td>

                                                <td><?php echo htmlspecialchars($values->sup_m2, ENT_QUOTES, 'UTF-8'); ?></td>

                                                <td><?php echo htmlspecialchars($values->obs, ENT_QUOTES, 'UTF-8'); ?></td>
                                
                                                <td>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/verlotes_ol/'.$values->gid, lang('actions_see')); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php //echo anchor('man_espacial/parcelas/parcelas/generarplanoU/'.$values->gid, ' U'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoUT/'.$values->gid.'/'.$values->lote, ' U'); ?>
                                                   <?php echo '&nbsp'; ?>                            
                                                   <?php //echo anchor('man_espacial/parcelas/parcelas/generarplanoA/'.$values->gid, '  A'); ?>
                                                   <?php echo '&nbsp'; ?>                            
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoA2/'.$values->gid.'/'.$values->lote, '  A'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php //echo anchor('man_espacial/parcelas/parcelas/generarplanoF/'.$values->gid, ' F'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoF2/'.$values->gid.'/'.$values->lote, '  F'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoC/'.$values->gid.'/'.$values->lote, ' C'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoT/'.$values->gid.'/'.$values->lote, ' T'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoMS86/'.$values->gid.'/'.$values->lote, ' MS86'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                           
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoU862/'.$values->gid.'/'.$values->lote, ' U86'); ?> 
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoIA/'.$values->gid.'/'.$values->lote, ' IA'); ?>
                                                </td>   
                                            </tr>
<?php endforeach;?>
                                        </tbody>
                                    </table>
                                    <?php
                                        echo $pagination;
                                        
                                    ?>
                                </div>
                            </div>
                         </div>
                      </div>
                    </div>
                </section>
            </div>
            
            
