Site layout changes and more flexbox experiements with CSS.
This commit is contained in:
@ -1,24 +1,78 @@
|
||||
<?php require_once("./auth.php"); auth(); ?>
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<title>Quartznet | Admin</title>
|
||||
|
||||
<head>
|
||||
<title>Quartznet | Admin</title>
|
||||
|
||||
<?php include "../includes/head.php" ?>
|
||||
<?php include "../includes/header.php" ?>
|
||||
</head>
|
||||
|
||||
<main class="container">
|
||||
<section>
|
||||
<h1>Admin area</h1>
|
||||
<a class="link" href="/quartznet/admin/logout.php">Logout</a>
|
||||
<br>
|
||||
<a class="link" href="/quartznet/admin/users.php">Users</a>
|
||||
<br>
|
||||
<p>For admins of quartznet. Ignore the fire. Everything is fine now! :) </p>
|
||||
<img src="../assets/friendscats1.png" alt="cats">
|
||||
</section>
|
||||
</main>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<nav>
|
||||
<a class="title" href="/quartznet/">Quartznet</a>
|
||||
<ul class="menu">
|
||||
<li><a href="/quartznet/about">About</a></li>
|
||||
<li><a href="/quartznet/contact">Contact</a></li>
|
||||
<li><a href="/quartznet/admin">Admin</a></li>
|
||||
|
||||
<li><a class="link" href="https://quartznet.info/sound">Sound</a></li>
|
||||
<li><a class="link" href="https://quartznet.info/status">Status</a></li>
|
||||
<li><a class="link" href="https://quartznet.info/git">Git</a></li>
|
||||
<li><a class="link" href="https://quartznet.info/sql">SQL</a></li>
|
||||
<li><a class="link" href="/quartznet/admin/logout.php">Logout</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<section class="container">
|
||||
<h2>Admin</h2>
|
||||
<p>Welcome to the super special admin page where you can manage the different parts of quartznet.</p>
|
||||
<p><b>UNLIMITED POWER</b></p>
|
||||
<h2>Also cats!</h2>
|
||||
<img src="../assets/images/friendscats1.png" alt="cats">
|
||||
</section>
|
||||
|
||||
<section class="container">
|
||||
<h1>Users</h1>
|
||||
<!-- Should this still use tables -->
|
||||
<table width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Password</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
||||
<tbody>
|
||||
<!-- User info --->
|
||||
<?php while($row=pg_fetch_assoc($result)) { ?>
|
||||
<tr>
|
||||
<td><?php echo $row["id"]?></td>
|
||||
<td><?php echo $row["name"]?></td>
|
||||
<td><?php echo $row["password"]?></td>
|
||||
<?php } ?>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<!--Insert new user-->
|
||||
<form method="post" action="users.php" name="login">
|
||||
<div class="form-group">
|
||||
<input name="username" type="text" required placeholder="username" maxlength="30">
|
||||
<input name="password" type="password" required placeholder="password" maxlength="30">
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
|
||||
</main>
|
||||
|
||||
<?php include "../includes/footer.php" ?>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user