diff --git a/Objects/Oferta.php b/Objects/Oferta.php index a3bfce0..3b17d40 100644 --- a/Objects/Oferta.php +++ b/Objects/Oferta.php @@ -297,30 +297,31 @@ class Oferta { } function asignarCandidato($idCandidato) { +/* $idCand = $this->getValor("candidato"); if (!empty($idCand)) { if (!$this->quitarCandidato()) { return false; } } - +*/ $candidato = new Candidato($this->usuario, $idCandidato); $estadoCand = $candidato->getValor("estado"); $numOfertasCandidato = $this->getOfertasCandidato($idCand); - + switch ($estadoCand) { //Disponible asignado, el estado del candidato no cambia, solo se asigna a la oferta y ya está. - case "560": + case 560: $this->setCampo("candidato", $idCandidato); return true; break; //Pendiente de clasificar, Rechazados tipo1, tipo2, tipo3, Disponible. Todos los candidatos con alguno de estos estados cambiarán a Disponible asignado (560) - case "510": - case "521": - case "522": - case "523": - case "540": + case 510:; + case 521:; + case 522:; + case 523:; + case 540: $this->setCampo("candidato", $idCandidato); if ($candidato->transita("560", "")){ $nombre_candidato = $candidato->getValor("nombre") . " " . $candidato->getValor("apellidos"); diff --git a/idiomas/sp/lenguaje.php b/idiomas/sp/lenguaje.php index 143005a..38d4ff3 100644 --- a/idiomas/sp/lenguaje.php +++ b/idiomas/sp/lenguaje.php @@ -184,6 +184,8 @@ $locale['Ofertas003'] = "Nombre y apellidos:"; $locale['Ofertas004'] = "ESTADO OFERTA"; $locale['Ofertas005'] = "GRADO DE CONCORDANCIA"; $locale['Ofertas006'] = "Ver ficha candidato"; +$locale['Ofertas007'] = "SOLICITUD"; +$locale['Ofertas008'] = "CANDIDATO"; //Historial: diff --git a/ver_oferta.php b/ver_oferta.php index e7a3fb6..17aa8e5 100644 --- a/ver_oferta.php +++ b/ver_oferta.php @@ -48,6 +48,7 @@ if (!empty($action)) { if (!empty($_GET['idCand'])) { try { $idCand = $_GET['idCand']; + $estado = $oferta->asignarCandidato($idCand); if ($estado) { @@ -195,24 +196,200 @@ echo $mensaje;
+
|
| + | + |
| +'.$locale['Capacidades001'].''; +//echo ''; +$CapacidadesProfesionales = $pedido->getCapacidadesProfesionales(); +VerListaCapacidadesProfesionales($CapacidadesProfesionales, "ver_oferta"); +?> + | ++'.$locale['Capacidades001'].''; +//echo ''; +if (!empty($candidato)){ + $CapacidadesProfesionales = $candidato->getCapacidadesProfesionales(); + VerListaCapacidadesProfesionales($CapacidadesProfesionales, "ver_oferta"); +} +?> + | +
| - | - | + | ||||
|---|---|---|---|---|---|---|
getValor("candidato");
if (!empty($candActual)) {
- echo "getValor("oid")."&action=aceptar&idCand=".$candidato->getValor("oid")."')\">";
+ echo "getValor("oid")."&action=aceptar&idCand=".$candidato_aux->getValor("oid")."')\">";
}
else {
- echo "";
+ echo "";
}
?>
@@ -255,29 +431,26 @@ if (($oferta->getValor("estado") == 110)) {
|
- " target=popup onclick=window.open('', 'popup', ',',',',',',',','width = 600, height = 800')>getValor("nombre") . " " . $candidato->getValor("apellidos"); ?> + " target=popup onclick=window.open('', 'popup', ',',',',',',',','width = 600, height = 800')>getValor("nombre") . " " . $candidato_aux->getValor("apellidos"); ?> | +getValor("nombre_estado"); ?> |
- getPerfiles();
- $keylocalidades = array_values($perfiles);
- // Mostramos la lista para borrar
- foreach ($perfiles as $nombre => $valor) {
- echo "- " . $nombre . " "; - } - ?> + +'.$locale['Capacidades001'].''; +//echo ''; +if (!empty($candidato_aux)){ + $CapacidadesProfesionales = $candidato_aux->getCapacidadesProfesionales(); + VerListaCapacidadesProfesionales($CapacidadesProfesionales, "ver_oferta"); +} +?> + |
- getValor("nombre_estado"); ?> | -getValor("oid")); - if (gettype($tecnologias) != "NULL") { - foreach ($tecnologias as $tecno) { - echo $tecno . ","; - } - } - ?> | getValor("oid")); + $idiomas = rellena_lista_oid("idioma_usuario", "idiomas", "idioma", $candidato_aux->getValor("oid")); if (gettype($idiomas) != "NULL") { foreach ($idiomas as $tecno) { echo $tecno . ","; @@ -299,10 +472,6 @@ if (($oferta->getValor("estado") == 110)) { } // if ?> - - |