Se sacan los 50 primeros cambios
git-svn-id: https://192.168.0.254/svn/Proyectos.Incam_Intranet/trunk/src@60 e2b1556b-49f8-d141-9351-52d6861a72d9
This commit is contained in:
parent
251f6f4679
commit
41296de8ee
@ -126,7 +126,12 @@ border-color:#FFFFFF;
|
||||
padding-left:5px;
|
||||
padding-right:5px;
|
||||
}
|
||||
|
||||
.tablerohistusuarios{
|
||||
font-size:12px;
|
||||
}
|
||||
.tablerohistpeticiones{
|
||||
font-size:12px;
|
||||
}
|
||||
.agendaTitDia{
|
||||
font-size:12px;
|
||||
text-align:center;
|
||||
@ -164,4 +169,4 @@ border-color:#FFFFFF;
|
||||
.miniCalendario .hoy{
|
||||
font-weight:bold;
|
||||
background-color:#999999;
|
||||
}
|
||||
}
|
||||
|
||||
65
tablero.php
65
tablero.php
@ -1,11 +1,12 @@
|
||||
<div class="encabezado">LISTA DE ÚLTIMOS CAMBIOS DE CANDIDATOS</div>
|
||||
<div class="encabezado"> LISTA DE ÚLTIMOS CAMBIOS DE CANDIDATOS</div>
|
||||
<br/>
|
||||
|
||||
<table cellpadding="0" cellspacing="1" width="600" class="agenda">
|
||||
<table cellpadding="0" cellspacing="1" width="800" class="agenda">
|
||||
<tr class="encabezado">
|
||||
<th width="120">Fecha cambio</th>
|
||||
<th>Autor</th>
|
||||
<th>Candidato</th>
|
||||
<th>Acciones</th>
|
||||
<th>Acciones</th>
|
||||
</tr>
|
||||
|
||||
|
||||
@ -13,39 +14,34 @@
|
||||
<?php
|
||||
$resultado_usuarios;
|
||||
//Se sacaran los usuarios que han sido modificados o añadidos en los últimos 30 días
|
||||
$sql_usuarios = 'SELECT DISTINCT h.oid_h, h_max.fecha_h_max, usuarios.tipo, usuarios.nombre, usuarios.apellidos
|
||||
FROM historial_usuario as h
|
||||
left join (
|
||||
select h1.oid_h, max(h1.fecha_h) as fecha_h_max
|
||||
from historial_usuario as h1
|
||||
group by 1
|
||||
) as h_max on (h_max.oid_h = h.oid_h)
|
||||
left join usuarios on (usuarios.oid = h.oid_h)
|
||||
where h.fecha_h between date_sub(now(),interval 30 day) and now()
|
||||
order by h.fecha_h desc';
|
||||
$sql_usuarios = 'select h1.oid_h, h1.fecha_h, h1.persona_h, h1.texto_h, usuarios.tipo, usuarios.nombre, usuarios.apellidos
|
||||
from historial_usuario as h1
|
||||
left join usuarios on (usuarios.oid = h1.oid_h)
|
||||
order by 2 desc
|
||||
limit 0,50';
|
||||
|
||||
$bd=new BD();
|
||||
$resultado_usuarios = $bd->execQuery($sql_usuarios);
|
||||
while($row = mysql_fetch_array($resultado_usuarios)) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="agendaTitDia"> <?php echo $row["fecha_h_max"] ?> </td>
|
||||
<td class="agendaTitDia"> <?php echo $row["nombre"] . ' ' . $row["apellidos"]?> </td>
|
||||
<td class="agendaTitDia"> <a href="detalle_candidato.php?oid=<?php echo $row["oid_h"]; ?>#historial"><img src="css/brick_go.png" title="Ver cambios"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<td class="tablerohistusuarios" align="center"> <?php echo $row["fecha_h"] ?> </td>
|
||||
<td class="tablerohistusuarios" align="center"> <?php echo $row["persona_h"]?></a></td>
|
||||
<td class="tablerohistusuarios" align="center"> <a href="detalle_candidato.php?oid=<?php echo $row["oid_h"]; ?>#historial"><?php echo $row["nombre"] . ' ' . $row["apellidos"]?></a></td>
|
||||
<td class="tablerohistusuarios" align="left"> <?php echo $row["texto_h"]?></a></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
|
||||
</table>
|
||||
<br/><br/>
|
||||
<div class="encabezado">LISTA DE ÚLTIMOS CAMBIOS DE SOLICITUDES DE OFERTA</div>
|
||||
<div class="encabezado"> LISTA DE ÚLTIMOS CAMBIOS DE SOLICITUDES DE OFERTA</div>
|
||||
<br/>
|
||||
<table cellpadding="0" cellspacing="1" width="600" class="agenda">
|
||||
<table cellpadding="0" cellspacing="1" width="800" class="agenda">
|
||||
<tr class="encabezado">
|
||||
<th width="120">Fecha cambio</th>
|
||||
<th>Autor</th>
|
||||
<th>Solicitud de oferta</th>
|
||||
<th>Acciones</th>
|
||||
</tr>
|
||||
@ -55,28 +51,23 @@ while($row = mysql_fetch_array($resultado_usuarios)) {
|
||||
<?php
|
||||
$resultado_ofertas;
|
||||
//Se sacaran los usuarios que han sido modificados o añadidos en los últimos 30 días
|
||||
$sql_ofertas = 'SELECT DISTINCT h.oid_h, h_max.fecha_h_max, clientes.id, pedidos.nombre, pedidos.empleados, pedidos.duracion
|
||||
FROM historial_pedido as h
|
||||
left join (
|
||||
select h1.oid_h, max(h1.fecha_h) as fecha_h_max
|
||||
from historial_pedido as h1
|
||||
group by 1
|
||||
) as h_max on (h_max.oid_h = h.oid_h)
|
||||
left join pedidos on (pedidos.oid = h.oid_h)
|
||||
left join clientes on (clientes.oid = pedidos.cliente)
|
||||
where h.fecha_h between date_sub(now(),interval 30 day) and now()
|
||||
order by h.fecha_h desc';
|
||||
|
||||
$sql_ofertas = 'select h1.oid_h, h1.fecha_h, h1.persona_h, h1.texto_h, pedidos.nombre
|
||||
from historial_pedido as h1
|
||||
left join pedidos on (pedidos.oid = h1.oid_h)
|
||||
order by 2 desc
|
||||
limit 0,50';
|
||||
|
||||
$bd=new BD();
|
||||
$resultado_ofertas = $bd->execQuery($sql_ofertas);
|
||||
while($row = mysql_fetch_array($resultado_ofertas)) {
|
||||
?>
|
||||
<tr>
|
||||
<td class="agendaTitDia"> <?php echo $row["fecha_h_max"] ?> </td>
|
||||
<td class="agendaTitDia"> <?php echo $row["id"] . ' ' . $row["nombre"] . ' - número de empleados: ' . $row["empleados"]?> </td>
|
||||
<td class="agendaTitDia"> <a href="pedido.php?idPedido=<?php echo $row["oid_h"]; ?>#historial"><img src="css/brick_go.png" title="Ver cambios"/></a>
|
||||
</td>
|
||||
</tr>
|
||||
<td class="tablerohistpeticiones" align="center"> <?php echo $row["fecha_h"] ?> </td>
|
||||
<td class="tablerohistpeticiones" align="center"> <?php echo $row["persona_h"] ?> </td>
|
||||
<td class="tablerohistpeticiones" align="center"> <a href="pedido.php?idPedido=<?php echo $row["oid_h"]; ?>#historial"><?php echo $row["nombre"] ?></a></td>
|
||||
<td class="tablerohistpeticiones" align="left"> <?php echo $row["texto_h"] ?> </td>
|
||||
</tr>
|
||||
|
||||
<?php
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user