ÿØÿàJFIFÿÛ„ ( %"1"%)+...383,7(-.- 404 Not Found
Sh3ll
OdayForums


Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.20
System : Linux st2.domain.com 3.10.0-1127.10.1.el7.x86_64 #1 SMP Wed Jun 3 14:28:03 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 7.4.20
Disable Function : NONE
Directory :  /proc/self/root/var/www/html/tien-dien/code/admin/orders/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/var/www/html/tien-dien/code/admin/orders/list_tpl.php
<?php
global $DB, $INFO, $print, $v_lang, $CORE;

// Define order status labels if not already defined
if (!isset($order_statuses)) {
    $order_statuses = array(
        0 => 'Äang xá»­ lý',
        1 => 'Äã xác nhận',
        2 => 'Äang giao hàng',
        3 => 'Äã giao hàng',
        4 => 'Äã há»§y'
    );
}
?>

<section class="content">
    <div class="container-fluid">
        <div class="row">
            <div class="col-12">
                <div class="card">
                    <div class="card-header">
                        <h3 class="card-title">Danh sách đơn hàng</h3>
                    </div>
                    <!-- /.card-header -->
                    <div class="card-body">
                        <table id="example1" class="table table-bordered table-striped">
                            <thead>
                            <tr>
                                <th style="width: 50px">ID</th>
                                <th>Khách hàng</th>
                                <th>Liên hệ</th>
                                <th>Ngày đặt</th>
                                <th>Tổng tiá»n</th>
                                <th>Số SP</th>
                                <th style="width: 100px">Trạng thái</th>
                                <th style="width: 120px">Thao tác</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if (isset($orders) && count($orders) > 0): ?>
                                <?php foreach ($orders as $order): ?>
                                    <tr>
                                        <td><?php echo $order['order_id']; ?></td>
                                        <td><?php echo $order['fullname']; ?></td>
                                        <td>
                                            <strong>Email:</strong> <?php echo $order['email']; ?><br>
                                            <strong>SÄT:</strong> <?php echo $order['phone']; ?>
                                        </td>
                                        <td><?php echo date('d/m/Y H:i', strtotime($order['order_date'])); ?></td>
                                        <td><?php echo number_format($order['total']); ?> VNÄ</td>
                                        <td><?php echo $order['item_count']; ?></td>
                                        <td>
                                            <?php 
                                            $status_class = '';
                                            switch($order['status']) {
                                                case 0: $status_class = 'badge-warning'; break; // Äang xá»­ lý
                                                case 1: $status_class = 'badge-info'; break;    // Äã xác nhận
                                                case 2: $status_class = 'badge-primary'; break; // Äang giao hàng
                                                case 3: $status_class = 'badge-success'; break; // Äã giao hàng
                                                case 4: $status_class = 'badge-danger'; break;  // Äã há»§y
                                            }
                                            ?>
                                            <span class="badge <?php echo $status_class; ?>">
                                                <?php echo $order_statuses[$order['status']]; ?>
                                            </span>
                                        </td>
                                        <td>
                                            <a href="?act=admin&code=orders&type=order&id=<?php echo $order['order_id']; ?>" class="btn btn-info btn-sm">
                                                <i class="fas fa-eye"></i>
                                            </a>
                                            <a href="?act=admin&code=orders&type=del&id=<?php echo $order['order_id']; ?>" class="btn btn-danger btn-sm" onclick="return confirm('Bạn có chắc chắn muốn xóa đơn hàng này?');">
                                                <i class="fas fa-trash"></i>
                                            </a>
                                        </td>
                                    </tr>
                                <?php endforeach; ?>
                            <?php else: ?>
                                <tr>
                                    <td colspan="8" class="text-center">Không có đơn hàng nào.</td>
                                </tr>
                            <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.card-body -->
                </div>
                <!-- /.card -->
            </div>
            <!-- /.col -->
        </div>
        <!-- /.row -->
    </div>
    <!-- /.container-fluid -->
</section>

<script>
    $(function () {
        $("#example1").DataTable({
            "responsive": true,
            "autoWidth": false,
            "order": [[3, 'desc']] // Sort by order date (column 3) in descending order
        });
    });
</script>

ZeroDay Forums Mini