%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/declaraciones/
Upload File :
Create Path :
Current File : /home/tjamichg/intranet.tjamich.gob.mx/intranet/sistemas/declaraciones/form_7.php

<?php

include 'conexion.php';

$comprobardeclex = '0';

?>

<script>

    function se_registro_no_antecedentes() {

        document.getElementById("aviso").style.display = "";

        document.getElementById("add_dependiente").disabled = true;

        document.getElementById("no_antecedentes").checked = true;

        document.getElementById('siguiente').style.display = "none";

    }



    function desactiva_no_antecedentes() {

        document.getElementById("campo_no_antecedentes").style.display = ""; //none

        document.getElementById("no_antecedentes").value = "off";

        document.getElementById('siguiente').style.display = "";

    }



    function muestra_actividad() {

        a = document.getElementById('actividad_lavoral').value;



        if (a == 'PÚBLICO') {

            document.getElementById('publico').style.display = "";

            document.getElementById('privado').style.display = "none";

            document.getElementById('otro_sector2').style.display = "none";

        } else if (a == 'PRIVADO') {

            document.getElementById('publico').style.display = "none";

            document.getElementById('privado').style.display = "";

            document.getElementById('otro_sector2').style.display = "none";

        } else if (a == 'OTRO (ESPECIFIQUE)') {

            document.getElementById('publico').style.display = "none";

            document.getElementById('privado').style.display = "none";

            document.getElementById('otro_sector2').style.display = "";

        } else if (a == 'NINGUNO') {

            document.getElementById('publico').style.display = "none";

            document.getElementById('privado').style.display = "none";

            document.getElementById('otro_sector2').style.display = "none";

        }

    }



    function muestra_municipio() {

        a = document.getElementById('municipio_alcaldia_mx').value;



        if (a == 'OTRO') {

            document.getElementById('otro_municipio2').style.display = "";

        } else {

            document.getElementById('otro_municipio2').style.display = "none";

        }

    }

</script>



<?php





$form       =   isset($_REQUEST['form']) ? $_REQUEST['form'] : '';

$id_declaracion =       isset($_REQUEST['id_declaracion']) ? $_REQUEST['id_declaracion'] : '';

$nueva_id       = isset($_REQUEST['nueva_id']) ? $_REQUEST['nueva_id'] : 0;

$tipo       = isset($_REQUEST['tipo']) ? $_REQUEST['tipo'] : 0;

$hay_datos = 0;

$se_registro_no = 0;



$conf = new Configuracion();

$conf->conectarBD();



//1 - DETECTAR DECLARACION ACTUAL

//consulta para ver si se clico la casilla no historial de empleos

$consulta = "SELECT * FROM contraloria_declaracion_tab_7 WHERE id_declaracion = $id_declaracion";

$rst1 = $conf->consulta($consulta);

$antecedentes_dependientes =   $rst1[0]['antecedentes_dependientes'];

$rst1count =   count($rst1);



if (count($rst1) > 0) {

    $comprobardeclex = '1';

    if ($rst1[0]['antecedentes_dependientes'] == "NO") {

        echo '<script>

                       se_registro_no_antecedentes();

                     </script>';

        $se_registro_no = 1;

    }

}



?>

