$fecha_hora = $fecha_desde;
//exit;
/*echo "DESDE".strtotime($fecha_hora);
echo "Hasta".strtotime($fecha_hasta);
exit;
*/
$aprox = $obj_modelo->GetAprox();
$result = $obj_modelo->GetRelacionPagos();
$relacion_pago = array();
while ($row = $obj_conexion->GetArrayInfo($result)) {
    $relacion_pago[$row['id_tipo_jugada']] = $row['monto'];
    //	$id_tipo_jugada[]=$row['id_tipo_jugada'];
}
while (strtotime($fecha_hora) <= strtotime($fecha_hasta)) {
    //echo "fech.".$fecha_hora;
    $res = $obj_modelo->DespremiarTicket($fecha_hora, $tipo_servidor);
    //echo "<br>REST".$res;
    if ($res) {
        echo "<br>Despremiar Efectivo";
    } else {
        echo "Fallo el despremiar. Intente Nuevamente";
        exit;
    }
    //exit;
    //$where = " fecha_hora LIKE '%".date('Y-m-d')."%'";
    //$result= $obj_modelo->GetListadosegunVariable($where);
    $resultados = array();
    $id_sorteo = array();
    $id_zodiacal = array();
    $relacion_pago = array();
    $result = $obj_modelo->GetResultados($fecha_hora);