本文整理汇总了PHP中company::getId方法的典型用法代码示例。如果您正苦于以下问题:PHP company::getId方法的具体用法?PHP company::getId怎么用?PHP company::getId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类company
的用法示例。
在下文中一共展示了company::getId方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: date
$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);
示例2: company
<?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/>';