Ir para conteúdo

POWERED BY:

Arquivado

Este tópico foi arquivado e está fechado para novas respostas.

Bruner

fpdf

Recommended Posts

Po não coube tudo vai o resto aqui! <_<

 

PHP

[*]

[*] if ($cor =="" && $pes == "" && $alt != ""){

[*]  $pdf->Cell(12, 8, "Altura:", 0, 0, 'L');

[*]  $pdf->Cell(20, 8, $alt, 0, 0, 'L');

[*]  $pdf->Ln(3);

[*] }

[*] if ($cor !="" && $pes == "" && $alt == ""){

[*]  $pdf->Cell(8, 8, "Cor:", 0, 0, 'L');

[*]  $pdf->Cell(40, 8, $cor, 0, 0, 'L');

[*]  $pdf->Ln(3);

[*] }

[*] if ($cor =="" && $pes != "" && $alt == ""){

[*]  $pdf->Cell(10, 8, "Peso:", 0, 0, 'L');

[*]  $pdf->Cell(40, 8, $pes, 0, 0, 'L');

[*]  $pdf->Ln(3);

[*] }

[*] if ($chu != ""){

[*]  $pdf->Cell(16, 8, "Chuteira:", 0, 0, 'L');

[*]  $pdf->Cell(85, 8, $chu, 0, 0, 'L');

[*]  $pdf->Ln(3);

[*] }

[*] if ($pos != ""){

[*]  $pdf->Cell(16, 8, "Posição:", 0, 0, 'L');

[*]  $pdf->Cell(85, 8, $pos, 0, 0, 'L');

[*]  $pdf->Ln(15);

[*] }

[*] if ( $linhas > 0 ){

[*]  $pdf->Cell(185, 8, "HISTORICO", 1, 1, 'C');

[*]  $pdf->Ln(3);

[*] for ($i=0;$y < $linhas;$y++) {

[*]  $pdf->Cell(32, 4, mysql_result($queryhis, $y, "anohis"), 0, 0, 'L');

[*]  $pdf->Cell(50, 4, mysql_result($queryhis, $y, "cluhis"), 0, 0, 'L');

[*]  $pdf->Cell(35, 4, mysql_result($queryhis, $y, "obshis"), 0, 1, 'L');

[*] }

[*] }

[*] $pdf->Ln(15);

[*]

[*] if ($car != ""){

[*]  $pdf->Cell(185, 8, "CARACTERISTICAS", 1, 1, 'C');

[*]  $pdf->Ln(3);

[*]  $carx = nl2br(mysql_result($query, $i, "carcur"));

[*]  $carx = str_replace("<br />"," $ ",$carx);

[*]  $carx = explode(" $ ", $carx);

[*]  $flag = 0;

[*]  foreach ($carx as $resultado){

[*] if ($flag == 0){

[*]  $pdf->Cell(15, 4,$resultado, 0, 1, 'L');

[*]  $flag = 1;

[*] }else{

[*]  $resultado = substr($resultado, 2);

[*]  $pdf->Cell(15, 4,$resultado, 0, 1, 'L');

[*]

[*] }

[*]  }

[*]  $pdf->Ln(15);

[*] }

[*] if ($tit != ""){

[*]  $pdf->Cell(185, 8, "TITULOS", 1, 1, 'C');

[*]  $pdf->Ln(3);

[*]  $titx = nl2br(mysql_result($query, $i, "titcur"));

[*]  $titx = str_replace("<br />"," $ ",$titx);

[*]  $titx = explode(" $ ", $titx);

[*]  $flag = 0;

[*]  foreach ($titx as $resultado){

[*] if ($flag == 0){

[*]  $pdf->Cell(15, 4,$resultado, 0, 1, 'L');

[*]  $flag = 1;

[*] }else{

[*]  $resultado = substr($resultado, 2);

[*]  $pdf->Cell(15, 4,$resultado, 0, 1, 'L');

[*]

[*] }

[*]  }

[*]  $pdf->Ln(15);

[*] }

