Beispiel #1
0
if ($Rs) {
    $TotalDay = 0;
    $Total = 0;
    $OldDate = '';
    $isFirstTime = true;
    while ($MyRow = safe_fetch($Rs)) {
        if ($OldDate != $MyRow->Data) {
            if ($OldDate != '') {
                $pdf->SetFont($pdf->FontStd, '', 8);
                $pdf->Cell(30, 6, '', 0, 0, 'L', 0);
                $pdf->Cell(115, 6, get_text('Total') . " " . $OldDate, 0, 0, 'R', 0);
                $pdf->SetFont($pdf->FontStd, 'B', 8);
                $pdf->Cell(45, 6, NumFormat($TotalDay, 2) . " " . $pdf->writeCurrency(), 1, 1, 'R', 0);
            }
            $isFirstTime = true;
            $pdf->SetY($pdf->GetY() + 5);
            $pdf->SetFont($pdf->FontStd, 'B', 8);
            $pdf->Cell(30, 7, '', 0, 0, 'C', 0);
            $pdf->Cell(30, 7, get_text('TourWhen', 'Tournament'), 1, 0, 'C', 1);
            $pdf->Cell(25, 7, get_text('SessionShort', 'Tournament'), 1, 0, 'C', 1);
            $pdf->Cell(30, 7, get_text('Number'), 1, 0, 'C', 1);
            $pdf->Cell(30, 7, get_text('Price', 'Tournament'), 1, 0, 'C', 1);
            $pdf->Cell(45, 7, get_text('Total'), 1, 1, 'C', 1);
            $pdf->SetFont($pdf->FontStd, '', 1);
            $pdf->Cell(190, 0.5, '', 0, 1, 'C', 0);
            $OldDate = $MyRow->Data;
            $TotalDay = 0;
        }
        $pdf->SetFont($pdf->FontStd, '', 8);
        $pdf->Cell(30, 5, '', 0, 0, 'C', 0);
        if ($isFirstTime) {
Beispiel #2
0
 while ($MyRow = safe_fetch($Rs)) {
     //			if($MyRow->EvFinalFirstPhase==48 || $MyRow->EvFinalFirstPhase==24)
     //				$Fasi[0]=get_text('24_Phase');
     if ($MyRow->EvFinalFirstPhase == 48) {
         $Fasi[0] = get_text('48_Phase');
         $Fasi[1] = get_text('24_Phase');
     } elseif ($MyRow->EvFinalFirstPhase == 24) {
         $Fasi[1] = get_text('24_Phase');
     }
     if ($RowNo++ != 0) {
         $pdf->AddPage();
     }
     $WhereX = $WhereStartX;
     $WhereY = $WhereStartY;
     //Intestazione Atleta
     $pdf->SetY($pdf->GetPageHeight() * 0.2 - 23);
     $pdf->SetFont($pdf->FontStd, '', 10);
     $pdf->Cell($pdf->GetPageWidth() * 0.1, 6, get_text('Athlete') . ': ', 'TL', 0, 'L', 0);
     $pdf->SetFont($pdf->FontStd, 'B', 10);
     $pdf->Cell($pdf->GetPageWidth() * 0.8 - 20, 6, $MyRow->Athlete, 'T', 1, 'L', 0);
     $pdf->SetFont($pdf->FontStd, '', 10);
     $pdf->Cell($pdf->GetPageWidth() * 0.1, 6, get_text('Country') . ': ', 'L', 0, 'L', 0);
     $pdf->SetFont($pdf->FontStd, 'B', 10);
     $pdf->Cell($pdf->GetPageWidth() * 0.8 - 20, 6, $MyRow->CoName . (strlen($MyRow->CoCode) > 0 ? ' (' . $MyRow->CoCode . ')' : ''), 0, 1, 'L', 0);
     $pdf->SetFont($pdf->FontStd, '', 10);
     $pdf->Cell($pdf->GetPageWidth() * 0.1, 6, get_text('DivisionClass') . ': ', 'LB', 0, 'L', 0);
     $pdf->SetFont($pdf->FontStd, 'B', 10);
     $pdf->Cell($pdf->GetPageWidth() * 0.8 - 20, 6, get_text($MyRow->EvEventName, '', '', true), 'B', 1, 'L', 0);
     $pdf->SetXY($pdf->GetPageWidth() * 0.9 - 10, $pdf->GetY() - 18);
     $pdf->SetFont($pdf->FontStd, 'B', 10);
     $pdf->Cell($pdf->GetPageWidth() * 0.1, 6, get_text('Rank'), 'TLR', 1, 'C', 1);
Beispiel #3
0
if (safe_num_rows($Rs) > 0) {
    $WhereStartX = array($pdf->getSideMargin(), ($pdf->GetPageWidth() + $pdf->getSideMargin()) / 2, $pdf->getSideMargin(), ($pdf->GetPageWidth() + $pdf->getSideMargin()) / 2);
    $WhereStartY = array(55, 55, 55 + ($pdf->GetPageHeight() - 75) / 2, 55 + ($pdf->GetPageHeight() - 75) / 2);
    $WhereX = NULL;
    $WhereY = NULL;
    //$NumRow=4;
    $RowNo = 0;
    //DrawScore
    while ($MyRow = safe_fetch($Rs)) {
        if ($RowNo++ != 0) {
            $pdf->AddPage();
        }
        $WhereX = $WhereStartX;
        $WhereY = $WhereStartY;
        //Intestazione Squadra
        $pdf->SetY(35);
        $pdf->SetFont($pdf->FontStd, '', 10);
        $pdf->Cell($pdf->GetPageWidth() * 0.1, 7, get_text('Country') . ': ', 'TL', 0, 'L', 0);
        $pdf->SetFont($pdf->FontStd, 'B', 10);
        $pdf->Cell($pdf->GetPageWidth() * 0.8 - 20, 7, $MyRow->TeamName . (strlen($MyRow->CoCode) > 0 ? ' (' . $MyRow->CoCode . ')' : ''), 'T', 1, 'L', 0);
        $pdf->SetFont($pdf->FontStd, '', 10);
        $pdf->Cell($pdf->GetPageWidth() * 0.1, 7, get_text('DivisionClass') . ': ', 'LB', 0, 'L', 0);
        $pdf->SetFont($pdf->FontStd, 'B', 10);
        $pdf->Cell($pdf->GetPageWidth() * 0.8 - 20, 7, get_text($MyRow->EvEventName, '', '', true), 'B', 1, 'L', 0);
        $pdf->SetXY($pdf->GetPageWidth() * 0.9 - 10, $pdf->GetY() - 14);
        $pdf->SetFont($pdf->FontStd, 'B', 8);
        $pdf->Cell($pdf->GetPageWidth() * 0.1, 5, get_text('Rank'), 'TLR', 1, 'C', 1);
        $pdf->SetXY($pdf->GetPageWidth() * 0.9 - 10, $pdf->GetY());
        $pdf->SetFont($pdf->FontStd, 'B', 20);
        $pdf->Cell($pdf->GetPageWidth() * 0.1, 9, $MyRow->GrPosition, 'BLR', 1, 'C', 1);
        for ($WhichScore = $Start2FirstPhase[$MyRow->EvFinalFirstPhase]; $WhichScore < 4; $WhichScore++) {