File: /home/undanet/dump/data/FormularioCandidatura.php
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Formulario para una nueva candidatura</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.9/angular.min.js"></script>
</head>
<body>
<div class="wrap-content" ng-app="">
<form method="post" enctype="multipart/form-data" name="frmCandidatura" id="frmCandidatura">
<p>
<label for="txtNombre">Nombre:</label>
<input type="text" name="txtNombre" id="txtNombre" required>
</p>
<p>
<label for="txtApellido1">Apellido 1:</label>
<input type="text" name="txtApellido1" id="txtApellido1" required>
</p>
<p>
<label for="txtApellido2">Apellido 2:</label>
<input type="text" name="txtApellido2" id="txtApellido2">
</p>
<p>
<label for="dtFechaNacimiento">Fecha de Nacimiento:</label>
<input type="date" name="dtFechaNacimiento" id="dtFechaNacimiento" value="<?php echo date("d-m-Y\TH-i");?>" required>
</p>
<p>
<label for="slctArea">Área/Sección en la que desea trabajar dentro del CLPU:</label>
<select name="slctArea" id="slctArea">
<option value="area1" selected>Área de Gestión</option>
<option value="area2" >Área Técnica</option>
<option value="area3" >Área Científica</option>
<option value="area4" >Sección de Ingeniería</option>
<option value="area5" >Unidad de Radioprotección</option>
</select>
</p>
<p>
<label for="slctTitulacion">Titulación:</label>
<select name="slctTitulacion" id="slctTitulacion">
<option value="titulacion1" >Doctorado</option>
<option value="titulacion2" >Grado</option>
<option value="titulacion3" >FP Superior</option>
<option value="titulacion4" >FP</option>
<option value="titulacion5" >Bachiller</option>
<option value="titulacion6" selected>No Titulado</option>
</select>
</p>
<p>
<label for="slctMateria">Materia:</label>
<select name="slctMateria" id="slctMateria">
<option value="materia1" >Humanidades</option>
<option value="materia2" selected>Ciencias</option>
<option value="materia3" >...</option>
</select>
</p>
<p>
<label for="slctexperiencia">Experiencia:</label>
<select name="slctexperiencia" id="slctexperiencia">
<option value="experiencia1" selected>Sin Experiencia</option>
<option value="experiencia2" >Entre 0 y 3 años</option>
<option value="experiencia3" >Entre 3 y 5 años</option>
<option value="experiencia4" >Entre 5 y 10 años</option>
<option value="experiencia5" >Más de 10 años</option>
</select>
</p>
<p>
<label for="slctperfil">Perfil:</label>
<select name="slctperfil" id="slctperfil">
<option value="perfil1" selected>Perfil 1</option>
<option value="perfil2" >Perfil 1</option>
<option value="perfil3" >Perfil 2</option>
<option value="perfil4" >Perfil 3</option>
<option value="perfil5" >Perfil 4</option>
</select>
</p>
<table border="0">
<tbody>
<tr>
<td><label for="txtPuesto">Puesto:</label></td>
<td><textarea name="txtPuesto" id="txtPuesto"></textarea></td>
</tr>
</tbody>
</table>
<p></p>
<table>
<tr>
<td>
<label>
<input type="checkbox" name="chkMaster" value="chkMaster" id="chkMaster" ng-model="chkMasterChecked">
Máster</label>
</td>
<td>
<input type="text" name="txtMaster" id="txtMaster" placeholder="Descripción" ng-if="chkMasterChecked">
</td>
</tr>
<tr>
<td>
<label>
<input type="checkbox" name="chkEspecializacion" value="chkEspecializacion" id="chkEspecializacion" ng-model="chkEspecializacionChecked">
Especialización</label>
</td>
<td>
<input type="text" name="txtEspecializacion" id="txtEspecializacion" placeholder="Descripción" ng-if="chkEspecializacionChecked">
</td>
</tr>
</table>
<p></p>
<table ng-app="">
<th colspan="2" align="left">Idiomas:</th>
<tbody>
<tr>
<td>
<label>
<input type="checkbox" name="chkIngles" value="chkIngles" id="chkIngles" ng-model="chkInglesChecked">
Inglés</label>
</td>
<td>
<select name="slctNivelIngles" id="slctNivelIngles" ng-if="chkInglesChecked">
<option value="nivelIngles1" selected>Básico</option>
<option value="nivelIngles2" >Medio</option>
<option value="nivelIngles3" >Avanzado</option>
<option value="nivelIngles4" >Nativo</option>
</select>
</td>
</tr>
<tr>
<td>
<label>
<input type="checkbox" name="chkEspanol" value="chkEspanol" id="chkEspanol" ng-model="chkEspanolChecked">
Español</label>
</td>
<td>
<select name="slctNivelEspanol" id="slctNivelEspanol" ng-if="chkEspanolChecked">
<option value="nivelEspanol1" selected>Básico</option>
<option value="nivelEspanol2" >Medio</option>
<option value="nivelEspanol3" >Avanzado</option>
<option value="nivelEspanol4" >Nativo</option>
</select>
</td>
</tr>
<tr>
<td>
<label>
<input type="checkbox" name="chkFrances" value="chkFrances" id="chkFrances" ng-model="chkFrancesChecked">
Francés</label>
</td>
<td>
<select name="slctNivelFrances" id="slctNivelFrances" ng-if="chkFrancesChecked">
<option value="nivelFrances1" selected>Básico</option>
<option value="nivelFrances2" >Medio</option>
<option value="nivelFrances3" >Avanzado</option>
<option value="nivelFrances4" >Nativo</option>
</select>
</td>
</tr>
<tr>
<td>
<label>
<input type="checkbox" name="chkAleman" value="chkAleman" id="chkAleman" ng-model="chkAlemanChecked">
Alemán</label>
</td>
<td>
<select name="slctNivelAleman" id="slctNivelAleman" ng-if="chkAlemanChecked">
<option value="nivelAleman1" selected>Básico</option>
<option value="nivelAleman2" >Medio</option>
<option value="nivelAleman3" >Avanzado</option>
<option value="nivelAleman4" >Nativo</option>
</select>
</td>
</tr>
<tr>
<td>
<label>
<input type="checkbox" name="chkOtroIdioma1" value="chkOtroIdioma1" id="chkOtroIdioma1" ng-model="chkOtroIdioma1Checked">
Otro</label>
</td>
<td>
</td>
</tr>
<tr>
<td>
<input type="text" name="txtOtroIdioma1" id="txtOtroIdioma1" placeholder="Idioma" ng-if="chkOtroIdioma1Checked" required>
</td>
<td>
<select name="slctNivelOtroIdioma1" id="slctNivelOtroIdioma1" ng-if="chkOtroIdioma1Checked">
<option value="nivelOtroIdioma11" selected>Básico</option>
<option value="nivelOtroIdioma12" >Medio</option>
<option value="nivelOtroIdioma13" >Avanzado</option>
<option value="nivelOtroIdioma14" >Nativo</option>
</select>
</td>
</tr>
</tbody>
</table>
<p></p>
<table border="0">
<tbody>
<tr>
<td><label for="flCV">Adjuntar Curriculum Vitae:</label></td>
<td><input type="file" name="flCV" id="flCV" accept=".doc,.docx,application/msword,.pdf,application/pdf" required></td>
<td>
<div name="flCVError" id ="flCVError" hidden="true">Admite .doc, .docx y .pdf</div>
</td>
</tr>
<script language="javascript">
var file = document.getElementById('flCV');
file.onchange = function(e) {
var fileError = document.getElementById('flCVError');
var ext = this.value.match(/\.([^\.]+)$/)[1];
switch (ext) {
case 'doc':
case 'docx':
case 'pdf':
//alert('Allowed');
fileError.hidden = true;
break;
default:
//alert('Not allowed');
this.value = '';
fileError.hidden = false;
break;
}
};
</script>
<tr>
<td><label for="flCartaPresentacion">Adjuntar Carta de Presentación:</label></td>
<td><input type="file" name="flCartaPresentacion" id="flCartaPresentacion" accept=".doc,.docx,application/msword,.pdf,application/pdf"></td>
<td>
<div name="flCartaPresentacionError" id ="flCartaPresentacionError" hidden="true">Admite .doc, .docx y .pdf</div>
</td>
</tr>
<script language="javascript">
var file = document.getElementById('flCartaPresentacion');
file.onchange = function(e) {
var fileError = document.getElementById('flCartaPresentacionError');
var ext = this.value.match(/\.([^\.]+)$/)[1];
switch (ext) {
case 'doc':
case 'docx':
case 'pdf':
//alert('Allowed');
fileError.hidden = true;
break;
default:
//alert('Not allowed');
fileError.hidden = false;
this.value = '';
}
};
</script>
</tbody>
</table>
<p></p>
<table border="0">
<tbody>
<tr>
<td><label for="txtMotivacion">Motivación para trabajar en CLPU:</label></td>
<td><textarea name="txtMotivacion" id="txtMotivacion"></textarea></td>
</tr>
</tbody>
</table>
<p></p>
<table border=0>
<tr>
<td>
<label>¿Has participado anteriormente en otro proceso de selección en el CLPU?</label>
</td>
</tr>
<tr>
<td>
<label>
<input type="radio" name="RdHasParticipado" value="1" id="RdHasParticipado1">
Sí</label>
<label>
<input type="radio" name="RdHasParticipado" value="0" id="RdHasParticipado0" checked>
No</label>
</td>
</tr>
</table>
<p></p>
<table border=0>
<tr>
<td width="165">
<label>¿Cómo nos has conocido?</label>
</td>
</tr>
<tr>
<td><label>
<input type="radio" name="RdHasConocido" value="0" id="RdHasConocido0" ng-model="HasConocido" checked>
Web</label></td>
<td width="225">
<label>
<input type="radio" name="RdHasConocido" value="3" id="RdHasConocido3" ng-model="HasConocido">
Conocidos</label></td>
</tr>
<tr>
<td><label>
<input type="radio" name="RdHasConocido" value="1" id="RdHasConocido2" ng-model="HasConocido">
Twitter</label></td>
<td>
<label>
<input type="radio" name="RdHasConocido" value="4" id="RdHasConocido4" ng-model="HasConocido">
Otros
<label for="txtOtros"></label>
<input type="text" name="txtOtros" id="txtOtros" ng-if="HasConocido==='4'?true:false" placeholder="Especifique..." required>
</label></td>
</tr>
<tr>
<td><label>
<input type="radio" name="RdHasConocido" value="2" id="RdHasConocido1" ng-model="HasConocido">
LinkedIn</label></td>
<td></td>
</tr>
</table>
<p>
<input type="submit" name="submit" id="submit" value="Enviar">
</p>
<!-- FALTA meter casilla de aceptar RGPD !-->
</form>
</div>
</body>
</html>