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

?>

            <div class="content-wrapper">
                <section class="content-header">
                    <?php echo 'Bloques'; ?>
                    <?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('bloque_nro_bloque');  ?></th>
                                              <th><?php echo lang('bloque_nombre');     ?></th>
                                              <th><?php echo lang('bloque_sup_actual');     ?></th>
                                              <th><?php echo lang('bloque_objectid');  ?></th>
                                              <th></th>
                                            </tr>
                                            <tr class="filters">
                                                    <?php echo form_open('man_espacial/parcelas/parcelas/bloques', array('class' => 'form-horizontal', 'id' => 'form-seach_bloques')); ?>

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

                                                    <th><input id="nombre" name="nombre" type="text" class="form-control" 
                                                                placeholder="<?php echo 'Nombre';?>" 
                                                                value="<?php if (isset($_SESSION['arraywhere_bloques']['nombre'])) 
                                                                       {  
                                                                        echo $_SESSION['arraywhere_bloques']['nombre'];
                                                                       }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_bloques']['sup_actual'])) 
                                                                       {  
                                                                        echo $_SESSION['arraywhere_bloques']['sup_actual'];
                                                                       }else{
                                                                        echo '';
                                                                       } ?>"
                                                                enable autofocus>
                                                    </th>

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

                                                <td><?php echo htmlspecialchars($values->nombre, 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/verbloques_ol/'.$values->objectid, lang('actions_see')); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanobloquesU/'.$values->objectid, ' U'); ?>
                                                   <?php echo '&nbsp'; ?>                           
                                                   <?php echo '&nbsp'; ?>                           
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanobloquesA/'.$values->objectid, '  A'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                        
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanobloquesU86/'.$values->objectid, ' U86'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                        
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanobloquesC/'.$values->objectid, ' C'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                        
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanobloquesT/'.$values->objectid, ' T'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                        
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanobloquesI86/'.$values->objectid, ' I86'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                        
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanobloquesIAC/'.$values->objectid, ' IAc'); ?>
                                                   <?php echo '&nbsp'; ?>
                                                   <?php echo '&nbsp'; ?>                        
                                                   <?php echo anchor('man_espacial/parcelas/parcelas/generarplanobloquesF/'.$values->objectid, ' F'); ?>                                                  

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