malipo / database.html
Meech888's picture
create a database for the attributes on this system and keep updating as we go by - Follow Up Deployment
dafe591 verified
Raw History Blame Contribute Delete
21.2 kB
<!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">
&copy; 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>