Bueno lo de la tabla ya tengo un codigo que me genera tabla en pdf.. lo unico esque cuando genereo el codigo de barra no me lo muestra en una sola ubicacion.. y se ve una sola mancha... por el monton de codigos generados en la misma ubicacion
dentro del ean13.php ahi ba el generador de tablas
Código PHP:
<?php
require('ean13.php');
$pdf=new PDF_EAN13();
$pdf->AddPage();
include_once('../conexion.php');
$queEmp = "SELECT item_name, description, quantity, buy_price, unit_price FROM inven_items where quantity>='1' ORDER BY `item_name` ASC ";
$resEmp = mysql_query($queEmp, $link) or die(mysql_error());
$totEmp = mysql_num_rows($resEmp);
$max = 3;
$bloq = 0;
$htmlTable='<TABLE><TR>';
while($datatmp = mysql_fetch_assoc($resEmp)) {
$unit_price_value=$datatmp['unit_price'];
$nombre=$datatmp['item_name'];
$quantity=$datatmp['quantity'];
$codigo=$datatmp['description'];
if(($unit_price_value)<100)
{
$pre=number_format($unit_price_value*(1+($cfg_default_tax_rate/100)),2,'.', '');
}else{
$per=number_format($unit_price_value*($cfg_default_percepcion_rate/100),2,'.', '');
$iva=number_format($unit_price_value*($cfg_default_tax_rate/100),2,'.', '');
$pre=number_format($unit_price_value+$iva+$per,2,' .', '');
}
if ($bloq < $max) {
$htmlTable='<TD>';
$pdf->EAN13(null,null,$codigo);
$htmlTable='</TD>';
$bloq++;
}
else{
$htmlTable='</tr><tr>';
$bloq = 0;
$htmlTable='<TD>';
$pdf->EAN13(null,null,$codigo);
$htmlTable='</TD>';
$bloq++;
}
}
$htmlTable='</tr><TABLE>';
$pdf->WriteHTML("Start of the HTML table.<BR>$htmlTable<BR>End of the table.");
$pdf->Output();
?>