Ticket #563 -> En la pantalla de búsqueda de pedidos (solicitudes), se debe poder elegir varios perfiles técnicos

git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk/src@22 e2b1556b-49f8-d141-9351-52d6861a72d9
This commit is contained in:
David Arranz 2011-04-06 16:50:55 +00:00
parent 9e1daae059
commit b80d050cb0
8 changed files with 27 additions and 16 deletions

View File

@ -17,10 +17,10 @@ include_once("ConexionBackup.php");
function execQuery($query){ function execQuery($query){
$res = mysql_query($query); $res = mysql_query($query);
// $mensaje = $query." - ".$res."\r\n"; $mensaje = $query." - ".$res."\r\n";
// $fichero = fopen("querys.log","a"); $fichero = fopen("querys.log","a");
// fputs($fichero,$mensaje); fputs($fichero,$mensaje);
// fclose($fichero); fclose($fichero);
return $res; return $res;
} }

View File

@ -28,14 +28,14 @@ echo $html->menuPedidos($usuario,"");
?></td> ?></td>
<td><?php echo $locale['1027']; <td><?php echo $locale['1027'];
$auxiliar = '<option value="">'.$locale['ns'].'</option>'; $auxiliar = '<option value="">'.$locale['ns'].'</option>';
rellena_personal_permiso("gerente","GP",$auxiliar,$gerente);?></td> rellena_personal_permiso("gerente","GP", $auxiliar, $gerente);?></td>
</tr> </tr>
<tr> <tr>
<td><?php echo $locale['1504']; <td><?php echo $locale['1504'];
rellena_desplegable_select_oid("clientes","clientes",$auxiliar,$cliente); rellena_desplegable_select_oid("clientes","clientes",$auxiliar,$cliente);
?></td> ?></td>
<td><?php echo $locale['121']; <td><?php echo $locale['121']."<br/>";
rellena_desplegable_select_oid("perfil","perfil",$auxiliar,$perfil); echo $html->listaSelect("perfil","oid","id","perfil", array("",$locale['ns']." ".$locale['4048']),array(),true,true,"15");
?></td> ?></td>
<td><?php echo $locale['132']; <td><?php echo $locale['132'];
rellena_desplegable_select_oidCol("pedidos_estados","cod","nombre","estado",$auxiliar,$estado); rellena_desplegable_select_oidCol("pedidos_estados","cod","nombre","estado",$auxiliar,$estado);

View File

@ -57,8 +57,15 @@ if ($procedencia != ""){
$condicion .= "pedidos.procedencia = '".$procedencia."',"; $condicion .= "pedidos.procedencia = '".$procedencia."',";
} }
$puesto_perfil = false;
if ($perfil != ""){ if ($perfil != ""){
$condicion .= "pedidos.perfil = '".$perfil."',"; foreach($perfil as $per)
if ($per != "") {
if(!$puesto_perfil)
$tabla .= ",perfil_pedido";
$puesto_perfil = true;
$condicion .= "perfil_pedido.perfil = '".$per."' and perfil_pedido.oid_i = pedidos.oid or ";
}
} }
$puesto_tecno = false; $puesto_tecno = false;

View File

@ -8,7 +8,7 @@ $prioridad = stripinput($_POST["prioridad"]);
$nombre = stripinput($_POST["nombre"]); $nombre = stripinput($_POST["nombre"]);
$fecha = stripinput($_POST["fecha"]); $fecha = stripinput($_POST["fecha"]);
$cliente = stripinput($_POST["clientes"]); $cliente = stripinput($_POST["clientes"]);
$perfil = stripinput($_POST["perfil"]); $perfil = $_POST["perfil"];
$duracion = stripinput($_POST["duracion"]); $duracion = stripinput($_POST["duracion"]);
$empleados = stripinput($_POST["empleados"]); $empleados = stripinput($_POST["empleados"]);
$observaciones = stripinput($_POST["observaciones"]); $observaciones = stripinput($_POST["observaciones"]);

View File

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

View File

@ -1,7 +1,10 @@
<?php <?php
include ("functions.php"); include ("./functions.php");
include_once("./Objects/HTML.php"); include_once("./Objects/HTML.php");
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>

View File

@ -1008,4 +1008,5 @@ $locale['4045'] = "CV no encontrado.";
$locale['4046'] = "No se ha podido actualiar la observaci&oacute;n"; $locale['4046'] = "No se ha podido actualiar la observaci&oacute;n";
$locale['4047'] = "Se ha a&ntilde;adido correctamente la observaci&oacute;n"; $locale['4047'] = "Se ha a&ntilde;adido correctamente la observaci&oacute;n";
$locale['4048'] = "Cualquier perfil t&eacute;cnico";
?> ?>

View File

@ -133,7 +133,7 @@ if($_GET['pagLista']>0){
} }
// Vemos si tiene pedidos // Vemos si tiene pedidos
if(count($listadePedidos)==0){ if(count($listadePedidos)==0){
echo "<tr><td colspan=\"11\" align=\"center\">no tiene pedidos</td></tr></table>"; echo "<tr><td colspan=\"11\" align=\"center\">no tiene solicitudes de oferta</td></tr></table>";
}else{ }else{
$inicio=($pagLista-1)*constante("lista"); $inicio=($pagLista-1)*constante("lista");
if(count($listadePedidos)>($inicio+constante("lista"))){ if(count($listadePedidos)>($inicio+constante("lista"))){