$pdf->Cell(0, 5, utf8_decode('Biothys GmbH | Gewerbestr. 6 | D-77731 Willstätt'), 0, 1, 'L', false); $pdf->SetFont('Arial', '', 10); $pdf->Cell(0, 5, utf8_decode($company->getName()), 0, 1, 'L', false); $pdf->Cell(0, 5, utf8_decode($receiving_address->getLine() . ' ' . $receiving_address->getComplement()), 0, 1, 'L', false); $pdf->Cell(0, 5, utf8_decode($receiving_address->getZip() . ' ' . $receiving_address->getCity() . ' ' . $receiving_address->getCountry()), 0, 1, 'L', false); //Marge left $pdf->SetFont('Arial', 'B', 20); $pdf->Cell(180, 15, utf8_decode('Invoice for samples'), 0, 1, 'R', false); //Marge top $pdf->Cell(0, 10, '', 0, 1); //CellBorder//remplacer le ust-id quand il sera setup $pdf->SetFont('Arial', 'B', 11); $pdf->Cell(185, 21, '', 1); $pdf->setX($pdf->GetX() - 185); $pdf->setY($pdf->GetY() + 2); $pdf->FirstTable(array(array(utf8_decode('n° :'), $id_document, date('d.m.y', $order->getDate_entry())), array('UST-ID :', $company->getUst_id(), $order->getEmployee()->getSurname() . ' ' . $order->getEmployee()->getName()), array('Your ID :', $company->getId(), '1/1'))); $pdf->SetFont('Arial', '', 8); $pdf->setY($pdf->GetY() + 2); $pdf->MultiCell(100, 3, utf8_decode($text_intro)); $pdf->setY($pdf->GetY() + 2); $pdf->SecondTable($order); $pdf->setY($pdf->GetY() + 5); $pdf->SetFont('Arial', '', 8); $pdf->SetTextColor(0); // Delivery Address $pdf->SetFont('Arial', 'B', 12); $pdf->Cell(180, 6, utf8_decode('Delivery Address : '), 0, 1, 'L', false); $pdf->SetFont('Arial', '', 8); $delivery_address = new address($order->getId_delivery_address()); $pdf->Cell(0, 5, utf8_decode($delivery_address->getLine() . ' ' . $delivery_address->getComplement()), 0, 1, 'L', false); $pdf->Cell(0, 5, utf8_decode($delivery_address->getZip() . ' ' . $delivery_address->getCity() . ' ' . $delivery_address->getCountry()), 0, 1, 'L', false);
<?php require_once '../model/company.php'; $company = new company($_GET["id"]); if (count($company->getDelivery_addresses()) != 0) { foreach ($company->getDelivery_addresses() as $da) { echo '<div class="inline">'; echo '<div>' . $da->printAddress() . '</div>'; echo '<div class="block-button">'; echo '<a href="deleteLinkDA.php?idA=' . $da->getId() . '&idC=' . $company->getId() . '"><button class="btn btn-danger"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button></a>'; //echo('<a href="setLinkDA.php?idA='.$da->getId().'&idC='.$company->getId().'"><button class="btn btn-danger"></button></a>'); echo '<br/>'; echo '<button rel="' . $da->getId() . '" alt="' . $company->getId() . '" class="setDA btn btn-primary"><span class="glyphicon glyphicon-cog" aria-hidden="true"></span></button>'; echo '</div>'; echo '</div>'; } } else { echo '<p>No delivery address for now</p>'; } echo ' <br/><br/> <button rel="' . $company->getId() . '" class="btn btn-success add_delivery_address">Add a delivery address</button> '; echo '<br/><br/>';