123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <?php
- /*
- * Copyright (C) 2021 Ángel Benítez Hernández, Echedey López Romero
- *
- * This program is free software: you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation, either version 3 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- $Resultado = '';
- $Errores = [];
- $Respuestas = [
- // Datos de representación
- 'representacion' => '',
- // Datos personales
- 'documento' => '',
- 'identificacion' => '',
- 'nombre' => '',
- 'primer_apellido' => '',
- 'segundo_apellido' => '',
- 'calidad_de' => '',
- 'telefono_fijo' => '',
- 'telefono_movil' => '',
- 'email' => '',
- // Domicilio de contacto
- 'tipo_via' => '',
- 'nombre_via' => '',
- 'numero' => '',
- 'bloque' => '',
- 'escalera' => '',
- 'piso' => '',
- 'portal' => '',
- 'letra' => '',
- 'puerta' => '',
- 'complemento' => '',
- 'fecha' => '',
- 'pais' => '',
- 'provincia' => '',
- 'isla' => '',
- 'municipio' => '',
- 'localidad' => '',
- 'cp' => '',
- // Datos extra
- 'horfandad' => 'no',
- 'tutela_guarda' => 'no',
- // Datos alergias
- 'observaciones' => '',
- // Datos académicos
- 'itinerario' => '',
- 'lengua_literatura_1' => 'no',
- 'filosofia' => 'no',
- 'ed_fisica' => 'no',
- 'matematicas_1' => 'no',
- 'fisica_quimica' => 'no',
- 'tutoria' => 'no',
- 'optativa_1' => '',
- 'optativa_2' => '',
- 'optativa_3' => '',
- 'optativa_4' => '',
- // Medios de difusión
- 'tratamiento' => '',
- 'difusion_web' => '',
- 'difusion_app' => '',
- 'difusion_facebook' => '',
- 'fichero_identificacion' => '',
- 'fichero_certificacion' => ''
- ];
- $Documentos = [
- [
- 'id' => 'nif',
- 'nombre' => 'NIF'
- ],
- [
- 'id' => 'nie',
- 'nombre' => 'NIE'
- ]
- ];
- $Calidades = [
- [
- 'id' => 'estudiante',
- 'nombre' => 'Estudiante'
- ],
- [
- 'id' => 'guarda_hecho',
- 'nombre' => 'Guarda de hecho'
- ],
- [
- 'id' => 'patria_potestad',
- 'nombre' => 'Patria potestad'
- ],
- [
- 'id' => 'representante_voluntario',
- 'nombre' => 'Representante voluntario'
- ],
- [
- 'id' => 'representante_legal',
- 'nombre' => 'Representante legal'
- ]
- ];
- $TiposVia = [
- [
- 'id' => 'avenida',
- 'nombre' => 'Avenida'
- ],
- [
- 'id' => 'calle',
- 'nombre' => 'Calle'
- ],
- [
- 'id' => 'carretera',
- 'nombre' => 'Carretera'
- ],
- [
- 'id' => 'otros',
- 'nombre' => 'Otros'
- ],
- [
- 'id' => 'paseo',
- 'nombre' => 'Paseo'
- ],
- [
- 'id' => 'plaza',
- 'nombre' => 'Plaza'
- ],
- [
- 'id' => 'ronda',
- 'nombre' => 'Ronda'
- ],
- [
- 'id' => 'travesia',
- 'nombre' => 'Travesía'
- ],
- [
- 'id' => 'urbanizacion',
- 'nombre' => 'Urbanización'
- ]
- ];
- $Paises = [
- [
- 'id' => 'espania',
- 'nombre' => 'España'
- ]
- ];
- $FiltroProvincias = [
- [
- 'provincia_id' => '35'
- ],
- [
- 'provincia_id' => '38'
- ]
- ];
- $Provincias = DatosCanarias('./datos/provincias.json', $FiltroProvincias, 'provincia_id');
- $Islas = DatosCanarias('./datos/islas.json', $Provincias, 'provincia_id');
- $Municipios = DatosCanarias('./datos/municipios_islas.json', $Provincias, 'provincia_id');
- $Localidades = DatosCanarias('./datos/localidades_islas.json', $Provincias, 'provincia_id', true, 'localidad_id');
- $CPs = DatosCanarias('./datos/codigos_postales_municipios.json', $Municipios, 'municipio_id', true, 'cp_id');
|