예제 #1
0
     $LastTarget = $DayLastTargets[$MyRow->FSScheduledDate];
 }
 if ($OldDate != $MyRow->SchDate && $OldDate != '' || !$pdf->SamePage(RowH + 12 + $DistGap) || (!$pdf->SamePage(2 * RowH + 12 + $DistGap) and $MyRow->Warmup)) {
     // 				debug_svela($LastTarget-$FirstTarget);
     if ($LastTarget - $FirstTarget < 21) {
         $pdf->AddPage('P');
         //Al cambio di data aggiungo una pagina
     } else {
         $pdf->AddPage('L');
         //Al cambio di data aggiungo una pagina
     }
     $TopPos = 35;
     $DimTarget = min(10, ($pdf->getpagewidth() - 20 - ColName) / ($LastTarget - $FirstTarget + 1));
 } else {
     if ($OldDate) {
         $pdf->SetLineStyle(array('width' => 0.5, 'color' => array(128)));
         $pdf->Line(10, $TopPos + RowH + $DistGap - 1, $pdf->getPageWidth() - 10, $TopPos + RowH + $DistGap - 1);
         $pdf->SetLineStyle(array('width' => 0.1, 'color' => array(0)));
     }
     $TopPos += RowH + $DistGap + 2;
 }
 $DistGap = 3;
 $pdf->SetTextColor(0);
 $pdf->SetXY(10, $TopPos - 1);
 $pdf->SetFont($pdf->FontStd, 'B', 14);
 $pdf->Cell(ColName, 3, isset($_REQUEST["HideTime"]) ? '' : $MyRow->SchTime, 0, 0, "C");
 // data e ora
 $pdf->SetXY(10, $TopPos + ($MyRow->EvMatchArrowsNo == '--' ? 7 : 4));
 $pdf->SetFont($pdf->FontStd, 'I', 8);
 //$pdf->Cell(ColName,5,date( get_text('DateFmt'), $MyRow->SchDate),0,0,"C");
 $pdf->Cell(ColName, 5, dateRenderer($MyRow->FSScheduledDate, get_text('DateFmt')), 0, 0, "C");