philippurbschat.de/philcore/views/admin/users.php

66 lines
No EOL
3.7 KiB
PHP

<?php require_once __DIR__ . '/../inc/admin_header.php'; ?>
<div class="max-w-6xl w-full mx-auto flex flex-col md:flex-row gap-6 p-6">
<aside class="w-full md:w-64 bg-slate-900/80 backdrop-blur-sm border border-slate-700/50 rounded-xl shadow-lg p-4 h-fit">
<div class="flex items-center gap-2 mb-6 border-b border-slate-700/50 pb-3">
<span class="text-xl">⚙️</span>
<h2 class="text-emerald-400 font-mono font-bold text-lg tracking-tight">System_Admin</h2>
</div>
<nav class="flex flex-col gap-2 font-mono text-sm">
<a href="<?= Config::get('BASE_URL', '/') ?>admin" class="px-3 py-2 hover:bg-slate-800 text-slate-400 hover:text-slate-200 rounded-md transition-all">
> Dashboard
</a>
<a href="<?= Config::get('BASE_URL', '/') ?>admin/users" class="px-3 py-2 bg-emerald-500/10 text-emerald-400 rounded-md border border-emerald-500/20 transition-all">
> Benutzer
</a>
<a href="<?= Config::get('BASE_URL', '/') ?>admin/settings" class="px-3 py-2 hover:bg-slate-800 text-slate-400 hover:text-slate-200 rounded-md transition-all">
> Einstellungen
</a>
</nav>
</aside>
<main class="flex-1 bg-slate-900/80 backdrop-blur-sm border border-slate-700/50 rounded-xl shadow-2xl overflow-hidden flex flex-col">
<div class="bg-slate-800/80 px-4 py-3 border-b border-slate-700/50 flex items-center gap-2">
<div class="w-3 h-3 rounded-full bg-rose-500"></div>
<div class="w-3 h-3 rounded-full bg-amber-500"></div>
<div class="w-3 h-3 rounded-full bg-emerald-500"></div>
<div class="ml-2 font-mono text-xs text-slate-400">philcore-users.sh</div>
</div>
<div class="p-6 sm:p-8 flex-1">
<header class="mb-8 border-b border-slate-800 pb-6">
<h1 class="text-3xl font-extrabold text-transparent bg-clip-text bg-gradient-to-r from-emerald-400 to-cyan-400 tracking-tight mb-2">
> <?= htmlspecialchars($title) ?>_
</h1>
<p class="text-slate-400 font-mono text-sm">Registrierte System-Accounts.</p>
</header>
<div class="overflow-x-auto border border-slate-800/80 rounded-lg">
<table class="w-full text-left font-mono text-sm text-slate-400">
<thead class="bg-slate-950/80 text-emerald-400 text-xs uppercase">
<tr>
<th class="px-4 py-3 border-b border-slate-800/80">ID</th>
<th class="px-4 py-3 border-b border-slate-800/80">Name</th>
<th class="px-4 py-3 border-b border-slate-800/80">Email</th>
<th class="px-4 py-3 border-b border-slate-800/80">Status</th>
</tr>
</thead>
<tbody class="divide-y divide-slate-800/50 bg-slate-900/50">
<?php foreach($users as $u): ?>
<tr class="hover:bg-slate-800/50 transition-colors">
<td class="px-4 py-3">#<?= $u['id'] ?></td>
<td class="px-4 py-3 text-slate-200"><?= htmlspecialchars($u['name']) ?></td>
<td class="px-4 py-3"><?= htmlspecialchars($u['email']) ?></td>
<td class="px-4 py-3"><span class="text-emerald-500"><?= $u['status'] ?></span></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div>
</main>
</div>
<?php require_once __DIR__ . '/../inc/admin_footer.php'; ?>