<?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="col-md-12">
                             <div class="box">
                                <div class="box-header with-border">
                                    <h3 class="box-title"><?php echo lang('colonias_ver_colonia'); ?></h3>
                                </div>
                                <div class="box-body">
                                    <?php echo $message;?>  
                                    
                                    <!-- El form_open ya tiene establecido el method="POST" -->
                                    <?php echo form_open(current_url(), array('class' => 'form-horizontal', 'id' => 'form-edit_user')); ?>
                                        <div class="form-group">
                                            <?php echo lang('colonias_dpto_dist', 'dpto_cod_distrito', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-5">
                                                <?php  
                                                    $attribute = 'class="selectpicker form-control" title="Departamentos y Distritos" id="dpto_cod" name="dpto_cod" data-live-search="true" disabled'; 
                                                    echo form_dropdown('dpto_cod_distrito', $dpto_distrito, $dpto_distrito_sel,$attribute); ?>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <?php echo lang('colonias_col_codgeo', 'dpto_distrito_colonia', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-6">
                                                <?php  
                                                    $attribute = 'class="selectpicker form-control" title="Departamentos y Distritos" id="dpto_distrito_colonia" data-live-search="true" disabled'; 
                                                    echo form_dropdown('dpto_distrito_colonia', $dpto_distrito_colonia, $dpto_distrito_colonia_sel, $attribute); ?>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <?php echo lang('colonias_col_cod', 'col_cod', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-1">
                                                <?php echo form_input($col_cod);?>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <?php echo lang('colonias_col_desc', 'col_desc', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-3">
                                                <?php echo form_input($col_desc);?>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <?php echo lang('colonias_resolucion_hab', 'resolucion_hab', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-3">
                                                <?php echo form_input($resolucion_hab);?>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <?php echo lang('colonias_fecha_hab', 'fecha_hab', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-3">
                                                <div class="input-group date" data-provide="datepicker" data-date-format="dd/mm/yyyy">
                                                    <div class="input-group">
                                                        <div class="input-group-addon">
                                                            <i class="fa fa-calendar disabled"></i>
                                                        </div>
                                                        <?php echo form_input($fecha_hab);?>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        
                                        <div class="form-group">
                                            <?php echo lang('colonias_antecedentes', 'antecedentes', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-4">
                                                <?php echo form_textarea($antecedentes) ?>                   
                                            </div>                                            
                                        </div>
                                        <div class="form-group">
                                            <?php echo lang('colonias_fecha_inscripcion', 'fecha_inscripcion', array('class' => 'col-sm-2 control-label')); ?>
                                            <div class="col-sm-3">
                                                <div class="input-group date" data-provide="datepicker" data-date-format="dd/mm/yyyy">
                                                    <div class="input-group disabled">
                                                        <div class="input-group-addon">
                                                            <i class="fa fa-calendar"></i>
                                                        </div>
                                                        <?php echo form_input($fecha_inscripcion);?>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <div class="btn-group">
                                                    <?php echo anchor('man_espacial/colonias/colonias', 'Salir', array('class' => 'btn btn-default btn-flat')); ?>
                                                    <?php 
                                                        /*
                                                        echo anchor('man_espacial/colonias/colonias/generar_pericia_completa_1_a_1/'.$dpto.'/'.$dist.'/'.$colonia.'/'.$gid.'/','Generar Pericia'); 
                                                        */
                                                    ?>
                                                </div>
                                            </div>
                                        </div>
                                    <?php echo form_close();?>
                                </div>
                            </div>
                         </div>
                    </div>
                </section>
            </div>
