Ejemplo n.º 1
0
 if ($Rs) {
     $Etichetta = 0;
     while ($MyRow = safe_fetch($Rs)) {
         if ($Etichetta == 0) {
             $pdf->AddPage();
         }
         //Cerchia Etichetta
         // 			$pdf->Rect($pageMarginL+(($Etichetta % $Label4Column) * ($lblW+$lblSpaceH)),$pageMarginT+(intval($Etichetta / $Label4Column) * ($lblH+$lblSpaceV)),$lblW,$lblH,"D");
         $pdf->SetXY(0, 0);
         $pdf->SetLeftMargin($pageMarginL + $lblMarginH + $Etichetta % $Label4Column * ($lblW + $lblSpaceH));
         $pdf->SetTopMargin($pageMarginT + $lblMarginV + intval($Etichetta / $Label4Column) * ($lblH + $lblSpaceV));
         //Piazzola, Turno & Classe.Divisione
         $pdf->SetFont($pdf->FontStd, 'B', 20);
         $pdf->Cell(0.25 * ($lblW - 2 * $lblMarginH), 8, $MyRow->IndRank, 0, 0, 'L', 0);
         $pdf->SetFont($pdf->FontStd, 'B', 12);
         $pdf->SetXY($pdf->GetX() - 3, $pdf->GetY() + 2);
         $pdf->Cell(0.35 * ($lblW - 2 * $lblMarginH), 7, get_text('Score', 'Tournament') . ': ' . $MyRow->QuScore, 0, 0, 'C', 0);
         $pdf->Cell(0.4 * ($lblW - 2 * $lblMarginH), 6, $MyRow->EvCode, 0, 1, 'R', 0);
         //Arciere & Società
         $pdf->SetFont($pdf->FontStd, 'B', 12);
         $pdf->Cell($lblW - 2 * $lblMarginH, 6, $MyRow->FirstName . ' ' . $MyRow->Name, 0, 1, 'L', 0);
         $pdf->SetFont($pdf->FontStd, '', 10);
         $pdf->Cell(0.3 * $lblW - 2 * $lblMarginH, 5, $MyRow->NationCode, 0, 0, 'L', 0);
         // stampa l'elenco delle piazzole a cui dovrà andare...
         $tgts = array();
         $pos = array();
         $n = 2;
         /*
          * il ?: mi serve perchè 48*2>64 e 24*2>32 e non riuscirei a fare la prima fase se parto dai 1/48 o dai 1/24.
          */
         while ($n <= ($MyRow->EvFinalFirstPhase == 48 ? 64 : ($MyRow->EvFinalFirstPhase == 24 ? 32 : $MyRow->EvFinalFirstPhase))) {
Ejemplo n.º 2
0
 if ($Rs) {
     $Etichetta = 0;
     while ($MyRow = safe_fetch($Rs)) {
         if ($Etichetta == 0) {
             $pdf->AddPage();
         }
         //Cerchia Etichetta
         //$pdf->Rect($pageMarginL+(($Etichetta % $Label4Column) * ($lblW+$lblSpaceH)),$pageMarginT+(intval($Etichetta / $Label4Column) * ($lblH+$lblSpaceV)),$lblW,$lblH,"D");
         $pdf->SetXY(0, 0);
         $pdf->SetLeftMargin($pageMarginL + $lblMarginH + $Etichetta % $Label4Column * ($lblW + $lblSpaceH));
         $pdf->SetTopMargin($pageMarginT + $lblMarginV + intval($Etichetta / $Label4Column) * ($lblH + $lblSpaceV));
         //Piazzola, Turno & Classe.Divisione
         $pdf->SetFont($pdf->FontStd, 'B', 20);
         $pdf->Cell(0.25 * ($lblW - 2 * $lblMarginH), 8, $MyRow->TargetNo, 0, 0, 'L', 0);
         $pdf->SetFont($pdf->FontStd, 'B', 12);
         $pdf->SetXY($pdf->GetX(), $pdf->GetY() + 2);
         $pdf->Cell(0.35 * ($lblW - 2 * $lblMarginH), 6, get_text('Session') . ": " . $MyRow->Session, 0, 0, 'C', 0);
         $pdf->Cell(0.4 * ($lblW - 2 * $lblMarginH), 6, $MyRow->DivCode . ' ' . $MyRow->ClassCode, 0, 1, 'R', 0);
         //Arciere & Società
         $pdf->SetFont($pdf->FontStd, 'B', 12);
         $pdf->Cell($lblW - 2 * $lblMarginH, 6, $MyRow->FirstName . ' ' . $MyRow->Name, 0, 1, 'L', 0);
         $pdf->SetFont($pdf->FontStd, '', 10);
         $pdf->Cell($lblW - 2 * $lblMarginH, 5, $MyRow->NationCode . " - " . $MyRow->Nation, 0, 1, 'L', 0);
         //Barcode
         if ($printBarcode) {
             $pdf->SetFont('barcode', '', 28);
             $pdf->Cell($lblW - 2 * $lblMarginH, 10, mb_convert_encoding('*$' . $MyRow->EnId, "UTF-8", "cp1252") . "*", 0, 0, 'C', 0);
         }
         /*
         			//Status
         			if($MyRow->Status>1)
Ejemplo n.º 3
0
 //		$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);
 if (!is_null($MyRow->PhPhoto)) {
     $im = imagecreatefromstring(base64_decode($MyRow->PhPhoto));
     $height = imagesy($im) * 20 / imagesx($im);
     imagedestroy($im);
     $pdf->Image('@' . base64_decode($MyRow->PhPhoto), $myPosX + 36.5, $pdf->GetY() + 5, 20, 0);
     $pdf->Rect($myPosX + 36.5, $pdf->GetY() + 5, 20, $height, 'D');
 }
 //Matricola
 if (is_null($MyRow->PhPhoto) && $MyRow->AcIsAthlete == 1) {
     $pdf->SetXY($myPosX + 5, $myPosY + 30);
 } else {
     $pdf->SetXY($myPosX + 5, $myPosY + 43);
 }
 //+$height);
 $pdf->SetFont($pdf->FontStd, 'I', 12);
 $pdf->Cell(30, 3, get_text('Code', 'Tournament'), 0, 1, 'L', 0);
 //$pdf->SetX($pdf->GetX()+5);
 //$pdf->Cell(30 , 3, 'Padiglione Fiera', 0, 1, 'L', 0);
 $pdf->SetX($myPosX + 5);
 $pdf->SetFont($pdf->FontStd, 'B', 12);
Ejemplo n.º 4
0
     }
     //Cerchia Etichetta
     // 			$pdf->Rect($pageMarginL+(($Etichetta % $Label4Column) * ($lblW+$lblSpaceH)),$pageMarginT+(intval($Etichetta / $Label4Column) * ($lblH+$lblSpaceV)),$lblW,$lblH,"D");
     $pdf->SetXY(0, 0);
     $pdf->SetLeftMargin($pageMarginL + $lblMarginH + $Etichetta % $Label4Column * ($lblW + $lblSpaceH));
     $pdf->SetTopMargin($pageMarginT + $lblMarginV + intval($Etichetta / $Label4Column) * ($lblH + $lblSpaceV));
     //Piazzola, Turno & Classe.Divisione
     $pdf->SetFont($pdf->FontStd, 'B', 20);
     $pdf->Cell(17, 8, ltrim($Entry->TargetNo, '0'), 0, 0, 'C', 0);
     $pdf->SetFont($pdf->FontStd, 'B', 12);
     $pdf->SetX($pdf->GetX() + 1);
     $pdf->Cell(22, 8, $Entry->SesName, 0, 0, 'C', 0, '', '1', false, 'T', 'B');
     $pdf->SetX($pdf->GetX() + 1);
     $pdf->SetFont($pdf->FontStd, '', 10);
     $X = $pdf->GetX();
     $Y = $pdf->GetY();
     $pdf->Cell($lblW - 2 * $lblMarginH - 41, 4, $Entry->DivDescription, 0, 1, 'R', 0, '', '1', false, 'T', 'T');
     $pdf->SetXY($X, $Y + 4);
     $pdf->Cell($lblW - 2 * $lblMarginH - 41, 4, $Entry->ClDescription . ' ' . intval($Entry->SubClass), 0, 1, 'R', 0, '', '1', false, 'T', 'B');
     //Arciere & Società
     $pdf->SetFont($pdf->FontStd, 'B', 12);
     $pdf->Cell($lblW - 2 * $lblMarginH - 10, 6, $Entry->Athlete, 0, 0, 'L', 0);
     $pdf->SetFont($pdf->FontStd, '', 10);
     $pdf->SetX($pdf->GetX() + 1);
     $pdf->Cell(9, 6, $Entry->NationCode, 0, 0, 'R', 0, '', '1', false, 'T', 'B');
     // 			//Barcode
     $pdf->SetY($pdf->GetY() + 5);
     $pdf->SetFont('barcode', '', 25);
     $pdf->Cell($lblW - 2 * $lblMarginH, 10, mb_convert_encoding('*' . $Entry->Bib . '-' . $Entry->DivCode . '-' . $Entry->ClassCode, "UTF-8", "cp1252") . "*", 0, 0, 'C', 0);
     $Etichetta = ++$Etichetta % $Label4Page;
 }