diff --git a/admin/chat.php b/admin/chat.php index 66489b7..e9e87ac 100644 --- a/admin/chat.php +++ b/admin/chat.php @@ -8,7 +8,7 @@ if (isset($_GET['action']) && $_GET['action'] === 'delete' && isset($_GET['delet $del_id = $_GET['delete_user_id']; // Delete messages $pdo->prepare("DELETE FROM messages WHERE user_id = ?")->execute([$del_id]); - // Optionally update orders to not show in chat (e.g., mark as rejected or hidden if they are just 'matching') + // Optionally update orders to not show in chat $pdo->prepare("UPDATE fiat_orders SET status = 'rejected' WHERE user_id = ? AND status IN ('matching', 'submitting')")->execute([$del_id]); header("Location: chat.php"); exit; @@ -29,7 +29,7 @@ $chat_users = $pdo->query(" JOIN messages m ON u.id = m.user_id UNION SELECT DISTINCT u.id, u.username, u.uid, - '发起充值匹配申请' as last_msg, + '发起充值申请' as last_msg, o.created_at as last_time, 0 as unread_count, o.status as recharge_status @@ -55,7 +55,7 @@ $chat_users = $pdo->query(" .chat-main { flex: 1; display: flex; flex-direction: column; } .menu-item { padding: 12px; color: #848E9C; text-decoration: none; display: flex; align-items: center; gap: 10px; border-radius: 4px; margin-bottom: 5px; } .menu-item:hover, .menu-item.active { background: #2B3139; color: white; } - .badge { background: var(--danger-color); color: white; border-radius: 10px; padding: 2px 8px; font-size: 0.7rem; margin-left: auto; } + .badge { background: #f6465d; color: white; border-radius: 10px; padding: 2px 8px; font-size: 0.7rem; margin-left: auto; } .user-item { padding: 15px; border-bottom: 1px solid #2B3139; cursor: pointer; position: relative; display: flex; flex-direction: column; } .user-item:hover, .user-item.active { background: #2B3139; } @@ -65,13 +65,26 @@ $chat_users = $pdo->query(" .delete-btn:hover { color: #f6465d; } .last-msg { color: #848E9C; font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 5px; width: 90%; } .dot { width: 10px; height: 10px; background: #f6465d; border-radius: 50%; } - .recharge-label { font-size: 0.7rem; background: rgba(255, 60, 0, 0.2); color: #ff3c00; padding: 2px 5px; border-radius: 3px; margin-left: 5px; } + .recharge-label { font-size: 0.7rem; background: rgba(240, 185, 11, 0.2); color: #f0b90b; padding: 2px 5px; border-radius: 3px; margin-left: 5px; } .back-btn { color: #848E9C; text-decoration: none; font-size: 0.9rem; padding: 15px; border-bottom: 1px solid #2B3139; display: block; } .back-btn:hover { color: white; background: #2B3139; } + + /* Custom alert */ + #custom-alert { display: none; position: fixed; top: 20px; right: 20px; background: #f0b90b; color: black; padding: 20px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); z-index: 10000; animation: slideIn 0.5s; width: 300px; } + @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
+