widths=$w; } function SetAligns($a) { //Set the array of column alignments $this->aligns=$a; } function RowPERIHAL($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); for($i=0;$iwidths[$i]; $a=isset($this->aligns[$i]) ? $this->aligns[$i] : 'J'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,5,$data[$i],0,$a); $this->SetXY($x+$w,$y); } $this->Ln($h); } function RowKEPADA($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; //Issue a page break first if needed $this->CheckPageBreak($h); //Draw the cells of the row for($i=0;$iwidths[$i]; $a=isset($this->aligns[$i]) ? $this->aligns[$i] : 'L'; //Save the current position $x=$this->GetX(); $y=$this->GetY(); //Draw the border //$this->Rect($x,$y,$w,$h); //Print the text $this->MultiCell($w,5,$data[$i],0,$a); //Put the position to the right of the cell $this->SetXY($x+$w,$y); } //Go to the next line $this->Ln($h); } function Row($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; //Issue a page break first if needed $this->CheckPageBreak($h); //Draw the cells of the row for($i=0;$iwidths[$i]; $a=isset($this->aligns[$i]) ? $this->aligns[$i] : 'J'; //Save the current position $x=$this->GetX(); $y=$this->GetY(); //Draw the border //$this->Rect($x,$y,$w,$h); //Print the text $this->MultiCell($w,5,$data[$i],0,$a); //Put the position to the right of the cell $this->SetXY($x+$w,$y); } //Go to the next line $this->Ln($h); } function Row2($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=6*$nb; //Issue a page break first if needed $this->CheckPageBreak($h); //Draw the cells of the row for($i=0;$iwidths[$i]; $a=isset($this->aligns[$i]) ? $this->aligns[$i] : 'C'; //Save the current position $x=$this->GetX(); $y=$this->GetY(); //Draw the border $this->Rect($x,$y,$w,$h); //Print the text $this->MultiCell($w,6,$data[$i],0,$a); //Put the position to the right of the cell $this->SetXY($x+$w,$y); } //Go to the next line $this->Ln($h); } function Row3($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=4*$nb; //Issue a page break first if needed $this->CheckPageBreak($h); //Draw the cells of the row for($i=0;$iwidths[$i]; $a=isset($this->aligns[$i]) ? $this->aligns[$i] : 'C'; //Save the current position $x=$this->GetX(); $y=$this->GetY(); //Draw the border $this->Rect($x,$y,$w,$h); //Print the text $this->MultiCell($w,4,$data[$i],0,$a); //Put the position to the right of the cell $this->SetXY($x+$w,$y); } //Go to the next line $this->Ln($h); } function Row9($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w2=$this->widths[3]; $a2=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x2=$this->GetX(); $y2=$this->GetY(); $this->Rect($x2,$y2,$w2,$h); $this->MultiCell($w2,5,$data[3],0,$a2); $this->SetXY($x2+$w2,$y2); $w3=$this->widths[4]; $a3=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x3=$this->GetX(); $y3=$this->GetY(); $this->Rect($x3,$y3,$w3,$h); $this->MultiCell($w3,5,$data[4],0,$a3); $this->SetXY($x3+$w3,$y3); $w4=$this->widths[5]; $a4=isset($this->aligns[5]) ? $this->aligns[5] : 'C'; $x4=$this->GetX(); $y4=$this->GetY(); $this->Rect($x4,$y4,$w4,$h); $this->MultiCell($w4,5,$data[5],0,$a4); $this->SetXY($x4+$w4,$y4); $this->Ln($h); } function Row10($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'R'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $this->Ln($h); } function Row11($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'R'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $this->Ln($h); } function Row12($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; //Issue a page break first if needed $this->CheckPageBreak($h); //Draw the cells of the row for($i=0;$iwidths[$i]; $a=isset($this->aligns[$i]) ? $this->aligns[$i] : 'C'; //Save the current position $x=$this->GetX(); $y=$this->GetY(); //Draw the border //$this->Rect($x,$y,$w,$h); //Print the text $this->MultiCell($w,5,$data[$i],0,$a); //Put the position to the right of the cell $this->SetXY($x+$w,$y); } //Go to the next line $this->Ln($h); } function Row1($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; //Issue a page break first if needed $this->CheckPageBreak($h); //Draw the cells of the row for($i=0;$iwidths[$i]; $a=isset($this->aligns[$i]) ? $this->aligns[$i] : 'C'; //Save the current position $x=$this->GetX(); $y=$this->GetY(); //Draw the border $this->Rect($x,$y,$w,$h); //Print the text $this->MultiCell($w,5,$data[$i],0,$a); //Put the position to the right of the cell $this->SetXY($x+$w,$y); } //Go to the next line $this->Ln($h); } function RowKLA($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=15*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,15,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,15,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,15,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,15,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,15,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,15,$data[5],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowKLA2($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=6*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,6,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,6,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,6,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,6,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,6,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,6,$data[5],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowPPE($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=6*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,6,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,6,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,6,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,6,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $this->Ln($h); } function RowPPE2($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=6*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,6,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,6,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,6,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,6,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $this->Ln($h); } function RowPPE4($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=6*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,6,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,6,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,6,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,6,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,6,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,6,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,6,$data[6],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[7]; $a=isset($this->aligns[7]) ? $this->aligns[7] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,6,$data[7],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowPPE4f($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=3*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,3,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,3,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,3,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,3,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,3,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,3,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,3,$data[6],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[7]; $a=isset($this->aligns[7]) ? $this->aligns[7] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,3,$data[7],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowPPE3($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=4*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,4,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,4,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,4,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,4,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[6],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[7]; $a=isset($this->aligns[7]) ? $this->aligns[7] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[7],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowLAMP($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[6],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[7]; $a=isset($this->aligns[7]) ? $this->aligns[7] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[7],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[8]; $a=isset($this->aligns[8]) ? $this->aligns[8] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[8],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowSPPUJ($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $this->Ln($h); } function RowSPP($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[6],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[7]; $a=isset($this->aligns[7]) ? $this->aligns[7] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[7],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowSPP2($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'R'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'R'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'R'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $this->Ln($h); } function RowSPP3($data) { $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=3*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,3,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,3,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,3,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,3,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,3,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,3,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,3,$data[6],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[7]; $a=isset($this->aligns[7]) ? $this->aligns[7] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,3,$data[7],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowLAMP2($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'R'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'R'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $this->Ln($h); } function RowPPE5($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowBAEA_atas($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=4*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,4,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[1],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[2]; $a=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[2],0,$a); $this->SetXY($x+$w,$y); } function RowBAEA($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[2]; $a=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[2],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[3]; $a=isset($this->aligns[3]) ? $this->aligns[3] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[3],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[4]; $a=isset($this->aligns[4]) ? $this->aligns[4] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[4],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[6],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowLAMP_BAEA($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[6],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[7]; $a=isset($this->aligns[7]) ? $this->aligns[7] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[7],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[8]; $a=isset($this->aligns[8]) ? $this->aligns[8] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[8],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[9]; $a=isset($this->aligns[9]) ? $this->aligns[9] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[9],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[10]; $a=isset($this->aligns[10]) ? $this->aligns[10] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[10],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[11]; $a=isset($this->aligns[11]) ? $this->aligns[11] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[11],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[12]; $a=isset($this->aligns[12]) ? $this->aligns[12] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[12],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[13]; $a=isset($this->aligns[13]) ? $this->aligns[13] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[13],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[14]; $a=isset($this->aligns[14]) ? $this->aligns[14] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[14],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[15]; $a=isset($this->aligns[15]) ? $this->aligns[15] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[15],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[16]; $a=isset($this->aligns[16]) ? $this->aligns[16] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[16],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowHPL1($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=9*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,9,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,9,$data[1],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowHPL($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=4*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,4,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[1],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[2]; $a=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[2],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowHPS($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[6],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[7]; $a=isset($this->aligns[7]) ? $this->aligns[7] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[7],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[8]; $a=isset($this->aligns[8]) ? $this->aligns[8] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[8],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[9]; $a=isset($this->aligns[9]) ? $this->aligns[9] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[9],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[10]; $a=isset($this->aligns[10]) ? $this->aligns[10] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[10],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[11]; $a=isset($this->aligns[11]) ? $this->aligns[11] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[11],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[12]; $a=isset($this->aligns[12]) ? $this->aligns[12] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[12],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[13]; $a=isset($this->aligns[13]) ? $this->aligns[13] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[13],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowUUZ1($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=4*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,4,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[1],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[2]; $a=isset($this->aligns[2]) ? $this->aligns[2] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[3],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,4,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,4,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,4,$data[5],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowUUZ($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=4*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,4,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[1],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[2]; $a=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[2],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,4,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,4,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,4,$data[5],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowHPSP($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'R'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[6],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[7]; $a=isset($this->aligns[7]) ? $this->aligns[7] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[7],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[8]; $a=isset($this->aligns[8]) ? $this->aligns[8] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[8],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[9]; $a=isset($this->aligns[9]) ? $this->aligns[9] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[9],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[10]; $a=isset($this->aligns[10]) ? $this->aligns[10] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[10],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[11]; $a=isset($this->aligns[11]) ? $this->aligns[11] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[11],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[12]; $a=isset($this->aligns[12]) ? $this->aligns[12] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[12],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[13]; $a=isset($this->aligns[13]) ? $this->aligns[13] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[13],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowKWI($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; //Issue a page break first if needed $this->CheckPageBreak($h); //Draw the cells of the row for($i=0;$iwidths[$i]; $a=isset($this->aligns[$i]) ? $this->aligns[$i] : 'L'; //Save the current position $x=$this->GetX(); $y=$this->GetY(); //Draw the border //$this->Rect($x,$y,$w,$h); //Print the text $this->MultiCell($w,5,$data[$i],0,$a); //Put the position to the right of the cell $this->SetXY($x+$w,$y); } //Go to the next line $this->Ln($h); } function RowKWISPC($data) { $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=4*$nb; $this->CheckPageBreak($h); for($i=0;$iwidths[$i]; $a=isset($this->aligns[$i]) ? $this->aligns[$i] : 'J'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,4,$data[$i],0,$a); $this->SetXY($x+$w,$y); } $this->Ln($h); } function RowKWISPC2($data) { $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=2*$nb; $this->CheckPageBreak($h); for($i=0;$iwidths[$i]; $a=isset($this->aligns[$i]) ? $this->aligns[$i] : 'J'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,2,$data[$i],0,$a); $this->SetXY($x+$w,$y); } $this->Ln($h); } function RowSP1($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=4*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,4,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[1],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[2]; $a=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[2],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[3]; $a=isset($this->aligns[3]) ? $this->aligns[3] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[3],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[4]; $a=isset($this->aligns[4]) ? $this->aligns[4] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[4],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowSP2($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=4*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,4,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[1],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[2]; $a=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[2],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[3]; $a=isset($this->aligns[3]) ? $this->aligns[3] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[3],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[4]; $a=isset($this->aligns[4]) ? $this->aligns[4] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[4],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowNPD($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[2]; $a=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[2],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[3]; $a=isset($this->aligns[3]) ? $this->aligns[3] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[3],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[4]; $a=isset($this->aligns[4]) ? $this->aligns[4] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[4],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowHP1($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,5,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[6],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[7]; $a=isset($this->aligns[7]) ? $this->aligns[7] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[7],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowUCB($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[2]; $a=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[2],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[3]; $a=isset($this->aligns[3]) ? $this->aligns[3] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[3],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowSPPK($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=5*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'L'; $x=$this->GetX(); $y=$this->GetY(); $this->MultiCell($w,5,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[1],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[2]; $a=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[2],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[3]; $a=isset($this->aligns[3]) ? $this->aligns[3] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[3],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[4]; $a=isset($this->aligns[4]) ? $this->aligns[4] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[4],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[6],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[7]; $a=isset($this->aligns[7]) ? $this->aligns[7] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[7],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[8]; $a=isset($this->aligns[8]) ? $this->aligns[8] : 'L'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,5,$data[8],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function RowHeader($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=4*$nb; //Issue a page break first if needed $this->CheckPageBreak($h); //Draw the cells of the row for($i=0;$iwidths[$i]; $a=isset($this->aligns[$i]) ? $this->aligns[$i] : 'C'; //Save the current position $x=$this->GetX(); $y=$this->GetY(); //Draw the border //$this->Rect($x,$y,$w,$h); //Print the text $this->MultiCell($w,4,$data[$i],0,$a); //Put the position to the right of the cell $this->SetXY($x+$w,$y); } //Go to the next line $this->Ln($h); } function RowSPPK2($data) { //Calculate the height of the row $nb=0; for($i=0;$iNbLines($this->widths[$i],$data[$i])); $h=4*$nb; $this->CheckPageBreak($h); $w=$this->widths[0]; $a=isset($this->aligns[0]) ? $this->aligns[0] : 'C'; $x=$this->GetX(); $y=$this->GetY(); //$this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[0],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[1]; $a=isset($this->aligns[1]) ? $this->aligns[1] : 'C'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[1],0,$a); $this->SetXY($x+$w,$y); $w1=$this->widths[2]; $a1=isset($this->aligns[2]) ? $this->aligns[2] : 'L'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,4,$data[2],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[3]; $a1=isset($this->aligns[3]) ? $this->aligns[3] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,4,$data[3],0,$a1); $this->SetXY($x1+$w1,$y1); $w1=$this->widths[4]; $a1=isset($this->aligns[4]) ? $this->aligns[4] : 'C'; $x1=$this->GetX(); $y1=$this->GetY(); $this->Rect($x1,$y1,$w1,$h); $this->MultiCell($w1,4,$data[4],0,$a1); $this->SetXY($x1+$w1,$y1); $w=$this->widths[5]; $a=isset($this->aligns[5]) ? $this->aligns[5] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[5],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[6]; $a=isset($this->aligns[6]) ? $this->aligns[6] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[6],0,$a); $this->SetXY($x+$w,$y); $w=$this->widths[7]; $a=isset($this->aligns[7]) ? $this->aligns[7] : 'R'; $x=$this->GetX(); $y=$this->GetY(); $this->Rect($x,$y,$w,$h); $this->MultiCell($w,4,$data[7],0,$a); $this->SetXY($x+$w,$y); $this->Ln($h); } function CheckPageBreak($h) { //If the height h would cause an overflow, add a new page immediately if($this->GetY()+$h>$this->PageBreakTrigger) $this->AddPage($this->CurOrientation); } function NbLines($w,$txt) { //Computes the number of lines a MultiCell of width w will take $cw=&$this->CurrentFont['cw']; if($w==0) $w=$this->w-$this->rMargin-$this->x; $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; $s=str_replace("\r",'',$txt); $nb=strlen($s); if($nb>0 and $s[$nb-1]=="\n") $nb--; $sep=-1; $i=0; $j=0; $l=0; $nl=1; while($i<$nb) { $c=$s[$i]; if($c=="\n") { $i++; $sep=-1; $j=$i; $l=0; $nl++; continue; } if($c==' ') $sep=$i; $l+=$cw[$c]; if($l>$wmax) { if($sep==-1) { if($i==$j) $i++; } else $i=$sep+1; $sep=-1; $j=$i; $l=0; $nl++; } else $i++; } return $nl; } function drawTextBox2($strText, $w, $h, $align='L', $valign='T', $border=false) { $xi=$this->GetX(); $yi=$this->GetY(); $hrow=$this->FontSize; $textrows=$this->drawRows($w,$hrow,$strText,0,$align,0,0,0); $maxrows=floor($h/$this->FontSize); $rows=min($textrows,$maxrows); $dy=0; if (strtoupper($valign)=='M') $dy=($h-$rows*$this->FontSize)/2; if (strtoupper($valign)=='B') $dy=$h-$rows*$this->FontSize; $this->SetY($yi+$dy); $this->SetX($xi); $this->drawRows($w,$hrow,$strText,0,$align,false,$rows,1); if ($border) $this->Rect($xi,$yi,$w,$h); } function drawTextBox($strText, $w, $h, $align='L', $valign='T', $border=true) { $xi=$this->GetX(); $yi=$this->GetY(); $hrow=$this->FontSize; $textrows=$this->drawRows($w,$hrow,$strText,0,$align,0,0,0); $maxrows=floor($h/$this->FontSize); $rows=min($textrows,$maxrows); $dy=0; if (strtoupper($valign)=='M') $dy=($h-$rows*$this->FontSize)/2; if (strtoupper($valign)=='B') $dy=$h-$rows*$this->FontSize; $this->SetY($yi+$dy); $this->SetX($xi); $this->drawRows($w,$hrow,$strText,0,$align,false,$rows,1); if ($border) $this->Rect($xi,$yi,$w,$h); } function drawTextBox_apik($strText, $w, $h, $align='L', $valign='T', $border=true) { $xi=$this->GetX(); $yi=$this->GetY(); $hrow=$this->FontSize+1; $textrows=$this->drawRows($w,$hrow,$strText,0,$align,0,0,0); $maxrows=floor($h/$this->FontSize); $rows=min($textrows,$maxrows); $dy=0; if (strtoupper($valign)=='M') $dy=($h-$rows*$this->FontSize)/2; if (strtoupper($valign)=='B') $dy=$h-$rows*$this->FontSize; $this->SetY($yi+$dy); $this->SetX($xi); $this->drawRows($w,$hrow,$strText,0,$align,false,$rows,1); if ($border) $this->Rect($xi,$yi,$w,$h+1); } function drawRows($w, $h, $txt, $border=0, $align='J', $fill=false, $maxline=0, $prn=0) { if(!isset($this->CurrentFont)) $this->Error('No font has been set'); $cw=$this->CurrentFont['cw']; if($w==0) $w=$this->w-$this->rMargin-$this->x; $wmax=($w-2*$this->cMargin)*1000/$this->FontSize; $s=str_replace("\r",'',(string)$txt); $nb=strlen($s); if($nb>0 && $s[$nb-1]=="\n") $nb--; $b=0; if($border) { if($border==1) { $border='LTRB'; $b='LRT'; $b2='LR'; } else { $b2=''; if(is_int(strpos($border,'L'))) $b2.='L'; if(is_int(strpos($border,'R'))) $b2.='R'; $b=is_int(strpos($border,'T')) ? $b2.'T' : $b2; } } $sep=-1; $i=0; $j=0; $l=0; $ns=0; $nl=1; while($i<$nb) { //Get next character $c=$s[$i]; if($c=="\n") { //Explicit line break if($this->ws>0) { $this->ws=0; if ($prn==1) $this->_out('0 Tw'); } if ($prn==1) { $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); } $i++; $sep=-1; $j=$i; $l=0; $ns=0; $nl++; if($border && $nl==2) $b=$b2; if ( $maxline && $nl > $maxline ) return substr($s,$i); continue; } if($c==' ') { $sep=$i; $ls=$l; $ns++; } $l+=$cw[$c]; if($l>$wmax) { //Automatic line break if($sep==-1) { if($i==$j) $i++; if($this->ws>0) { $this->ws=0; if ($prn==1) $this->_out('0 Tw'); } if ($prn==1) { $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); } } else { if($align=='J') { $this->ws=($ns>1) ? ($wmax-$ls)/1000*$this->FontSize/($ns-1) : 0; if ($prn==1) $this->_out(sprintf('%.3F Tw',$this->ws*$this->k)); } if ($prn==1){ $this->Cell($w,$h,substr($s,$j,$sep-$j),$b,2,$align,$fill); } $i=$sep+1; } $sep=-1; $j=$i; $l=0; $ns=0; $nl++; if($border && $nl==2) $b=$b2; if ( $maxline && $nl > $maxline ) return substr($s,$i); } else $i++; } //Last chunk if($this->ws>0) { $this->ws=0; if ($prn==1) $this->_out('0 Tw'); } if($border && is_int(strpos($border,'B'))) $b.='B'; if ($prn==1) { $this->Cell($w,$h,substr($s,$j,$i-$j),$b,2,$align,$fill); } $this->x=$this->lMargin; return $nl; } } ?>