if($opcion==1) {
//Mostramos los registros
foreach ($row as $key => $value) { $row[$key]=flt($value); }
if ($row["categories_name"]!=$letzte_categories) {
//Column titles
$cabecera[$select_languages]['categories_name'],
$cabecera[$select_languages]["modelo"],
$cabecera[$select_languages]["nombre"],
$cabecera[$select_languages]["unidad"],
$cabecera[$select_languages]["precio1"],
$cabecera[$select_languages]["precio2"],
$cabecera[$select_languages]["precio3"],
);
$cabecera['tipos']['categories_name'],
$cabecera['tipos']["modelo"],
$cabecera['tipos']["nombre"],
$cabecera['tipos']["unidad"],
$cabecera['tipos']["precio1"],
$cabecera['tipos']["precio2"],
$cabecera['tipos']["precio3"],
);
for($i = 0; $i < count($header); $i++) }
//Data loading
$row["categories_name"],
$row["products_model"],
$row["products_name"],
$row["products_ve"],
numeros::zeigenPrice($row['products_price'],$row['tax_rate']),
numeros::formatear($row["precio2"],2,""),
numeros::formatear($row["precio3"],2,"")
);
$letzte_categories=$row["categories_name"];
}
if(count($data)>0){ $pdf->ColoredTable($header,$types,$data,$opcion); } // print colored table }elseif($opcion==2){
//Mostramos los registros
foreach ($row as $key => $value) { $row[$key]=flt($value); }
if ($row["categories_name"]!=$letzte_categories) {
//Column titles
$cabecera[$select_languages]['categories_name'],
$cabecera[$select_languages]["foto"],
$cabecera[$select_languages]["modelo"],
$cabecera[$select_languages]["nombre"],
$cabecera[$select_languages]["unidad"],
$cabecera[$select_languages]["precio1"],
$cabecera[$select_languages]["precio2"],
$cabecera[$select_languages]["precio3"]
);
$cabecera['tipos']['categories_name'],
$cabecera['tipos']["foto"],
$cabecera['tipos']["modelo"],
$cabecera['tipos']["nombre"],
$cabecera['tipos']["unidad"],
$cabecera['tipos']["precio1"],
$cabecera['tipos']["precio2"],
$cabecera['tipos']["precio3"]
);
}
//Data loading
$row["categories_name"],
$g_url_base_images.$row["products_image"],
$row["products_model"],
$row["products_name"],
$row["products_ve"],
numeros::zeigenPrice($row['products_price'], $row['tax_rate']),
numeros::formatear($row["precio2"],2,""),
numeros::formatear($row["precio3"],2,"")
);
$letzte_categories=$row["categories_name"];
}
if(count($data)>0){ $pdf->ColoredTable($header,$types,$data,$opcion); } // print colored table }elseif($opcion==3){
//Mostramos los registros
foreach ($row as $key => $value) { $row[$key]=flt($value); }
if ($row["categories_name"]!=$letzte_categories) {
//Column titles
$cabecera[$select_languages]['categories_name'],
$cabecera[$select_languages]["modelo"],
$cabecera[$select_languages]["nombre"],
$cabecera[$select_languages]["unidad"],
$cabecera[$select_languages]["precio1"],
$cabecera[$select_languages]["precio_especial"]
);
$cabecera['tipos']['categories_name'],
$cabecera['tipos']["modelo"],
$cabecera['tipos']["nombre"],
$cabecera['tipos']["unidad"],
$cabecera['tipos']["precio1"],
$cabecera['tipos']["precio_especial"]
);
}
//Data loading
$row["categories_name"],
$row["products_model"],
$row["products_name"],
$row["products_ve"],
($row['specials_price']==NULL)?numeros::zeigenPrice($row['products_price'], $row['tax_rate']):numeros::zeigenPrice($row['products_price'], $row['tax_rate']),
numeros::zeigenPrice($row['specials_price'], $row['tax_rate'])
);
$letzte_categories=$row["categories_name"];
}
if(count($data)>0){ $pdf->ColoredTable($header,$types,$data,$opcion); } // print colored table }elseif($opcion==4){
//Mostramos los registros
foreach ($row as $key => $value) { $row[$key]=flt($value); }
if ($row["categories_name"]!=$letzte_categories) {
//Column titles
$cabecera[$select_languages]['categories_name'],
$cabecera[$select_languages]["foto"],
$cabecera[$select_languages]["modelo"],
$cabecera[$select_languages]["nombre"],
$cabecera[$select_languages]["unidad"],
$cabecera[$select_languages]["precio1"],
$cabecera[$select_languages]["precio_especial"]
);
$cabecera['tipos']['categories_name'],
$cabecera['tipos']["foto"],
$cabecera['tipos']["modelo"],
$cabecera['tipos']["nombre"],
$cabecera['tipos']["unidad"],
$cabecera['tipos']["precio1"],
$cabecera['tipos']["precio_especial"]
);
}
//Data loading
$row["categories_name"],
$row["products_image"],
$row["products_model"],
$row["products_name"],
$row["products_ve"],
($row['specials_price']==NULL)?numeros::zeigenPrice($row['products_price'], $row['tax_rate']):numeros::zeigenPrice($row['products_price'], $row['tax_rate']),
numeros::zeigenPrice($row['specials_price'], $row['tax_rate'])
);
$letzte_categories=$row["categories_name"];
}
if(count($data)>0){ $pdf->ColoredTable($header,$types,$data,$opcion); } // print colored table }
//Close and output PDF document
$pdf->Output('catalog.pdf', 'I');
//============================================================+
// END OF FILE
//============================================================+