- <!DOCTYPE html>
- <html lang="en" xmlns:sec="http://www.w3.org/1999/xhtml">
- <script>
- function myFunction() {
- document.body.classList.toggle("dark-mode");
- }
- document.addEventListener('DOMContentLoaded', function() {
- document.querySelector('button').addEventListener('click', myFunction);
- });
- </script>
- <head>
- <!--Start LIGHT/DARK switch-->
- <!-- End LIGHT/DARK switch-->
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
- <title>School Cafe Manager</title>
- <style>
- body {
- padding: 25px;
- background-color: white;
- color: black;
- font-size: 25px;
- }
- .dark-mode {
- background-color: black;
- color: white;
- }
- .nav-bar {
- width: 100%;
- height: 70px;
- background-color: #337AB7;
- }
- .text {
- color: white;
- font-size: 25px;
- font-weight: bold;
- }
- .table {
- margin-left: 20px;
- margin-top: 30px;
- }
- </style>
- </head>
- <body class="vh-100">
- <nav class="navbar navbar-expand-lg navbar-dark bg-primary">
- <a class="navbar-brand">School Cafe Manager</a>
- <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div class="collapse navbar-collapse" id="navbarSupportedContent">
- <ul class="navbar-nav me-auto mb-2 mb-lg-0">
- <li class="nav-item">
- <a class="nav-link active" aria-current="page" href="#">Home</a>
- </li>
- </ul>
- <form class="d-grid gap-2 d-md-flex justify-content-md-end">
- <!--Start LIGHT/DARK switch-->
- <button class="btn btn-light me-md-2" onclick="myFunction()">Light/Dark</button>
- <!-- End LIGHT/DARK switch-->
- <a class="btn btn-light me-md-2" href="/logout" type="submit">Logout</a>
- </form>
- </div>
- </nav>
- <div>
- <div class="row">
- <table class="table">
- <thead class="table-dark">
- <tr>
- <th>#</th>
- <th>Student Name</th>
- <th>Cafeteria Balance</th>
- <th>Options</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>1</td>
- <td>Mike Vike</td>
- <td>1211.0</td>
- <td>
- <a href="/payment/addfunds?studentId=10"
- class="btn btn-warning">Payment
- </a>
- <a href="/addNote?studentId=10"
- class="btn btn-success">Add Notes/FeedBack
- </a>
- <a href="/deleteStudent?studentId=10"
- class="btn btn-danger">Delete
- </a>
- </td>
- </tr>
- <tr>
- <td>2</td>
- <td>Charles Lassetter</td>
- <td>444.0</td>
- <td>
- <a href="/payment/addfunds?studentId=11"
- class="btn btn-warning">Payment
- </a>
- <a href="/addNote?studentId=11"
- class="btn btn-success">Add Notes/FeedBack
- </a>
- <a href="/deleteStudent?studentId=11"
- class="btn btn-danger">Delete
- </a>
- </td>
- </tr>
- <tr>
- <td>3</td>
- <td>Joshua Jonez</td>
- <td>333.0</td>
- <td>
- <a href="/payment/addfunds?studentId=12"
- class="btn btn-warning">Payment
- </a>
- <a href="/addNote?studentId=12"
- class="btn btn-success">Add Notes/FeedBack
- </a>
- <a href="/deleteStudent?studentId=12"
- class="btn btn-danger">Delete
- </a>
- </td>
- </tr>
- <tr>
- <td>4</td>
- <td>Joshua Dudash</td>
- <td>0.0</td>
- <td>
- <a href="/payment/addfunds?studentId=13"
- class="btn btn-warning">Payment
- </a>
- <a href="/addNote?studentId=13"
- class="btn btn-success">Add Notes/FeedBack
- </a>
- <a href="/deleteStudent?studentId=13"
- class="btn btn-danger">Delete
- </a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <br>
- <br>
- <div>
- <a href="/addStudent"
- class="btn btn-primary">Add New Student</a>
- </div>
- </body>
- </html>
[text] dark light
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new: