first commit

This commit is contained in:
Aritra Banik 2024-05-26 15:54:30 +05:30
commit a76f625f60
7 changed files with 201 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.DS_Store

13
a4.nimble Normal file
View File

@ -0,0 +1,13 @@
# Package
version = "0.1.0"
author = "cereci5049"
description = "School Management System"
license = "GPL-2.0-or-later"
srcDir = "src"
bin = @["a4"]
# Dependencies
requires "nim >= 2.0.2"

0
src/a4.nim Normal file
View File

59
src/static/styles.css Normal file
View File

@ -0,0 +1,59 @@
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
header {
background-color: #333;
color: white;
padding: 10px;
text-align: center;
}
main {
max-width: 800px;
margin: 0 auto;
padding: 20px;
background-color: white;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
padding: 10px;
text-align: left;
border-bottom: 1px solid #ddd;
}
th {
background-color: #f4f4f4;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"],
input[type="password"] {
width: 100%;
padding: 10px;
margin-bottom: 15px;
border: 1px solid #ccc;
border-radius: 5px;
}
button {
background-color: #007bff;
color: white;
border: none;
padding: 10px 20px;
cursor: pointer;
border-radius: 5px;
}

View File

@ -0,0 +1,68 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Faculty Admin</title>
</head>
<body>
<header>
<h1>Faculty Admin</h1>
<nav>
<ul>
<li><a href="faculty_login.html">Logout</a></li>
</ul>
</nav>
</header>
<main>
<h2>Welcome, Teacher</h2>
<div class="menu">
<a href="#profile">Edit Profile</a>
<a href="#attendance">Manage Attendance</a>
<!-- Add more menu items as needed -->
</div>
<section id="profile">
<h3>Edit Profile</h3>
<form>
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="phone">Phone:</label>
<input type="tel" id="phone" name="phone">
<button type="submit">Save Changes</button>
</form>
</section>
<section id="attendance">
<h3>Manage Student Attendance</h3>
<table>
<thead>
<tr>
<th>Student Name</th>
<th>Date</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>2023-08-25</td>
<td>Present</td>
<td><a href="#">Mark Absent</a></td>
</tr>
<!-- Add more rows for each student -->
</tbody>
</table>
</section>
</main>
</body>
</html>

View File

@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Faculty Login</title>
</head>
<body>
<header>
<h1>Faculty Login</h1>
</header>
<main>
<form action="process_login.php" method="post"> <!-- Replace with actual server-side script -->
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<button type="submit">Login</button>
</form>
</main>
</body>
</html>

View File

@ -0,0 +1,34 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="styles.css">
<title>Student Attendance</title>
</head>
<body>
<header>
<h1>Student Attendance</h1>
</header>
<main>
<table>
<thead>
<tr>
<th>Student Name</th>
<th>Date</th>
<th>Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>2023-08-25</td>
<td>Present</td>
</tr>
<!-- Add more rows for each student -->
</tbody>
</table>
</main>
</body>
</html>