ok

Mini Shell

Direktori : /proc/thread-self/root/proc/self/root/home2/selectio/www/application/views/dashboard/
Upload File :
Current File : //proc/thread-self/root/proc/self/root/home2/selectio/www/application/views/dashboard/reviews.php

<?php defined('BASEPATH') or exit('No direct script access allowed'); ?>

<div class="box">
    <div class="box-header with-border">
        <div class="left">
            <h3 class="box-title"><?= html_escape($title); ?></h3>
        </div>
    </div>
    <div class="box-body">
        <div class="row">
            <!-- include message block -->
            <div class="col-sm-12">
                <?php $this->load->view('admin/includes/_messages'); ?>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="table-responsive">
                    <table class="table table-striped" role="grid">
                        <thead>
                        <tr role="row">
                            <th scope="col"><?php echo trans("id"); ?></th>
                            <th scope="col"><?php echo trans("user"); ?></th>
                            <th scope="col"><?php echo trans('review'); ?></th>
                            <th scope="col"><?php echo trans("product"); ?></th>
                            <th scope="col"><?php echo trans("date"); ?></th>
                        </tr>
                        </thead>
                        <tbody>
                        <?php if (!empty($reviews)): ?>
                            <?php foreach ($reviews as $review):
                                $product = get_active_product($review->product_id); ?>
                                <tr>
                                    <td style="width: 5%;"><?php echo $review->id; ?></td>
                                    <td style="width: 10%;">
                                        <a href="<?php echo generate_profile_url($review->user_slug); ?>" class="link-black" target="_blank">
                                            <?php echo html_escape($review->user_username); ?>
                                        </a>
                                    </td>
                                    <td class="break-word">
                                        <div class="pull-left" style="width: 100%;">
                                            <?php $this->load->view('admin/includes/_review_stars', ['review' => $review->rating]); ?>
                                        </div>
                                        <p class="pull-left">
                                            <?php echo html_escape($review->review); ?>
                                        </p>
                                    </td>
                                    <td style="width: 30%;">
                                        <?php if (!empty($product)): ?>
                                            <a href="<?= generate_product_url($product); ?>" class="link-black font-500" target="_blank">
                                                <?= get_product_title($product); ?>
                                            </a>
                                        <?php endif; ?>
                                    </td>
                                    <td class="white-space-nowrap" style="width: 15%"><?php echo formatted_date($review->created_at); ?></td>
                                </tr>
                            <?php endforeach; ?>
                        <?php endif; ?>
                        </tbody>
                    </table>
                </div>
                <?php if (empty($reviews)): ?>
                    <p class="text-center">
                        <?php echo trans("no_records_found"); ?>
                    </p>
                <?php endif; ?>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <?php if (!empty($reviews)): ?>
                    <div class="number-of-entries">
                        <span><?= trans("number_of_entries"); ?>:</span>&nbsp;&nbsp;<strong><?= $num_rows; ?></strong>
                    </div>
                <?php endif; ?>
                <div class="table-pagination">
                    <?php echo $this->pagination->create_links(); ?>
                </div>
            </div>
        </div>
    </div><!-- /.box-body -->
</div>


Zerion Mini Shell 1.0