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; ?>" /> </td> </tr> </table> <br> <table> <tr> <td> <h2 style="text-align: left"> <span style="text-decoration: underline;">DELIVERY RECEIPT</span><br> </h2> </td> </tr> </table> <br> <table> <tr> <td align="left"> DATE : <?php echo date("d/m/Y") ?><br> TRANSFER STOCK ID : <?= $transfer_stock->id_transfer_stock; ?> </td><br> <td></td> <td align="right"> DELIVER TO : <b><?= ucwords($transfer_stock->recipient_name); ?></b><br><br> <?= ucwords($transfer_stock->address); ?><br> <?php //get warehouse $this->db->select('district')->from('indonesia_districts')->where('rajaongkir_id_district', $transfer_stock->district); $district = $this->db->get()->row()->district; $this->db->select('subdistrict')->from('indonesia_subdistricts')->where('rajaongkir_id_subdistrict', $transfer_stock->subdistrict); $subdistrict = $this->db->get()->row()->subdistrict; $this->db->select('province')->from('indonesia_provinces')->where('id_indonesia_provinces', $transfer_stock->province); $province = $this->db->get()->row()->province; //get subdistrict echo ucwords($subdistrict) . '. '; //get district echo ucwords($district) . '. '; echo ucwords($province); ?> <br><br> PHONE : <?php echo $transfer_stock->phone; ?> </td></a><br> </tr> </table> <table class="bordered" style="margin-top: 30px;"> <tr> <th>NO</th> <th>Product Code</th> <th>Description</th> <th>QTY</th> </tr> <?php $count = 0; ?> <?php $total_items = 0; ?> <?php foreach ($transfer_stock_detail as $item) : ?> <?php $count++; ?> <?php //get varian $this->db->select('attribute_detail_id')->from('product_combination')->where('product_details_id', $item->product_detail_id); $attributes = $this->db->get()->result(); $attributes_name = ''; foreach ($attributes as $attribute) { //get atrribute 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->product_detail_id)->get()->row(); ?> <td style="text-align:left;"><?= $item->sku; ?></td> <td style="text-align:left;"> <?= $item->item_name; ?> - <?= ucwords($attributes_name); ?></td> <td style="text-align:center;"><?= $item->quantity; ?> Pcs </td> </tr> <?php $total_items = $total_items + ($item->quantity); endforeach; ?> </table> <table> <tr> <td style="text-align:right;"><b>TOTAL ITEMS </b> : <?= number_format($total_items); ?></td> </tr> </tr> </table> <table style="margin-top: 20px;"> <tr> <td> <p style="text-align:left">Prepared by:</p> <br><br> </td> </tr> <tr> <td> <p style="text-align:left">Wahyu</p> </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>