示例#1
0
} else {
    $mes1 = $mes;
}
$fecha_hoy = $ano . "-" . $mes . "-" . $dia_hoy;
$fecha_ayer = $ano . "-" . $mes1 . "-" . $dia_ayer;
if (isset($_GET['fechadesde'])) {
    $fecha_ayer = $_GET['fechadesde'];
} else {
    $fecha_ayer = $ano . "-" . $mes1 . "-" . $dia_ayer;
}
if (isset($_GET['fechahasta'])) {
    $fecha_hoy = $_GET['fechahasta'];
} else {
    $fecha_hoy = $ano . "-" . $mes . "-" . $dia_hoy;
}
$fecha_desde = $obj_generico->CleanText($fecha_ayer);
$fecha_hasta = $obj_generico->CleanText($fecha_hoy);
/*
$fecha_desde=$obj_date->changeFormatDateII($fecha_desde);
$fecha_hasta=$obj_date->changeFormatDateII($fecha_hasta);

//echo $fecha_desde, $fecha_hasta;
*/
$comision = $obj_modelo->GetComision();
$data = "";
$data .= "URL ?fechadesde=" . $fecha_ayer . "&fechahasta=" . $fecha_hoy;
$data .= "<br><br>";
$total_cuadre = 0;
if ($result = $obj_modelo->GetBalance($fecha_desde, $fecha_hasta, $comision)) {
    if ($obj_conexion->GetNumberRows($result) > 0) {
        // ENCABEZADO DEL TICKET
$day = substr($string, 8, 2);
$hour = substr($string, 11, 2);
$minute = substr($string, 14, 2);
$dias = array("Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sabado");
//$fecha_hora=$day."-".$month."-".$year." ".$hour.":".$minute;
$fecha_hora = $day . "-" . $month . "-" . $year;
if ($hour > 11) {
    $formato = "PM";
} else {
    $formato = "AM";
}
$formato_militar = array("13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24");
$formato_civil = array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12");
$hour = str_replace($formato_militar, $formato_civil, $hour);
$hora = $hour . ":" . $minute . " " . $formato;
$fecha_desde = $obj_generico->CleanText($_GET['fechadesde']);
$fecha_hasta = $obj_generico->CleanText($_GET['fechahasta']);
$fecha_desde = $obj_date->changeFormatDateII($fecha_desde);
$fecha_hasta = $obj_date->changeFormatDateII($fecha_hasta);
$resulta = $obj_modelo->GetBalancebyTaquillaAnulados($fecha_desde, $fecha_hasta, $id_taquilla);
$total_anulados = array();
$totales_anulados = 0;
$tickets_anulados = array();
$i = 0;
while ($ruw = $obj_conexion->GetArrayInfo($resulta)) {
    $fecha_anul = substr($ruw['fecha'], 0, 10);
    if (!isset($mismo_fecha)) {
        $mismo_fecha = $fecha_anul;
    }
    if ($mismo_fecha != $fecha_anul) {
        $mismo_fecha = $fecha_anul;
$hour = substr($string, 11, 2);
$minute = substr($string, 14, 2);
$dias = array("Domingo", "Lunes", "Martes", "Miercoles", "Jueves", "Viernes", "Sabado");
//$fecha_hora=$day."-".$month."-".$year." ".$hour.":".$minute;
$fecha_hora = $day . "-" . $month . "-" . $year;
if ($hour > 11) {
    $formato = "PM";
} else {
    $formato = "AM";
}
$formato_militar = array("13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23", "24");
$formato_civil = array("01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12");
$hour = str_replace($formato_militar, $formato_civil, $hour);
$hora = $hour . ":" . $minute . " " . $formato;
$id_taquilla = $obj_modelo->GetIdTaquilla();
$fecha = $obj_generico->CleanText($_GET['fecha']);
//echo $fecha_desde, $fecha_hasta;
$data = "";
if ($result = $obj_modelo->GetTicketsGanadores($fecha)) {
    if ($obj_conexion->GetNumberRows($result) > 0) {
        // ENCABEZADO DEL TICKET
        $data .= " <table width='100%' border='0' ><tr><td colspan='4' align='center'><font face='arial' size='2' >";
        $data .= $dias[date('w')] . " " . $fecha_hora . "&nbsp;&nbsp;" . $hora;
        $data .= "<br>";
        $data .= " SISTEMA LOTTOMAX";
        $data .= " </font></td> </tr>";
        $data .= "<tr> <td colspan='4' align='center'><font face='arial' size='2' >";
        $data .= "Tickets Premiados";
        $data .= "</font></td> </tr>";
        $data .= "<tr><td colspan='4' align='center'><font face='arial' size='2' >";
        $data .= "Fecha: " . $obj_date->changeFormatDateI($fecha, 0);