Example #1
0
$width = 1;
// 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
Example #2
0
<?php

if (session_status() != PHP_SESSION_ACTIVE) {
    // session_start();
}
include_once "./Manager/ConnectionManager.php";
include_once "./Manager/CustomerManager.php";
$customerMgr = new CustomerManager();
$receiver_id = $_SESSION["userid"];
$sender_first_name = $customerMgr->getFirstName($receiver_id);
$sender_last_name = $customerMgr->getLastName($receiver_id);
// $sender_name = $sender_first_name." ".$sender_last_name;
$to = filter_input(INPUT_POST, 'send_email_address');
$invitation_link = filter_input(INPUT_POST, 'invitation_link');
//$to = "*****@*****.**";
//$to = "*****@*****.**";
//$to = "*****@*****.**";
//$to = "*****@*****.**";
$sender_name = "Issac Zhai";
$subject = $sender_name . " has just given you \$10 Credits";
$message = '<html>
	<body style="margin: 0; padding: 0;">
		<table border="0" cellpadding="0" cellspacing="0" width="100%">	
            <tr>
                <td style="padding: 10px 0 30px 0;">
                    <table align="center" border="0" cellpadding="0" cellspacing="0" width="600" style="border: 1px solid #cccccc; border-collapse: collapse;">
                        <tr>
                            <td align="center">
                                <a href="' . strip_tags($invitation_link) . '"><img src="https://s3-ap-southeast-1.amazonaws.com/allocacocvideo/Standard+Romantic.png" alt="" width="600" height="300" style="display: block;" /></a>
                            </td>
                        </tr>