Example #1
0
   	<? if ($estilo1==2){?>
	    <td align="center" bgcolor="#E2E2E2"><strong>Departamento</strong></td>
    <? }else{?>
        <td align="center" bgcolor="#E2E2E2"><strong>Fecha</strong></td>
        <td align="center" bgcolor="#E2E2E2"><strong>Departamento</strong></td>
    <? }?>
    <td align="center" bgcolor="#E2E2E2"><strong>Personas Atendidas</strong></td>
  </tr>
  <? 
  if ($row=mysql_fetch_array($res)) {
	  do {?>
  <tr>
  	<? if ($estilo1==2){?>
        <td align="left"><a href="estadistica_detalles.php?dep=<? echo $row["descripcion"];?>&fecha_desde=<? echo $fecha_desde1; ?>&fecha_hasta=<? echo $fecha_hasta1;?>"><? echo $row["descripcion"];?></a></td>
    <? }else{?>
        <td align="center"><? echo (FechaOrdenar($row['fecha'],"-",""));?></td>
        <td><a href="estadistica_detalles.php?dep=<? echo $row["descripcion"];?>&fecha_desde=<? echo $fecha_desde1; ?>&fecha_hasta=<? echo $fecha_hasta1;?>"><? echo $row["descripcion"];?></a></td>
    <? }?>
    
    
    <td align="center"><? echo $row["total"];?></td>
  </tr>  
	<? } while ($row=mysql_fetch_array($res));
  }
	?>
</table>
<? }
/*		
		$columnas = mysql_num_fields($res);
		
		echo "<table>";
Example #2
0
		$i++;
		?>            
      <tr>
        <td><div align="center"><? echo $i;?></div></td>
        <td ><div align="center"><strong>			
		<a href="#" onclick="javascript: window.open('detalle_ticket.php?idticket=<?php 
echo $row["idventa"];
?>
', '', 'toolbar=,location=no,status=no,menubar=yes,scroll bars=yes, resizable=no,width=530,height=400'); return false" class="mainlevel" >			
					<?php 
echo str_pad($row["idventa"], 8, '0', STR_PAD_LEFT);
?>
        </a>
		</strong></div></td>
        <td style="font-size:11px;"><div align="center"><? echo FechaOrdenar($row["fecha"],"-","")." ".$row["hora"];?></div></td>
        <td style="font-size:11px;"><div align="center"><? echo FechaOrdenar($row["fecha_prorroga"],"-","");?> </div></td>
        <td bgcolor="#66FF33" style="font-size:11px;"><div align="right"><? echo $apuesta1;?> Bs.</div></td>
        <td style="font-size:11px;"><div align="right"><? echo $row["total_ganar"]; ?> Bs.</div></td>
        <td style="font-size:11px;"><div align="right">

        <? if($row['anulado']=='1'){echo "-";}else{echo $row['monto_real_pagar'];} ?> 
        Bs.</div></td>
        <td style="font-size:11px;"><?        
        		if($row['reembolsar']):
							echo "<label class='reembolsar'>Reembolsar</label>";
						elseif($row['recalculado']):
							echo "<label class='recalculado'>Recalculado</label>";
						elseif($row['anulado']):
							echo "<label class='anulado'>Anulado</label>";
						elseif($row['vencido']):
							echo "<label class='vencido'>Vencido</label>";
<?
include ("../procesos/conexion.php");
include_once('fechas.php'); 

	$fecha_desde=$_REQUEST["fecha_desde"];
	$fecha_desde1= FechaOrdenar($fecha_desde, "/", "");
	
	$fecha_hasta=$_REQUEST["fecha_hasta"];
	$fecha_hasta1= FechaOrdenar($fecha_hasta, "/", "");
	
	$departamento=$_REQUEST["dep"];

echo	$sql="SELECT td.idticket_detalle, d.descripcion, td.hora, td.hora_atendido, 
		subtime(td.hora_atendido, td.hora) AS total, o.nombre, o.telefono, te.fecha
		FROM tickets_detalles td
		LEFT JOIN tickets_encabezados te ON (td.idticket_encabezado=te.idticket_encabezado)
		LEFT JOIN departamentos d ON (te.iddepartamento=d.iddepartamento)
		LEFT JOIN operadores_taquillas ot ON (td.idoperador_taquilla=ot.idoperador_taquilla)
		LEFT JOIN operadores o ON (o.idoperador=ot.idoperador)
		WHERE d.descripcion='$departamento' AND te.fecha BETWEEN '$fecha_desde' AND '$fecha_hasta'
		ORDER BY td.idticket_detalle, td.hora";	
	$res=mysql_query($sql);

?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>.: SATRIM :.</title>
<link href="../css/estilos.css" rel="stylesheet" type="text/css" />
<style type="text/css">