<?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="nav-tabs-custom">
                            <ul class="nav nav-tabs">
                                <li  class="active" ><a  data-toggle="tab" href="<?php echo site_url('cuest/reg01/vista_reg01'); ?>" aria-expanded="true" style="background-color:#F0F0F0">Mantenimiento</a></li>
                                <!--<li class=""><a href="<?php echo site_url('expedientes/dictamen_a/index/'.$expe_info[0]['expe_id']);?>" aria-expanded="false">Dictamen A</a></li>-->
                                <!--<li class=""><a href="<?php echo site_url('expedientes/dictamen_b/index/'.$expe_info[0]['expe_id']);?>" aria-expanded="false">Dictamen B</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 Información Expediente -->
                                        <div class="col-md-4">
                                            <div class="box box-primary">
                                                <div class="box-header with-border ">
                                                    <h3 class="box-title">Información Proyecto</h3>
                                                </div>
                                                <div class="box-body">
                                                    <table class="table table-striped table-hover">
                                                        <tbody>
                                                        <?php foreach ($expe_info as $expe):?>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_id_expediente'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_id_expediente'],      ENT_QUOTES, 'UTF-8'); ?></td>
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_gestion'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_gestion'],            ENT_QUOTES, 'UTF-8'); ?></td>
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_c_tipodoc'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_c_tipodoc'],               ENT_QUOTES, 'UTF-8'); ?></td>
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_tipo_ref'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_tipo_ref_desc'],           ENT_QUOTES, 'UTF-8'); ?></td>
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_id_expediente_ref'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_id_expediente_ref'],  ENT_QUOTES, 'UTF-8'); ?></td>
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_doc_proponente'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_doc_proponente'],     ENT_QUOTES, 'UTF-8'); ?></
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_tipo_proyecto'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_tipo_proyecto'],      ENT_QUOTES, 'UTF-8'); ?></
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_proyecto'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_proyecto'],           ENT_QUOTES, 'UTF-8'); ?></
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_consultor_nom'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_consultor_nom'],      ENT_QUOTES, 'UTF-8'); ?></
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_tecnico'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_tecnico'],      ENT_QUOTES, 'UTF-8'); ?></
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_fproceso_geo'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_fproceso_geo'],      ENT_QUOTES, 'UTF-8'); ?></
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_nota'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_nota'],      ENT_QUOTES, 'UTF-8'); ?></
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_estado'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_estado_desc'],             ENT_QUOTES, 'UTF-8'); ?></
                                                            </tr>
                                                            <tr>
                                                                <th><?php echo lang('expedientes_expe_secuencia'); ?></th>
                                                                <td><?php echo htmlspecialchars($expe['expe_secuencia'],          ENT_QUOTES, 'UTF-8'); ?></
                                                            </tr>
                                                            
                                                        <?php endforeach;?>
                                                        </tbody>
                                                    </table>
                                                    <hr>
                                                    <div class="form-group">
                                                        <div <div class="col-md-offset-1 col-md-10" align="center">
                                                            <div class="btn-group">
                                                                <?php echo anchor('man_espacial/colonias/colonias', 'ATRAS', array('class' => 'btn btn-default btn-flat')); ?>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                         </div>
                                        <!-- FIN Bloque Información Expediente -->
                                        <!-- Bloque Datos Graficos -->
                                        <div class="col-md-8">
                                            <div class="box box-success">
                                                <div class="box-header with-border">
                                                    <h3 class="box-title">Mantenimiento - Datos Gráficos</h3>
                                                </div>
                                                <?php if (isset($message)): ?>
                                                    <pre>
                                                        <?php echo $message;?>  
                                                    </pre>    
                                                <?php endif ?>
                                                
                                                <div class="box-body">
                                                    <div class="col-md-6">
                                                        <table class="table table-striped table-hover">
                                                            <tbody>
                                                            <?php foreach ($datos_graficos as $expe_grf):?>
                                                                <tr>
                                                                    <th><?php echo 'USO 1986'; ?></th>
                                                                    <td><?php echo htmlspecialchars($expe_grf['uso86'],      ENT_QUOTES, 'UTF-8'); ?></td>
                                                                </tr> 
                                                                <tr>
                                                                    <th><?php echo 'USO ACTUAL'; ?></th>
                                                                    <td><?php echo htmlspecialchars($expe_grf['uso_actual'],      ENT_QUOTES, 'UTF-8'); ?></td>
                                                                </tr>                                                 
                                                                <tr>
                                                                    <th><?php echo 'USO ALTERNATIVO'; ?></th>
                                                                    <td><?php echo htmlspecialchars($expe_grf['uso_alternativo'],      ENT_QUOTES, 'UTF-8'); ?></td>
                                                                </tr>                                         
                                                            <?php endforeach;?>
                                                            </tbody>
                                                        </table>
                                                    </div>
                                                    <div class="col-md-6">
                                                        <table class="table table-striped table-hover">
                                                            <tbody>
                                                            <?php foreach ($datos_graficos as $expe_grf):?>
                                                                <tr>
                                                                    <th><?php echo 'FINCAS'; ?></th>
                                                                    <td><?php echo htmlspecialchars($expe_grf['fincas'],      ENT_QUOTES, 'UTF-8'); ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <th><?php echo 'PARCELAS'; ?></th>
                                                                    <td><?php echo htmlspecialchars($expe_grf['parcelas'],      ENT_QUOTES, 'UTF-8'); ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <th><?php echo 'CAPACIDAD'; ?></th>
                                                                    <td><?php echo htmlspecialchars($expe_grf['capacidad'],      ENT_QUOTES, 'UTF-8'); ?></td>
                                                                </tr>
                                                                <tr>
                                                                    <th><?php echo 'TAXONOMIA'; ?></th>
                                                                    <td><?php echo htmlspecialchars($expe_grf['taxonomia'],      ENT_QUOTES, 'UTF-8'); ?></td>
                                                                </tr>                                                    
                                                            <?php endforeach;?>
                                                            </tbody>
                                                        </table>
                                                    </div>

                                                    <hr>
                                                    
                                                    <!-- Sección botones -->
                                                    <div class="form-group">
                                                        <div <div class="col-sm-12" align="center">
              
                                                            <?php echo anchor('expedientes/mantenimiento/veri3geo/', 'VER I3geo', array('class' => 'btn btn-primary btn-flat  fa fa-map')); ?>
                                                            <?php echo '&nbsp;';?>
                                                            <?php echo '&nbsp;';?>
                                                            <?php echo '&nbsp;';?>
                                                            <?php echo '&nbsp;';?>
                                                            <?php echo '&nbsp;';?>
                                                            <?php echo '&nbsp;';?>
                                                            <?php echo anchor('expedientes/mantenimiento/download_expe/'.$expe['expe_id_expediente'].'/'.$expe['expe_gestion'] .'/'.$expe['expe_id'] , 'Descargar Todos', array('class' => ' btn btn-warning btn-flat')); ?>                                                            
                                                        </div>
                                                    </div>
                                                    <div class="form-group">
                                                        <div <div class="col-sm-12" align="center">
                                                            <?php echo form_open_multipart('expedientes/mantenimiento/importar_shapes', array('class' => 'form-horizontal', 'id' => 'form-importar_shapes')); ?>
                                                            <input id="shapes[]" name="shapes[]" type="file" class="file-loading" webkitdirectory directory>
                                                            <?php echo form_input($expe_id_expediente);?>
                                                            <?php echo form_input($expe_gestion);?>
                                                            <?php echo form_input($expe_id);?>
                                                            <div class="col-md-3" align="left">
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => ' Importar USO 1986', 'id' => 'boton','value' => '10'));?>                                   
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => ' Importar  USO ACTUAL', 'id' => 'boton','value' => '11'));?>                  
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => ' Importar USO ALTERNATIVO', 'id' => 'boton','value' => '12'));?> 
                                                            </div>
                                                            <div class="col-md-3" align="left">
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => ' Importar FINCAS', 'id' => 'boton','value' => '13'));?>
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => ' Importar PARCELAS', 'id' => 'boton','value' => '14'));?>  
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => ' Importar CAPACIDAD', 'id' => 'boton','value' => '15'));?>            
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-primary btn-flat', 'content' => ' Importar TAXONOMIA', 'id' => 'boton','value' => '16'));?>
                                                            </div>
                                                             <div class="col-md-3" align="left">
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-warning btn-flat', 'content' => ' Eliminar USO 1986', 'id' => 'boton','value' => '20'));?>                                   
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-warning btn-flat', 'content' => ' Eliminar  USO ACTUAL', 'id' => 'boton','value' => '21'));?>                  
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-warning btn-flat', 'content' => ' Eliminar USO ALTERNATIVO', 'id' => 'boton','value' => '22'));?> 
                                                            </div>
                                                            <div class="col-md-3" align="left">
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-warning btn-flat', 'content' => ' Eliminar FINCAS', 'id' => 'boton','value' => '23'));?>
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-warning btn-flat', 'content' => ' Eliminar PARCELAS', 'id' => 'boton','value' => '24'));?>  
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-warning btn-flat', 'content' => ' Eliminar CAPACIDAD', 'id' => 'boton','value' => '25'));?>            
                                                            <?php echo form_button(array('name' => 'accion', 'type' => 'submit', 'class' => 'btn btn-warning btn-flat', 'content' => ' Eliminar TAXONOMIA', 'id' => 'boton','value' => '26'));?>
                                                            </div>                                                           
                                                            <?php echo form_close(); ?>
                                                        </div>
                                                    </div>  
                                                    <!-- Fin sección botones -->
                                                </div>
                                            </div>
                                        </div>
                                        <!-- FIN Bloque Datos Graficos -->
                                    </div><!-- /.box-body -->
                                </div><!-- /.tab-pane -->
                            </div><!-- /.tab-content -->
                        </div><!-- nav-tabs-custom --> 
                    </div>
                </section>
            </div>
