Tarea #601 -> Nuevos estados y transiciones para un candidato -> rectificaciones

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk/src@52 e2b1556b-49f8-d141-9351-52d6861a72d9
This commit is contained in:
David Arranz 2011-05-10 20:17:13 +00:00
parent 9a113cea82
commit 1be7247d55
2 changed files with 10 additions and 10 deletions

View File

@ -94,7 +94,7 @@ include_once("Empleado.php");
if($estado > 0){ if($estado > 0){
$consulta = "SELECT * from usuarios where tipo = '".$this->tipo."' and estado='".$estado."' ".$this->orden; $consulta = "SELECT * from usuarios where tipo = '".$this->tipo."' and estado='".$estado."' ".$this->orden;
} else{ } else{
$consulta = "SELECT * from usuarios where tipo = '".$this->tipo."' and estado in ('10', '30', '50', '70', '90','80', '100')$this->orden"; $consulta = "SELECT * from usuarios where tipo = '".$this->tipo."' and estado in ('510', '520', '521', '522', '523','530', '540', '550', '560')$this->orden";
} }
} }

View File

@ -144,7 +144,7 @@ echo '<div id="ContTabul">';
<td align="center"><a href="gestion_candidato.php?oid=<?php echo $pedidoAct->getValor("oid"); ?>"><img src="css/edit.png" title="<?php echo $locale['1580']; ?>"/></a></td> <td align="center"><a href="gestion_candidato.php?oid=<?php echo $pedidoAct->getValor("oid"); ?>"><img src="css/edit.png" title="<?php echo $locale['1580']; ?>"/></a></td>
<?php <?php
// Sólo el Administrador puede eliminar para estados 10,20,50,40,60 // Sólo el Administrador puede eliminar para estados 10,20,50,40,60
$estadoSiEliminar=array("10","20","40","50","60"); $estadoSiEliminar=array("510","520","522","523","530", "540");
if(($usuario->tieneRol("1") || $usuario->tieneRol("4")) && (in_array($pedidoAct->getValor("estado"),$estadoSiEliminar))){ if(($usuario->tieneRol("1") || $usuario->tieneRol("4")) && (in_array($pedidoAct->getValor("estado"),$estadoSiEliminar))){
?> ?>
<td align="center"><a href="#" onclick="eliminarCandidato('eliminar_candidato.php?oid=<?php echo $pedidoAct->getValor("oid"); ?>&byEstado=<?PHP echo $tipoPedidos; ?>')" ><img src="css/eliminar.png" title="<?php echo $locale['1581']; ?>"/></a></td> <td align="center"><a href="#" onclick="eliminarCandidato('eliminar_candidato.php?oid=<?php echo $pedidoAct->getValor("oid"); ?>&byEstado=<?PHP echo $tipoPedidos; ?>')" ><img src="css/eliminar.png" title="<?php echo $locale['1581']; ?>"/></a></td>