File size: 21,236 Bytes
dafe591 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Database Management | MALiPo</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
<style>
.database-gradient {
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}
.db-card {
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.table-row:hover {
background-color: #f9fafb;
}
.status-active {
background-color: #10b981;
color: white;
}
.status-pending {
background-color: #f59e0b;
color: white;
}
.status-suspended {
background-color: #ef4444;
color: white;
}
</style>
</head>
<body class="font-sans antialiased text-gray-900">
<!-- Navigation -->
<nav class="bg-white shadow-sm fixed w-full z-50">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between h-16">
<div class="flex items-center">
<div class="flex-shrink-0 flex items极速-center">
<i data-feather="zap" class="h-8 w-8 text-indigo-600"></i>
<span class="ml-2 text-xl font-bold text-gray-900">MALiPo</span>
</div>
</div>
<div class="hidden md:ml-6 md:flex md:items-center md:space-x-8">
<a href="index.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Home</a>
<a href="database.html" class="text-indigo-600 px-3 py-2 text-sm font-medium">Database</a>
<a href="signin.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Sign In</a>
<a href="signup.html" class="text-gray-500 hover:text-indigo-600 px-3 py-2 text-sm font-medium">Sign Up</a>
</div>
</div>
</div>
</nav>
<!-- Main Content -->
<div class="pt-20 pb-12 px-4 sm:px-6 lg:px-8 database-gradient min-h-screen">
<div class="max-w-7xl mx-auto">
<!-- Header -->
<div class="text-center mb-8">
<h1 class="text-3xl font-bold text-gray-900">MALiPo Database Management</h1>
<p class="mt-2 text-lg text-gray-600">Real-time database overview and management console</p>
</div>
<!-- Database Stats -->
<div class="grid grid-cols-1 md:grid-cols-4 gap-6 mb-8">
<div class="db-card bg-white p-6 rounded-lg">
<div class="flex items-center">
<div class="h-10 w-10 rounded-full bg-indigo-100 flex items-center justify-center">
<i data-feather="users" class="h-5 w-5 text-indigo-600"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Total Users</p>
<p class="text-2xl font-semibold text-gray-900" id="total-users">1,247</p>
</div>
</div>
</div>
<div class="db-card bg-white p-6 rounded-lg">
<div class="flex items-center">
<div class="h-10 w-10 rounded-full bg-green-100 flex items-center justify-center">
<i data-feather="credit-card" class="h-5 w-5 text-green-600"></i>
</div>
<div class="ml-4">
<p class极速text-sm font-medium text-gray-600">Total Wallets</p>
<p class="text-2xl font-semibold text-gray-900" id="total-wallets">3,892</p>
</div>
</div>
</div>
<div class="db-card bg-white p-6 rounded-lg">
<div class="flex items-center">
<div class="h-10 w-10 rounded-full bg-blue-100 flex items-center justify-center">
<i data-feather="dollar-sign" class="h-5 w-5 text-blue-600"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Total Volume</p>
<p class="text-2xl font-semibold text-gray-900" id="total-volume">$4.2M</p>
</div>
</div>
</div>
<div class="db-card bg-white p-6 rounded-lg">
<div class="flex items-center">
<div class="h-10 w-10 rounded-full bg-purple-100 flex items-center justify-center">
<i data-feather="trending-up" class="h-5 w-5 text-purple-600"></i>
</div>
<div class="ml-4">
<p class="text-sm font-medium text-gray-600">Active Today</p>
<p class="text-2xl font-semibold text-gray-900" id="active-today">342</p>
</div>
</div>
</div>
</div>
<!-- Users Table -->
<div class="bg-white rounded-lg shadow-md p-6 mb-8">
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-semibold text-gray-900">User Accounts</h2>
<div class="flex space-x-2">
<input type="text" placeholder="Search users..." class="px-3 py-2 border border-gray-300 rounded-md text-sm">
<button class="px-3 py-2 bg-indigo-600 text-white rounded-md text-sm hover:bg-indigo-700">
<i data-feather="filter" class="h-4 w-4"></i>
</button>
</div>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">User ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Name</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Email</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Wallets</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Joined</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="table-row">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#001</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">John Doe</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">john@example.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-semibold rounded-full status-active">Verified</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">4</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">2023-12-01</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">View</a>
<a href="#" class="text-red-600 hover:text-red-900">Delete</a>
</td>
</tr>
<tr class="table-row">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#002</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Jane Smith</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">jane@example.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-semibold rounded-full status-pending">Pending</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">2</td>
<td class="px-6极速-4 whitespace-nowrap text-sm text-gray-900">2023-12-02</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">View</a>
<a href="#" class="text-red-600 hover:text-red-900">Delete</a>
</td>
</tr>
<tr class="table-row">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">#003</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text极速-gray-900">Bob Johnson</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">bob@example.com</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-semibold rounded-full status-suspended">Suspended</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">1</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">2023-12-03</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">View</a>
<a href="#" class="text-red-600 hover:text-red-900">Delete</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Wallets Table -->
<div class="bg-white rounded-lg shadow-md p-6 mb-8">
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-semibold text-gray-900">Wallet Management</h2>
<button class="px-4 py-2 bg-indigo-600 text-white rounded-md text-sm hover:bg-indigo-700">
<i data-feather="plus" class="h-4 w-4 mr-1"></i> Add Wallet
</button>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Wallet ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Owner</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Currency</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Balance</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Address</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking极速ider">Actions</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="table-row">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">W#001</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">John Doe</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">BTC</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">0.125</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-semibold rounded-full status-active">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">View</a>
<a href="#" class="text-red-600 hover:text-red-900">Disable</a>
</td>
</tr>
<tr class="table-row">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">W#002</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">John Doe</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">ETH</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">1.75</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">0x742d35Cc6634C0532925a3b844Bc454e4438f44e</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-semibold rounded-full status-active">Active</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium">
<a href="#" class="text-indigo-600 hover:text-indigo-900 mr-3">View</极速>
<a href="#" class="text-red-600 hover:text-red-900">Disable</a>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Transactions Table -->
<div class="bg-white rounded-lg shadow-md p-6">
<div class="flex items-center justify-between mb-6">
<h2 class="text-xl font-semibold text-gray-900">Recent Transactions</h2>
<div class="flex space-x-2">
<select class="px-3 py-2 border border-gray-300 rounded-md text-sm">
<option>All Transactions</option>
<option>Completed</option>
<option>Pending</option>
<option>Failed</option>
</select>
</div>
</div>
<div class="overflow-x-auto">
<table class="min-w-full divide-y divide-gray-200">
<thead class="bg-gray-50">
<tr>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">TX ID</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">From</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">To</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Amount</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Currency</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Status</th>
<th class="px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider">Timestamp</th>
</tr>
</thead>
<tbody class="bg-white divide-y divide-gray-200">
<tr class="table-row">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">TX#0001</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Wallet W#001</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">External Address</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">0.005</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">BTC</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-semibold rounded-full status-active">Completed</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">2023-12-15 14:30</td>
</tr>
<tr class="table-row">
<td class="px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900">TX#0002</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">External Address</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">Wallet W#002</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">0.8</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">ETH</td>
<td class="px-6 py-4 whitespace-nowrap">
<span class="px-2 py-1 text-xs font-semibold rounded-full status-pending">Pending</span>
</td>
<td class="px-6 py-4 whitespace-nowrap text-sm text-gray-900">2023-12-15 15:45</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer class="bg-gray-50">
<div class="max-w-7xl mx-auto py-12 px-4 sm:px-6 lg:py-16 lg:px-8">
<div class="text-center">
<p class="text-sm text-gray-600">
© 2023 MALiPo. All rights reserved.
<a href="#" class="text-indigo-600 hover:text-indigo-500">Privacy Policy</a> •
<a href="#" class="text-indigo-600 hover:text-indigo-500">Terms of Service</a>
</p>
</div>
</div>
</footer>
<script>
feather.replace();
// Simulate live database updates
function updateDatabaseStats() {
const stats = {
users: Math.floor(1247 + Math.random() * 10),
wallets: Math.floor(3892 + Math.random() * 20),
volume: `$${(4.2 + Math.random() * 0.1).toFixed(1)}M`,
active: Math.floor(342 + Math.random() * 15)
};
document.getElementById('total-users').textContent = stats.users.toLocaleString();
document.getElementById('total-wallets').textContent = stats.wallets.toLocaleString();
document.getElementById('total-volume').textContent = stats.volume;
document.getElementById('active-today').textContent = stats.active.toLocaleString();
}
// Update stats every 5 seconds
setInterval(updateDatabaseStats, 5000);
updateDatabaseStats(); // Initial update
</script>
</body>
</html> |