<div class="tab">

    <div class="portlet box portlet-green" style="border: solid 1px; border-color: green;">

        <!-- Portlet Experiencia laboral -->

        <div class="portlet-header">

            <div class="caption">I-7. DATOS DEL DEPENDIENTE ECONÓMICO.</div>

            <div class="tools"><i>07 / 22</i></div>

        </div>

        <div class="portlet-body">



            <!--TABLA DE REGISTROS-->

            <div class="table-responsive" style="margin: 30px 0; border: solid 1px green; padding 10px;">

                <table id="table_id" style="border-bottom:1px solid #ddd" class="table table-striped table-bordered table-hover">

                    <thead>

                        <tr>

                            <th>#</th>

                            <th>Nombre</th>

                            <th>Sector</th>

                            <th>Opciones</th>

                        </tr>

                    </thead>

                    <tbody>



                        <?php

                        $estatus = array("", "warning", "warning", "primary", "info", "success");



                        //2 - MOSTRAR DATOS DE DECLARACION ACTUAL

                        $consulta = "SELECT * from contraloria_declaracion_tab_7_det WHERE id_declaracion = $id_declaracion AND habilitado = 1";

                        $rst1 = $conf->consulta($consulta);



                        //Si hay registros de datos en la declaracion actual

                        if (count($rst1) > 0) {

                            //desactivamos la casilla para evitar contradiccion

                            echo '<script>

                                               desactiva_no_antecedentes();

                                             </script>';

                            $hay_datos = 1;

                        } else {



                            //3 - VERIFICAR DECLARACION ANTERIOR

                            //Si no hay datos de la decl actual, revisamos si existen con la declaracion anterior

                            if ($tipo == 2 || $tipo == 3) {

                                //verificar si hay declaracion anterior

                                // $sql2 = "SELECT MAX(id_declaracion) AS id_declaracion_previa 

                                //                 FROM contraloria_declaraciones 

                                //                 WHERE id_usuario = $id_usuario AND id_declaracion!=$id_declaracion AND habilitado =1 AND anterior = 0  AND avance = 22";

                                // $rst2 = $conf->consulta($sql2);

                                $sql2 = "SELECT MAX(id_declaracion) AS id_declaracion_previa 

                                        FROM contraloria_declaraciones 

                                        WHERE id_usuario = $id_usuario AND id_declaracion!=$id_declaracion AND habilitado = 1 AND anterior = 0 AND finalizar = 1 ";

                                $rst2 = $conf->consulta($sql2);



                                // if ($rst2[0]['id_declaracion_previa'] != null) { //si hay delcaracion anterior obtenemos su id para copiar los registros a la nueva

                                if (count($rst2) > 0) {

                                    $id_declaracion_previa = $rst2[0]['id_declaracion_previa'];



                                    //4 - INSERTAR DECLARACION BASE

                                    //registramos que hay datos y actualizamos el avance

                                    if ($rst1count == 0) {

                                        // INSERSION CON SI ANTECEDENTES

                                        $insert_1 = "INSERT INTO contraloria_declaracion_tab_7 (id_declaracion, antecedentes_dependientes,id_declaracion_tab) VALUES ('$id_declaracion', 'SI', '0')";

                                        $id_declaracion_tab5 =  $conf->ultimo_id($insert_1);

                                        // MARCAR AVANCE UNA SOLA VEZ

                                        $sum = "UPDATE contraloria_declaraciones SET avance=avance+1 WHERE id_declaracion=$id_declaracion";

                                        $ac = $conf->actualizacion($sum);



                                        $antecedentes_dependientes = 'SI';

                                        $insertardets = '1';

                                    } else {

                                        $insertardets = '0';

                                    }



                                    //5 - INSERTAR DETS

                                    $sql5 = "SELECT * from contraloria_declaracion_tab_7_det WHERE id_declaracion = $id_declaracion_previa AND habilitado = 1";

                                    $rst5 = $conf->consulta($sql5);



                                    if (!empty($rst5) && $antecedentes_dependientes == 'SI' && $insertardets == '1') {

                                        for ($i = 0; $i < count($rst5); $i++) {



                                            //datos de la declaracion anterior

                                            $nombre             =    $rst5[$i]['nombre'];

                                            $apPat                 =    $rst5[$i]['apPat'];

                                            $apMat                 =    $rst5[$i]['apMat'];

                                            $fecha_nacimiento   =   $rst5[$i]['fecha_nacimiento'];

                                            $rfc                =   $rst5[$i]['rfc'];

                                            $parentesco         =   $rst5[$i]['parentesco'];

                                            $parentesco_otro    =   $rst5[$i]['parentesco_otro'];

                                            $ciudadano_ext      =   $rst5[$i]['ciudadano_ext'];

                                            $curp                 =    $rst5[$i]['curp'];

                                            $cohabitantesino    =   $rst5[$i]['cohabitantesino'];

                                            $dependiente_e      =   $rst5[$i]['dependiente_e'];

                                            $cohabitante        =   $rst5[$i]['cohabitante'];

                                            $lugar_recidencia   =   $rst5[$i]['lugar_recidencia'];

                                            $calle_mx           =   $rst5[$i]['calle_mx'];

                                            $num_int_mx         =   $rst5[$i]['num_int_mx'];

                                            $num_ext_mx         =   $rst5[$i]['num_ext_mx'];

                                            $colonia_localidad_mx   =   $rst5[$i]['colonia_localidad_mx'];

                                            $municipio_alcaldia_mx  =   $rst5[$i]['municipio_alcaldia_mx'];

                                            $entidad_mx         =   $rst5[$i]['entidad_mx'];

                                            $codigo_postal_mx   =   $rst5[$i]['codigo_postal_mx'];

                                            $calle_ext          =   $rst5[$i]['calle_ext'];

                                            $num_int_ext        =   $rst5[$i]['num_int_ext'];

                                            $num_ext_ext        =   $rst5[$i]['num_ext_ext'];

                                            $ciudad_localidad_ext   =   $rst5[$i]['ciudad_localidad_ext'];

                                            $estado_provincia_ext   =   $rst5[$i]['estado_provincia_ext'];

                                            $pais_ext           =   $rst5[$i]['pais_ext'];

                                            $codigo_postal_ext  =   $rst5[$i]['codigo_postal_ext'];

                                            $actividad_laboral  =   $rst5[$i]['actividad_laboral'];

                                            $otra_actividad_laboral =   $rst5[$i]['otra_actividad_laboral'];

                                            $orden_gob          =   $rst5[$i]['orden_gob'];

                                            $ambito_publico     =    $rst5[$i]['ambito_publico'];

                                            $ente_publico         =   $rst5[$i]['ente_publico'];

                                            $area_adscripcion     =    $rst5[$i]['area_adscripcion'];

                                            $empleo_cargo         =    $rst5[$i]['empreo_cargo'];

                                            $funcion_principal     =    $rst5[$i]['funcion_principal'];

                                            $salario_mensual_neto     =    $rst5[$i]['salario_neto'];

                                            $fecha_ingreso         =    $rst5[$i]['fecha_ingreso'];

                                            $nombre_empresa_2   =    $rst5[$i]['nombre_empresa_2'];

                                            $empleo_cargo_2     =    $rst5[$i]['empleo_cargo_2'];

                                            $rfc_empresa_2         =    $rst5[$i]['rfc_2'];

                                            $fecha_ingreso_2    =   $rst5[$i]['fecha_ingreso_2'];

                                            $sector_2           =   $rst5[$i]['sector_2'];

                                            $salario_net_2      =   $rst5[$i]['salario_neto_2'];

                                            $proveedor_gob      =   $rst5[$i]['proveedor_gob'];

                                            $otro_sector_2      =   $rst5[$i]['otro_sector_2'];

                                            $observaciones      =   $rst5[$i]['observaciones'];





                                            if (empty($fecha_nacimiento) || $fecha_nacimiento == '0000-00-00' || $fecha_nacimiento == 0) {

                                                $fecha_nacimiento = '1900-01-01';

                                            } else {

                                            }

                                            if (empty($fecha_ingreso) || $fecha_ingreso == '0000-00-00' || $fecha_ingreso == 0) {

                                                $fecha_ingreso = '1900-01-01';

                                            } else {

                                            }

                                            if (empty($fecha_ingreso_2) || $fecha_ingreso_2 == '0000-00-00' || $fecha_ingreso_2 == 0) {

                                                $fecha_ingreso_2 = '1900-01-01';

                                            } else {

                                            }

                                            if (empty($salario_net_2)) {

                                                $salario_net_2 = '0.00';

                                            } elseif (strpos($salario_net_2, '.') !== false) {

                                                $salario_net_2 = $salario_net_2;

                                            } else {

                                                $salario_net_2 = $salario_net_2 . '.00';

                                            }

                                            if (empty($salario_mensual_neto)) {

                                                $salario_mensual_neto = '0.00';

                                            } elseif (strpos($salario_mensual_neto, '.') !== false) {

                                                $salario_mensual_neto = $salario_mensual_neto;

                                            } else {

                                                $salario_mensual_neto = $salario_mensual_neto . '.00';

                                            }

                                            if (empty($observaciones) || $observaciones == '') {

                                                $observaciones = 'ND';

                                            } else {

                                            }



                                            // $salario_net_2 = $salario_net_2 . '.00';

                                            // $salario_mensual_neto = $salario_mensual_neto . '.00';



                                            //inserta los datos en la declaracion actual

                                            $insert = "INSERT INTO contraloria_declaracion_tab_7_det (id_declaracion,nombre,apPat,apMat,fecha_nacimiento,rfc,parentesco,parentesco_otro,ciudadano_ext,curp,dependiente_e,cohabitante,cohabitantesino,lugar_recidencia,calle_mx,num_int_mx,num_ext_mx,colonia_localidad_mx,municipio_alcaldia_mx,entidad_mx,codigo_postal_mx,calle_ext,num_int_ext,num_ext_ext,ciudad_localidad_ext,estado_provincia_ext,pais_ext,codigo_postal_ext,actividad_laboral,orden_gob,ambito_publico,ente_publico,area_adscripcion,empreo_cargo,funcion_principal,salario_neto,fecha_ingreso,nombre_empresa_2,empleo_cargo_2,rfc_2,fecha_ingreso_2,sector_2,salario_neto_2,proveedor_gob,otro_sector_2,otra_actividad,observaciones,otra_actividad_laboral)

                                                        	VALUES ('$id_declaracion','$nombre','$apPat','$apMat','$fecha_nacimiento','$rfc','$parentesco','$parentesco_otro','$ciudadano_ext','$curp','$dependiente_e','$cohabitante','$cohabitantesino','$lugar_recidencia','$calle_mx','$num_int_mx','$num_ext_mx','$colonia_localidad_mx','$municipio_alcaldia_mx','$entidad_mx','$codigo_postal_mx','$calle_ext','$num_int_ext','$num_ext_ext','$ciudad_localidad_ext','$estado_provincia_ext','$pais_ext','$codigo_postal_ext','$actividad_laboral','$orden_gob','$ambito_publico','$ente_publico','$area_adscripcion','$empleo_cargo','$funcion_principal','$salario_mensual_neto','$fecha_ingreso','$nombre_empresa_2','$empleo_cargo_2','$rfc_empresa_2','$fecha_ingreso_2','$sector_2','$salario_net_2','$proveedor_gob','$otro_sector_2','$otra_actividad_laboral','$observaciones','ND')";

                                            $conf->consulta($insert);

                                        }



                                        //actualizar la cosulta para mostrar los datos en la tabla

                                        $rst1 = $conf->consulta($consulta);



                                        //desactivamos la casilla

                                        echo '<script>

                                                           desactiva_no_antecedentes();

                                                         </script>';

                                        $hay_datos = 1;

                                    }

                                }

                            } //fin if

                        } //fin del else



                        for ($i = 0; $i < count($rst1); $i++) {

                            $color = $estatus[$rst1[$i]["id_estatus"]];



                            if ($rst1[$i]['no_antecedentes'] != 1) {

                                echo "<tr>";

                                echo "<td>" . ($i + 1) . "</td>";

                                echo "<td>" . $rst1[$i]['nombre'] . ' ' . $rst1[$i]['apPat'] . ' ' . $rst1[$i]['apMat'] . "</td>";

                                echo "<td>" . $rst1[$i]['actividad_laboral'] . "</td>";

                                /*  if ($rst1[$i]['actividad_laboral'] == 'Ninguno') {

                                    echo "<td>No aplica</td>";

                                    echo "<td>No aplica</td>";

                                    echo "<td>No aplica</td>";

                                } else {

                                    if ($rst1[$i]['actividad_laboral'] == 'Privado') {

                                        echo "<td>" . $rst1[$i]['empleo_cargo_2'] . "</td>";

                                        echo "<td>" . $rst1[$i]['nombre_empresa_2'] . "</td>";

                                        echo "<td>" . $rst1[$i]['fecha_ingreso_2'] . "</td>";

                                    }

                                    if ($rst1[$i]['actividad_laboral'] == 'Publico') {

                                        echo "<td>" . $rst1[$i]['empreo_cargo'] . "</td>";

                                        echo "<td>" . $rst1[$i]['ente_publico'] . "</td>";

                                        echo "<td>" . $rst1[$i]['fecha_ingreso'] . "</td>";

                                    }

                                }

*/

                                echo '<td>';

                                /*  echo '<a class="btn btn-info" href="./controller/borra_5.php?form='.$form.'&id_declaracion='.$id_declaracion.'&id_borrar='.$rst1[$i]['id_dependiente'].'&tipo='.$tipo.'">

                                                            <i class="fa fa-edit"> Editar  </i> </a>';*/



                                if ($tipo == 1) {

                                    echo '<a class="btn btn-info" href="form_editar_7.php?form=' . $form . '&id_declaracion=' . $id_declaracion . '&id_det=' . $rst1[$i]['id_dependiente'] . '&tipo=' . $tipo . '">

                                                                <i class="fa fa-edit"> Editar  </i> </a>';

                                } else if ($tipo == 2) {



                                    echo '<a class="btn btn-info" href="form_editar_7.php?form=' . $form . '&id_declaracion=' . $id_declaracion . '&id_det=' . $rst1[$i]['id_dependiente'] . '&tipo=' . $tipo . '">

                                                                <i class="fa fa-edit"> Editar  </i> </a>';

                                } else if ($tipo == 3) {



                                    echo '<a class="btn btn-info" href="form_editar_7.php?form=' . $form . '&id_declaracion=' . $id_declaracion . '&id_det=' . $rst1[$i]['id_dependiente'] . '&tipo=' . $tipo . '">

                                                                <i class="fa fa-edit"> Editar  </i> </a>';

                                }



                                echo '</td>';



                                echo '</tr>';

                            } else {

                                echo '<script>

                                               se_registro_no_antecedentes();

                                             </script>';

                            }

                        }

                        ?>

                    </tbody>

                </table>

            </div><!-- table responsive-->



            <!-- BOTONES -->

            <div class="row">

                <div class="col-md-6">

                    <div class="alert alert-warning" id="aviso" style="display:none">

                        <strong>Info!</strong> Se activo la casilla: No dependientes, puede continuar llenando los formularios restantes.

                    </div>

                    <div class="form-group" id="campo_no_antecedentes"><label for="inputName" class="control-label">

                            <dt>Si no tiene ningun dependiente económico que agregar EN ESTA PRESENTE DECLARACIÓN, marque la siguiente casilla:</dt>

                        </label>

                        <div class="col-md-6">

                            <label>

                                <input type="checkbox" name="no_antecedentes" tabindex="14" id="no_antecedentes" onchange="no_antecedentes(this);">

                                Sin dependientes económicos.

                            </label>

                        </div>

                    </div>

                </div>

                <div class="col-md-6">

                    <div class="form-group"><label for="inputName" class="control-label">

                            <dt></dt>

                        </label>

                        <button class="btn btn-success btn-md btn-block" id="add_dependiente" onclick="nuevo_empleo();">Agregar Dependiente Económico <i class="fa fa-plus"></i></button>

                    </div>

                </div>

                &nbsp;&nbsp;&nbsp;

                <br>

            </div>



            <!-- REGISTRO -->

            <form style="display: none; border: solid 1px green; padding: 20px;" id="form_dependiente" method="POST" onsubmit="return checkForm(this);" role="form" enctype="multipart/form-data" action="controller/guarda_form_7.php">

                <input type="hidden" name="form" value="<?php echo $form; ?>"></input>

                <input type="hidden" name="id_declaracion" value="<?php echo $id_declaracion; ?>"></input>

                <input type="hidden" name="nueva_id" value="<?php echo $nueva_id; ?>"></input>

                <input type="hidden" name="hay_datos" value="<?php echo $hay_datos; ?>"></input>

                <input type="hidden" name="se_registro_no" value="<?php echo $se_registro_no; ?>"></input>

                <input type="hidden" name="tipo" value="<?php echo $tipo; ?>"></input>

                <input type="hidden" name="comprobardeclex" value="<?php if ($comprobardeclex == '1') {

                                                                        echo '1';

                                                                    } else {

                                                                        echo '0';

                                                                    } ?>"></input>

                <div class="row">

                    <div class="col-md-4">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>Nombre(s)</dt>

                            </label><span class='require'> *</span>

                            <div class="input-icon left"><i class="fa fa-user"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="nombre" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" required />

                            </div>

                        </div>

                    </div>

                    <div class="col-md-4">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>Primer Apellido</dt>

                            </label><span class='require'> *</span>

                            <div class="input-icon left"><i class="fa fa-user"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="apPat" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" required />

                            </div>

                        </div>

                    </div>

                    <div class="col-md-4">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>Segundo Apellido</dt>

                            </label><span class='require'> *</span>

                            <div class="input-icon left"><i class="fa fa-user"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="apMat" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" required />

                            </div>

                        </div>

                    </div>

                    <div class="col-md-6">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>Fecha de Nacimiento</dt>

                            </label><span class='require'> *</span>

                            <div class="input-icon left"><i class="fa fa-calendar"></i><input id="cliente" type="date" max="<?= date('Y-m-d'); ?>" name="fecha_nacimiento" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" required />

                            </div>

                        </div>

                    </div>

                    <!--</div>

                            <div class="row">-->

                    <div class="col-md-6">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>RFC</dt>

                            </label><span class='require'> *</span>

                            <div class="input-icon left"><i class="fa fa-edit"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="rfc" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                                <!--required-->

                            </div>

                        </div>

                    </div>

                    <div class="col-md-6">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>Parentesco o Relación con el Declarante.</dt>

                            </label><span class='require'> *</span>

                            <select class="form-control" name="parentesco" id="parentesco" onchange="muestra_parentesco();" required>

                                <option value="" selected></option>

                                <option value="ABUELO(A)">ABUELO(A)</option>

                                <option value="AHIJADO(A)">AHIJADO(A)</option>

                                <option value="BISABUELO(A)">BISABUELO(A)</option>

                                <option value="BISNIETO(A)">BISNIETO(A)</option>

                                <option value="CONCUBINA O CONCUBINARIO">CONCUBINA O CONCUBINARIO</option>

                                <option value="CONCUÑO(A)">CONCUÑO(A)</option>

                                <option value="CÓNYUGE">CÓNYUGE</option>

                                <option value="CUÑADO(A)">CUÑADO(A)</option>

                                <option value="HERMANO(A)">HERMANO(A)</option>

                                <option value="HIJO(A)">HIJO(A)</option>

                                <option value="MADRE">MADRE</option>

                                <option value="NIETO(A)">NIETO(A)</option>

                                <option value="NUERA">NUERA</option>

                                <option value="PADRE">PADRE</option>

                                <option value="PRIMO(A)">PRIMO(A)</option>

                                <option value="SOBRINO(A)">SOBRINO(A)</option>

                                <option value="SUEGRO(A)">SUEGRO(A)</option>

                                <option value="TATARABUELO(A)">TATARABUELO(A)</option>

                                <option value="TATARANIETO(A)">TATARANIETO(A)</option>

                                <option value="TIO(A)">TIO(A)</option>

                                <option value="YERNO">YERNO</option>

                                <option value="NINGUNO">NINGUNO</option>

                                <option value="OTRO(ESPECIFIQUE)">OTRO(ESPECIFIQUE)</option>

                            </select>

                        </div>

                    </div>

                    <div class="col-md-6" id="otro_parentesco" style="display: none;">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>Especifique parentesco (en caso de otro)</dt>

                            </label><span class='require'> </span>

                            <div class="input-icon left"><i class="fa fa-edit"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="parentesco_otro" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                            </div>

                        </div>

                    </div>

                </div>

                <div class="row">

                    <div class="col-md-6">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>¿Es ciudadano extranjero?</dt>

                            </label><span class='require'> *</span>

                            <div class="col-md-12">

                                <label>

                                    <input type="radio" name="ciudadano_ext" value="SI" tabindex="14" id="extranjero_si" required onclick="hide_curp();">

                                    SÍ

                                </label>

                                &nbsp;&nbsp;&nbsp;

                                <label>

                                    <input type="radio" name="ciudadano_ext" value="NO" tabindex="15" id="extranjero_no" onclick="desplega_curp();">

                                    NO

                                </label>

                            </div>

                        </div>

                    </div>

                    <div class="col-md-6" id="curp" style="display: none;">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>CURP</dt>

                            </label>

                            <div class="input-icon left"><i class="fa fa-edit"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="curp" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                            </div>

                        </div>

                    </div>

                </div>

                <div class="row">

                    <div class="col-md-12">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>¿Es dependiente económico?</dt>

                            </label><span class='require'> *</span>

                            <div class="col-md-12">

                                <label>

                                    <input type="radio" name="dependiente_e" value="SI" tabindex="14" id="dependiente_si" required>

                                    SÍ

                                </label>

                                &nbsp;&nbsp;&nbsp;

                                <label>

                                    <input type="radio" name="dependiente_e" value="NO" tabindex="15" id="dependiente_no">

                                    NO

                                </label>

                            </div>

                        </div>

                    </div>

                    <div class="col-md-12">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>¿Habita en el domicilio del declarante?</dt>

                            </label><span class='require'> *</span>

                            <div class="col-md-12">

                                <label>

                                    <input type="radio" name="cohabitante" value="SI" tabindex="14" id="cohabitante_si" <?php if ($cohabitante == 'SI') {

                                                                                                                            echo 'checked';

                                                                                                                        } ?> onclick="hide_lugar();">

                                    SÍ

                                </label>

                                &nbsp;&nbsp;&nbsp;

                                <label>

                                    <input type="radio" name="cohabitante" value="NO" tabindex="15" id="cohabitante_no" <?php if ($cohabitante == 'NO') {

                                                                                                                            echo 'checked';

                                                                                                                        } ?> onclick="desplega_lugar();">

                                    NO

                                </label>

                            </div>

                        </div>

                    </div>

                </div>



                <div class="row" id="mismo_domicilio" style="display: none; padding: 30px;">

                    <div class="col-md-12">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>Lugar donde recide</dt>

                            </label><span class='require'> </span>

                            <select class="form-control" name="lugar_recidencia" id="lugar_recidencia" onchange="muestra_recidencia()" ;>

                                <option selected value="<?php echo $lugar_recidencia; ?>"><?php echo $lugar_recidencia; ?></option>

                                <option value="MÉXICO">México</option>

                                <option value="EXTRANJERO">Extranjero</option>

                                <option value="SE_DESCONOCE">SE_DESCONOCE</option>

                            </select>

                        </div>

                    </div>

                </div>



                <div class="row" id="domicilio_mexico" style="display: none; padding: 30px;">

                    <div class="row">

                        <div class="form-group">

                            <label for="InputText">

                                <h4>

                                    <dt>En México:</dt>

                                </h4>

                            </label><br>

                        </div>

                    </div>

                    <div class="row">

                        <div class="col-md-12">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Calle/Carretera</dt>

                                </label><span class='require'> *</span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="calle_mx" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="calle_mx" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                                </div>

                            </div>

                        </div>

                    </div>

                    <div class="row">

                        <div class="col-md-4">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Número interior</dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="numInt_mx" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="num_int_mx" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-4">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Número Exterior</dt>

                                </label><span class='require'> *</span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="numExt_mx" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="num_ext_mx" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-4">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Código Postal</dt>

                                </label><span class='require'> *</span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="codigo_postal_mx" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="codigo_postal_mx" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                                </div>

                            </div>

                        </div>

                    </div>

                    <div class="row">

                        <div class="col-md-12">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Colonia / Localidad</dt>

                                </label><span class='require'> *</span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="colonia_localidad_mx" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="colonia_localidad_mx" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-12">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Municipio / Alcaldia</dt>

                                </label><span class='require'> *</span>

                                <select class="form-control" name="municipio_alcaldia_mx" value="<?php echo $municipio_alcaldia_mx; ?>" id="municipio_alcaldia_mx" onchange="muestra_municipio()";>

                                    <option value="<?php echo $municipio_alcaldia_mx; ?>" selected><?php echo $municipio_alcaldia_mx; ?></option>

                                    <!--<OPTION VALUE="PURUÁNDIRO">PURUÁNDIRO</OPTION>-->

                                    <OPTION VALUE="ACUITZIO">ACUITZIO</OPTION>

                                    <OPTION VALUE="AGUILILLA">AGUILILLA</OPTION>

                                    <OPTION VALUE="ÁLVARO OBREGÓN">ÁLVARO OBREGÓN</OPTION>

                                    <OPTION VALUE="ANGAMACUTIRO">ANGAMACUTIRO</OPTION>

                                    <OPTION VALUE="ANGANGUEO">ANGANGUEO</OPTION>

                                    <OPTION VALUE="APATZINGÁN">APATZINGÁN</OPTION>

                                    <OPTION VALUE="APORO">APORO</OPTION>

                                    <OPTION VALUE="AQUILA">AQUILA</OPTION>

                                    <OPTION VALUE="ARIO">ARIO</OPTION>

                                    <OPTION VALUE="ARTEAGA">ARTEAGA</OPTION>

                                    <OPTION VALUE="BRISEÑAS">BRISEÑAS</OPTION>

                                    <OPTION VALUE="BUENAVISTA">BUENAVISTA</OPTION>

                                    <OPTION VALUE="CARÁCUARO">CARÁCUARO</OPTION>

                                    <OPTION VALUE="COAHUAYANA">COAHUAYANA</OPTION>

                                    <OPTION VALUE="COALCOMÁN DE VÁZQUEZ PALLARES">COALCOMÁN DE VÁZQUEZ PALLARES</OPTION>

                                    <OPTION VALUE="COENEO">COENEO</OPTION>

                                    <OPTION VALUE="CONTEPEC">CONTEPEC</OPTION>

                                    <OPTION VALUE="COPÁNDARO">COPÁNDARO</OPTION>

                                    <OPTION VALUE="COTIJA">COTIJA</OPTION>

                                    <OPTION VALUE="CUITZEO">CUITZEO</OPTION>

                                    <OPTION VALUE="CHARAPAN">CHARAPAN</OPTION>

                                    <OPTION VALUE="CHARO">CHARO</OPTION>

                                    <OPTION VALUE="CHAVINDA">CHAVINDA</OPTION>

                                    <OPTION VALUE="CHERÁN">CHERÁN</OPTION>

                                    <OPTION VALUE="CHILCHOTA">CHILCHOTA</OPTION>

                                    <OPTION VALUE="CHINICUILA">CHINICUILA</OPTION>

                                    <OPTION VALUE="CHUCÁNDIRO">CHUCÁNDIRO</OPTION>

                                    <OPTION VALUE="CHURINTZIO">CHURINTZIO</OPTION>

                                    <OPTION VALUE="CHURUMUCO">CHURUMUCO</OPTION>

                                    <OPTION VALUE="COJUMATLÁN DE RÉGULE">COJUMATLÁN DE RÉGULES</OPTION>

                                    <OPTION VALUE="ECUANDUREO">ECUANDUREO</OPTION>

                                    <OPTION VALUE="EPITACIO HUERTA">EPITACIO HUERTA</OPTION>

                                    <OPTION VALUE="ERONGARÍCUARO">ERONGARÍCUARO</OPTION>

                                    <OPTION VALUE="GABRIEL ZAMORA">GABRIEL ZAMORA</OPTION>

                                    <OPTION VALUE="HIDALGO">HIDALGO</OPTION>

                                    <OPTION VALUE="HUANDACAREO">HUANDACAREO</OPTION>

                                    <OPTION VALUE="HUANIQUEO">HUANIQUEO</OPTION>

                                    <OPTION VALUE="HUETAMO">HUETAMO</OPTION>

                                    <OPTION VALUE="HUIRAMBA">HUIRAMBA</OPTION>

                                    <OPTION VALUE="INDAPARAPEO">INDAPARAPEO</OPTION>

                                    <OPTION VALUE="IRIMBO">IRIMBO</OPTION>

                                    <OPTION VALUE="IXTLÁN">IXTLÁN</OPTION>

                                    <OPTION VALUE="JACONA">JACONA</OPTION>

                                    <OPTION VALUE="JIMÉNEZ">JIMÉNEZ</OPTION>

                                    <OPTION VALUE="JIQUILPAN">JIQUILPAN</OPTION>

                                    <OPTION VALUE="JOSÉ SIXTO VERDUZCO">JOSÉ SIXTO VERDUZCO</OPTION>

                                    <OPTION VALUE="JUÁREZ">JUÁREZ</OPTION>

                                    <OPTION VALUE="JUNGAPEO">JUNGAPEO</OPTION>

                                    <OPTION VALUE="LA HUACANA">LA HUACANA</OPTION>

                                    <OPTION VALUE="LA PIEDAD">LA PIEDAD</OPTION>

                                    <OPTION VALUE="LAGUNILLAS">LAGUNILLAS</OPTION>

                                    <OPTION VALUE="LÁZARO CÁRDENAS">LÁZARO CÁRDENAS</OPTION>

                                    <OPTION VALUE="LOS REYES">LOS REYES</OPTION>

                                    <OPTION VALUE="MADERO">MADERO</OPTION>

                                    <OPTION VALUE="MARAVATÍO">MARAVATÍO</OPTION>

                                    <OPTION VALUE="MARCOS CASTELLANOS">MARCOS CASTELLANOS</OPTION>

                                    <OPTION VALUE="MORELIA">MORELIA</OPTION>

                                    <OPTION VALUE="MORELOS">MORELOS</OPTION>

                                    <OPTION VALUE="MÚGICA">MÚGICA</OPTION>

                                    <OPTION VALUE="NAHUATZEN">NAHUATZEN</OPTION>

                                    <OPTION VALUE="NOCUPÉTARO">NOCUPÉTARO</OPTION>

                                    <OPTION VALUE="NUEVO PARANGARICUTIRO">NUEVO PARANGARICUTIRO</OPTION>

                                    <OPTION VALUE="NUEVO URECHO">NUEVO URECHO</OPTION>

                                    <OPTION VALUE="NUMARÁN">NUMARÁN</OPTION>

                                    <OPTION VALUE="OCAMPO">OCAMPO</OPTION>

                                    <OPTION VALUE="PAJACUARÁN">PAJACUARÁN</OPTION>

                                    <OPTION VALUE="PANINDÍCUARO">PANINDÍCUARO</OPTION>

                                    <OPTION VALUE="PARÁCUARO">PARÁCUARO</OPTION>

                                    <OPTION VALUE="PARACHO">PARACHO</OPTION>

                                    <OPTION VALUE="PÁTZCUARO">PÁTZCUARO</OPTION>

                                    <OPTION VALUE="PENJAMILLO">PENJAMILLO</OPTION>

                                    <OPTION VALUE="PERIBÁN">PERIBÁN</OPTION>

                                    <OPTION VALUE="PURÉPERO">PURÉPERO</OPTION>

                                    <OPTION VALUE="PURUÁNDIRO">PURUÁNDIRO</OPTION>

                                    <OPTION VALUE="QUERÉNDARO">QUERÉNDARO</OPTION>

                                    <OPTION VALUE="QUIROGA">QUIROGA</OPTION>

                                    <OPTION VALUE="SAHUAYO">SAHUAYO</OPTION>

                                    <OPTION VALUE="SAN LUCAS">SAN LUCAS</OPTION>

                                    <OPTION VALUE="SANTA ANA MAYA">SANTA ANA MAYA</OPTION>

                                    <OPTION VALUE="SALVADOR ESCALANTE">SALVADOR ESCALANTE</OPTION>

                                    <OPTION VALUE="SENGUIO">SENGUIO</OPTION>

                                    <OPTION VALUE="SUSUPUATO">SUSUPUATO</OPTION>

                                    <OPTION VALUE="TACÁMBARO">TACÁMBARO</OPTION>

                                    <OPTION VALUE="TANCÍTARO">TANCÍTARO</OPTION>

                                    <OPTION VALUE="TANGAMANDAPIO">TANGAMANDAPIO</OPTION>

                                    <OPTION VALUE="TANGANCÍCUARO">TANGANCÍCUARO</OPTION>

                                    <OPTION VALUE="TANHUATO">TANHUATO</OPTION>

                                    <OPTION VALUE="TARETAN">TARETAN</OPTION>

                                    <OPTION VALUE="TARÍMBARO">TARÍMBARO</OPTION>

                                    <OPTION VALUE="TEPALCATEPEC">TEPALCATEPEC</OPTION>

                                    <OPTION VALUE="TINGAMBATO">TINGAMBATO</OPTION>

                                    <OPTION VALUE="TINGÜINDÍN">TINGÜINDÍN</OPTION>

                                    <OPTION VALUE="TIQUICHEO DE NICOLÁS ROMERO">TIQUICHEO DE NICOLÁS ROMERO</OPTION>

                                    <OPTION VALUE="TLALPUJAHUA">TLALPUJAHUA</OPTION>

                                    <OPTION VALUE="TLAZAZALCA">TLAZAZALCA</OPTION>

                                    <OPTION VALUE="TOCUMBO">TOCUMBO</OPTION>

                                    <OPTION VALUE="TUMBISCATÍO">TUMBISCATÍO</OPTION>

                                    <OPTION VALUE="TURICATO">TURICATO</OPTION>

                                    <OPTION VALUE="TUXPAN">TUXPAN</OPTION>

                                    <OPTION VALUE="TUZANTLA">TUZANTLA</OPTION>

                                    <OPTION VALUE="TZINTZUNTZAN">TZINTZUNTZAN</OPTION>

                                    <OPTION VALUE="TZITZIO">TZITZIO</OPTION>

                                    <OPTION VALUE="URUAPAN">URUAPAN</OPTION>

                                    <OPTION VALUE="VENUSTIANO CARRANZA">VENUSTIANO CARRANZA</OPTION>

                                    <OPTION VALUE="VILLAMAR">VILLAMAR</OPTION>

                                    <OPTION VALUE="VISTA HERMOSA">VISTA HERMOSA</OPTION>

                                    <OPTION VALUE="YURÉCUARO">YURÉCUARO</OPTION>

                                    <OPTION VALUE="ZACAPU">ZACAPU</OPTION>

                                    <OPTION VALUE="ZAMORA">ZAMORA</OPTION>

                                    <OPTION VALUE="ZINÁPARO">ZINÁPARO</OPTION>

                                    <OPTION VALUE="ZINAPÉCUARO">ZINAPÉCUARO</OPTION>

                                    <OPTION VALUE="ZIRACUARETIRO">ZIRACUARETIRO</OPTION>

                                    <OPTION VALUE="ZITÁCUARO">ZITÁCUARO</OPTION>

                                    <option value="OTRO">OTRO MUNICIPIO (FUERA DEL ESTADO)</option>

                                </select>

                            </div>

                        </div>

                        <div class="row" id="otro_municipio2" style="display: none;">

                            <div class="col-md-12">

                                <div class="form-group col-md-12"><label for="inputName" class="control-label">

                                        <dt>Especifique municipio (municipio externo al estado). </dt>

                                    </label><span class='require'> </span>

                                    <div class="input-icon left"><i class="fa fa-edit"></i><input id="otro_municipio_externo" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="otro_municipio_externo" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $municipio_alcaldia_mx; ?>" />

                                    </div>

                                </div>

                            </div>

                        </div>

                        <div class="col-md-12">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Entidad Federativa</dt>

                                </label><span class='require'> *</span>

                                <select class="form-control" name="entidad_mx" value="<?php echo $entidad_mx; ?>" id="entidad_federativa_mx">

                                    <option value="<?php echo $entidad_mx; ?>" selected><?php echo $entidad_mx; ?></option>

                                    <OPTION VALUE="MICHOACÁN DE OCAMPO">MICHOACÁN DE OCAMPO</OPTION>

                                    <OPTION VALUE="AGUASCALIENTES">AGUASCALIENTES</OPTION>

                                    <OPTION VALUE="BAJA CALIFORNIA">BAJA CALIFORNIA</OPTION>

                                    <OPTION VALUE="BAJA CALIFORNIA SUR">BAJA CALIFORNIA SUR</OPTION>

                                    <OPTION VALUE="CAMPECHE">CAMPECHE</OPTION>

                                    <OPTION VALUE="CIUDAD DE MÉXICO">CIUDAD DE MÉXICO</OPTION>

                                    <OPTION VALUE="CHIHUAHUA">CHIHUAHUA</OPTION>

                                    <OPTION VALUE="CHIAPAS">CHIAPAS</OPTION>

                                    <OPTION VALUE="COAHUILA DE ZARAGOZA">COAHUILA DE ZARAGOZA</OPTION>

                                    <OPTION VALUE="COLIMA">COLIMA</OPTION>

                                    <OPTION VALUE="DURANGO">DURANGO</OPTION>

                                    <OPTION VALUE="GUERRERO">GUERRERO</OPTION>

                                    <OPTION VALUE="GUANAJUATO">GUANAJUATO</OPTION>

                                    <OPTION VALUE="HIDALGO">HIDALGO</OPTION>

                                    <OPTION VALUE="JALISCO">JALISCO</OPTION>

                                    <OPTION VALUE="MÉXICO">MÉXICO</OPTION>

                                    <OPTION VALUE="MICHOACÁN DE OCAMPO">MICHOACÁN DE OCAMPO</OPTION>

                                    <OPTION VALUE="MORELOS">MORELOS</OPTION>

                                    <OPTION VALUE="NAYARIT">NAYARIT</OPTION>

                                    <OPTION VALUE="NUEVO LEÓN">NUEVO LEÓN</OPTION>

                                    <OPTION VALUE="OAXACA">OAXACA</OPTION>

                                    <OPTION VALUE="PUEBLA">PUEBLA</OPTION>

                                    <OPTION VALUE="QUINTANA ROO">QUINTANA ROO</OPTION>

                                    <OPTION VALUE="QUERÉTARO">QUERÉTARO</OPTION>

                                    <OPTION VALUE="SINALOA">SINALOA</OPTION>

                                    <OPTION VALUE="SAN LUIS POTOSÍ">SAN LUIS POTOSÍ</OPTION>

                                    <OPTION VALUE="SONORA">SONORA</OPTION>

                                    <OPTION VALUE="TABASCO">TABASCO</OPTION>

                                    <OPTION VALUE="TAMAULIPAS">TAMAULIPAS</OPTION>

                                    <OPTION VALUE="TLAXCALA">TLAXCALA</OPTION>

                                    <OPTION VALUE="VERACRUZ DE IGNACIO DE LA LLAVE">VERACRUZ DE IGNACIO DE LA LLAVE</OPTION>

                                    <OPTION VALUE="YUCATÁN">YUCATÁN</OPTION>

                                    <OPTION VALUE="ZACATECAS">ZACATECAS</OPTION>

                                </select>

                            </div>

                        </div>

                    </div>

                </div>



                <div class="row" id="domicilio_extranjero" style="display: none; padding: 30px;">

                    <div class="row">

                        <div class="form-group align-items-center">

                            <label for="InputText">

                                <h4>

                                    <dt>En el Extranjero:</dt>

                                </h4>

                            </label><br>

                        </div>

                    </div>

                    <div class="row">

                        <div class="col-md-12">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Calle/Carretera</dt>

                                </label><span class='require'> *</span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="calle_ext" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="calle_ext" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-4">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Número interior</dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="numInt_ext" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="num_int_ext" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-4">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Número Exterior</dt>

                                </label><span class='require'> *</span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="numExt_ext" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="num_ext_ext" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-4">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Código Postal</dt>

                                </label><span class='require'> *</span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="codigo_postal_ext" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="codigo_postal_ext" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                                </div>

                            </div>

                        </div>

                    </div>

                    <div class="row">

                        <div class="col-md-12">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Ciudad / Localidad</dt>

                                </label><span class='require'> *</span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="ciudad_localidad_ext" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="ciudad_localidad_ext" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-12">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Estado / Provincia</dt>

                                </label><span class='require'> *</span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="estado_provincia_ext" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="estado_provincia_ext" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-12">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Pais</dt>

                                </label><span class='require'> *</span>

                                <select class="form-control" name="pais_ext" value="<?php echo $pais_ext; ?>" id="pais_ext">

                                    <option value="<?php echo $pais_ext; ?>" selected><?php echo $pais_ext; ?></option>

                                    <OPTION VALUE="MÉXICO">MÉXICO</OPTION>

                                    <OPTION VALUE="AFGANISTÁN">AFGANISTÁN</OPTION>

                                    <OPTION VALUE="ALBANIA">ALBANIA</OPTION>

                                    <OPTION VALUE="ALEMANIA">ALEMANIA</OPTION>

                                    <OPTION VALUE="ANTARTIDA">ANTARTIDA</OPTION>

                                    <OPTION VALUE="ARABIA SAUDÍ">ARABIA SAUDÍ</OPTION>

                                    <OPTION VALUE="ARGELIA">ARGELIA</OPTION>

                                    <OPTION VALUE="ANDORRA">ANDORRA</OPTION>

                                    <OPTION VALUE="ANGOLA">ANGOLA</OPTION>

                                    <OPTION VALUE="ANGUILLA">ANGUILLA</OPTION>

                                    <OPTION VALUE="ANTIGUA Y BARBUDA">ANTIGUA Y BARBUDA</OPTION>

                                    <OPTION VALUE="ANTILLAS HOLANDESAS">ANTILLAS HOLANDESAS</OPTION>

                                    <OPTION VALUE="ARGENTINA">ARGENTINA</OPTION>

                                    <OPTION VALUE="ARMENIA">ARMENIA</OPTION>

                                    <OPTION VALUE="ARUBA">ARUBA</OPTION>

                                    <OPTION VALUE="AUSTRALIA">AUSTRALIA</OPTION>

                                    <OPTION VALUE="AUSTRIA">AUSTRIA</OPTION>

                                    <OPTION VALUE="AZERBAIYÁN">AZERBAIYÁN</OPTION>

                                    <OPTION VALUE="BAHAMAS">BAHAMAS</OPTION>

                                    <OPTION VALUE="BAHRAIN">BAHRAIN</OPTION>

                                    <OPTION VALUE="BANGLADESH">BANGLADESH</OPTION>

                                    <OPTION VALUE="BARBADOS">BARBADOS</OPTION>

                                    <OPTION VALUE="BÉLGICA">BÉLGICA</OPTION>

                                    <OPTION VALUE="BENIN">BENIN</OPTION>

                                    <OPTION VALUE="BERMUDA">BERMUDA</OPTION>

                                    <OPTION VALUE="BHUTAN">BHUTAN</OPTION>

                                    <OPTION VALUE="BOLIVIA">BOLIVIA</OPTION>

                                    <OPTION VALUE="BOSNIA Y HERZEGOVINA">BOSNIA Y HERZEGOVINA</OPTION>

                                    <OPTION VALUE="BOTSWANA">BOTSWANA</OPTION>

                                    <OPTION VALUE="BRASIL">BRASIL</OPTION>

                                    <OPTION VALUE="BELIZE">BELIZE</OPTION>

                                    <OPTION VALUE="BRUNEI DARUSSALAM">BRUNEI DARUSSALAM</OPTION>

                                    <OPTION VALUE="BULGARIA">BULGARIA</OPTION>

                                    <OPTION VALUE="BURKINA FASO">BURKINA FASO</OPTION>

                                    <OPTION VALUE="BURUNDI">BURUNDI</OPTION>

                                    <OPTION VALUE="BELARUS">BELARUS</OPTION>

                                    <OPTION VALUE="CAMBOYA">CAMBOYA</OPTION>

                                    <OPTION VALUE="CAMERÚN">CAMERÚN</OPTION>

                                    <OPTION VALUE="CANADÁ">CANADÁ</OPTION>

                                    <OPTION VALUE="CABO VERDE">CABO VERDE</OPTION>

                                    <OPTION VALUE="CHAD">CHAD</OPTION>

                                    <OPTION VALUE="CHEQUIA">CHEQUIA</OPTION>

                                    <OPTION VALUE="CHILE">CHILE</OPTION>

                                    <OPTION VALUE="CHINA">CHINA</OPTION>

                                    <OPTION VALUE="CHIPRE">CHIPRE</OPTION>

                                    <OPTION VALUE="COLOMBIA">COLOMBIA</OPTION>

                                    <OPTION VALUE="COMOROS">COMOROS</OPTION>

                                    <OPTION VALUE="CONGO">CONGO</OPTION>

                                    <OPTION VALUE="COREA">COREA DEL NORTE</OPTION>

                                    <OPTION VALUE="COREA DEL SUR">COREA DEL SUR</OPTION>

                                    <OPTION VALUE="COSTA DE MARFIL">COSTA DE MARFIL</OPTION>

                                    <OPTION VALUE="COSTA RICA">COSTA RICA</OPTION>

                                    <OPTION VALUE="CROACIA">CROACIA</OPTION>

                                    <OPTION VALUE="CUBA">CUBA</OPTION>

                                    <OPTION VALUE="DINAMARCA">DINAMARCA</OPTION>

                                    <OPTION VALUE="DJIBOUTI">DJIBOUTI</OPTION>

                                    <OPTION VALUE="DOMINICA">DOMINICA</OPTION>

                                    <OPTION VALUE="ECUADOR">ECUADOR</OPTION>

                                    <OPTION VALUE="EGIPTO">EGIPTO</OPTION>

                                    <OPTION VALUE="EL SALVADOR">EL SALVADOR</OPTION>

                                    <OPTION VALUE="EMIRATOSÁRABES UNIDOS">EMIRATOS ÁRABES UNIDOS</OPTION>

                                    <OPTION VALUE="ETIOPÍA">ETIOPÍA</OPTION>

                                    <OPTION VALUE="ERITREA">ERITREA</OPTION>

                                    <OPTION VALUE="ESLOVAQUIA">ESLOVAQUIA</OPTION>

                                    <OPTION VALUE="ESLOVENIA">ESLOVENIA</OPTION>

                                    <OPTION VALUE="ESPAÑA">ESPAÑA</OPTION>

                                    <OPTION VALUE="ESTADO VATICANO">ESTADO DEL VATICANO</OPTION>

                                    <OPTION VALUE="ESTADOS UNIDOS">ESTADOS UNIDOS</OPTION>

                                    <OPTION VALUE="ESTONIA">ESTONIA</OPTION>

                                    <OPTION VALUE="ESVALBARD Y JAN MAYEN">ESVALBARD Y JAN MAYEN</OPTION>

                                    <OPTION VALUE="FIJI">FIJI</OPTION>

                                    <OPTION VALUE="FILIPINAS">FILIPINAS</OPTION>

                                    <OPTION VALUE="FINLANDIA">FINLANDIA</OPTION>

                                    <OPTION VALUE="FRANCIA">FRANCIA</OPTION>

                                    <OPTION VALUE="GAMBIA">GAMBIA</OPTION>

                                    <OPTION VALUE="GABÓN">GABÓN</OPTION>

                                    <OPTION VALUE="GEORGIA">GEORGIA</OPTION>

                                    <OPTION VALUE="GEORGIA DEL SUR E ISLAS SANDWICH DEL SUR">GEORGIA DEL SUR E ISLAS SANDWICH DEL SUR</OPTION>

                                    <OPTION VALUE="GHANA">GHANA</OPTION>

                                    <OPTION VALUE="GIBRALTAR">GIBRALTAR</OPTION>

                                    <OPTION VALUE="GRECIA">GRECIA</OPTION>

                                    <OPTION VALUE="GROENLANDIA">GROENLANDIA</OPTION>

                                    <OPTION VALUE="GRANADA">GRANADA</OPTION>

                                    <OPTION VALUE="GUADALUPE">GUADALUPE</OPTION>

                                    <OPTION VALUE="GUAM">GUAM</OPTION>

                                    <OPTION VALUE="GUATEMALA">GUATEMALA</OPTION>

                                    <OPTION VALUE="GUAYANA">GUAYANA</OPTION>

                                    <OPTION VALUE="GUINEA">GUINEA</OPTION>

                                    <OPTION VALUE="GUINEA-BISSAU">GUINEA-BISSAU</OPTION>

                                    <OPTION VALUE="GUINEA ECUATORIAL">GUINEA ECUATORIAL</OPTION>

                                    <OPTION VALUE="GUINEA FRANCESA">GUINEA FRANCESA</OPTION>

                                    <OPTION VALUE="HAITÍ">HAITÍ</OPTION>

                                    <OPTION VALUE="HOLANDA">HOLANDA</OPTION>

                                    <OPTION VALUE="HONDURAS">HONDURAS</OPTION>

                                    <OPTION VALUE="HONG KONG">HONG KONG</OPTION>

                                    <OPTION VALUE="HUNGRÍA">HUNGRÍA</OPTION>

                                    <OPTION VALUE="INDIA">INDIA</OPTION>

                                    <OPTION VALUE="INDONESIA">INDONESIA</OPTION>

                                    <OPTION VALUE="IRÁN">IRÁN</OPTION>

                                    <OPTION VALUE="IRAK">IRAK</OPTION>

                                    <OPTION VALUE="IRLANDA">IRLANDA</OPTION>

                                    <OPTION VALUE="ISRAEL">ISRAEL</OPTION>

                                    <OPTION VALUE="ISLA BOUVET">ISLA BOUVET</OPTION>

                                    <OPTION VALUE="ISLA DE MAN">ISLA DE MAN</OPTION>

                                    <OPTION VALUE="ISLA NAVIDAD">ISLA NAVIDAD</OPTION>

                                    <OPTION VALUE="ISLANDIA">ISLANDIA</OPTION>

                                    <OPTION VALUE="ISLASÅLAND">ISLAS ÅLAND</OPTION>

                                    <OPTION VALUE="ISLAS CAIMÁN<">ISLAS CAIMÁN</OPTION>

                                    <OPTION VALUE="ISLAS COCOS (KEELING)">ISLAS COCOS (KEELING)</OPTION>

                                    <OPTION VALUE="ISLAS COOK">ISLAS COOK</OPTION>

                                    <OPTION VALUE="ISLAS DE NORTE-MARIANA">ISLAS DE NORTE-MARIANA</OPTION>

                                    <OPTION VALUE="ISLAS FAROE">ISLAS FAROE</OPTION>

                                    <OPTION VALUE="ISLAS HEARD E ISLAS MCDONALD">ISLAS HEARD E ISLAS MCDONALD</OPTION>

                                    <OPTION VALUE="ISLAS MALVINAS">ISLAS MALVINAS</OPTION>

                                    <OPTION VALUE="ISLAS MARSHALL">ISLAS MARSHALL</OPTION>

                                    <OPTION VALUE="ISLAS NORFOLK">ISLAS NORFOLK</OPTION>

                                    <OPTION VALUE="ISLAS SALOMÓN">ISLAS SALOMÓN</OPTION>

                                    <OPTION VALUE="ISLAS TURKS Y CAICOS">ISLAS TURKS Y CAICOS</OPTION>

                                    <OPTION VALUE="ISLAS ULTRAMARINAS DE ESTADOS UNIDOS">ISLAS ULTRAMARINAS DE ESTADOS UNIDOS</OPTION>

                                    <OPTION VALUE="ISLAS VÍRGENES BRITÁNICAS">ISLAS VÍRGENES BRITÁNICAS</OPTION>

                                    <OPTION VALUE="ISLAS VÍRGENES ESTADOUNIDENSES">ISLAS VÍRGENES ESTADOUNIDENSES</OPTION>

                                    <OPTION VALUE="ITALIA">ITALIA</OPTION>

                                    <OPTION VALUE="JAMAICA">JAMAICA</OPTION>

                                    <OPTION VALUE="JAPÓN">JAPÓN</OPTION>

                                    <OPTION VALUE="JORDANIA">JORDANIA</OPTION>

                                    <OPTION VALUE="KAZAJSTÁN">KAZAJSTÁN</OPTION>

                                    <OPTION VALUE="KENIA">KENIA</OPTION>

                                    <OPTION VALUE="KIRGISTÁN">KIRGISTÁN</OPTION>

                                    <OPTION VALUE="KIRIBATI">KIRIBATI</OPTION>

                                    <OPTION VALUE="KUWAIT">KUWAIT</OPTION>

                                    <OPTION VALUE="LAOS">LAOS</OPTION>

                                    <OPTION VALUE="LESOTO">LESOTO</OPTION>

                                    <OPTION VALUE="LETONIA">LETONIA</OPTION>

                                    <OPTION VALUE="LÍBANO">LÍBANO</OPTION>

                                    <OPTION VALUE="LIBERIA">LIBERIA</OPTION>

                                    <OPTION VALUE="LIBIA">LIBIA</OPTION>

                                    <OPTION VALUE="LIECHTENSTEIN">LIECHTENSTEIN</OPTION>

                                    <OPTION VALUE="LITUANIA">LITUANIA</OPTION>

                                    <OPTION VALUE="LUXEMBURGO">LUXEMBURGO</OPTION>

                                    <OPTION VALUE="MACAO">MACAO</OPTION>

                                    <OPTION VALUE="MACEDONIA">MACEDONIA</OPTION>

                                    <OPTION VALUE="MADAGASCAR">MADAGASCAR</OPTION>

                                    <OPTION VALUE="MALASIA">MALASIA</OPTION>

                                    <OPTION VALUE="MALAWI">MALAWI</OPTION>

                                    <OPTION VALUE="MALDIVAS">MALDIVAS</OPTION>

                                    <OPTION VALUE="MALI">MALI</OPTION>

                                    <OPTION VALUE="MALTA">MALTA</OPTION>

                                    <OPTION VALUE="MARTINICA">MARTINICA</OPTION>

                                    <OPTION VALUE="MAURICIO">MAURICIO</OPTION>

                                    <OPTION VALUE="MAURITANIA">MAURITANIA</OPTION>

                                    <OPTION VALUE="MAYOTE">MAYOTE</OPTION>

                                    <OPTION VALUE="MÉXICO">MÉXICO</OPTION>

                                    <OPTION VALUE="MIANMAR">MIANMAR</OPTION>

                                    <OPTION VALUE="MICRONESIA">MICRONESIA</OPTION>

                                    <OPTION VALUE="MÓNACO">MÓNACO</OPTION>

                                    <OPTION VALUE="MONGOLIA">MONGOLIA</OPTION>

                                    <OPTION VALUE="MOLDAVIA">MOLDAVIA</OPTION>

                                    <OPTION VALUE="MONTSERRAT">MONTSERRAT</OPTION>

                                    <OPTION VALUE="MARRUECOS">MARRUECOS</OPTION>

                                    <OPTION VALUE="MOZAMBIQUE">MOZAMBIQUE</OPTION>

                                    <OPTION VALUE="NAMIBIA">NAMIBIA</OPTION>

                                    <OPTION VALUE="NAURU">NAURU</OPTION>

                                    <OPTION VALUE="NEPAL">NEPAL</OPTION>

                                    <OPTION VALUE="NUEVA CALEDONIA">NUEVA CALEDONIA</OPTION>

                                    <OPTION VALUE="NUEVA ZELANDA">NUEVA ZELANDA</OPTION>

                                    <OPTION VALUE="NICARAGUA">NICARAGUA</OPTION>

                                    <OPTION VALUE="NÍGER">NÍGER</OPTION>

                                    <OPTION VALUE="NIGERIA">NIGERIA</OPTION>

                                    <OPTION VALUE="NIUE">NIUE</OPTION>

                                    <OPTION VALUE="NORUEGA">NORUEGA</OPTION>

                                    <OPTION VALUE="OMÁN">OMÁN</OPTION>

                                    <OPTION VALUE="PAKISTÁN">PAKISTÁN</OPTION>

                                    <OPTION VALUE="PALAU">PALAU</OPTION>

                                    <OPTION VALUE="PALESTINA">PALESTINA</OPTION>

                                    <OPTION VALUE="PANAMÁ">PANAMÁ</OPTION>

                                    <OPTION VALUE="PAPÚA NUEVA GUINEA">PAPÚA NUEVA GUINEA</OPTION>

                                    <OPTION VALUE="PARAGUAY">PARAGUAY</OPTION>

                                    <OPTION VALUE="PERÚ">PERÚ</OPTION>

                                    <OPTION VALUE="PITCAIRN">PITCAIRN</OPTION>

                                    <OPTION VALUE="POLINESIA FRANCESA">POLINESIA FRANCESA</OPTION>

                                    <OPTION VALUE="POLONIA">POLONIA</OPTION>

                                    <OPTION VALUE="PORTUGAL">PORTUGAL</OPTION>

                                    <OPTION VALUE="PUERTO RICO">PUERTO RICO</OPTION>

                                    <OPTION VALUE="QATAR">QATAR</OPTION>

                                    <OPTION VALUE="REINO UNIDO">REINO UNIDO</OPTION>

                                    <OPTION VALUE="REPÚBLICA CENTROAFRICANA">REPÚBLICA CENTROAFRICANA</OPTION>

                                    <OPTION VALUE="REPÚBLICA DEMOCRÁTICA DEL CONGO">REPÚBLICA DEMOCRÁTICA DEL CONGO</OPTION>

                                    <OPTION VALUE="REPÚBLICA DOMINICANA">REPÚBLICA DOMINICANA</OPTION>

                                    <OPTION VALUE="REUNIÓN">REUNIÓN</OPTION>

                                    <OPTION VALUE="RUMANÍA">RUMANÍA</OPTION>

                                    <OPTION VALUE="RUSIA">RUSIA</OPTION>

                                    <OPTION VALUE="RUANDA">RUANDA</OPTION>

                                    <OPTION VALUE="SÁHARA OCCIDENTAL">SÁHARA OCCIDENTAL</OPTION>

                                    <OPTION VALUE="SAMOA">SAMOA</OPTION>

                                    <OPTION VALUE="SAMOA AMERICANA">SAMOA AMERICANA</OPTION>

                                    <OPTION VALUE="SAN PEDRO Y MIQUELON">SAN PEDRO Y MIQUELON</OPTION>

                                    <OPTION VALUE="SAN VINCENTE Y LAS GRANADINAS">SAN VINCENTE Y LAS GRANADINAS</OPTION>

                                    <OPTION VALUE="SAN MARINO">SAN MARINO</OPTION>

                                    <OPTION VALUE="SANTA HELENA">SANTA HELENA</OPTION>

                                    <OPTION VALUE="SANTA KITTS Y NEVIS">SANTA KITTS Y NEVIS</OPTION>

                                    <OPTION VALUE="SANTA LUCÍA">SANTA LUCÍA</OPTION>

                                    <OPTION VALUE="SANTO TOMÉ Y PRÍNCIPE">SANTO TOMÉ Y PRÍNCIPE</OPTION>

                                    <OPTION VALUE="SENEGAL">SENEGAL</OPTION>

                                    <OPTION VALUE="SERBIA Y MONTENEGRO">SERBIA Y MONTENEGRO</OPTION>

                                    <OPTION VALUE="SEYCHELLES">SEYCHELLES</OPTION>

                                    <OPTION VALUE="SIERRA LEONA">SIERRA LEONA</OPTION>

                                    <OPTION VALUE="SINGAPUR">SINGAPUR</OPTION>

                                    <OPTION VALUE="SIRIA">SIRIA</OPTION>

                                    <OPTION VALUE="SOMALIA">SOMALIA</OPTION>

                                    <OPTION VALUE="SRI LANKA">SRI LANKA</OPTION>

                                    <OPTION VALUE="SUAZILANDIA">SUAZILANDIA</OPTION>

                                    <OPTION VALUE="SUDÁFRICA">SUDÁFRICA</OPTION>

                                    <OPTION VALUE="SUDÁN">SUDÁN</OPTION>

                                    <OPTION VALUE="SUDÁN DEL SUR">SUDÁN DEL SUR</OPTION>

                                    <OPTION VALUE="SUECIA">SUECIA</OPTION>

                                    <OPTION VALUE="SUIZA">SUIZA</OPTION>

                                    <OPTION VALUE="SURINÁM">SURINÁM</OPTION>

                                    <OPTION VALUE="TAILANDIA">TAILANDIA</OPTION>

                                    <OPTION VALUE="TAIWÁN">TAIWÁN</OPTION>

                                    <OPTION VALUE="TAJIKISTÁN">TAJIKISTÁN</OPTION>

                                    <OPTION VALUE="TANZANIA">TANZANIA</OPTION>

                                    <OPTION VALUE="TERRITORIO OCEÁNICO DE LA INDIA BRITÁNICA">TERRITORIO OCEÁNICO DE LA INDIA BRITÁNICA</OPTION>

                                    <OPTION VALUE="TERRITORIOS SUREÑOS DE FRANCIA">TERRITORIOS SUREÑOS DE FRANCIA</OPTION>

                                    <OPTION VALUE="TIMOR LESTE">TIMOR LESTE</OPTION>

                                    <OPTION VALUE="TOGO">TOGO</OPTION>

                                    <OPTION VALUE="TOKELAU">TOKELAU</OPTION>

                                    <OPTION VALUE="TONGO">TONGO</OPTION>

                                    <OPTION VALUE="TRINIDAD Y TOBAGO">TRINIDAD Y TOBAGO</OPTION>

                                    <OPTION VALUE="TÚNEZ">TÚNEZ</OPTION>

                                    <OPTION VALUE="TURMENISTÁN">TURMENISTÁN</OPTION>

                                    <OPTION VALUE="TURQUÍA">TURQUÍA</OPTION>

                                    <OPTION VALUE="TUVALU">TUVALU</OPTION>

                                    <OPTION VALUE="UCRANIA">UCRANIA</OPTION>

                                    <OPTION VALUE="UGANDA">UGANDA</OPTION>

                                    <OPTION VALUE="URUGUAY">URUGUAY</OPTION>

                                    <OPTION VALUE="UZBEKISTÁN">UZBEKISTÁN</OPTION>

                                    <OPTION VALUE="VANUATU">VANUATU</OPTION>

                                    <OPTION VALUE="VENEZUELA">VENEZUELA</OPTION>

                                    <OPTION VALUE="VIETNAM">VIETNAM</OPTION>

                                    <OPTION VALUE="WALLIS Y FUTUNA">WALLIS Y FUTUNA</OPTION>

                                    <OPTION VALUE="YEMEN">YEMEN</OPTION>

                                    <OPTION VALUE="ZAMBIA">ZAMBIA</OPTION>

                                    <OPTION VALUE="ZIMBABUE">ZIMBABUE</OPTION>

                                </select>

                            </div>

                        </div>

                    </div>

                </div>



                <div class="row" id="datos_laborales" style="display: ;">

                    <div class="col-md-12">

                        <h4>Datos laborales del dependiente</h4>

                    </div>

                    <div class="col-md-12">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>Actividad Laboral.</dt>

                            </label><span class='require'> </span>

                            <select class="form-control" name="actividad_laboral" id="actividad_lavoral" onchange="muestra_actividad()" ;>

                                <option selected value="<?php echo $actividad_laboral; ?>"><?php echo $actividad_laboral; ?></option>

                                <option value="PÚBLICO">PÚBLICO</option>

                                <option value="PRIVADO">PRIVADO</option>

                                <option value="OTRO (ESPECIFIQUE)">OTRO (ESPECIFIQUE)</option>

                                <option value="NINGUNO">NINGUNO</option>

                            </select>

                        </div>

                    </div>

                </div>





                <div class="row" id="otro_sector2" style="display: none;">

                    <div class="col-md-12">

                        <div class="form-group col-md-12"><label for="inputName" class="control-label">

                                <dt>Especifique sector (otra actividad laboral). </dt>

                            </label><span class='require'> </span>

                            <div class="input-icon left"><i class="fa fa-edit"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="otra_actividad_laboral" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $otra_actividad_laboral; ?>" />

                            </div>

                        </div>

                    </div>

                </div>





                <div id="publico" style="display: none;">

                    <div class="row">

                        <div class="col-md-12">

                            <h4>Datos del ente Público o Institución.</h4>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Nivel / Orden de Gobierno.</dt>

                                </label><span class='require'> </span>

                                <select class="form-control" name="orden_gob" value="<?php echo $orden_gob; ?>">

                                    <option value="<?php echo $orden_gob; ?>" selected><?php echo $orden_gob; ?></option>

                                    <option value="FEDERAL">Federal</option>

                                    <option value="ESTATAL">Estatal</option>

                                    <option value="MUNICIPAL/ALCALDÍA">MUNICIPAL/ALCALDÍA</option>

                                </select>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Ámbito público:</dt>

                                </label><span class='require'> </span>

                                <select class="form-control" name="ambito_publico" value="<?php echo $ambito_publico; ?>">

                                    <option value="<?php echo $ambito_publico; ?>" selected><?php echo $ambito_publico; ?></option>

                                    <option value="EJECUTIVO">EJECUTIVO</option>

                                    <option value="LEGISLATIVO">LEGISLATIVO</option>

                                    <option value="JUDICIAL">JUDICIAL</option>

                                    <option value="ORGANO_AUTONOMO">ORGANO_AUTONOMO</option>

                                </select>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Nombre del ente público: </dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="ente_publico" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $ente_publico; ?>" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Área de adscripción: </dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="area_adscripcion" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $area_adscripcion; ?>" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Empleo, Cargo o Comisión: </dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="empleo_cargo" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $empleo_cargo; ?>" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Especifique función principal: </dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="funcion_principal" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $funcion_principal; ?>" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Salario neto mensual: </dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-dollar"></i><input id="cliente" type="number" min="0" oninput="this.value = Math.abs(this.value)" pattern="[0-9]{1,10}" title="No se admiten comas." name="salario_mensual_neto" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $salario_mensual_neto; ?>" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Fecha de ingreso al empleo: </dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-calendar"></i><input id="cliente" type="date" max="<?= date('Y-m-d'); ?>" name="fecha_ingreso" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $fecha_ingreso; ?>" />

                                </div>

                            </div>

                        </div>

                    </div>

                </div>



                <div id="privado" style="display: none;">

                    <div class="row">

                        <div class="col-md-12">

                            <h4>Datos de la Empresa o Asociación.</h4>

                        </div>

                        <div class="col-md-12">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Nombre de la empresa, Sociedad o Asociación. </dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="nombre_empresa_2" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $nombre_empresa_2; ?>" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Empleo o cargo. </dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="empleo_cargo_2" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $empleo_cargo_2; ?>" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>RFC. </dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="rfc_empresa_2" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $rfc_empresa_2; ?>" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Fecha de ingreso al empleo: </dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-calendar"></i><input id="cliente2" type="date" max="<?= date('Y-m-d'); ?>" name="fecha_ingreso_2" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $fecha_ingreso_2; ?>" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Salario Mensual Neto. </dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-money"></i><input id="cliente" type="number" min="0" oninput="this.value = Math.abs(this.value)" pattern="[0-9]{1,10}" title="No se admiten comas." name="salario_net_2" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $salario_net_2; ?>" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Sector al que pertenece.</dt>

                                </label><span class='require'> </span>

                                <select class="form-control" name="sector_2" id="sector" onchange="verifica_otro();" value="<?php echo $sector_2; ?>">

                                    <option value="<?php echo $sector_2; ?>" selected><?php echo $sector_2; ?></option>

                                    <option value="AGRICULTURA">AGRICULTURA</option>

                                    <option value="MINERÍA">MINERÍA</option>

                                    <option value="ENERGÍA ELÉCTRICA">ENERGÍA ELÉCTRICA</option>

                                    <option value="CONSTRUCCIÓN">CONSTRUCCIÓN</option>

                                    <option value="INDUSTRIA MANUFACTURERA">INDUSTRIA MANUFACTURERA</option>

                                    <option value="COMERCIO AL POR MAYOR">COMERCIO AL POR MAYOR</option>

                                    <option value="COMERCIO AL POR MENOR">COMERCIO AL POR MENOR</option>

                                    <option value="TRANSPORTE">TRANSPORTE</option>

                                    <option value="MEDIOS MASIVOS">MEDIOS MASIVOS</option>

                                    <option value="SERVICIOS FINANCIEROS">SERVICIOS FINANCIEROS</option>

                                    <option value="SERVICIOS INMOBILIARIOS">SERVICIOS INMOBILIARIOS</option>

                                    <option value="SERVICIOS PROFESIONALES">SERVICIOS PROFESIONALES</option>

                                    <option value="SERVICIOS CORPORATIVOS">SERVICIOS CORPORATIVOS</option>

                                    <option value="SERVICIOS DE SALUD">SERVICIOS DE SALUD</option>

                                    <option value="SERVICIOS DE ESPARCIMIENTO">SERVICIOS DE ESPARCIMIENTO</option>

                                    <option value="SERVICIOS DE ALOJAMIENTO">SERVICIOS DE ALOJAMIENTO</option>

                                    <option value="OTRO (ESPECIFIQUE)">OTRO (ESPECIFIQUE)</option>

                                </select>

                            </div>

                        </div>

                        <div class="col-md-6">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>Especifique sector (en caso de otro) </dt>

                                </label><span class='require'> </span>

                                <div class="input-icon left"><i class="fa fa-edit"></i><input id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="otro_sector_2" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control" value="<?php echo $otro_sector_2; ?>" />

                                </div>

                            </div>

                        </div>

                        <div class="col-md-12">

                            <div class="form-group"><label for="inputName" class="control-label">

                                    <dt>¿Es proveedor o contratista del Gobierno?</dt>

                                </label><span class='require'> </span>

                                <div class="col-md-12">

                                    <label>

                                        <input type="radio" name="proveedor_gob" value="SI" tabindex="14" id="contratista_si" <?php if ($proveedor_gob == 'SI') {

                                                                                                                                    echo 'checked';

                                                                                                                                } ?>>

                                        SÍ

                                    </label>

                                    &nbsp;&nbsp;&nbsp;

                                    <label>

                                        <input type="radio" name="proveedor_gob" value="NO" tabindex="15" id="contratista_no" <?php if ($proveedor_gob == 'NO') {

                                                                                                                                    echo 'checked';

                                                                                                                                } ?>>

                                        NO

                                    </label>

                                </div>

                            </div>

                        </div>

                    </div>

                </div>



                <div class="row">

                    <div class="col-md-12">

                        <div class="form-group"><label for="inputName" class="control-label">

                                <dt>Aclaraciones / Observaciones</dt>

                            </label>

                            <div class="input-icon left"><textarea id="cliente" type="text" pattern="[A-Za-zÀ-ÿ0-9ñÑ%/.,()+*° _-]{1,500}" title="No se admiten comillas o caracteres especiales." name="observaciones" style="text-transform:uppercase;" oninput="this.value = this.value.toUpperCase()" class="form-control"></textarea>

                            </div>

                        </div>

                    </div>

                </div>



                <div class="form-actions">

                    <div class="col-md-offset-5 col-md-6">

                        <button type="submit" class="btn btn-success" name="Registrar">Agregar</button>

                    </div>

                </div>

            </form>

            <div class="row" id="siguiente" style="padding: 30px 15px; display: none">

                <a class="btn btn-danger" onsubmit="return checkForm(this);" role="form" enctype="multipart/form-data" onclick="envia_siguiente(<?php echo $form; ?>, <?php echo $id_declaracion; ?>, <?php echo $hay_datos; ?>, <?php echo $se_registro_no; ?>,<?php echo $tipo; ?>);">Siguiente Formulario </a>

            </div>

        </div>

    </div>

