Ticket #562 -> En la pantalla de búsqueda de candidato, se debe poder elegir varios perfiles técnicos.

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk@18 e2b1556b-49f8-d141-9351-52d6861a72d9
This commit is contained in:
David Arranz 2011-04-05 10:04:52 +00:00
parent 3b2395f307
commit 6771ae2c1e
2 changed files with 17 additions and 8 deletions

View File

@ -106,10 +106,19 @@ if ($cuenta_corriente != ""){
// $condicion .= "usuarios.rol = '".$rol."',"; // $condicion .= "usuarios.rol = '".$rol."',";
//} //}
if ($perfil != ""){ // Ticket #562 -> En la pantalla de búsqueda de candidato, se debe poder elegir varios perfiles técnicos.
$condicion .= "usuarios.perfil = '".$perfil."',"; $puesto_perfil = false;
if(is_array($perfil)){
foreach($perfil as $per)
if ($per != ""){
if(!$puesto_perfil)
$tabla .= ",perfil_usuario";
$puesto_perfil = true;
$condicion .= "perfil_usuario.perfil = '".$per."' and perfil_usuario.oid_i = usuarios.oid or ";
}
} }
if ($salario != ""){ if ($salario != ""){
$condicion .= "usuarios.salario_min <= '".$salario."' and usuarios.salario_max >= '".$salario."',"; $condicion .= "usuarios.salario_min <= '".$salario."' and usuarios.salario_max >= '".$salario."',";
} }

View File

@ -96,11 +96,11 @@ include("functions.php");
?> ?>
</td> </td>
<td width="33%" textalign="right"><?php echo $locale['121']; ?> <td width="33%" textalign="right"><?php echo $locale['1012']; ?><br/>
<?php <?php /* Ticket #562 -> En la pantalla de búsqueda de candidato, se debe poder elegir varios perfiles técnicos. */ ?>
$auxiliar = '<option value="">'.$locale['ns'].'</option>'; <?php
rellena_desplegable_select_oid("perfil","perfil",$auxiliar,$perfil); echo $html->listaSelect("perfil","oid","id","perfil",array("",$locale['ns']),"",true,true);
?> ?>
</td> </td>
</tr> </tr>
</table> </table>