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-left:5px;
|
||||||
padding-right:5px;
|
padding-right:5px;
|
||||||
}
|
}
|
||||||
|
.tablerohistusuarios{
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
|
.tablerohistpeticiones{
|
||||||
|
font-size:12px;
|
||||||
|
}
|
||||||
.agendaTitDia{
|
.agendaTitDia{
|
||||||
font-size:12px;
|
font-size:12px;
|
||||||
text-align:center;
|
text-align:center;
|
||||||
@ -164,4 +169,4 @@ border-color:#FFFFFF;
|
|||||||
.miniCalendario .hoy{
|
.miniCalendario .hoy{
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
background-color:#999999;
|
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/>
|
<br/>
|
||||||
|
|
||||||
<table cellpadding="0" cellspacing="1" width="600" class="agenda">
|
<table cellpadding="0" cellspacing="1" width="800" class="agenda">
|
||||||
<tr class="encabezado">
|
<tr class="encabezado">
|
||||||
<th width="120">Fecha cambio</th>
|
<th width="120">Fecha cambio</th>
|
||||||
|
<th>Autor</th>
|
||||||
<th>Candidato</th>
|
<th>Candidato</th>
|
||||||
<th>Acciones</th>
|
<th>Acciones</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|
||||||
@ -13,39 +14,34 @@
|
|||||||
<?php
|
<?php
|
||||||
$resultado_usuarios;
|
$resultado_usuarios;
|
||||||
//Se sacaran los usuarios que han sido modificados o añadidos en los últimos 30 días
|
//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
|
$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 h
|
from historial_usuario as h1
|
||||||
left join (
|
left join usuarios on (usuarios.oid = h1.oid_h)
|
||||||
select h1.oid_h, max(h1.fecha_h) as fecha_h_max
|
order by 2 desc
|
||||||
from historial_usuario as h1
|
limit 0,50';
|
||||||
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';
|
|
||||||
|
|
||||||
$bd=new BD();
|
$bd=new BD();
|
||||||
$resultado_usuarios = $bd->execQuery($sql_usuarios);
|
$resultado_usuarios = $bd->execQuery($sql_usuarios);
|
||||||
while($row = mysql_fetch_array($resultado_usuarios)) {
|
while($row = mysql_fetch_array($resultado_usuarios)) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="agendaTitDia"> <?php echo $row["fecha_h_max"] ?> </td>
|
<td class="tablerohistusuarios" align="center"> <?php echo $row["fecha_h"] ?> </td>
|
||||||
<td class="agendaTitDia"> <?php echo $row["nombre"] . ' ' . $row["apellidos"]?> </td>
|
<td class="tablerohistusuarios" align="center"> <?php echo $row["persona_h"]?></a></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 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>
|
<td class="tablerohistusuarios" align="left"> <?php echo $row["texto_h"]?></a></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
<br/><br/>
|
<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/>
|
<br/>
|
||||||
<table cellpadding="0" cellspacing="1" width="600" class="agenda">
|
<table cellpadding="0" cellspacing="1" width="800" class="agenda">
|
||||||
<tr class="encabezado">
|
<tr class="encabezado">
|
||||||
<th width="120">Fecha cambio</th>
|
<th width="120">Fecha cambio</th>
|
||||||
|
<th>Autor</th>
|
||||||
<th>Solicitud de oferta</th>
|
<th>Solicitud de oferta</th>
|
||||||
<th>Acciones</th>
|
<th>Acciones</th>
|
||||||
</tr>
|
</tr>
|
||||||
@ -55,28 +51,23 @@ while($row = mysql_fetch_array($resultado_usuarios)) {
|
|||||||
<?php
|
<?php
|
||||||
$resultado_ofertas;
|
$resultado_ofertas;
|
||||||
//Se sacaran los usuarios que han sido modificados o añadidos en los últimos 30 días
|
//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
|
$sql_ofertas = 'select h1.oid_h, h1.fecha_h, h1.persona_h, h1.texto_h, pedidos.nombre
|
||||||
left join (
|
from historial_pedido as h1
|
||||||
select h1.oid_h, max(h1.fecha_h) as fecha_h_max
|
left join pedidos on (pedidos.oid = h1.oid_h)
|
||||||
from historial_pedido as h1
|
order by 2 desc
|
||||||
group by 1
|
limit 0,50';
|
||||||
) 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';
|
|
||||||
|
|
||||||
$bd=new BD();
|
$bd=new BD();
|
||||||
$resultado_ofertas = $bd->execQuery($sql_ofertas);
|
$resultado_ofertas = $bd->execQuery($sql_ofertas);
|
||||||
while($row = mysql_fetch_array($resultado_ofertas)) {
|
while($row = mysql_fetch_array($resultado_ofertas)) {
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="agendaTitDia"> <?php echo $row["fecha_h_max"] ?> </td>
|
<td class="tablerohistpeticiones" align="center"> <?php echo $row["fecha_h"] ?> </td>
|
||||||
<td class="agendaTitDia"> <?php echo $row["id"] . ' ' . $row["nombre"] . ' - número de empleados: ' . $row["empleados"]?> </td>
|
<td class="tablerohistpeticiones" align="center"> <?php echo $row["persona_h"] ?> </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 class="tablerohistpeticiones" align="center"> <a href="pedido.php?idPedido=<?php echo $row["oid_h"]; ?>#historial"><?php echo $row["nombre"] ?></a></td>
|
||||||
</td>
|
<td class="tablerohistpeticiones" align="left"> <?php echo $row["texto_h"] ?> </td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user