Initial Commit with files
This commit is contained in:
92
Users Page/page.html
Normal file
92
Users Page/page.html
Normal file
@@ -0,0 +1,92 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>User Database</title>
|
||||
<link rel="stylesheet" href="styles.css">
|
||||
<script src="scripts.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav class="navbar">
|
||||
<ul class="nav-links">
|
||||
<li><a href="#">Home</a></li>
|
||||
<li><a href="#">Users</a></li>
|
||||
<li><a href="#">Stuff</a></li>
|
||||
<li><a href="#">Things</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
<div class="subNavContainer">
|
||||
<h1 style="color: #333333; margin: 0.5rem;">User Database</h1>
|
||||
<form class="search-form" id="search-form">
|
||||
<label for="search">Search:</label>
|
||||
<input type="text" id="search" name="search" placeholder="Enter search term...">
|
||||
<input type="button" value="Search" onclick="searchUsers()">
|
||||
</form>
|
||||
<script>
|
||||
const searchForm = document.getElementById('search-form');
|
||||
searchForm.addEventListener('submit', function (event) {
|
||||
event.preventDefault(); // prevent the form from submitting
|
||||
|
||||
searchUsers();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<!-- <nav class="subnav">
|
||||
<ul class="subnav-links">
|
||||
<li><a href="#" class="active">All</a></li>
|
||||
<li><a href="#">Alpha</a></li>
|
||||
<li><a href="#">Echo</a></li>
|
||||
<li><a href="#">NCO</a></li>
|
||||
<li><a href="#">RRC</a></li>
|
||||
<li><a href="#">HHC</a></li>
|
||||
</ul>
|
||||
</nav> -->
|
||||
|
||||
<button onclick="showFilters()">Filter</button>
|
||||
|
||||
<div id="filter-box" style="display:none;">
|
||||
<nav class="subnav">
|
||||
<ul class="subnav-links">
|
||||
<li><a href="#" class="active">All</a></li>
|
||||
<li><a href="#">Alpha</a></li>
|
||||
<li><a href="#">Echo</a></li>
|
||||
<li><a href="#">NCO</a></li>
|
||||
<li><a href="#">RRC</a></li>
|
||||
<li><a href="#">HHC</a></li>
|
||||
<li><a href="#">Recruit</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
<script> function showFilters() {
|
||||
var filterBox = document.getElementById("filter-box");
|
||||
if (filterBox.style.display === "none") {
|
||||
filterBox.style.display = "block";
|
||||
} else {
|
||||
filterBox.style.display = "none";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<table id="userTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Member</th>
|
||||
<th>Unit</th>
|
||||
<th>Rank</th>
|
||||
<th>Join Date</th>
|
||||
<th>LOA Until</th>
|
||||
<th>Last Active</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody id="tableBody">
|
||||
</tbody>
|
||||
</table>
|
||||
<script>
|
||||
const allUsers = getUsers();
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user