25 lines
580 B
PHP
25 lines
580 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
include("seguridad.php");
|
||
|
|
include("functions.php");
|
||
|
|
include_once("Objects/CapacidadProfesional.php");
|
||
|
|
$idCapacidad=$_GET['id'];
|
||
|
|
$idCandidato=$_GET['idCandidato'];
|
||
|
|
$capacidad = new CapacidadProfesional($idCapacidad,"candidato");
|
||
|
|
|
||
|
|
/* ELIMINAR_CAPACIDAD.PHP */
|
||
|
|
try{
|
||
|
|
$resultado=$capacidad->eliminar();
|
||
|
|
|
||
|
|
if($resultado){
|
||
|
|
header("Location: gestion_candidato.php?oid=".$idCandidato."#capacidades");
|
||
|
|
} else {
|
||
|
|
header("Location: gestion_candidato.php?oid=".$idCandidato)."#capacidades";
|
||
|
|
}
|
||
|
|
|
||
|
|
} catch (Exception $e) {
|
||
|
|
$msg=$e->getMessage();
|
||
|
|
include_once("showError.php");
|
||
|
|
}
|
||
|
|
?>
|