tieneRol("4") && !$usuario->tieneRol("3") && !$usuario->tieneRol("1")){ header("Location: aplicacion.php?e=permiso"); exit; } // Recupero a la persona include_once("Objects/Persona.php"); $oidPersona=$_GET['oid']; $personaDesc=new Persona($oidPersona); if($personaDesc->getValor("tipo")=="usuario") $persona=new Empleado($usuario,stripinput($_GET['oid'])); elseif ($personaDesc->getValor("tipo")=="candidato") { $persona=new Candidato($usuario,stripinput($_GET['oid'])); } else { $msg="No se ha encontrado a la persona"; include_once("showError.php"); exit; } include_once("html/cabecera.php"); if($_POST['action']!=""){ switch ($_POST['action']) { case "cambObs":$observacion=$_POST['cambObservacion']; try{ $persona->setCampos(array("observaciones" => $observacion)); $tipo="ok"; $msg=$locale['567']; } catch (Exception $e){ $msg=$e->getMessage(); $tipo="error"; } break; default: break; } } include_once("Objects/HTML.php"); $html=new HTML($locale); $html->menuPedidos($usuario,""); //Mostramos los detalles de un candidato $mostrarDetalle = array(); array_push($mostrarDetalle,"personales"); array_push($mostrarDetalle,"laborables"); array_push($mostrarDetalle,"curriculum"); array_push($mostrarDetalle,"candidaturas"); array_push($mostrarDetalle,"historial"); array_push($mostrarDetalle,"addCurriculum"); array_push($mostrarDetalle,"cambObs"); include_once("detalles_usuario.php"); ?>