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/account/ |
Upload File : |
<?php defined('BASEPATH') OR exit('No direct script access allowed'); ?> <!-- BEGIN CONTENT PAGE --> <section class="all-content-page"> <!-- Banner Categories --> <div class="baner-top-categories"> <div class="categories-text-hero"> <h1>MY POINT HISTORY</h1> </div> <img src="<?=base_url()?>assets/frontend_new/images/banner/11.jpg" alt="banner"> </div> <div class="container"> <div class="breadcrumbs"> <a href="<?=base_url()?>">Home</a> <a href="<?=base_url()?>account">Account</a> <span>My Point History</span> </div> <div class="row"> <div class="col-sm-2"> <h4>MY ACCOUNT</h4> <p>view & edit your details</p> <p style="font-size: 18px;color: #dd9b5e;font-weight: 600;">Point : <?= number_format($point,0,",","."); ?> <br> <p><a href="<?= base_url('account/profile'); ?>">MY PROFILE</a></p> <p><a href="<?= base_url('account/shipping'); ?>">SHIPPING DETAILS</a></p> <p><a href="<?= base_url('account/order_history'); ?>">ORDER HISTORY</a></p> <p><a href="<?= base_url('account/point_history'); ?>">POINT HISTORY</a></p> <!-- <p><a href="<?= base_url('account/wishlist'); ?>">MY WISHLIST</a></p> --> </div><!-- end col-sm-4--> <div class="col-sm-10" style="border-left:1px solid #ccc;min-height:250px"> <h4>MY POINT HISTORY</h4> <?= $this->session->flashdata('success'); //to display success message ?> <br> <div class="table-responsive" style="border:unset;"> <table cellspacing="0" class="table"> <thead> <tr> <th>Date</th> <th>Description</th> <th>Get Point</th> <th style="text-align:left">Use Point</th> </tr> </thead> <tbody> <?php foreach ($point_history as $item) : ?> <?php $color = "style='color:red;'"; if($item->point_in > 0){ $color = "style='color:green;'"; } ?> <tr <?=$color?> > <td style="padding:3px;"> <?php $point_date = strtotime($item->tgl); $new_date = date('j/m/Y', $point_date); echo $new_date; ?> </td> <td style="padding:3px;"><?= $item->title; ?></td> <td style="padding:3px;"><?= number_format($item->point_in,0,",","."); ?></td> <td style="padding:3px;text-align:left;"><?= number_format($item->point_out,0,",","."); ?></td> </tr> <?php endforeach; ?> </tbody> </table> </div> </div><!-- end col-sm-8--> </div><!-- end row--> </div><!-- end container --> </section>