[*] if ($con != ""){

[*]  $pdf->Cell(185, 8, "CONVOCAÇÕES", 1, 1, 'C');

[*]  $pdf->Ln(3);

[*]  $conx = nl2br(mysql_result($query, $i, "concur"));

[*]  $conx = str_replace("<br />"," $ ",$conx);

[*]  $conx = explode(" $ ", $conx);

[*]  $flag = 0;

[*]  foreach ($conx as $resultado){

[*] if ($flag == 0){

[*]  $pdf->Cell(15, 4,$resultado, 0, 1, 'L');

[*]  $flag = 1;

[*] }else{

[*]  $resultado = substr($resultado, 2);

[*]  $pdf->Cell(15, 4,$resultado, 0, 1, 'L');

[*]

[*] }

[*]  }

[*]  $pdf->Ln(15);

[*] }

[*] if ($ref != ""){

[*]  $pdf->Cell(185, 8, "REFERENCIAS", 1, 1, 'C');

[*]  $pdf->Ln(3);

[*]  $refx = nl2br( mysql_result($query, $i, "refcur"));

[*]  $refx = str_replace("<br />"," $ ",$refx);

[*]  $refx = explode(" $ ", $refx);

[*]  $flag = 0;

[*]  foreach ($refx as $resultado){

[*] if ($flag == 0){

[*]  $pdf->Cell(15, 4,$resultado, 0, 1, 'L');

[*]  $flag = 1;

[*] }else{

[*]  $resultado = substr($resultado, 2);

[*]  $pdf->Cell(15, 4,$resultado, 0, 1, 'L');

[*]

[*] }

[*]  }

[*]  $pdf->Ln(15);

[*] }

[*] if ($obs != ""){

[*]  $pdf->Cell(185, 8, "OBSERVAÇÕES", 1, 1, 'C');

[*]  $pdf->Ln(3);

[*]  $obsx = nl2br( mysql_result($query, $i, "obscur"));

[*]  $obsx = str_replace("<br />"," $ ",$obsx);

[*]  $obsx = explode(" $ ", $obsx);

[*]  $flag = 0;

[*]  foreach ($obsx as $resultado){

[*] if ($flag == 0){

[*]  $pdf->Cell(15, 4,$resultado, 0, 1, 'L');

[*]  $flag = 1;

[*] }else{

[*]  $resultado = substr($resultado, 2);

[*]  $pdf->Cell(15, 4,$resultado, 0, 1, 'L');

[*]

[*] }

[*]  }

[*]  $pdf->Ln(15);

[*] }

[*]

[*] /* ////////////////////////////////////////

[*]

[*] $xyz = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxyyyyyyyyyyyyyyyyttttttttttttttttt

tttttttttttttttttttttttrrrrrrrrrrrrrrrrrrrrrrdddddddddddddddddxiiiiiiiiiiiiiiiii

iiiiiiiiiiiiiiiiiiiiiiiiiiiuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuuup

ppppppppppppppppppppppppppppppppppppxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

xxxxyyyyyy";

[*]

[*] ////////// Tentativa para limitar linhas 2

[*] $nxyz = strlen($xyz);

[*] $n = (int)$nxyz /96;

[*] $w = 0;

[*] $r = 96;

[*] for ($i = 1; $i <= $n; $i++) {

[*]  $xyzy[$i] = substr($xyz, $w,$r);

[*]  $w = $r;

[*]  $r = $w + 96;

[*]  $pdf->Cell(15, 4,$xyzy[$i], 0, 1, 'L');

[*] }

[*]

[*]  ///////// Tentativa para limitar linhas 2

[*] $nxyz = strlen($xyz);

[*] $n = (int)$nxyz /96;

[*] for ($i = 1; $i <= $n; $i++) {

[*] $xyzy = wordwrap( $xyz, 96, " $ ", 1);

[*] $xyzy = explode(" $ ", $xyzy);

[*] foreach ($xyzy as $resultado){

[*]  $pdf->Cell(15, 4,$resultado, 0, 1, 'L');

[*] }

[*] }

[*]

[*] //////////////////////////////////////// */

[*] $linha_atual++;

[*]  }//FECHA FOR(REGISTROS - i)

[*]

[*]  }//FECHA FOR(PAGINAS - x)

[*]$pdf->SetAutoPageBreak(On,10);

[*]$pdf->Output("$end_final", "$tipo_pdf");

[*]?>

[*]

Compartilhar este post


Link para o post
Compartilhar em outros sites

×

Informação importante

Ao usar o fórum, você concorda com nossos Termos e condições.