// barcode height in 1D ; not use in 2D $angle = 0; // rotation in degrees $type = 'code128'; $black = '000000'; // color in hexa /* * This is a separation section This is a separation section * This is a separation section This is a separation section * This is a separation section This is a separation section * This is a separation section This is a separation section */ $orderNo = $order['order_id']; $customer_id = $order['customer_id']; $receiverName = $customerMgr->getLastName($customer_id) . " " . $customerMgr->getFirstName($customer_id); $receiverAddress = $addressMgr->getGeneralAddress($customer_id, intval($order['address_no'])); $receiverPhone = $customerMgr->getContactNo($customer_id); $receiverPostalCode = $addressMgr->getPostalCode($customer_id, intval($order['address_no'])); $totalPrice = $order['totalPrice']; $itemList = $order['itemList']; //var_dump($itemList); $array = []; foreach ($itemList as $item) { $product_full_code = $productMgr->getFullCodeByProductColor($item['product_id'], $item['color']); array_push($array, $product_full_code . " x" . $item['quantity'] . " \$" . number_format($item['price'], 2, '.', '')); } $pdf = new eFPDF('P'); $pdf->AddPage(); $pdf->Ln(20); //BARCODE $data = Barcode::fpdf($pdf, $black, $x, $y, $angle, $type, array('code' => $orderNo), $width, $height);
<th width="10%">Option</th> </tr> </thead> <tbody> <?php $orderMgr = new OrderManager(); $addressMgr = new AddressManager(); $pendingList = $orderMgr->getPendingOrder(); foreach ($pendingList as $pendingOrder) { $pendingOrder_id = $pendingOrder["order_id"]; $pendingOrder_customerId = $pendingOrder["customer_id"]; $pendingOrder_status = $pendingOrder["status"]; $pendingOrder_payTime = $pendingOrder["payment_time"]; $pendingOrder_totalPrice = $pendingOrder["totalPrice"]; $pendingOrder_itemList = $pendingOrder["itemList"]; $pendingOrder_address = $addressMgr->getGeneralAddress($pendingOrder_customerId, intval($pendingOrder['address_no'])); ?> <tr> <td><?php echo $pendingOrder_id; ?> </td> <td><?php echo $pendingOrder_customerId; ?> </td> <td><?php echo number_format($pendingOrder_totalPrice, 2, '.', ''); ?> </td> <td><?php