quartznet-info/admin/index.php
Gitea 720dcc89eb Layout redesign.
- In a seperate commit from the stylesheet changes. Work in progress.
2020-06-22 03:44:55 -04:00

93 lines
3.0 KiB
PHP
Executable File

<?php require_once("./auth.php"); auth(); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Quartznet | Admin</title>
<?php include "../includes/head.php" ?>
</head>
<body>
<header>
<nav>
<div class="container">
<ul class="menu">
<li><a href="/quartznet/">Home</a></li>
<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 href="https://quartznet.info/sound">Sound</a></li>
<li><a href="https://quartznet.info/status">Status</a></li>
<li><a href="https://quartznet.info/git">Git</a></li>
<li><a href="https://quartznet.info/sql">SQL</a></li>
<li><a href="/quartznet/admin/logout.php">Logout</a></li>
<!-- <li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Admin
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="https://quartznet.info/sound">Sound</a>
<a class="dropdown-item" href="https://quartznet.info/status">Status</a>
<a class="dropdown-item" href="https://quartznet.info/git">Git</a>
<a class="dropdown-item" href="https://quartznet.info/sql">SQL</a>
<a class="dropdown-item" href="/quartznet/admin/logout.php">Logout</a>
</div>
</li> -->
</ul>
</div>
</nav>
<div class="overlay">
<div class="description">
<h1 class="title">Quartznet</h1>
<p>Software, Games, Science, Space!</p>
</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>