1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
while($row=mysql_fetch_array($resultat))
{
$query = "select item_name from Item_list where id_item = '".$row['id_item']."'";
$resu=mysql_query($query);
while($row1=mysql_fetch_array($resu))
{
$x = $PDF->getX();
$y = $PDF->getY();
//largeurCellule
$largeur = 50;
$PDF->MultiCell($largeur ,7,$row1['item_name'],1,'J',0);
// Reviens dans ton pdf :
$PDF->setX($x + $largeur );
$PDF->setY($y);
$x = $PDF->getX();
$y = $PDF->getY();
$PDF->MultiCell(40,7,$row1['supplier'],1,'J',0);
$PDF->setX($x + 40);
$PDF->setY($y);
$x = $PDF->getX();
$y = $PDF->getY();
$PDF->MultiCell(40,7,$row1['status'],1,'J',0);
$PDF->setX($x + 40);
$PDF->setY($y);
$x = $PDF->getX();
$y = $PDF->getY();
$PDF->MultiCell(14,7,$row['availability'],1,0,'C',0);
$PDF->setX($x + 14);
$PDF->setY($y);
$x = $PDF->getX();
$y = $PDF->getY();
$PDF->MultiCell(15,7,$row['date'],1,0,'C',0);
$PDF->setX($x + 15);
$PDF->setY($y);
$x = $PDF->getX();
$y = $PDF->getY();
$PDF->MultiCell(50,7,'link',1,0,'C',0,$row['link']);
$PDF->setX($x + 50);
$PDF->setY($y);
$PDF->SetXY(10,$PDF->GetY()+7);
//$fond=!$fond;
}
} |
Partager