<?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('parcelas_localidad');  ?></th>
                                              <th><?php echo lang('parcelas_lote_n');     ?></th>
                                              <th><?php echo lang('parcelas_ii_nombre');  ?></th>
                                              <th><?php echo lang('parcelas_padron_n');   ?></th>
                                              <th><?php echo lang('parcelas_finca_n');    ?></th>
                                              <th><?php echo lang('parcelas_supha');      ?></th>
                                              <th></th>
                                            </tr>
                                            <tr class="filters">
                                                    <?php echo form_open('man_espacial/parcelas/parcelas/lotes', array('class' => 'form-horizontal', 'id' => 'form-seach_parcelas')); ?>

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

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

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

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

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

                                                    <th><input id="supha" name="supha" type="text" class="form-control" 
                                                                placeholder="<?php echo lang('parcelas_supha');?>" 
                                                                value="<?php if (isset($_SESSION['arraywhere_parcelas']['supha'])) 
                                                                       {  
                                                                        echo $_SESSION['arraywhere_parcelas']['supha'];
                                                                       }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 ($lotes as $values):?>
                                            <tr>
                                                <td><?php echo htmlspecialchars($values->localidad, ENT_QUOTES, 'UTF-8'); ?></td>       

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

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

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

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

                                                <td><?php echo htmlspecialchars($values->supha, 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->objectid, ' U'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoUT/'.$values->objectid.'/'.$values->lote_n, ' U'); ?>
                                                   <?php echo '&nbsp'; ?>                            
                                                   <?php //echo anchor('man_espacial/parcelas/parcelas/generarplanoA/'.$values->objectid, '  A'); ?>
                                                   <?php echo '&nbsp'; ?>                            
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoA2/'.$values->objectid.'/'.$values->lote_n, '  A'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php //echo anchor('man_espacial/parcelas/parcelas/generarplanoF/'.$values->objectid, ' F'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoF2/'.$values->objectid.'/'.$values->lote_n, '  F'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoC/'.$values->objectid.'/'.$values->lote_n, ' C'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoT/'.$values->objectid.'/'.$values->lote_n, ' T'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoMS86/'.$values->objectid.'/'.$values->lote_n, ' MS86'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                           
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoU862/'.$values->objectid.'/'.$values->lote_n, ' U86'); ?> 
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoIA/'.$values->objectid.'/'.$values->lote_n, ' IA'); ?>
                                                </td>   
                                            </tr>
<?php endforeach;?>
                                        </tbody>
                                    </table>
                                    <?php
                                        echo $pagination;
                                        
                                    ?>
                                </div>
                            </div>
                         </div>
                      </div>
                    </div>
                </section>
            </div>
            
            
