Albisrieden/index.php
2025-01-07 04:13:11 +01:00

56 lines
2.3 KiB
PHP

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Scolify - Schule Albisrieden</title>
<link rel="shortcut icon" type="image/png" href="assets/images/logos/favicon.png" />
<link rel="stylesheet" href="assets/css/styles.min.css" />
<?php
include('config/function.php');
if((isset($_SESSION['auth'])) && ($_SESSION['loggedInUserRole'] == 'admin' )){
header("Location: admin/index.php");
}
elseif((isset($_SESSION['auth'])) && ($_SESSION['loggedInUserRole'] == 'student' )){
header("Location: s/index.php");
}
?>
</head>
<body>
<!-- Body Wrapper -->
<div class="page-wrapper" id="main-wrapper" data-layout="vertical" data-navbarbg="skin6" data-sidebartype="full"
data-sidebar-position="fixed" data-header-position="fixed">
<div
class="position-relative overflow-hidden radial-gradient min-vh-100 d-flex align-items-center justify-content-center">
<div class="d-flex align-items-center justify-content-center w-100">
<div class="row justify-content-center w-100">
<div class="col-md-8 col-lg-6 col-xxl-3">
<div class="card mb-0">
<div class="card-body">
<a href="./index.php" class="text-nowrap logo-img text-center d-block py-3 w-100">
<img src="assets/images/logos/login.png" width="180" alt="">
</a>
<?= alertMessage(); ?>
<!-- <div class="alert alert-secondary" role="alert"> <b>Testzugangsdaten</br>Benutzername: </b>root </b> </br> <b> Kennwort: </b> 1234</div> -->
<form action="login.php" method="POST">
<div class="mb-3">
<label for="username" class="form-label">Verifikations-Code</label>
<input type="username" name="verificationcode" class="form-control" id="verificationcode">
</div>
<button type="submit" name="login" class="btn btn-primary w-100 py-8 fs-4 mb-4 rounded-2">Anmelden</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="assets/libs/jquery/dist/jquery.min.js"></script>
<script src="assets/libs/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
</body>
</html>