// debug_svela($MyRow); foreach (explode(',', $MyRow->FsTarget) as $range) { $tmp = explode('-', $range); $tgFrom = $tmp[0]; $tgTo = !empty($tmp[1]) ? $tmp[1] : $tmp[0]; $celW = $DimTarget * ($tgTo + 1 - $tgFrom); $X = 10 + ColName + ($tgFrom - $FirstTarget) * $DimTarget; // Distance if ($MyRow->EvDistance) { $pdf->SetFont($pdf->FontStd, 'B', 7); $pdf->SetXY($X, $TgTop); $pdf->Cell($celW, $CurDistGap, $MyRow->EvDistance, 'LR', 0, "C"); } // box $pdf->SetXY($X, $TgTop + $CurDistGap); $pdf->setAlpha(0.5); $pdf->SetFillColor(150); $pdf->Cell($celW, 10.5, '', 1, 0, "C", 1); $pdf->setAlpha(1); // Events $pdf->SetFont($pdf->FontStd, 'B', 10); $pdf->SetXY($X, $TgTop + $CurDistGap); $pdf->Cell($celW, 4, array_intersect(explode('-', $MyRow->GrPhase), $TimeEvents) ? get_text('Bye') : $MyRow->FSEvent, 0, 0, "C"); // Phase $pdf->SetFont($pdf->FontStd, 'B', 8); $pdf->SetXY($X, $TgTop + 4 + $CurDistGap); $pdf->Cell($celW, 6.5, $MyRow->GrPhase, 0, 0, "C"); } $MyRow = safe_fetch($Rs); } else { if (!in_array($MyRow->FSEvent, $TimeEvents)) {