2011-04-04 15:16:10 +00:00
|
|
|
<?php
|
|
|
|
|
if(!verificar_alfabetico($nombre) || $nombre == null){
|
|
|
|
|
$errores_persona .= $locale['1702']."<br />";
|
|
|
|
|
$errores[]="1";
|
|
|
|
|
}
|
|
|
|
|
if(!verificar_alfabetico($apellidos) || $apellidos == null){
|
|
|
|
|
$errores_persona .= $locale['1703']."<br />";
|
|
|
|
|
$errores[]="2";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if($dni != null && !verificar_longitud($dni, 9)){
|
|
|
|
|
$errores_persona .= $locale['1722']."<br />";
|
|
|
|
|
$errores[]="4";
|
|
|
|
|
}
|
2011-05-18 17:34:15 +00:00
|
|
|
|
2011-04-04 15:16:10 +00:00
|
|
|
if(!verificar_mail($email)){
|
|
|
|
|
$errores_persona .= $locale['1701']."<br />";
|
|
|
|
|
$errores[]="5";
|
|
|
|
|
}
|
2011-05-18 17:34:15 +00:00
|
|
|
if($estado == 540){
|
|
|
|
|
if(!verificar_numerico($t_movil, 9)){
|
2011-04-04 15:16:10 +00:00
|
|
|
$errores_persona .= $locale['1704']."<br />";
|
|
|
|
|
$errores[]="6";
|
2011-05-18 17:34:15 +00:00
|
|
|
}
|
2011-04-04 15:16:10 +00:00
|
|
|
}
|
2011-05-18 17:34:15 +00:00
|
|
|
|
2011-04-04 15:16:10 +00:00
|
|
|
if($t_casa != null && !verificar_numerico($t_casa, 9)){
|
|
|
|
|
$errores_persona .= $locale['1709']."<br />";
|
|
|
|
|
$errores[]="7";
|
2011-05-18 17:34:15 +00:00
|
|
|
}
|
|
|
|
|
|
2011-04-04 15:16:10 +00:00
|
|
|
if($t_trabajo != null && !verificar_numerico($t_trabajo, 9)){
|
|
|
|
|
$errores_persona .= $locale['1715']."<br />";
|
|
|
|
|
$errores[]="8";
|
|
|
|
|
}
|
2011-05-18 17:34:15 +00:00
|
|
|
|
2011-04-04 15:16:10 +00:00
|
|
|
if($cp != null && !verificar_numerico($cp, 5)){
|
|
|
|
|
$errores_persona .= $locale['1713']."<br />";
|
|
|
|
|
$errores[]="12";
|
|
|
|
|
}
|
|
|
|
|
|
2011-05-18 17:34:15 +00:00
|
|
|
if($estado == 540){
|
|
|
|
|
if($localidad == null){
|
2011-04-04 15:16:10 +00:00
|
|
|
$errores_persona .= $locale['1723']."<br />";
|
|
|
|
|
$errores[]="13";
|
2011-05-18 17:34:15 +00:00
|
|
|
}
|
2011-04-04 15:16:10 +00:00
|
|
|
}
|
|
|
|
|
|
2011-05-18 17:34:15 +00:00
|
|
|
if($estado == 540){
|
|
|
|
|
if($procedencia == null){
|
2011-04-04 15:16:10 +00:00
|
|
|
$errores_persona .= $locale['1724']."<br />";
|
|
|
|
|
$errores[]="20";
|
2011-05-18 17:34:15 +00:00
|
|
|
}
|
2011-04-04 15:16:10 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2011-05-18 17:34:15 +00:00
|
|
|
?>
|