Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /var/www/laciasmara.com/public_html/shop/application/views/pdf/ |
Upload File : |
<!DOCTYPE html> <html> <head> <title><?= $title ?></title> <style> body { font-family: arial !important; font-size: 12px; } table { border-collapse: collapse; width: 100%; font-family: arial; font-size: 12px; } table th { padding: 3px; font-weight: bold; text-align: center; } table td { padding: 3px; vertical-align: top; font-family: arial; font-size: 12px; } table.bordered { border-collapse: collapse; width: 100%; } table.bordered th { border: 1px solid #000; padding: 3px; font-weight: bold; text-align: center; } table.bordered td { border: 1px solid #000; padding: 3px; vertical-align: top; } </style> </head> <body> <?php $lokasiFile = realpath($_SERVER["DOCUMENT_ROOT"]) . "/shop/uploads/logoangsanaasmaraemail.jpg"; $lokasiFile1 = realpath($_SERVER["DOCUMENT_ROOT"]) . "/shop/uploads/logolaciasmaraemail.jpg"; $lokasiFile2 = realpath($_SERVER["DOCUMENT_ROOT"]) . "/shop/uploads/logoasmaragamaemail.jpg"; $lokasiFile3 = realpath($_SERVER["DOCUMENT_ROOT"]) . "/shop/uploads/logowhippedcreamemail.jpg"; ?> <table> <tr> <td style="text-align: center;"> <img style="max-width:150px" src="<?= $lokasiFile1; ?>" /> <h1>ASMARADOOR PROGRAM</h1> </td> </tr> </table> <br> <table> <tr> <td> <h2 style="text-align: left"> <span style="text-decoration: underline;">Commision Report</span><br> </h2> </td> </tr> </table> <br> <table class="bordered"> <?php $customer = $this->db->select('*')->from('customers')->where('id_customers', $affiliator->id_customer)->get()->row(); ?> <tr> <td style="max-width: 25%;"> Name : <?= $affiliator->nama; ?> <br> Phone : <?= $affiliator->no_telpon; ?> <br> Address : <?= $customer->address; ?>, <?= $customer->subdistrict; ?>, <?= $customer->district; ?>, <?= $customer->province; ?><br> Started : <?= $affiliator->created; ?> <br> Bank : <?= $affiliator->account_type; ?> - <?= $affiliator->account_name; ?> - <?= $affiliator->account_number; ?> <br> </td> <br> </tr> </table> <table class="bordered"> <tr> <th>No</th> <th>Date</th> <th>Product Given</th> <th>Value</th> <th>Content Date</th> <th>Status</th> </tr> <?php $i = 1; ?> <tr> <td style="text-align:center;"><?= $i; ?></td> <td style="text-align:center;">27/5/2024</td> <td style="text-align:center;">Tickler Single Trainer Kegel Balls</td> <td style="text-align:center;">IDR 380.000</td> <td style="text-align:center;">10/6/2024</td> <td style="text-align:center;">On-Going</td> </tr> </table> <table class="bordered" style="margin-top: 30px;"> <tr> <th>No</th> <th>Date</th> <th>Platform</th> <th>From</th> <th>Product</th> <th>Unit</th> <th>Item Price</th> <th>Commission</th> </tr> <tr> <td style="text-align:center;">1</td> <td style="text-align:center;">23/1/2024</td> <td style="text-align:center;">Website</td> <td style="text-align:center;">Vannesa</td> <td style="text-align:center;">Feelztoys Whirpulse</td> <td style="text-align:center;">1</td> <td style="text-align:center;">IDR 1.300.000</td> <td style="text-align:center;">IDR 130.000</td> </tr> <?php $count = 0; ?> <?php $total_amount = 0; ?> <!--<?php $count = 0; // Initialize item count $total_amount = 0; // Initialize total amount $footer_inserted = false; // Initialize footer insertion flag // Loop through each item foreach ($orders_detail as $item) : $count++; // Increment item count $real_price = $this->db->select('price')->from('product_details')->where('id', $item->item_id)->get()->row()->price; // Get variant $this->db->select('attribute_detail_id')->from('product_combination')->where('product_details_id', $item->item_id); $attributes = $this->db->get()->result(); $attributes_name = ''; foreach ($attributes as $attribute) { // Get attribute detail name $this->db->select('attribute_detail')->from('product_attributes_detail')->where('id', $attribute->attribute_detail_id); $attribute_detail = $this->db->get()->row(); $attribute_detail_name = $attribute_detail->attribute_detail; $attributes_name = ucwords($attributes_name) . ' ' . ucwords($attribute_detail_name); } ?> <tr> <td style="text-align:center;"><?= $count; ?></td> <?php $product = $this->db->select('*')->from('products')->where('id_products', $item->item_id)->get()->row(); ?> <td style="text-align:left;"><?= $item->item_name; ?> <br> <?= ucwords($attributes_name); ?><br>SKU : <?= $item->sku; ?> </td> <td style="text-align:center;"><?= $item->quantity; ?> Pcs</td> <td style="text-align:center;">IDR <?= number_format($real_price); ?></td> <td style="text-align:center;"><?php $temp = number_format(($real_price - $item->item_price) * $item->quantity); if ($temp == "0") { echo ""; } else { echo " IDR ", $temp; } ?></td> <td style="text-align:center;">IDR <?= number_format($item->quantity * $item->item_price); ?></td> </tr> <?php $total_amount = $total_amount + ($item->item_price * $item->quantity); // Check if 7 items have been displayed and the footer has not been inserted yet if ($count % 7 == 0 && !$footer_inserted) { // Insert footer after every 7 items $footer_inserted = true; // Set the flag to true after insertion ?> </table> <br><br> <div style="position: auto; top:875px; width: 100%"> <table> <tr> <td style="text-align:center"> <img style="text-align:center; max-width:120px" src="<?= $lokasiFile; ?>" /> </td> </tr> </table> <table> <tr> <td style="color:#EC6434;text-align:center;font-size:16px;"><b>Thank you for your business, it is our pleasure</b></td> </tr> <tr> <td style="text-align:center; font-size:14px;"><span style="color:#EC6434;">P/ +62 21 2290 8396</span> <span style="margin-left: 10px; color:#EC6434;">E/ <span style="color:#EC6434;">asmara@angsana-asmara.com </span></span> <br><span style="margin-left: 10px;">www.angsana-asmara.com</span></td> </tr> </table> </div> <table class="bordered" style="margin-top: 30px;"> <?php } // End if endforeach; ?>--> </table> <table style="margin-top: 20px;"> <tr> <td style="width: 140px"><b>Total</b></td> <td>: IDR 130.000</td> </tr> <tr> <td>View</td> <td>: IDR 95</td> </tr> <tr> <td>Register</td> <td>: IDR 150</td> </tr> <tr> <td><b>Grand Total</b></td> <td>: IDR 130.245 </td> </tr> </table> <!--<div style="position: absolute; top:875px; width: 100%"> <table> <tr> <td style="text-align:center"> <img style="text-align:center; max-width:120px" src="<?= $lokasiFile; ?>" /> </td> </tr> </table> <table> <tr> <td style="color:#EC6434;text-align:center;font-size:16px;"><b>Thank you for your business, it is our pleasure</b> </td> </tr> <tr> <td style="text-align:center; font-size:14px;"><span style="color:#EC6434;">P/ +62 21 2290 8396</span> <span style="margin-left: 10px; color:#EC6434;">E/ <span style="color:#EC6434;">asmara@angsana-asmara.com </span></span> <br><span style="margin-left: 10px;">www.angsana-asmara.com</span></td> </tr> </table> </div>--> <!--Footer --> <!-- <div style="position: absolute; top:950px; width: 100%"> <table> <tr> <td> <img src=""> </td> <td></td> <td></td> </tr> </table> </div> --> </body> </html>