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/index.php
<?php
global $DB, $INFO, $print, $v_lang, $CORE;
$type='list';
// Also check for 'action' parameter for backward compatibility
if(isset($_GET['type']) && $_GET['type']!=''){
    $type=$_GET['type'];
}

// Check if notes_admin column exists in tb_orders table
$column_exists = true;
if ($type == 'order') {
    $check_column = $DB->query("SHOW COLUMNS FROM `tb_orders` LIKE 'notes_admin'");
    $column_exists = ($DB->get_num_rows() > 0);
}

// Include the appropriate file based on type
if ($type == 'add_notes_admin_column') {
    include 'add_notes_admin_column.php';
    exit;
} else {
    include $type.'.php';
}

include ROOT_PATH . 'include/block/header_admin.php';
?>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <div class="content-header">
        <div class="container-fluid">
            <div class="row mb-2">
                <div class="col-sm-6">
                    <h1 class="m-0">Quản lý đơn hàng</h1>
                </div><!-- /.col -->
                <div class="col-sm-6">
                    <ol class="breadcrumb float-sm-right">
                        <li class="breadcrumb-item"><a href="?">Home</a></li>
                        <li class="breadcrumb-item active"><a href="?act=admin&code=orders">Quản lý đơn hàng</a></li>
                    </ol>
                </div><!-- /.col -->
            </div><!-- /.row -->
        </div><!-- /.container-fluid -->
    </div>
    <!-- /.content-header -->
    <!-- Main content -->
    <section class="content">
        <div class="container-fluid">
            <!-- Small boxes (Stat box) -->
            <div class="row">
                <div class="col-md-12">
                    <?php if (isset($column_exists) && !$column_exists): ?>
                    <div class="alert alert-danger">
                        <h5><i class="icon fas fa-exclamation-triangle"></i> Lỗi cơ sở dữ liệu!</h5>
                        <p>Cột 'notes_admin' không tồn tại trong bảng tb_orders. Điều này có thể gây ra lỗi khi cập nhật đơn hàng.</p>
                        <p><a href="?act=admin&code=orders&type=add_notes_admin_column" class="btn btn-primary">Thêm cột notes_admin</a></p>
                    </div>
                    <?php endif; ?>

                    <?php
                    include $type.'_tpl.php';
                    ?>
                </div>
            </div>
        </div>
    </section>
</div>
<?php
include 'include/block/footer_admin.php';
?>

ZeroDay Forums Mini