コード例 #1
0
ファイル: FopSetup-bis.php プロジェクト: brian-nelson/ianseo
     if ($Rows[$OldDist][$OldTarg][$OldDim][$key][1] == $r->TargetNo or $Rows[$OldDist][$OldTarg][$OldDim][$key][1] == $r->TargetNo - 1 or $Rows[$OldDist][$OldTarg][$OldDim][$key][1] == $r->TargetNo - 2) {
         $Rows[$OldDist][$OldTarg][$OldDim][$key][1] = $r->TargetNo;
     } else {
         $Rows[$r->Distance][$r->TarDescr][$r->TarDim][] = array($r->TargetNo, $r->TargetNo);
     }
 }
 // if($SesRow->QuSession==3) debug_svela($Sql);
 // prints the distance number
 if (!$Rows) {
     continue;
 }
 if ($n > 1) {
     $TopPos += 2;
 }
 if (!$pdf->SamePage(12 * count($Rows) + 12)) {
     $pdf->addpage();
     $TopPos = 35;
 }
 $pdf->SetXY(10, $TopPos);
 $pdf->SetFont($pdf->FontStd, 'I', 12);
 $pdf->Cell($pdf->GetPageWidth() - 20, 7, get_text('Distance', 'Tournament') . ": " . $n, 0, 0, "C", 1);
 $TopPos += 8;
 // prints the targets
 $pdf->SetCellPadding(0);
 foreach ($Rows as $Distance => $TarTypes) {
     // prints the distance
     if (!$pdf->SamePage(15)) {
         $pdf->addpage();
         $TopPos = 35;
     }
     $pdf->SetTextColor(0);