</div><!-- Portlet Experiencia laboral -->



<script>

    function nuevo_empleo() {

        document.getElementById('form_dependiente').style.display = "";

        document.getElementById("no_antecedentes").value = "off";

        return false;

    }



    function muestra_recidencia() {

        a = document.getElementById('lugar_recidencia').value;



        if (a == 'MÉXICO') {

            document.getElementById('domicilio_mexico').style.display = "";

            document.getElementById('domicilio_extranjero').style.display = "none";



            document.getElementById("calle_mx").required = true;

            document.getElementById("numExt_mx").required = true;

            document.getElementById("colonia_localidad_mx").required = true;

            document.getElementById("codigo_postal_mx").required = true;

            document.getElementById("municipio_alcaldia_mx").required = true;

            document.getElementById("entidad_federativa_mx").required = true;

            document.getElementById("calle_ext").required = false;

            document.getElementById("numExt_ext").required = false;

            document.getElementById("ciudad_localidad_ext").required = false;

            document.getElementById("estado_provincia_ext").required = false;

            document.getElementById("codigo_postal_ext").required = false;

            document.getElementById("pais_ext").required = false;

        }

        if (a == 'EXTRANJERO') {

            document.getElementById('domicilio_extranjero').style.display = "";

            document.getElementById('domicilio_mexico').style.display = "none";



            document.getElementById("calle_mx").required = false;

            document.getElementById("numExt_mx").required = false;

            document.getElementById("colonia_localidad_mx").required = false;

            document.getElementById("codigo_postal_mx").required = false;

            document.getElementById("municipio_alcaldia_mx").required = false;

            document.getElementById("entidad_federativa_mx").required = false;

            document.getElementById("calle_ext").required = true;

            document.getElementById("numExt_ext").required = true;

            document.getElementById("ciudad_localidad_ext").required = true;

            document.getElementById("estado_provincia_ext").required = true;

            document.getElementById("codigo_postal_ext").required = true;

            document.getElementById("pais_ext").required = true;

        }

        if (a == '' || a == 'SE_DESCONOCE') {

            document.getElementById('domicilio_extranjero').style.display = "none";

            document.getElementById('domicilio_mexico').style.display = "none";



            document.getElementById("calle_mx").required = false;

            document.getElementById("numExt_mx").required = false;

            document.getElementById("colonia_localidad_mx").required = false;

            document.getElementById("codigo_postal_mx").required = false;

            document.getElementById("municipio_alcaldia_mx").required = false;

            document.getElementById("entidad_federativa_mx").required = false;

            document.getElementById("calle_ext").required = false;

            document.getElementById("numExt_ext").required = false;

            document.getElementById("ciudad_localidad_ext").required = false;

            document.getElementById("estado_provincia_ext").required = false;

            document.getElementById("codigo_postal_ext").required = false;

            document.getElementById("pais_ext").required = false;

        }

    }



    function muestra_parentesco() {

        a = document.getElementById('parentesco').value;



        if (a == 'OTRO(ESPECIFIQUE)') {

            document.getElementById('otro_parentesco').style.display = "";

        } else {

            document.getElementById('otro_parentesco').style.display = "none";

        }

    }



    function desplega_curp() {

        document.getElementById('curp').style.display = "";

        return false;

    }



    function hide_curp() {

        document.getElementById('curp').style.display = "none";

    }



    function desplega_lugar() {

        document.getElementById('mismo_domicilio').style.display = "";

        return false;

    }



    function hide_lugar() {

        document.getElementById('mismo_domicilio').style.display = "none";

    }



    function agregar_dependiente() {

        document.getElementById('myForm').style.display = "";

    }



    function no_dependientes(opcion, hay_datos) {

        if (opcion.checked == true || hay_datos) {

            document.getElementById('siguiente').style.display = "";

        } else {

            document.getElementById('siguiente').style.display = ""; //none

        }

    }



    function no_antecedentes(opcion) {



        if (opcion.checked == true) {

            document.getElementById('siguiente').style.display = "";

            document.getElementById("add_dependiente").disabled = true;

            document.getElementById('form_dependiente').style.display = "none";

            document.getElementById("no_antecedentes").value = "on";

        } else {

            document.getElementById('siguiente').style.display = ""; //none

            document.getElementById("add_dependiente").disabled = false;

        }

    }



    function verifica_otro() {

        b = document.getElementById('sector').value;

        if (b == 'OTRO (ESPECIFIQUE)') {

            document.getElementById('otro_sector').style.display = "";

        } else {

            document.getElementById('otro_sector').style.display = "none";

        }

    }



    // function verifica_otro2(){

    //     c = document.getElementById('actividad_laboral').value;

    //     if(c == 'OTRO (ESPECIFIQUE)'){

    //         document.getElementById('otro_sector2').style.display = "";

    //     }else if(c == 'Ninguno'){

    //         document.getElementById('otro_sector2').style.display = "none";

    //         document.getElementById('campos_actividad_laboral').style.display = "none";



    //         var x = document.getElementById("campos_actividad_laboral").querySelectorAll(".form-control"); 

    //             for(i=0; i < x.length; i++){

    //                    x[i].required = false;

    //         }





    //     }else{

    //         document.getElementById('otro_sector2').style.display = "none";

    //     }

    // }



    function envia_siguiente(form, id_declaracion, hay_datos, se_registro_no, tipo) {

        a = document.getElementById('no_antecedentes').value;

        if (a == undefined) {

            a = 0;

        }

        //alert('envia siguiente, form: '+ form + ', a: ' + a);

        window.location.replace("controller/guarda_form_7.php?no_envia=1&btnSiguiente=1&form=" + form + "&hay_datos=" + hay_datos + "&no_antecedentes=" + a + "&id_declaracion=" + id_declaracion + "&se_registro_no=" + se_registro_no + "&tipo=" + tipo);

    }

</script>

Zerion Mini Shell 1.0