git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk/src@1 e2b1556b-49f8-d141-9351-52d6861a72d9
711 lines
27 KiB
PHP
711 lines
27 KiB
PHP
<?php
|
||
include_once("Objects/Pedido.php");
|
||
include_once("seguridad.php");
|
||
$usuario=$_SESSION['usuario'];
|
||
//$pedido=new Pedido($idPedido,$usuario);
|
||
$pedido=new Pedido($idPedido,$usuario);
|
||
|
||
if(($pedido->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;
|
||
?>
|
||
<style type="text/css">
|
||
.listaPropuestos{
|
||
border-collapse:separate;
|
||
}
|
||
.listaPropuestos tbody{
|
||
overflow-y:auto;
|
||
overflow-x:hidden;
|
||
}
|
||
</style>
|
||
<?php
|
||
include_once("Objects/HTML.php");
|
||
|
||
$html=new HTML($locale);
|
||
// Constantes para la p<>gina
|
||
if($_GET["pagAcept"]=="") $pagAcept="1"; else $pagAcept=$_GET['pagAcept'];
|
||
if($_GET["pagProp"]=="") $pagProp="1"; else $pagProp=$_GET['pagProp'];
|
||
if($_GET["pagRech"]=="") $pagRech="1"; else $pagRech=$_GET['pagRech'];
|
||
|
||
// Comprogamos si hay error de semaforo activo
|
||
if($_GET['msgSem']!=""){
|
||
$mensajeSemaforo=$semaforo->getMensaje($_GET['msgSem']);
|
||
echo "<div class=\"aviso semaforo\">".$mensajeSemaforo."</div>";
|
||
}
|
||
|
||
/* PROYECTOS.PHP */
|
||
|
||
//menu_pedidos("");
|
||
// MEN<45>
|
||
if($pedido->getValor("estado")==40){
|
||
echo $html->menuPedidos($usuario,array("gestionar"));
|
||
} elseif (!$usuario->tieneRol("3")) {
|
||
echo $html->menuPedidos($usuario,array("gestionar"));
|
||
}else
|
||
echo $html->menuPedidos($usuario,"");
|
||
|
||
// Comprobamos mensajes que pueden llegar hasta aqui
|
||
switch ($_GET['msg']) {
|
||
case "1":$mensaje="<div class=\"aviso ok\">".$locale['1061']."</div>";
|
||
break;
|
||
default:
|
||
break;
|
||
}
|
||
|
||
|
||
?>
|
||
<link href="css/tablas.css" rel="stylesheet" type="text/css">
|
||
|
||
<h2><?php echo $pedido->getValor("nombre"); ?></h2>
|
||
<?php echo $mensaje;
|
||
// Comprobamos si tenemos que aceptar o rechazar un candidato
|
||
$action="";
|
||
if($_GET['action']!="") $action= $_GET['action'];
|
||
if($_POST['action']!="") $action= $_POST['action'];
|
||
|
||
if($action!=""){
|
||
$error=false;
|
||
$mensaje="";
|
||
switch ($action) {
|
||
case "aceptar": if($_GET['idCand']!=""){
|
||
try{
|
||
$estado=$pedido->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 "<div class=\"aviso ".$tipo."\">".$mensaje."</div>";
|
||
}
|
||
}
|
||
?>
|
||
<table width="100%"><tr><td>
|
||
<table width="100%">
|
||
<tr>
|
||
<td class="nombre"><?php echo $locale['1010']; ?></td>
|
||
<td><?php echo ver_fecha_larga($pedido->getValor("fecha")); ?></td>
|
||
<td class="nombre"><?php echo $locale['1011']; ?></td>
|
||
<td><?php echo discretiza_prioridad($pedido->getValor("prioridad")); ?></td>
|
||
<td class="nombre"><?php echo $locale['1012']; ?></td>
|
||
<td><?php echo nombre_perfil($pedido->getValor("perfil"));?></td>
|
||
<td class="nombre"><?php echo $locale['1013']; ?></td>
|
||
<td><?php echo $pedido->getValor("nombre_cliente");?></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="nombre"><?php echo $locale['1026']; ?></td>
|
||
<td><?php echo $pedido->getValor("duracion");?></td>
|
||
<td class="nombre"><?php echo $locale['1014']; ?></td>
|
||
<td><?php echo $pedido->getValor("empleados");?></td>
|
||
<td class="nombre"><?php echo $locale['1027']; ?></td>
|
||
<td><?php echo $pedido->getValor("nombre_gerente");?></td>
|
||
<td class="nombre"><?php echo $locale['261']; ?></td>
|
||
<td><?php echo $pedido->getValor("nombre_salario_min")." - ".$pedido->getValor("nombre_salario_max");?></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="nombre"><?php echo $locale['1527']; ?></td>
|
||
<td><?php echo $pedido->getValor("nombre_estado");?>
|
||
<div id="obsCambioEst" class="obsCambioEst">
|
||
<form id="formCambEst" action="pedido.php?idPedido=<?php echo $pedido->getValor("oid"); ?>&action=cambEstObs" method="post" >
|
||
<input type="hidden" name="action" value="cambEstObs" />
|
||
<input type="hidden" name="idEstado" id="idEstado" />
|
||
</form>
|
||
</div>
|
||
<?php
|
||
if($pedido->getValor("msgEstado")!=""){
|
||
echo " -> ".$pedido->getValor("msgEstado");
|
||
}
|
||
echo "<br />";
|
||
$estadosSiguientes=$pedido->getSiguientes();
|
||
foreach($estadosSiguientes as $codEstado => $nombreEstado){
|
||
// En estados 50 se necesita mensaj obs
|
||
if($codEstado=="50"){
|
||
?>
|
||
<input class="button" name="cambEstado" type="button" value="<?php echo $locale['2104'].$nombreEstado;?>" onClick="mostrarObs('<?php echo $pedido->getValor("oid"); ?>','<?php echo $codEstado;?>','txt')" style="margin-bottom:5px">
|
||
<?php
|
||
} else {
|
||
?>
|
||
<input class="button" name="cambEstado" type="button" value="<?php echo $locale['2104'].$nombreEstado;?>" onClick="javascript:document.location='pedido.php?idPedido=<?php echo $pedido->getValor("oid"); ?>&action=cambEst&idEst=<?php echo $codEstado;?>'" style="width:200px; margin-bottom:5px"><br />
|
||
<?php
|
||
}
|
||
}
|
||
?>
|
||
</td>
|
||
<td class="nombre"><?php echo $locale['123']; ?></td>
|
||
<td><?php
|
||
$idiomas=$pedido->getIdiomas();
|
||
if(count($idiomas)>0){
|
||
foreach($idiomas as $nombre => $codigo){
|
||
echo $nombre."<br />";
|
||
}
|
||
} else {
|
||
?>
|
||
<span class="errorcampo"><?php if($pedido->getValor("pesoIdioma") > 0) echo $locale['1097'];?></span><br />
|
||
<?php
|
||
}
|
||
?></td>
|
||
<td class="nombre"><?php echo $locale['122']; ?></td>
|
||
<td><?php
|
||
$tecnologias=$pedido->getTecnologias();
|
||
if(count($tecnologias)>0){
|
||
foreach($tecnologias as $nombre => $codigo){
|
||
echo $nombre."<br />";
|
||
}
|
||
} else {
|
||
?>
|
||
<span class="errorcampo"><?php if($pedido->getValor("pesoTecno") > 0) echo $locale['1097'];?></span><br />
|
||
<?php
|
||
}
|
||
?></td>
|
||
<td class="nombre"><?php echo $locale['209']; ?></td>
|
||
<td><?php
|
||
$tecnologias=$pedido->getProvincias();
|
||
if(count($tecnologias)>0){
|
||
foreach($tecnologias as $nombre => $codigo){
|
||
echo $nombre."<br />";
|
||
}
|
||
} else {
|
||
?>
|
||
<span class="errorcampo"><?php echo $locale['1097']; ?></span>
|
||
<?php
|
||
}
|
||
?></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="nombre"><?php echo $locale['1082']; ?></td>
|
||
<td colspan="7">
|
||
<?php
|
||
echo $locale['1078']."( ".$pedido->getValor("pesoTecno")."% ) - ";
|
||
echo $locale['1079']."( ".$pedido->getValor("pesoIdioma")."% ) - ";
|
||
echo $locale['1080']."( ".$pedido->getValor("pesoPerfil")."% )";
|
||
|
||
?></td>
|
||
</tr>
|
||
<tr>
|
||
<td class="nombre"><?php echo $locale['135']; ?></td>
|
||
<td colspan="7"><?php echo $pedido->getValor("observaciones");?></td>
|
||
</tr>
|
||
</table>
|
||
</td></tr>
|
||
<tr><td>
|
||
<!-- Tabla de candidatos aceptados -->
|
||
<h3><span class="nombre"><?php echo $locale['1046']; ?></span></h3>
|
||
<table width="100%" class="listaPropuestos">
|
||
<thead>
|
||
<tr class="nombre">
|
||
<th><?php echo $locale['704']; ?></th>
|
||
<th><?php echo $locale['202']; ?></th>
|
||
<th><?php echo $locale['1052']; ?></th>
|
||
<th><?php echo $locale['2105']; ?></th>
|
||
<th><?php echo $locale['203']; ?></th>
|
||
<th><?php echo $locale['206']; ?></th>
|
||
<th><?php echo $locale['1015']; ?></th>
|
||
<th><?php echo $locale['2014']; ?></th>
|
||
</tr>
|
||
</thead>
|
||
<?php
|
||
$listaCandidatos = $pedido->getCandidatosAceptados();
|
||
if(gettype($listaCandidatos)=="NULL"){
|
||
?>
|
||
<tbody>
|
||
<tr>
|
||
<td colspan="8"><?php echo $locale['1049']; ?></td>
|
||
</tr>
|
||
<?php
|
||
}else{
|
||
echo "<tbody>";
|
||
/*if(count($listaCandidatos)<$mostrarTabla)
|
||
echo "<tbody>";
|
||
else
|
||
echo "<tbody style=\"height: ".$altoScroll."px;\">";
|
||
*/
|
||
$final=count($listaCandidatos);
|
||
for($i=0;$i<$final;$i++){
|
||
$candidato=$listaCandidatos[$i];
|
||
?>
|
||
<tr>
|
||
<td>
|
||
<a onclick="mostrarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')" ondblclick="ocultarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')">
|
||
<img src="<?php echo (($candidato->getValor("obsGerente")!="") || ($candidato->getValor("obsRRHH")!=""))? "css/coment.png" : "css/add_coment.png"; ?>" /></a>
|
||
<div id="obs-<?php echo $candidato->getValor("oid"); ?>" class="capaObs" onmouseover="mostrarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')">
|
||
<img src="css/dell.png" onclick="ocultarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')" style="padding:2px 10px 2px 0px ">
|
||
<table width="550" bgcolor="#999999" style="border-collapse:separate ">
|
||
<tr>
|
||
<td width="50%"><b>Comentario de RRHH</b></td>
|
||
<td width="50%"><b>Comentario del Gerente</b></td>
|
||
</tr>
|
||
<tr>
|
||
<td width="50%"><textarea name="obs" readonly class="obsPropuesta" ><?php echo $candidato->getValor("obsRRHH"); ?></textarea></td>
|
||
<td width="50%">
|
||
<form action="pedido.php?idPedido=<?php echo $idPedido; ?>" method="post">
|
||
<input type="hidden" name="action" value="addComent">
|
||
<input type="hidden" name="idCandidato" value="<?php echo $candidato->getValor("oid"); ?>">
|
||
<textarea name="obs" class="obsPropuesta" ><?php echo $candidato->getValor("obsGerente"); ?></textarea>
|
||
<input class="button" style="border-color:#000000; " type="submit" value="comentar" >
|
||
</form>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<a href="detalle_persona.php?oid=<?php echo $candidato->getValor("oid"); ?>" target=popup onclick=window.open('', 'popup', ',',',',',',',','width = 600, height = 800')><?php echo $candidato->getValor("nombre")." ".$candidato->getValor("apellidos"); ?></a></td>
|
||
<td>
|
||
<?php
|
||
$perfiles=$candidato->getPerfiles();
|
||
$keylocalidades=array_values($perfiles);
|
||
// Mostramos la lista para borrar
|
||
foreach ($perfiles as $nombre =>$valor) {
|
||
echo "- ".$nombre."<br />";
|
||
}
|
||
?>
|
||
</td>
|
||
<td> <?php echo $candidato->getValor("estado_usuario"); ?></td>
|
||
<td> <?php echo $candidato->getValor("fecha"); ?></td>
|
||
<td> <?php
|
||
$tecnologias=rellena_lista_oid("tecnologia_usuario", "tecnologia", "tecnologia", $candidato->getValor("oid"));
|
||
if(gettype($tecnologias)!="NULL"){
|
||
foreach($tecnologias as $tecno){
|
||
echo $tecno.",";
|
||
}
|
||
}
|
||
?></td>
|
||
<td> <?php
|
||
$idiomas=rellena_lista_oid("idioma_usuario", "idiomas", "idioma", $candidato->getValor("oid"));
|
||
if(gettype($idiomas)!="NULL"){
|
||
foreach($idiomas as $tecno){
|
||
echo $tecno.",";
|
||
}
|
||
}
|
||
?></td>
|
||
<td> <?php echo $candidato->getValor("afinidad"); ?></td>
|
||
<td class="centrado"><a href="pedido.php?idPedido=<?php echo $pedido->getValor("oid"); ?>&action=dell&idCand=<?php echo $candidato->getValor("oid"); ?>" ><img src="css/dell.png" title="<?php echo $locale['1048'];?>" /></a>
|
||
</td>
|
||
</tr>
|
||
|
||
<?php
|
||
} // for
|
||
} // if
|
||
?>
|
||
</tbody>
|
||
</table>
|
||
<div id="cronopaginacion"><?php echo $html->paginacion($numPaginas,$pagAcept,"pedido.php","idPedido=".$pedido->getValor("oid"),"pagAcept"); ?></div>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<!-- Lista de candidatos propuestos por RRHH -->
|
||
<h3><span class="nombre"><?php echo $locale['1071']; ?></span></h3>
|
||
<table width="100%" class="listaPropuestos">
|
||
<thead>
|
||
<tr class="nombre">
|
||
<th><?php echo $locale['704']; ?></th>
|
||
<th><?php echo $locale['202']; ?></th>
|
||
<th><?php echo $locale['1052']; ?></th>
|
||
<th><?php echo $locale['2106']; ?></th>
|
||
<th><?php echo $locale['203']; ?></th>
|
||
<th><?php echo $locale['206']; ?></th>
|
||
<th><?php echo $locale['1015']; ?></th>
|
||
<th><?php echo $locale['2014']; ?></th>
|
||
</tr>
|
||
</thead>
|
||
<?php
|
||
$listaCandidatos = $pedido->getCandidatosPropuestosRRHH();
|
||
if(gettype($listaCandidatos)=="NULL"){
|
||
?>
|
||
<tbody>
|
||
<tr>
|
||
<td colspan="8"><?php echo $locale['1050']; ?></td>
|
||
</tr>
|
||
<?php
|
||
}else{
|
||
echo "<tbody>";
|
||
/*if(count($listaCandidatos)<$mostrarTabla)
|
||
echo "<tbody>";
|
||
else
|
||
echo "<tbody style=\"height: ".$altoScroll."px;\">";
|
||
*/
|
||
$final=count($listaCandidatos);
|
||
for($i=0;$i<$final;$i++){
|
||
$candidato=$listaCandidatos[$i];
|
||
?>
|
||
<tr>
|
||
<?php
|
||
|
||
?>
|
||
<td>
|
||
<a onclick="mostrarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')" ondblclick="ocultarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')">
|
||
<img src="<?php echo (($candidato->getValor("obsGerente")!="") || ($candidato->getValor("obsRRHH")!=""))? "css/coment.png" : "css/add_coment.png"; ?>" /></a>
|
||
<div id="obs-<?php echo $candidato->getValor("oid"); ?>" class="capaObs" onmouseover="mostrarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')">
|
||
<img src="css/dell.png" onclick="ocultarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')" style="padding:2px 10px 2px 0px ">
|
||
<table width="550" bgcolor="#999999" style="border-collapse:separate ">
|
||
<tr>
|
||
<td width="50%"><b>Comentario de RRHH</b></td>
|
||
<td width="50%"><b>Comentario del Gerente</b></td>
|
||
</tr>
|
||
<tr>
|
||
<td width="50%"><textarea name="obs" readonly class="obsPropuesta" ><?php echo $candidato->getValor("obsRRHH"); ?></textarea></td>
|
||
<td width="50%">
|
||
<form action="pedido.php?idPedido=<?php echo $idPedido; ?>" method="post">
|
||
<input type="hidden" name="action" value="addComent">
|
||
<input type="hidden" name="idCandidato" value="<?php echo $candidato->getValor("oid"); ?>">
|
||
<textarea name="obs" class="obsPropuesta" ><?php echo $candidato->getValor("obsGerente"); ?></textarea>
|
||
<input class="button" style="border-color:#000000; " type="submit" value="comentar" >
|
||
</form>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<a href="detalle_persona.php?oid=<?php echo $candidato->getValor("oid"); ?>" target=popup onclick=window.open('', 'popup', ',',',',',',',','width = 600, height = 800')><?php echo $candidato->getValor("nombre")." ".$candidato->getValor("apellidos"); ?></a></td>
|
||
<td>
|
||
<?php
|
||
$perfiles=$candidato->getPerfiles();
|
||
$keylocalidades=array_values($perfiles);
|
||
// Mostramos la lista para borrar
|
||
foreach ($perfiles as $nombre =>$valor) {
|
||
echo "- ".$nombre."<br />";
|
||
}
|
||
?>
|
||
</td>
|
||
<td> <?php echo $candidato->getValor("estado_usuario"); ?></td>
|
||
<td> <?php echo $candidato->getValor("fecha"); ?></td>
|
||
<td> <?php
|
||
$tecnologias=rellena_lista_oid("tecnologia_usuario", "tecnologia", "tecnologia", $candidato->getValor("oid"));
|
||
if(gettype($tecnologias)!="NULL"){
|
||
foreach($tecnologias as $tecno){
|
||
echo $tecno.",";
|
||
}
|
||
}
|
||
?></td>
|
||
<td> <?php
|
||
$idiomas=rellena_lista_oid("idioma_usuario", "idiomas", "idioma", $candidato->getValor("oid"));
|
||
if(gettype($idiomas)!="NULL"){
|
||
foreach($idiomas as $tecno){
|
||
echo $tecno.",";
|
||
}
|
||
}
|
||
?></td>
|
||
<td> <?php echo $candidato->getValor("afinidad"); ?></td>
|
||
<td class="centrado">
|
||
<a href="pedido.php?idPedido=<?php echo $pedido->getValor("oid"); ?>&action=aceptar&idCand=<?php echo $candidato->getValor("oid"); ?>" ><img src="css/accept.png" title="<?php echo $locale['1047']; ?>" /></a>
|
||
<a href="pedido.php?idPedido=<?php echo $pedido->getValor("oid"); ?>&action=dell&idCand=<?php echo $candidato->getValor("oid"); ?>" ><img src="css/dell.png" title="<?php echo $locale['1048'];?>" /></a>
|
||
</td>
|
||
</tr>
|
||
|
||
<?php
|
||
} // for
|
||
} // if
|
||
?>
|
||
</tbody>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
<tr>
|
||
<td>
|
||
<!-- Lista de candidatos propuestos por el sistema -->
|
||
<h3><span class="nombre"><?php echo $locale['1044']; ?></span></h3>
|
||
<table width="100%" class="listaPropuestos">
|
||
<thead>
|
||
<tr class="nombre">
|
||
<th><?php echo $locale['704']; ?></th>
|
||
<th><?php echo $locale['202']; ?></th>
|
||
<th><?php echo $locale['1052']; ?></th>
|
||
<th><?php echo $locale['2107']; ?></th>
|
||
<th><?php echo $locale['203']; ?></th>
|
||
<th><?php echo $locale['206']; ?></th>
|
||
<th><?php echo $locale['1015']; ?></th>
|
||
<th><?php echo $locale['2014']; ?></th>
|
||
</tr>
|
||
</thead>
|
||
<?php
|
||
$listaCandidatos = $pedido->getCandidatosPropuestos();
|
||
if(gettype($listaCandidatos)=="NULL"){
|
||
?>
|
||
<tbody>
|
||
<tr>
|
||
<td colspan="8"><?php echo $locale['1050']; ?></td>
|
||
</tr>
|
||
<?php
|
||
}else{
|
||
echo "<tbody>";
|
||
/*if(count($listaCandidatos)<$mostrarTabla)
|
||
echo "<tbody>";
|
||
else
|
||
echo "<tbody style=\"height: ".$altoScroll."px;\">";
|
||
*/
|
||
$final=count($listaCandidatos);
|
||
for($i=0;$i<$final;$i++){
|
||
$candidato=$listaCandidatos[$i];
|
||
?>
|
||
<tr>
|
||
<td>
|
||
<a onclick="mostrarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')" ondblclick="ocultarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')">
|
||
<img src="<?php echo (($candidato->getValor("obsGerente")!="") || ($candidato->getValor("obsRRHH")!=""))? "css/coment.png" : "css/add_coment.png"; ?>" /></a>
|
||
<div id="obs-<?php echo $candidato->getValor("oid"); ?>" class="capaObs" onmouseover="mostrarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')">
|
||
<img src="css/dell.png" onclick="ocultarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')" style="padding:2px 10px 2px 0px ">
|
||
<table width="550" bgcolor="#999999" style="border-collapse:separate ">
|
||
<tr>
|
||
<td width="50%"><b>Comentario de RRHH</b></td>
|
||
<td width="50%"><b>Comentario del Gerente</b></td>
|
||
</tr>
|
||
<tr>
|
||
<td width="50%"><textarea name="obs" readonly class="obsPropuesta" ><?php echo $candidato->getValor("obsRRHH"); ?></textarea></td>
|
||
<td width="50%">
|
||
<form action="pedido.php?idPedido=<?php echo $idPedido; ?>" method="post">
|
||
<input type="hidden" name="action" value="addComent">
|
||
<input type="hidden" name="idCandidato" value="<?php echo $candidato->getValor("oid"); ?>">
|
||
<textarea name="obs" class="obsPropuesta" ><?php echo $candidato->getValor("obsGerente"); ?></textarea>
|
||
<input class="button" style="border-color:#000000; " type="submit" value="comentar" >
|
||
</form>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<a href="detalle_persona.php?oid=<?php echo $candidato->getValor("oid"); ?>" target=popup onclick=window.open('', 'popup', ',',',',',',',','width = 600, height = 800')><?php echo $candidato->getValor("nombre")." ".$candidato->getValor("apellidos"); ?></a></td>
|
||
<td>
|
||
<?php
|
||
$perfiles=$candidato->getPerfiles();
|
||
$keylocalidades=array_values($perfiles);
|
||
// Mostramos la lista para borrar
|
||
foreach ($perfiles as $nombre =>$valor) {
|
||
echo "- ".$nombre."<br />";
|
||
}
|
||
?>
|
||
</td>
|
||
<td> <?php echo $candidato->getValor("estado_usuario"); ?></td>
|
||
<td> <?php echo $candidato->getValor("fecha"); ?></td>
|
||
<td> <?php
|
||
$tecnologias=rellena_lista_oid("tecnologia_usuario", "tecnologia", "tecnologia", $candidato->getValor("oid"));
|
||
if(gettype($tecnologias)!="NULL"){
|
||
foreach($tecnologias as $tecno){
|
||
echo $tecno.",";
|
||
}
|
||
}
|
||
?></td>
|
||
<td> <?php
|
||
$idiomas=rellena_lista_oid("idioma_usuario", "idiomas", "idioma", $candidato->getValor("oid"));
|
||
if(gettype($idiomas)!="NULL"){
|
||
foreach($idiomas as $tecno){
|
||
echo $tecno.",";
|
||
}
|
||
}
|
||
?></td>
|
||
<td> <?php echo $candidato->getValor("afinidad"); ?></td>
|
||
<td class="centrado">
|
||
<a href="pedido.php?idPedido=<?php echo $pedido->getValor("oid"); ?>&action=aceptar&idCand=<?php echo $candidato->getValor("oid"); ?>" ><img src="css/accept.png" title="<?php echo $locale['1047']; ?>" /></a>
|
||
<a href="pedido.php?idPedido=<?php echo $pedido->getValor("oid"); ?>&action=dell&idCand=<?php echo $candidato->getValor("oid"); ?>" ><img src="css/dell.png" title="<?php echo $locale['1048'];?>" /></a>
|
||
</td>
|
||
</tr>
|
||
|
||
<?php
|
||
} // for
|
||
} // if
|
||
?>
|
||
</tbody>
|
||
</table>
|
||
</td>
|
||
</tr>
|
||
|
||
<tr>
|
||
<td>
|
||
<!-- Lista de candidatos rechazados -->
|
||
|
||
<h3><span class="nombre"><?php echo $locale['1045']; ?></span></h3>
|
||
<table width="100%" class="listaPropuestos">
|
||
<thead>
|
||
<tr class="nombre">
|
||
<th><?php echo $locale['704']; ?></th>
|
||
<th><?php echo $locale['202']; ?></th>
|
||
<th><?php echo $locale['1052']; ?></th>
|
||
<th><?php echo $locale['2108']; ?></th>
|
||
<th><?php echo $locale['203']; ?></th>
|
||
<th><?php echo $locale['206']; ?></th>
|
||
<th><?php echo $locale['1015']; ?></th>
|
||
<th><?php echo $locale['2014']; ?></th>
|
||
</tr>
|
||
</thead>
|
||
<?php
|
||
$listaCandidatos = $pedido->getCandidatosRechazados();
|
||
if(gettype($listaCandidatos)=="NULL"){
|
||
?>
|
||
<tbody>
|
||
<tr>
|
||
<td colspan="8"><?php echo $locale['1051']; ?></td>
|
||
</tr>
|
||
<?php
|
||
}else{
|
||
echo "<tbody>";
|
||
/*if(count($listaCandidatos)<$mostrarTabla)
|
||
echo "<tbody>";
|
||
else
|
||
echo "<tbody style=\"height: ".$altoScroll."px;\">";
|
||
*/
|
||
$final=count($listaCandidatos);
|
||
for($i=0;$i<$final;$i++){
|
||
$candidato=$listaCandidatos[$i];
|
||
?>
|
||
<tr>
|
||
<td>
|
||
<a onclick="mostrarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')" ondblclick="ocultarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')">
|
||
<img src="<?php echo (($candidato->getValor("obsGerente")!="") || ($candidato->getValor("obsRRHH")!=""))? "css/coment.png" : "css/add_coment.png"; ?>" /></a>
|
||
<div id="obs-<?php echo $candidato->getValor("oid"); ?>" class="capaObs" onmouseover="mostrarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')">
|
||
<img src="css/dell.png" onclick="ocultarCapa('obs-<?php echo $candidato->getValor("oid"); ?>')" style="padding:2px 10px 2px 0px ">
|
||
<table width="550" bgcolor="#999999" style="border-collapse:separate ">
|
||
<tr>
|
||
<td width="50%"><b>Comentario de RRHH</b></td>
|
||
<td width="50%"><b>Comentario del Gerente</b></td>
|
||
</tr>
|
||
<tr>
|
||
<td width="50%"><textarea name="obs" readonly class="obsPropuesta" ><?php echo $candidato->getValor("obsRRHH"); ?></textarea></td>
|
||
<td width="50%">
|
||
<form action="pedido.php?idPedido=<?php echo $idPedido; ?>" method="post">
|
||
<input type="hidden" name="action" value="addComent">
|
||
<input type="hidden" name="idCandidato" value="<?php echo $candidato->getValor("oid"); ?>">
|
||
<textarea name="obs" class="obsPropuesta" ><?php echo $candidato->getValor("obsGerente"); ?></textarea>
|
||
<input class="button" style="border-color:#000000; " type="submit" value="comentar" >
|
||
</form>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
</div>
|
||
<a href="detalle_persona.php?oid=<?php echo $candidato->getValor("oid"); ?>" target=popup onclick=window.open('', 'popup', ',',',',',',',','width = 600, height = 800')><?php echo $candidato->getValor("nombre")." ".$candidato->getValor("apellidos"); ?></a></td>
|
||
<td>
|
||
<?php
|
||
$perfiles=$candidato->getPerfiles();
|
||
$keylocalidades=array_values($perfiles);
|
||
// Mostramos la lista para borrar
|
||
foreach ($perfiles as $nombre =>$valor) {
|
||
echo "- ".$nombre."<br />";
|
||
}
|
||
?>
|
||
</td>
|
||
<td> <?php echo $candidato->getValor("estado_usuario"); ?></td>
|
||
<td> <?php echo $candidato->getValor("fecha"); ?></td>
|
||
<td> <?php
|
||
$tecnologias=rellena_lista_oid("tecnologia_usuario", "tecnologia", "tecnologia", $candidato->getValor("oid"));
|
||
if(gettype($tecnologias)!="NULL"){
|
||
foreach($tecnologias as $tecno){
|
||
echo $tecno.",";
|
||
}
|
||
}
|
||
?></td>
|
||
<td> <?php
|
||
$idiomas=rellena_lista_oid("idioma_usuario", "idiomas", "idioma", $candidato->getValor("oid"));
|
||
if(gettype($idiomas)!="NULL"){
|
||
foreach($idiomas as $tecno){
|
||
echo $tecno.",";
|
||
}
|
||
}
|
||
?></td>
|
||
<td> <?php echo $candidato->getValor("afinidad"); ?></td>
|
||
<td class="centrado">
|
||
<a href="pedido.php?idPedido=<?php echo $pedido->getValor("oid"); ?>&action=aceptar&idCand=<?php echo $candidato->getValor("oid"); ?>" ><img src="css/accept.png" title="<?php echo $locale['1047']; ?>" /></a>
|
||
</td>
|
||
</tr>
|
||
|
||
<?php
|
||
} // for
|
||
} // if
|
||
?>
|
||
</tbody>
|
||
</table>
|
||
|
||
</td>
|
||
</tr>
|
||
<tr align="center">
|
||
<td ><?php echo $locale['127']; ?><br />
|
||
<textarea name="historial" readonly rows="8" cols="90" maxlength="300" style="overflow: auto;width:100%"><?php echo $pedido->getHistorial(); ?></textarea>
|
||
</td>
|
||
</tr>
|
||
</table>
|
||
|
||
|
||
<?php include_once("html/pie.php"); ?>
|