Layout redesign.
- In a seperate commit from the stylesheet changes. Work in progress.
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
<?php require_once("./auth.php"); auth(); ?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<title>Quartznet | Admin</title>
|
||||
|
||||
@ -10,21 +9,39 @@
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<nav>
|
||||
<a class="title" href="/quartznet/">Quartznet</a>
|
||||
<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><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>
|
||||
<!-- <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>
|
||||
|
||||
@ -63,16 +80,14 @@
|
||||
|
||||
<!--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>
|
||||
<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>
|
||||
</html>
|
@ -5,40 +5,35 @@
|
||||
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<title>Quartznet | Login</title>
|
||||
<head>
|
||||
<title>Quartznet | Login</title>
|
||||
|
||||
<?php include "../includes/head.php" ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php include "../includes/header.php" ?>
|
||||
|
||||
<main>
|
||||
<section class="container">
|
||||
<main class="container">
|
||||
<form class="form-signin" action="login.php" method="post">
|
||||
<div class="form-label-group">
|
||||
<label for="username">Username</label>
|
||||
<input type="text" id="username" class="form-control" name="username" placeholder="Username" required autofocus>
|
||||
</div>
|
||||
|
||||
<div class="col-sm-9 col-md-7 col-lg-5 mx-auto">
|
||||
<div class="form-label-group">
|
||||
<label for="inputPassword">Password</label>
|
||||
<input type="password" id="password" class="form-control" name="password" placeholder="Password" required>
|
||||
</div>
|
||||
|
||||
<h2 class="card-title">Login</h2>
|
||||
<form class="form-signin" action="login.php" method="post">
|
||||
<div class="form-label-group">
|
||||
<input type="text" id="username" class="form-control" name="username" placeholder="Username" required autofocus>
|
||||
<label for="username">Username</label>
|
||||
</div>
|
||||
<div class="custom-control custom-checkbox mb-3">
|
||||
<input type="checkbox" class="custom-control-input" id="customCheck1">
|
||||
<label class="custom-control-label" for="customCheck1">Remember password</label>
|
||||
</div>
|
||||
<button class="btn btn-lg btn-primary btn-block text-uppercase" type="submit">Sign in</button>
|
||||
</form>
|
||||
</main>
|
||||
|
||||
<div class="form-label-group">
|
||||
<input type="password" id="password" class="form-control" name="password" placeholder="Password" required>
|
||||
<label for="inputPassword">Password</label>
|
||||
</div>
|
||||
|
||||
<div class="custom-control custom-checkbox mb-3">
|
||||
<input type="checkbox" class="custom-control-input" id="customCheck1">
|
||||
<label class="custom-control-label" for="customCheck1">Remember password</label>
|
||||
</div>
|
||||
<button class="btn btn-lg btn-primary btn-block text-uppercase" type="submit">Sign in</button>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
||||
</section>
|
||||
</main>
|
||||
|
||||
<?php include "../includes/footer.php" ?>
|
||||
|
||||
</html>
|
||||
<?php include "../includes/footer.php" ?>
|
||||
</body>
|
||||
</html>
|
0
admin/logout.php
Normal file → Executable file
0
admin/logout.php
Normal file → Executable file
11
admin/users.php
Normal file → Executable file
11
admin/users.php
Normal file → Executable file
@ -1,4 +1,4 @@
|
||||
<?php require_once("./auth.php"); auth();
|
||||
<?php require_once("./auth.php"); auth();
|
||||
|
||||
// Select all users
|
||||
$connection = connect();
|
||||
@ -23,11 +23,11 @@ $rows = pg_num_rows($result);
|
||||
<section class="content">
|
||||
|
||||
<!-- Should this still use tables -->
|
||||
<table width="100%">
|
||||
<table width="100%">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Id</th>
|
||||
<th>Name</th>
|
||||
<th>Password</th>
|
||||
</tr>
|
||||
</thead>
|
||||
@ -56,5 +56,4 @@ $rows = pg_num_rows($result);
|
||||
</main>
|
||||
|
||||
<?php include "../includes/footer.php" ?>
|
||||
|
||||
</html>
|
||||
</html>
|
Reference in New Issue
Block a user