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/kanvakanva.com/public_html/application/views/ |
Upload File : |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <div id="content" style="margin-bottom: 20px;"> <div class="container"> <div class="row"> <div class="col-lg-8 col-lg-offset-2"> <table cellspacing="0" style="width:100%; text-align: center;" border="1px"> <tr><td>Order ID</td><td>Order Date</td><td>Amount</td><td>Item Details</td><td>Payment Status</td></tr> <tr> <td><?= $order->id_orders; ?></td> <td> <?php $order_date = strtotime($order->order_date); $new_date = date('j/m/Y', $order_date); echo $new_date; ?> </td> <td>Rp <?= number_format($order->total_amount); ?></td> <td> <?php $order_id = $order->id_orders; $this->db->select('*'); $this->db->from('orders_detail'); $this->db->where('orders_id', $order_id); $query = $this->db->get(); $orders_detail = $query->result(); ?> <?php foreach ($orders_detail as $order_detail) : ?> <p><?= $order_detail->item_name; ?> <?= $order_detail->quantity; ?> pcs @Rp <?= number_format($order_detail->item_price); ?></p> <?php endforeach; ?> </td> <td> <?php if ($order->payment_status == 0) : ?> Not Paid <?php elseif ($order->payment_status == 1) : ?> Paid <?php elseif($order->payment_status == 3) : ?> Product Sent <?php else : ?> Cancel <?php endif; ?> </td> </tr> </table> </div> </div> </div> </div> <div id="footer" >