}*/
</script> 
</head>

<body style="font-size:18px;" onload="imprimir();">
<div id="general">
<div class="titulo">Logros del d&iacute;a</div>

	<?php 
$ancho = 1060;
$soloimp = '1';
$extraWhereFecha = "";
if (!$_REQUEST['fecha']) {
    $_REQUEST["fecha"] = DateUtil::getDateUnderVzlaTZ();
    $extraWhereFecha = " fecha = '" . $_REQUEST["fecha"] . "'";
    $extraWhereFecha .= " AND hora >= '" . DateUtil::getTimeUnderVzlaTZ() . "'";
    $extraWhereFecha .= " AND fecha < ADDDATE('" . $_REQUEST["fecha"] . "', 1)";
} else {
    $extraWhereFecha = " fecha='" . $_REQUEST['fecha'] . "'";
}
list($ano, $mes, $dia) = explode("-", $_REQUEST['fecha']);
//$selectlogros="select * from vista_logros where fecha='".$_REQUEST['fecha']."' and idliga='".$_REQUEST['liga']."' ORDER BY idlogro,que_equipo ASC, nombre_tipo_apuesta ASC";
$selectlogros = "SELECT *,date_format(CONCAT(fecha,' ',hora),'%r') as hora_f, l.nombre \r\n\t\t\t\t\t\tFROM vista_logros \r\n\t\t\t\t\t\tLEFT JOIN ligas l ON (vista_logros.idliga=l.idliga)\r\n\t\t\t\t\t\tWHERE " . $extraWhereFecha . " and estatus_logro='1'\r\n\t\tORDER BY l.orden_visual,vista_logros.idliga,hora,nombre_categoria,idlogro,que_equipo ASC, nombre_tipo_apuesta ASC";
//echo "<br />".$selectlogros."<br />";
$querylogros = mysql_query($selectlogros);
if (mysql_num_rows($querylogros) > 0) {
    $equipoA = '';
    $equipoB = '';
    $bandera = '';
    $categoria = '';
    while ($varlogros = mysql_fetch_assoc($querylogros)) {