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/indolok.id/application/views/account/ |
Upload File : |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <!--make some space gap on top with menu--> <div class="banner" style="padding-top: 10px;"></div> <div class="w-grid"> <div class="container"> <div class="accountPage" style="padding-bottom:50px;"> <div class="myaccount_menu" style="border-right:1px solid #ccc;"> <?= Modules::run('myaccount_menu'); ?> </div><!-- end col-sm-2--> <div class="my_profile"> <h4><?= strtoupper(lang('my_order_history')); ?></h4> <?= $this->session->flashdata('success'); //to display success message ?> <div class="orderHistory hidden-xs-down"> <table class="table table-striped"> <thead> <tr> <th style=" font-size: 14px;"><?= ucwords(lang('order_no')); ?></th> <th style=" font-size: 14px;"><?= ucwords(lang('order_date')); ?></th> <th style=" font-size: 14px;"><?= ucwords(lang('recipient')); ?></th> <th style=" font-size: 14px;">Total (Rp)</th> <th style=" font-size: 14px;"><?= ucwords(lang('item_details')); ?></th> <th style=" font-size: 14px;">Order Status</th> </tr> </thead> <?php foreach ($order_history as $item) : ?> <!-- Form Start --> <?php echo form_open('account/payment_confirmation'); ?> <input type="hidden" name="order_id" value="<?= $item->id_orders; ?>"> <tr> <td data-header="<?= ucwords(lang('order_no')); ?>" style="padding:3px; font-size: 13px;"><?= $item->id_orders; ?></td> <td data-header="<?= ucwords(lang('order_date')); ?>" style="padding:3px; font-size: 13px;"> <?php $order_date = strtotime($item->order_date); $new_date = date('j/m/Y', $order_date); echo $new_date; ?> </td> <td data-header="<?= ucwords(lang('recipient')); ?>" style="padding:3px; font-size: 13px;"> <?php if($item->recipient_name != null): ?> <?= ucwords($item->recipient_name); ?><br> <?php endif; ?> <?= ucwords($item->address); ?><br> <?= ucwords($item->district); ?>, <?= ucwords($item->subdistrict); ?><br><?= ucwords($item->province); ?> <?= ucwords($item->postcode); ?> </td> <td data-header="Total (Rp)" style="padding:3px; font-size: 13px;"> <?php $final_grand_total = 0; $grand_total = ($item->total_amount - $item->birthday_promo_amount - $item->redeemed_voucher_amount - $item->minus_reward_amount) + ($item->shipping_fee - $item->free_shipping_fee + $item->ppn); if($grand_total > 0){ $final_grand_total = $grand_total; } echo number_format($final_grand_total); if($final_grand_total == 0){ echo " (Free Order)"; } ?> </td> <td data-header="<?= ucwords(lang('item_details')); ?>" style="padding:3px; font-size: 13px;"> <?php $order_id = $item->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 data-header="Order Status" style="padding:3px; font-size: 13px;"> <?php if ($item->payment_status == 1) : ?> <?= ucwords(lang('not_paid_yet')); ?> <?php if ($item->payment_confirm == 0) : ?> <input type="submit" name="confirm_payment" value="<?= strtoupper(lang('confirm')); ?>" style="background:<?= $primary_colortheme; ?>; color:white; cursor: pointer; border:none; padding:2px; padding-left:5px; padding-right:5px; "> <?php else: ?> <input type="submit" name="confirm_payment" value="<?= strtoupper(lang('already_confirm')); ?>" style="background:<?= $primary_colortheme; ?>; color:white; cursor: pointer; border:none; padding:2px; padding-left:5px; padding-right:5px;"> <?php endif; ?> <?php elseif ($item->payment_status == 3) : ?> <?= ucwords(lang('paid')); ?> <?php elseif (($item->payment_status == 4) || ($item->payment_status == 5)) : ?> <?= ucwords(lang('product_sent')); ?><br> <?php elseif($item->payment_status == 2) : ?> <?= ucwords(lang('cancel')); ?> <?php endif; ?> </td> </tr> <?php echo form_close(); ?> <?php endforeach; ?> </table> </div><!-- end class="table-responsive"> --> </div><!-- end col-sm-8--> </div><!-- end row--> </div><!-- end container --> </div>