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

?>

            <div class="content-wrapper">
                <section class="content-header">
                    <?php echo 'Aldeas'; ?>
                    <?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('aldea_localidad');  ?></th>
                                              <th><?php echo lang('aldea_aldea_zona');     ?></th>
                                              <th><?php echo lang('aldea_sup_actual');     ?></th>
                                              <th><?php echo lang('aldea_objectid');  ?></th>
                                              <th></th>
                                            </tr>
                                            <tr class="filters">
                                                    <?php echo form_open('man_espacial/parcelas/parcelas/aldeas', array('class' => 'form-horizontal', 'id' => 'form-seach_aldeas')); ?>

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

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

                                                    <th><input id="sup_actual" name="Sup. Actual" type="text" class="form-control" 
                                                                placeholder="<?php echo 'sup_actual';?>" 
                                                                value="<?php if (isset($_SESSION['arraywhere_aldeas']['sup_actual'])) 
                                                                       {  
                                                                        echo $_SESSION['arraywhere_aldeas']['sup_actual'];
                                                                       }else{
                                                                        echo '';
                                                                       } ?>"
                                                                enable autofocus>
                                                    </th>

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

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

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

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


                                                <td>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/veraldeas_ol/'.$values->gid, lang('actions_see')); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoaldeasU/'.$values->objectid, ' U'); ?>
                                                   <?php echo '&nbsp'; ?>                            
                                                   <?php echo '&nbsp'; ?>                            
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoaldeasA/'.$values->objectid, '  A'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                        
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoaldeasU86/'.$values->objectid, ' U86'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                        
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoaldeasC/'.$values->objectid, ' C'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                        
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoaldeasT/'.$values->objectid, ' T'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                        
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoaldeasI86/'.$values->objectid, ' I86'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                        
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoaldeasIAC/'.$values->objectid, ' IAc'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                        
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanoaldeasF/'.$values->objectid, ' F'); ?>                                                  

                                                </td>   
                                            </tr>
<?php endforeach;?>
                                        </tbody>
                                    </table>
                                    <?php
                                        echo $pagination;
                                        
                                    ?>
                                </div>
                            </div>
                         </div>
                      </div>
                    </div>
                </section>
            </div>
            
            
