99 lines
2.0 KiB
PHP
99 lines
2.0 KiB
PHP
<?php
|
|
session_start();
|
|
|
|
if(!isset($_SESSION['teacher_id'])){
|
|
header("Location: /rs_lab/teacher_login.php");
|
|
exit;
|
|
}
|
|
?>
|
|
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>School Dashboard | RS Learning Lab</title>
|
|
<style>
|
|
body{
|
|
margin:0;
|
|
font-family: Arial, sans-serif;
|
|
background: radial-gradient(circle at top, #0f172a, #020617);
|
|
color:#e5e7eb;
|
|
}
|
|
.container{
|
|
width:900px;
|
|
margin:60px auto;
|
|
}
|
|
h1{
|
|
text-align:center;
|
|
margin-bottom:30px;
|
|
}
|
|
.cards{
|
|
display:flex;
|
|
gap:25px;
|
|
}
|
|
.card{
|
|
flex:1;
|
|
background:#020617;
|
|
padding:30px;
|
|
border-radius:14px;
|
|
border:1px solid #1f2937;
|
|
transition:0.25s;
|
|
cursor:pointer;
|
|
text-align:center;
|
|
}
|
|
.card:hover{
|
|
transform:translateY(-4px);
|
|
box-shadow:0 0 25px rgba(11,140,159,.35);
|
|
}
|
|
a{
|
|
text-decoration:none;
|
|
color:#e5e7eb;
|
|
}
|
|
.logout{
|
|
margin-top:40px;
|
|
text-align:center;
|
|
}
|
|
button{
|
|
padding:10px 18px;
|
|
border-radius:8px;
|
|
border:none;
|
|
background:#ef4444;
|
|
color:white;
|
|
cursor:pointer;
|
|
}
|
|
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<h1>School Dashboard</h1>
|
|
|
|
<div class="cards">
|
|
|
|
<a href="/rs_lab/school/add_teacher.php" style="text-decoration:none;">
|
|
<div class="card">
|
|
<h3>Add Teacher</h3>
|
|
<p>Create teacher login credentials</p>
|
|
</div>
|
|
</a>
|
|
<a href="/rs_lab/teacher_dashboard.php">
|
|
<div class="card">
|
|
<h3>Enter Teacher Workspace</h3>
|
|
<p>Manage students and learning progress</p>
|
|
</div>
|
|
</a>
|
|
|
|
</div>
|
|
|
|
<div class="logout">
|
|
<form method="post" action="/rs_lab/logout.php">
|
|
<button>Logout</button>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|