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("nombre"); ?>

" . $locale['1061'] . ""; break; default: break; } } else { $mensaje = ""; } echo $mensaje; ?>
getValor("fecha")); ?> getValor("prioridad")); ?> getPerfiles(); if (count($perfiles) > 0) { foreach ($perfiles as $nombre => $codigo) { echo $nombre . "
"; } } else { ?>
getValor("nombre_cliente"); ?>
getValor("duracion"); ?> getValor("empleados"); ?> getValor("nombre_gerente"); ?> getValor("nombre_salario_min") . " - " . $pedido->getValor("nombre_salario_max"); ?>
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">
getIdiomas(); if (count($idiomas) > 0) { foreach ($idiomas as $nombre => $codigo) { echo $nombre . "
"; } } else { ?> getValor("pesoIdioma") > 0) echo $locale['1097']; ?>
getTecnologias(); if (count($tecnologias) > 0) { foreach ($tecnologias as $nombre => $codigo) { echo $nombre . "
"; } } else { ?> getValor("pesoTecno") > 0) echo $locale['1097']; ?>
getProvincias(); if (count($tecnologias) > 0) { foreach ($tecnologias as $nombre => $codigo) { echo $nombre . "
"; } } else { ?>
getValor("observaciones")); ?>

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") . '