Example #1
0
     $pdf->Line(103, 148.5, 107, 148.5);
     $pdf->Line(205, 148.5, 208, 148.5);
     $pdf->Line(105, 2, 105, 5);
     $pdf->Line(105, 146.5, 105, 150.5);
     $pdf->Line(105, 292, 105, 295);
 }
 $myPosX = $PosX[$i % 4];
 $myPosY = $PosY[$i % 4];
 //$pdf->SetFillColor($ColorArray[$MyRow->Session-1][0],$ColorArray[$MyRow->Session-1][1],$ColorArray[$MyRow->Session-1][2]);
 // solo per batumi
 if (!is_null($MyRow->AcColor)) {
     $pdf->SetFillColor(base_convert(substr($MyRow->AcColor, 0, 2), 16, 10), base_convert(substr($MyRow->AcColor, 2, 2), 16, 10), base_convert(substr($MyRow->AcColor, 4, 2), 16, 10));
 } else {
     $pdf->SetFillColor(255, 255, 255);
 }
 $pdf->SetDrawColor(0x0, 0x0, 0x0);
 // riquadro colore
 $pdf->Rect($myPosX, $myPosY, 93, 93, 'F');
 //		$pdf->Rect($myPosX, $myPosY, 93, 20, 'F');
 //		$pdf->Rect($myPosX, $myPosY+20, 93, 10, 'F');
 //		$pdf->Rect($myPosX, $myPosY+65, 93, 10, 'F');
 //		$pdf->Rect($myPosX, $myPosY+85, 93, 10, 'F');
 // bordo
 $pdf->Rect($myPosX, $myPosY, 93, 136, 'D');
 //Header
 $pdf->SetXY($myPosX, $myPosY + 7.5);
 $pdf->Cell(93, 6, $rowInfo->ToName, 0, 1, 'C', 0);
 $pdf->SetFont($pdf->FontStd, 'I', 8);
 $pdf->SetX($myPosX);
 $pdf->Cell(93, 6, $rowInfo->ToWhere . ', ' . TournamentDate2String($rowInfo->DtFrom, $rowInfo->DtTo), 0, 1, 'C', 2);
 $pdf->SetDrawColor(0x99, 0x0, 0x0);
Example #2
0
     // 		if($MyRow->AcMeal != 0)
     // 			$pdf->Image($CFG->DOCUMENT_PATH . 'Common/Images/AcMeal.png', $PosX+($AccW*0.2475)+6, $PosY+($AccH*0.81), $AccW*0.0675, 0, 'png');
     // 				[AcTransport] => 3
     // 				[AcAccomodation] => 1
     // 				[AcMeal] => 1
 // 		if($MyRow->AcAccomodation != 0)
 // 			$pdf->Image($CFG->DOCUMENT_PATH . 'Common/Images/AcAccomodation.png', $PosX+($AccW*0.165)+4, $PosY+($AccH*0.81), $AccW*0.0825, 0, 'png');
 // 		if($MyRow->AcMeal != 0)
 // 			$pdf->Image($CFG->DOCUMENT_PATH . 'Common/Images/AcMeal.png', $PosX+($AccW*0.2475)+6, $PosY+($AccH*0.81), $AccW*0.0675, 0, 'png');
 // 				[AcTransport] => 3
 // 				[AcAccomodation] => 1
 // 				[AcMeal] => 1
 case 'Flag':
     if (file_exists($im = $CFG->DOCUMENT_PATH . 'TV/Photos/' . $_SESSION['TourCodeSafe'] . '-Fl-' . $MyRow->NationCode . '.jpg')) {
         $pdf->Image($im, $ElX, $ElY, $Element->Options['W'], $Element->Options['H']);
         $pdf->SetDrawColor(128);
         $pdf->Rect($ElX, $ElY, $Element->Options['W'], $Element->Options['H']);
         $pdf->SetDrawColor(0);
     }
     break;
 case 'ColoredArea':
     $Text = explode("\n", $Element->IceContent);
     $Element->Options['H'] = $Element->Options['H'] / count($Text);
 case 'CompName':
     if (!isset($Text)) {
         $Text = array($_SESSION['TourName']);
     }
 case 'CompDetails':
     if (!isset($Text)) {
         $Text = array($_SESSION['TourWhere'] . ' - ' . TournamentDate2StringShort($_SESSION['TourWhenFrom'], $_SESSION['TourWhenTo']));
     }