getValor("gerente") != $usuario->getValor("oid")) && !$usuario->tieneRol("4") && !$usuario->tieneRol("1")) { header("Location: aplicacion.php?e=permiso"); exit; } include_once("html/cabecera.php"); include_once("Objects/Administracion.php"); $administracion = new Administracion($usuario, $locale); $constantes = $administracion->getItem("constantes"); $mostrarTabla = $constantes['candPagina']; $altoScroll = 83 / 2 * $mostrarTabla; ?> getMensaje($_GET["msgSem"]); echo "
" . $mensajeSemaforo . "
"; } ?> aceptarCandidato($_GET['idCand']); if ($estado) { $tipo = "ok"; $mensaje = $locale['1055']; } else { $tipo = "error"; $mensaje = $locale['1053']; } } catch (Exception $e) { $mensaje = $e->getMessage(); $tipo = "error"; } } else { $tipo = "error"; $mensaje = $locale['1053']; } break; case "dell": if ($_GET['idCand'] != "") { try { $estado = $pedido->rechazarCandidato($_GET['idCand']); if ($estado) { $tipo = "ok"; $mensaje = $locale['1056']; } else { $tipo = "error"; $mensaje = $locale['1054']; } } catch (Exception $e) { $mensaje = $e->getMessage(); $tipo = "error"; } } else { $tipo = "error"; $mensaje = $locale['1053']; } break; case "cambEst": if ($_GET['idEst'] != "") { try { $camb = $pedido->transita($_GET['idEst'], ""); if ($camb) { $tipo = "ok"; $mensaje = $locale['1072']; } else { $tipo = "error"; $mensaje = $locale['1073']; } } catch (Exception $e) { $mensaje = $e->getMessage(); $tipo = "error"; } } break; case "cambEstObs": if ($_POST['idEstado'] != "") { try { $camb = $pedido->transita($_POST['idEstado'], $_POST['txtObsCamb']); if ($camb) { $tipo = "ok"; $mensaje = $locale['1087']; } else { $tipo = "error"; $mensaje = $locale['1088']; } } catch (Exception $e) { $mensaje = $e->getMessage(); $tipo = "error"; } } break; case "addComent": if (($_POST['obs'] != "") && ($_POST['idCandidato'] != "")) { // Agregamso comentario al candidato sobre el pedido try { $pedido->addComentarioPropuesta($_POST['idCandidato'], $_POST['obs']); $mensaje = $locale['4047']; $tipo = "ok"; } catch (Exception $e) { $mensaje = $e->getMessage(); $tipo = "error"; } } break; default: $error = true; $mensaje = $locale['1057']; break; } if ($mensaje != "") { // Mostramos el mensaje echo "
" . $mensaje . "
"; } } ?> getValor("estado") == 130) { echo $html->menuPedidos($usuario, array("gestionar", "nueva_oferta")); } elseif (!$usuario->tieneRol("3")) { echo $html->menuPedidos($usuario, array("gestionar")); } else echo $html->menuPedidos($usuario, ""); ?>

getValor("oid") ." - ". $pedido->getValor("nombre"); ?>

" . $locale['1061'] . ""; break; default: break; } } else { $mensaje = ""; } echo $mensaje; ?>
   getValor("fecha")); ?>
   getValor("nombre"); ?>
   getValor("denominacion_cliente"); ?>
   getValor("num_solicitud_cliente"); ?>
   getValor("fecha_solicitud_cliente")); ?>
   getValor("prioridad")); ?>
   getValor("empleados"); ?>
   getValor("nombre_cliente"); ?>
   getValor("fecha_inicio_servicio")); ?>
   getValor("fecha_fin_servicio")); ?>
   getValor("duracion"); ?>
   getValor("fecha_recepcion_solicitud")); ?>
   getValor("procedencia"); ?>
   getValor("nombre_gerente"); ?>
   getValor("nombre_salario_max"); ?>
   getValor("nombre_salario_min"); ?>
   getValor("tasa_economica"); ?>

getIdiomas(); if (count($idiomas) > 0) { foreach ($idiomas as $nombre => $codigo) { echo $nombre . "
"; } } else { } ?>

getProvincias(); if (count($tecnologias) > 0) { foreach ($tecnologias as $nombre => $codigo) { echo $nombre . "
"; } } else { } echo nl2br($pedido->getValor("observaciones_direccion")); ?>
   getValor("direccion_solicitud"); ?>
getValor("turnos") != "") { echo "SI  (".$pedido->getValor("turnos").")"; } else { echo "NO"; } ?> getValor("guardias") != "") { echo "SI  (".$pedido->getValor("guardias").")"; } else { echo "NO"; } ?> getValor("viajar") != "") { echo "SI  (".$pedido->getValor("viajar").")"; } else { echo "NO"; } ?>
getValor("internacional") != "") { echo "SI  (".$pedido->getValor("internacional").")"; } else { echo "NO"; } ?>

getValor("observaciones")); ?>
:   getValor("nombre_estado"); ?>
&action=cambEstObs" method="post" >
getValor("msgEstado") != "") { echo " -> " . $pedido->getValor("msgEstado"); } echo "
"; $estadosSiguientes = $pedido->getSiguientes(); foreach ($estadosSiguientes as $codEstado => $nombreEstado) { // En estados 50 se necesita mensaj obs if ($codEstado == "50") { ?> ','','txt')" style="margin-bottom:5px"> &action=cambEst&idEst='" style="width:200px; margin-bottom:5px">
'.$locale['Capacidades001'].''; echo ''; $CapacidadesProfesionales = $pedido->getCapacidadesProfesionales(); VerListaCapacidadesProfesionales($CapacidadesProfesionales, "detalle_solicitud"); ?>
getValor("oid"); // sacado de http://patrickallaert.blogspot.com/2007/09/building-dynamic-sql-queries-elegant.html $cond = array(); $cond[] = "pedido = '$oidPedido'"; $orden = array(); $orden[] = "referencia"; $listaOfertas = new ListaOfertas($usuario, $cond, $orden); $ofertas = $listaOfertas->getOfertas(); // Vemos si tiene ofertas $totalOfertas = count($ofertas); if ($totalOfertas == 0) { echo ""; } else { for ($i = 0; $i < $totalOfertas; $i++) { $ofertaAct = $ofertas[$i]; echo ""; /*if (($ofertaAct->getValor("gerente") == $usuario->getValor("oid")) || $usuario->tieneRol("1")) { // Es el gerente de ese pedido, puede editarlo y eliminarlo echo ''; echo ""; } else { // No es el gerente no puede ni editarlo ni eliminarlo echo ''; }*/ echo ''; echo ''; echo ''; echo ''; echo ''; echo ""; } } ?>
Esta solicitud no tiene ofertas
getValor("oid") . "') >'.$ofertaAct->getValor("referencia").'' . $ofertaAct->getValor("fecha") . '' . $ofertaAct->getValor("nombre_estado") . '' . $ofertaAct->getValor("nombre_candidato") . '