for ($i = 0; $i < count($vCols); $i++) { $vSplitedData[$i] = $this->SplitText(@$ARowData[$i], $vCols[$i]); $vMaxLines = max($vMaxLines, count($vSplitedData[$i])); } $this->CheckSpace($AHeight * $vMaxLines); $vX = $this->GetX(); $vY = $this->GetY(); for ($i = 0; $i < count($vCols); $i++) { $this->Cell($vCols[$i], $AHeight * $vMaxLines, '', 'LTRB', 0, ''); } $this->SetXY($vX, $vY); for ($j = 0; $j < $vMaxLines; $j++) { for ($i = 0; $i < count($vCols); $i++) { $vText = @$vSplitedData[$i][$j]; $this->Cell($vCols[$i], $AHeight, $vText, '', 0, empty($AAlign) ? $vAligns[$i] : $AAlign); } $this->Ln($AHeight); } } } // ======================================================================= if (!array_key_exists('beg_date', $_GET)) { $_GET['beg_date'] = date('Y-m-d'); } if (!array_key_exists('end_date', $_GET)) { $_GET['end_date'] = date('Y-m-d'); } $vDoc = new TPDF_SESes(); $vDoc->Render($_GET); $vDoc->Output('animal_bites.pdf', 'I');
} $this->CheckSpace($AHeight * $vMaxLines); $vX = $this->GetX(); $vY = $this->GetY(); for ($i = 0; $i < count($vCols); $i++) { $this->Cell($vCols[$i], $AHeight * $vMaxLines, '', 'LTRB', 0, ''); } $this->SetXY($vX, $vY); for ($j = 0; $j < $vMaxLines; $j++) { for ($i = 0; $i < count($vCols); $i++) { $vText = @$vSplitedData[$i][$j]; $this->Cell($vCols[$i], $AHeight, $vText, '', 0, empty($AAlign) ? $vAligns[$i] : $AAlign); } $this->Ln($AHeight); } } } // ======================================================================= if (!array_key_exists('beg_date', $_GET)) { $_GET['beg_date'] = date('Y-m-d'); } if (!array_key_exists('end_date', $_GET)) { $_GET['end_date'] = date('Y-m-d'); } $vDoc = new TPDF_SESes(); $vDoc->Render($_GET); // while (ob_get_level()) // ob_end_clean(); // header('Accept-Ranges: bytes'); $vDoc->Output('Ixodeses.pdf', 'I');