diff --git a/assets/pasted-20260213-122445-3e8fb5b0.png b/assets/pasted-20260213-122445-3e8fb5b0.png new file mode 100644 index 0000000..dca2dbf Binary files /dev/null and b/assets/pasted-20260213-122445-3e8fb5b0.png differ diff --git a/assets/pasted-20260213-124109-d325d10e.png b/assets/pasted-20260213-124109-d325d10e.png new file mode 100644 index 0000000..a41a4bc Binary files /dev/null and b/assets/pasted-20260213-124109-d325d10e.png differ diff --git a/assets/pasted-20260213-124455-68677edd.png b/assets/pasted-20260213-124455-68677edd.png new file mode 100644 index 0000000..a41a4bc Binary files /dev/null and b/assets/pasted-20260213-124455-68677edd.png differ diff --git a/assets/pasted-20260213-124521-96536323.png b/assets/pasted-20260213-124521-96536323.png new file mode 100644 index 0000000..a41a4bc Binary files /dev/null and b/assets/pasted-20260213-124521-96536323.png differ diff --git a/assets/pasted-20260213-124811-f79e651e.png b/assets/pasted-20260213-124811-f79e651e.png new file mode 100644 index 0000000..a41a4bc Binary files /dev/null and b/assets/pasted-20260213-124811-f79e651e.png differ diff --git a/futures.php b/futures.php index 28a82ad..f77c281 100644 --- a/futures.php +++ b/futures.php @@ -45,12 +45,10 @@ $user_id = $_SESSION['user_id'] ?? null; .center-col { min-width: 100%; } } - /* Category Tabs above Search */ .category-tabs { display: flex; padding: 15px 15px 5px; gap: 8px; } .category-tab { flex: 1; text-align: center; padding: 6px 0; background: #2b3139; border-radius: 4px; font-size: 11px; color: #848e9c; cursor: pointer; transition: all 0.2s; white-space: nowrap; border: 1px solid transparent; } .category-tab.active { background: rgba(0, 82, 255, 0.1); border-color: var(--primary-color); color: var(--primary-color); font-weight: bold; } - /* Search Box */ .search-box { padding: 5px 15px 10px; position: relative; } .search-box i { position: absolute; left: 25px; top: 50%; transform: translateY(-50%); color: #848e9c; font-size: 12px; } .search-box input { width: 100%; background: #2b3139; border: 1px solid transparent; border-radius: 4px; padding: 8px 10px 8px 30px; color: white; font-size: 13px; outline: none; } @@ -64,7 +62,7 @@ $user_id = $_SESSION['user_id'] ?? null; .chart-header { padding: 8px 20px; display: flex; align-items: center; background: #161a1e; border-bottom: 1px solid #2b3139; flex-wrap: nowrap; gap: 20px; height: 50px; } .chart-box { flex: 1; min-height: 350px; height: 350px; background: #0b0e11; border-bottom: 1px solid #2b3139; } - @media (max-width: 991px) { .chart-box { min-height: 320px; height: 320px; } } + @media (max-width: 991px) { .chart-box { min-height: 350px; height: 350px; } } .order-box { padding: 12px 20px; background: #161a1e; border-bottom: 1px solid #2b3139; } .futures-config { display: flex; gap: 10px; margin-bottom: 10px; } @@ -92,22 +90,18 @@ $user_id = $_SESSION['user_id'] ?? null; .record-tab.active { color: white; border-bottom: 2px solid var(--primary-color); font-weight:bold; } .records-content { min-height: 200px; background: #161a1e; overflow-y: auto; } - /* Order Book Styles */ .ob-header { padding: 10px 15px; font-size: 11px; color: #848e9c; display: flex; justify-content: space-between; border-bottom: 1px solid #2b3139; background: #161a1e; } .ob-row { display: flex; justify-content: space-between; padding: 3px 15px; font-size: 12px; position: relative; cursor: pointer; height: 20px; align-items: center; } .ob-bar { position: absolute; right: 0; top: 0; bottom: 0; opacity: 0.1; z-index: 0; } #mid-price { padding: 8px 15px; font-size: 16px; font-weight: 800; text-align: center; border-top: 1px solid #2b3139; border-bottom: 1px solid #2b3139; background: #161a1e; } - /* Adjusted for 20 rows of asks and bids */ #asks-list { height: 400px; display: flex; flex-direction: column; overflow: hidden; justify-content: flex-end; } #bids-list { height: 400px; display: flex; flex-direction: column; overflow: hidden; justify-content: flex-start; } - /* Stats Item */ .stats-item { display: flex; flex-direction: column; justify-content: center; } .stats-label { font-size: 10px; color: #848e9c; margin-bottom: 1px; white-space: nowrap; } .stats-value { font-size: 12px; font-weight: 600; color: white; white-space: nowrap; } - /* Mobile Nav */ .m-trade-nav { display: none; background: #161a1e; border-bottom: 1px solid #2b3139; position: sticky; top: 0; z-index: 100; } .m-trade-nav a { flex: 1; text-align: center; padding: 14px; font-size: 14px; color: #848e9c; text-decoration: none; border-bottom: 2px solid transparent; } .m-trade-nav a.active { color: var(--primary-color); border-bottom-color: var(--primary-color); font-weight: bold; } @@ -146,7 +140,7 @@ $user_id = $_SESSION['user_id'] ?? null;
@@ -155,7 +149,7 @@ $user_id = $_SESSION['user_id'] ?? null;
- BTC/USDT Perpetual + --/-- Perpetual
@@ -181,8 +175,8 @@ $user_id = $_SESSION['user_id'] ?? null;
-
-
20x
+
+
20x
@@ -192,10 +186,10 @@ $user_id = $_SESSION['user_id'] ?? null;
- BTC + --
- +
0%25%50%75%100%
@@ -206,134 +200,351 @@ $user_id = $_SESSION['user_id'] ?? null; 0.00 USDT
- - + +
-
-
-
+
+
+
-
+
+ (USDT) + (--) + +
-
--
+
--
- \ No newline at end of file + diff --git a/includes/i18n.php b/includes/i18n.php index 257f9a2..f7dcdbe 100644 --- a/includes/i18n.php +++ b/includes/i18n.php @@ -202,6 +202,17 @@ $translations = [ 'days' => 'Days', 'coming_soon' => 'Coming Soon', 'next_project' => 'Next Project', + // New keys for error messages + 'error_placing_order' => 'Error placing order', + 'network_error' => 'Network Error', + 'could_not_connect_server' => 'Could not connect to server', + 'error_fetching_orders' => 'Error fetching orders', + 'error_fetching_balance' => 'Error fetching balance', + 'error_no_live_price' => 'No live price data available yet. Please wait.', + 'websocket_connecting' => 'Connecting to market data...', + 'websocket_connected' => 'Connected to market data.', + 'websocket_error' => 'Market data connection error!', + 'websocket_disconnected' => 'Market data disconnected. Reconnecting...', ], 'zh' => [ 'site_name' => 'NovaEx', @@ -371,9 +382,9 @@ $translations = [ 'home_slide2_title' => '100倍杠杆合约交易', 'home_slide2_desc' => '通过我们的专业永续合约最大限度地提高您的资金效率。', 'home_slide3_title' => '安全数字资产质押', - 'home_slide3_desc' => '通过我们的高收益质押池赚取被动收入。', + 'home_slide3_desc' => 'Earn passive income on your idle assets with our high-yield staking pools.', 'home_download_title' => '随时随地,随心交易', - 'home_download_desc' => '通过 NovaEx 移动应用保持与市场的连接。在掌中体验专业的交易功能。', + 'home_download_desc' => 'Stay connected to the markets with the NovaEx mobile app. Experience professional trading features in the palm of your hand.', 'fast_secure' => '快速且安全', 'fast_secure_desc' => '为您的所有数据提供军用级加密。', 'real_time' => '实时行情', @@ -401,6 +412,17 @@ $translations = [ 'days' => '天', 'coming_soon' => '即将到来', 'next_project' => '下一个项目', + // New keys for error messages + 'error_placing_order' => '下单失败', + 'network_error' => '网络错误', + 'could_not_connect_server' => '无法连接到服务器', + 'error_fetching_orders' => '获取订单失败', + 'error_fetching_balance' => '获取余额失败', + 'error_no_live_price' => '暂无实时价格数据,请稍候。', + 'websocket_connecting' => '正在连接市场数据...', + 'websocket_connected' => '市场数据已连接。', + 'websocket_error' => '市场数据连接错误!', + 'websocket_disconnected' => '市场数据已断开。正在重新连接...', ] ]; diff --git a/options.php b/options.php index 4e507eb..923532d 100644 --- a/options.php +++ b/options.php @@ -1,8 +1,15 @@
@@ -177,17 +196,18 @@ $user_id = $_SESSION['user_id'] ?? null;
+
-
BTC/USDT
+
--/--
@@ -239,16 +259,16 @@ $user_id = $_SESSION['user_id'] ?? null;
- - + +
-
-
+
+
@@ -304,7 +324,18 @@ $user_id = $_SESSION['user_id'] ?? null; - \ No newline at end of file + diff --git a/spot.php b/spot.php index 7ebe7e6..886d021 100644 --- a/spot.php +++ b/spot.php @@ -64,7 +64,7 @@ $user_id = $_SESSION['user_id'] ?? null; .chart-header { padding: 8px 20px; display: flex; align-items: center; background: #161a1e; border-bottom: 1px solid #2b3139; flex-wrap: nowrap; gap: 20px; height: 50px; } .chart-box { flex: 1; min-height: 350px; height: 350px; background: #0b0e11; border-bottom: 1px solid #2b3139; } - @media (max-width: 991px) { .chart-box { min-height: 320px; height: 320px; } } + @media (max-width: 991px) { .chart-box { min-height: 350px; height: 350px; } } .order-box { padding: 12px 20px; background: #161a1e; border-bottom: 1px solid #2b3139; } .order-type-tabs { display: flex; gap: 20px; margin-bottom: 10px; } @@ -97,7 +97,6 @@ $user_id = $_SESSION['user_id'] ?? null; .ob-bar { position: absolute; right: 0; top: 0; bottom: 0; opacity: 0.1; z-index: 0; } #mid-price { padding: 8px 15px; font-size: 16px; font-weight: 800; text-align: center; border-top: 1px solid #2b3139; border-bottom: 1px solid #2b3139; background: #161a1e; } - /* Adjusted for 20 rows of asks and bids */ #asks-list { height: 400px; display: flex; flex-direction: column; overflow: hidden; justify-content: flex-end; } #bids-list { height: 400px; display: flex; flex-direction: column; overflow: hidden; justify-content: flex-start; } @@ -142,7 +141,7 @@ $user_id = $_SESSION['user_id'] ?? null;
@@ -151,7 +150,7 @@ $user_id = $_SESSION['user_id'] ?? null;
- BTC/USDT + --/--
@@ -178,9 +177,9 @@ $user_id = $_SESSION['user_id'] ?? null;
-
-
-
+
+
+
@@ -190,21 +189,21 @@ $user_id = $_SESSION['user_id'] ?? null;
- BTC + --
- +
0%25%50%75%100%
0.00 USDT
- +
-
-
-
+
+
+
@@ -214,129 +213,364 @@ $user_id = $_SESSION['user_id'] ?? null;
- BTC + --
- +
0%25%50%75%100%
- 0.00 BTC + 0.00 --
- +
-
-
-
+
+
+
-
(USDT)(BTC)
+
+ (USDT) + (--) + +
-
--
+
--
- \ No newline at end of file +