=============================================
AQIL001 PROJECT EXPORT
=============================================
############################################################
# FILE : .htaccess
############################################################
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php82” package as the default “PHP” programming language.
| # | Table Name |
|---|---|
| = $i++; ?> | = e($table); ?> |
Total Orders
Completed
In Progress
Review
New Orders
Customers
Workers
Total Income
| Order No | Title | Status | Priority | Deadline |
|---|---|---|---|---|
| = e($row['order_no']); ?> | = e($row['title']); ?> | = e($row['status']); ?> | = e($row['priority']); ?> | = formatDate($row['deadline']); ?> |
| ID | Module | Action | Description | User | IP | Date |
|---|---|---|---|---|---|---|
| = $row['id']; ?> | = e($row['module']); ?> | = e($row['action']); ?> | = e($row['description']); ?> | = e($row['fullname']); ?> | = e($row['ip_address']); ?> | = formatDate($row['created_at']); ?> |
| ID | User | Title | Message | Status | Date |
|---|---|---|---|---|---|
| = $row['id']; ?> | = e($row['fullname']); ?> | = e($row['title']); ?> | = e($row['message']); ?> | Read Unread | = formatDate($row['created_at']); ?> |
| Order No | = e($order['order_no']); ?> |
|---|---|
| Customer | = e($order['customer_name']); ?> |
| Worker | = e($order['worker_name']); ?> |
| Status | = e($order['status']); ?> |
| Priority | = e($order['priority']); ?> |
| Deadline | = formatDate($order['deadline']); ?> |
| Description | = nl2br(e($order['description'])); ?> |
| ID | Permission | Description | Action |
|---|---|---|---|
| = $row['id']; ?> | = e($row['name']); ?> | = e($row['description']); ?> | Edit |
| ID | Customer | Total Orders | Completed | In Progress | Total Payment | |
|---|---|---|---|---|---|---|
| = $row['id']; ?> | = e($row['first_name'].' '.$row['last_name']); ?> | = e($row['email']); ?> | = $row['total_orders']; ?> | = $row['completed_orders']; ?> | = $row['progress_orders']; ?> | = formatMoney($row['total_payment']); ?> |
| ID | Order | File Name | Uploader | Role | Size | Customer | Worker | Date |
|---|---|---|---|---|---|---|---|---|
| = $row['id']; ?> | = e($row['order_no']); ?> | = e($row['real_name']); ?> | = e($row['uploader_name']); ?> | = e($row['uploader_role']); ?> | = fileSizeFormat($row['file_size']); ?> | = $row['visible_customer'] ? '✔' : '✖'; ?> | = $row['visible_worker'] ? '✔' : '✖'; ?> | = formatDate($row['created_at']); ?> |
| Month | Income |
|---|---|
| = e($row['month']); ?> | = formatMoney($row['total']); ?> |
| # | Order No | Title | Customer | Worker | Status | Priority | Deadline |
|---|---|---|---|---|---|---|---|
| = $row['id']; ?> | = e($row['order_no']); ?> | = e($row['title']); ?> | = e($row['customer_name']); ?> | = e($row['worker_name']); ?> | = e($row['status']); ?> | = e($row['priority']); ?> | = formatDate($row['deadline']); ?> |
| # | Order | Customer | Worker | Type | Amount | Status | Date |
|---|---|---|---|---|---|---|---|
| = $row['id']; ?> | = e($row['order_no']); ?> | = e($row['customer_name']); ?> | = e($row['worker_name']); ?> | = e($row['payment_type']); ?> | = formatMoney($row['amount']); ?> | = e($row['status']); ?> | = formatDate($row['payment_date']); ?> |
| ID | Order | Title | Description | User | Date |
|---|---|---|---|---|---|
| = $row['id']; ?> | = e($row['order_no']); ?> | = e($row['title']); ?> | = e($row['description']); ?> | = e($row['fullname']); ?> | = formatDate($row['created_at']); ?> |
| ID | Worker | Total Orders | Completed | In Progress | Total Income | |
|---|---|---|---|---|---|---|
| = $row['id']; ?> | = e($row['first_name'].' '. $row['last_name']); ?> | = e($row['email']); ?> | = $row['total_orders']; ?> | = $row['completed_orders']; ?> | = $row['progress_orders']; ?> | = formatMoney($row['total_income']); ?> |
' . htmlspecialchars($e->getMessage(), ENT_QUOTES, 'UTF-8') . '
' ); } exit('Database connection failed.'); } ############################################################ # FILE : customer/dashboard.php ############################################################ prepare(" SELECT COUNT(*) FROM orders WHERE customer_id=? "); $stmt->execute([ currentUserId() ]); $totalOrders=$stmt->fetchColumn(); $stmt=$pdo->prepare(" SELECT COUNT(*) FROM orders WHERE customer_id=? AND status='IN_PROGRESS' "); $stmt->execute([ currentUserId() ]); $activeOrders=$stmt->fetchColumn(); $stmt=$pdo->prepare(" SELECT IFNULL(SUM(amount),0) FROM payments WHERE customer_id=? AND status='PAID' "); $stmt->execute([ currentUserId() ]); $totalPayments=$stmt->fetchColumn(); ?>| Worker | = e($order['worker_name']); ?> |
|---|---|
| Status | = e($order['status']); ?> |
| Priority | = e($order['priority']); ?> |
| Deadline | = formatDate($order['deadline']); ?> |
| Description | = nl2br(e($order['description'])); ?> |