initial commit

This commit is contained in:
root
2024-06-03 16:43:53 +03:00
commit 21e3fd0797
1535 changed files with 60499 additions and 0 deletions

39
nakul/home/about.html Normal file
View File

@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>About Us</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>About Us</h1>
<nav>
<a href="index.html">Home</a>
<a href="services.html">Services</a>
<a href="contact.html">Contact</a>
<a href="login.html">Login</a>
<a href="signup.html">Sign Up</a>
</nav>
</header>
<main>
<section>
<h2>Our Story</h2>
<p>Description of your company's history and mission.</p>
</section>
<section>
<h2>Our Team</h2>
<p>Information about key team members.</p>
</section>
<!-- Add more sections about your company as needed -->
</main>
<footer>
<p>&copy; 2024 Your Company</p>
</footer>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 MiB

40
nakul/home/contact.html Normal file
View File

@@ -0,0 +1,40 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Us</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Contact Us</h1>
<nav>
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="services.html">Services</a>
<a href="login.html">Login</a>
<a href="signup.html">Sign Up</a>
</nav>
</header>
<main>
<section>
<h2>Send Us a Message</h2>
<form action="#" method="POST">
<label for="name">Your Name:</label>
<input type="text" id="name" name="name" required><br>
<label for="email">Your Email:</label>
<input type="email" id="email" name="email" required><br>
<label for="message">Message:</label><br>
<textarea id="message" name="message" rows="4" required></textarea><br>
<button type="submit">Send Message</button>
</form>
</section>
</main>
<footer>
<p>&copy; 2024 Your Company</p>
</footer>
</body>
</html>

153
nakul/home/index.html Normal file
View File

@@ -0,0 +1,153 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<div id="wrapper">
<div id="main">
<div id="navbar">
<h1>MarkHere</h1>
<div id="nav-links">
<a href="#">Home</a>
<a href="#services">Services</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
<a href="/login.html">Login</a>
<a href="/signup.html">Signup</a>
</div>
</div>
<div id="banner-div">
<div id="banner"></div>
<div id="banner-text">
<div class="card">
<!-- <button> -->
<a href="">
<i class="fa-solid fa-user"></i>
</a>
<!-- </button> -->
<p>Login as Student</p>
</div>
<div class="card">
<!-- <button> -->
<a href="">
<i class="fa-solid fa-user"></i>
</a>
<!-- </button> -->
<p>Login as Teacher</p>
</div>
</div>
</div>
</div>
<div id="services" class="services">
<p class="desc">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit,
suscipit. Lorem ipsum dolor sit amet consectetur adipisicing elit.
</p>
<div class="image-div">
<img src="./assets/pexels-pavel-danilyuk-8423018.jpg" alt="" />
</div>
</div>
<div class="services">
<div class="image-div">
<img src="./assets/pexels-pavel-danilyuk-8423018.jpg" alt="" />
</div>
<div class="desc">
Lorem ipsum dolor sit amet con Lorem ipsum dolor sit amet consectetur
adipisicing elit. Quisquam, nulla. sectetur adipisicing elit. Commodi,
suscipit.
</div>
</div>
<div id="contact">
<div class="desc">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatem,
possimus?
</div>
<div class="image-div">
<img src="./assets/pexels-pavel-danilyuk-8423018.jpg" alt="" />
</div>
</div>
<div id="team">
<div class="image-div">
<img src="./assets/pexels-pavel-danilyuk-8423018.jpg" alt="" />
</div>
<p class="desc">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Odit,
suscipit. Lorem ipsum dolor sit amet consectetur adipisicing elit.
</p>
</div>
<div id="about">
<div class="desc">
Lorem ipsum dolor sit amet consectetur adipisicing elit. Libero,
assumenda?
</div>
<div class="image-div">
<img src="./assets/pexels-pavel-danilyuk-8423018.jpg" alt="" />
</div>
</div>
<div>
<footer class="footer">
<div class="waves">
<div class="wave" id="wave1"></div>
<div class="wave" id="wave2"></div>
<div class="wave" id="wave3"></div>
<div class="wave" id="wave4"></div>
</div>
<ul class="social-icon">
<li class="social-icon__item">
<a class="social-icon__link" href="#">
<ion-icon name="logo-facebook"></ion-icon>
</a>
</li>
<li class="social-icon__item">
<a class="social-icon__link" href="#">
<ion-icon name="logo-twitter"></ion-icon>
</a>
</li>
<li class="social-icon__item">
<a class="social-icon__link" href="#">
<ion-icon name="logo-linkedin"></ion-icon>
</a>
</li>
<li class="social-icon__item">
<a class="social-icon__link" href="#">
<ion-icon name="logo-instagram"></ion-icon>
</a>
</li>
</ul>
<ul class="menu">
<li class="menu__item"><a class="menu__link" href="#">Home</a></li>
<li class="menu__item">
<a class="menu__link" href="#about">About</a>
</li>
<li class="menu__item">
<a class="menu__link" href="#services">Services</a>
</li>
<li class="menu__item">
<a class="menu__link" href="#team">Team</a>
</li>
<li class="menu__item">
<a class="menu__link" href="#contact">Contact</a>
</li>
</ul>
<p>&copy;2024 Nakul Singh | Made With Love ❤️</p>
</footer>
</div>
</div>
</body>
<script
src="https://kit.fontawesome.com/869ac6c5e5.js"
crossorigin="anonymous"
></script>
<script
type="module"
src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.esm.js"
></script>
<script
nomodule
src="https://unpkg.com/ionicons@5.5.2/dist/ionicons/ionicons.js"
></script>
</html>

35
nakul/home/login.html Normal file
View File

@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Login</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Login</h1>
<nav>
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="services.html">Services</a>
<a href="contact.html">Contact</a>
<a href="signup.html">Sign Up</a>
</nav>
</header>
<main>
<form action="#" method="POST">
<label for="username">Username:</label>
<input type="text" id="username" name="username" required><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required><br>
<button type="submit">Login</button>
</form>
</main>
<footer>
<p>&copy; 2024 Your Company</p>
</footer>
</body>
</html>

39
nakul/home/services.html Normal file
View File

@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Services</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Our Services</h1>
<nav>
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="contact.html">Contact</a>
<a href="login.html">Login</a>
<a href="signup.html">Sign Up</a>
</nav>
</header>
<main>
<section>
<h2>Service 1</h2>
<p>Description of Service 1</p>
</section>
<section>
<h2>Service 2</h2>
<p>Description of Service 2</p>
</section>
<!-- Add more sections for additional services as needed -->
</main>
<footer>
<p>&copy; 2024 Your Company</p>
</footer>
</body>
</html>

39
nakul/home/signup.html Normal file
View File

@@ -0,0 +1,39 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Signup</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<header>
<h1>Sign Up</h1>
<nav>
<a href="index.html">Home</a>
<a href="about.html">About</a>
<a href="services.html">Services</a>
<a href="contact.html">Contact</a>
<a href="login.html">Login</a>
</nav>
</header>
<main>
<form action="#" method="POST">
<label for="fullname">Full Name:</label>
<input type="text" id="fullname" name="fullname" required /><br />
<label for="email">Email:</label>
<input type="email" id="email" name="email" required /><br />
<label for="username">Username:</label>
<input type="text" id="username" name="username" required /><br />
<label for="password">Password:</label>
<input type="password" id="password" name="password" required /><br />
<button type="submit">Sign Up</button>
</form>
</main>
<footer>
<p>&copy; 2024 Your Company</p>
</footer>
</body>
</html>

280
nakul/home/style.css Normal file
View File

@@ -0,0 +1,280 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
scrollbar-width: none;
}
#wrapper {
background: #bfbfbf;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
gap: 20px;
}
#main {
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
}
#navbar {
background: white;
display: flex;
width: 100%;
padding: 20px 80px;
justify-content: space-between;
align-items: center;
position: fixed;
z-index: 1;
}
#navbar h1 {
font-size: 35px;
}
#nav-links {
display: flex;
gap: 35px;
font-size: 24px;
}
#nav-links a {
text-decoration: none;
color: black;
font-weight: 500;
}
#nav-links a:hover {
transition: all 7ms;
text-decoration: underline;
font-weight: 600;
}
#banner {
height: 100vh;
width: 100vw;
background-color: rgb(255, 145, 0);
background-image: url(./assets/pexels-pavel-danilyuk-8423018.jpg);
background-size: cover;
color: white;
filter: brightness(40%);
}
#banner-div {
position: relative;
}
#banner-text {
position: absolute;
top: 30%;
height: 47%;
margin: 0 auto;
left: 0;
right: 0;
/* background-color: antiquewhite; */
display: flex;
justify-content: center;
align-items: center;
font-size: 20px;
color: rgb(255, 255, 255);
}
.card {
height: 100%;
width: 20%;
/* background-color: aqua; */
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
padding: 10px;
margin: 0 50px;
}
.card button {
width: 100%;
height: 100%;
cursor: pointer;
background-color: transparent;
}
.card i {
width: 100%;
height: 100%;
/* background-color: antiquewhite; */
font-size: 300px;
color: white;
padding: 10px;
}
.card p {
margin-top: 10px;
font-weight: 600;
font-size: 25px;
}
.services,
#contact,
#team,
#about {
height: 80vh;
background-color: aqua;
}
.services,
#contact,
#about,
#team {
display: flex;
background-color: rgb(0, 0, 0);
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
/* gap: 100px; */
padding: 0 150px;
color: white;
}
.image-div {
background-color: aliceblue;
height: 60%;
width: 45%;
border-radius: 10px;
}
.image-div img {
height: 100%;
width: 100%;
object-fit: cover;
border-radius: 10px;
}
.desc {
display: flex;
width: 45%;
font-size: 40px;
text-align: center;
}
.footer {
position: relative;
width: 100%;
background: #3586ff;
min-height: 100px;
padding: 20px 50px;
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
}
.social-icon,
.menu {
position: relative;
display: flex;
justify-content: center;
align-items: center;
margin: 10px 0;
flex-wrap: wrap;
}
.social-icon__item,
.menu__item {
list-style: none;
}
.social-icon__link {
font-size: 2rem;
color: #ffffff;
margin: 0 10px;
display: inline-block;
transition: 0.5s;
}
.social-icon__link:hover {
transform: translateY(-10px);
}
.menu__link {
font-size: 1.5rem;
color: #ffffff;
margin: 0 10px;
display: inline-block;
transition: 0.5s;
text-decoration: none;
/* opacity: 0.85; */
font-weight: 300;
}
.menu__link:hover {
opacity: 1;
}
.footer p {
color: #ffffff;
margin: 15px 0 10px 0;
font-size: 1.3rem;
font-weight: 600;
}
.wave {
position: absolute;
top: -90px;
left: 0;
width: 100%;
height: 100px;
background: url("https://i.ibb.co/wQZVxxk/wave.png");
background-size: 1000px 100px;
}
.wave#wave1 {
z-index: 1000;
opacity: 1;
bottom: 0;
animation: animateWaves 4s linear infinite;
}
.wave#wave2 {
z-index: 999;
opacity: 0.5;
bottom: 10px;
animation: animate 4s linear infinite !important;
}
.wave#wave3 {
z-index: 1000;
opacity: 0.2;
bottom: 15px;
animation: animateWaves 3s linear infinite;
}
.wave#wave4 {
z-index: 999;
opacity: 0.7;
bottom: 20px;
animation: animate 3s linear infinite;
}
@keyframes animateWaves {
0% {
background-position-x: 1000px;
}
100% {
background-positon-x: 0px;
}
}
@keyframes animate {
0% {
background-position-x: -1000px;
}
100% {
background-positon-x: 0px;
}
}

View File

@@ -0,0 +1,42 @@
<?php
$servername = "localhost";
$username = "usr";
$password = "admin@1224";
$dbname = "main_bpitattendance_db";
$conn = new mysqli($servername, $username, $password, $dbname);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
$searchType = $_GET['search_type'];
$searchText = $_GET['search_text'];
if ($searchType === "course") {
$sql = "SELECT stud_first_name, stud_last_name, date_of_birth, batch_year FROM student_record";
} else {
$sql = "SELECT stud_first_name, stud_last_name, date_of_birth, batch_year FROM student_record WHERE enrollment_no = '$searchText'";
}
$result = $conn->query($sql);
if ($result->num_rows > 0) {
if ($searchType === "course") {
echo "<table><tr><th>Student Name</th><th>Date of Birth</th><th>Batch Year</th></tr>";
while($row = $result->fetch_assoc()) {
echo "<tr><td>" . $row["stud_first_name"] . " " . $row["stud_last_name"] . "</td><td>" . $row["date_of_birth"] . "</td><td>" . $row["batch_year"] . "</td></tr>";
}
echo "</table>";
} else {
$row = $result->fetch_assoc();
echo "<table><tr><th>Student Name</th><th>Date of Birth</th><th>Batch Year</th></tr>";
echo "<tr><td>" . $row["stud_first_name"] . " " . $row["stud_last_name"] . "</td><td>" . $row["date_of_birth"] . "</td><td>" . $row["batch_year"] . "</td></tr>";
echo "</table>";
}
} else {
echo "0 results";
}
$conn->close();
?>

View File

@@ -0,0 +1,214 @@
<!-- <!DOCTYPE html>
<html>
<head>
<title>Display Students</title>
<link rel="stylesheet" href="view.css">
<script>
function selectRadioButton(buttonId) {
var buttons = document.querySelectorAll('.radio-button');
for (var i = 0; i < buttons.length; i++) {
buttons[i].classList.remove('selected');
}
document.getElementById(buttonId).classList.add('selected');
}
function displayStudents() {
var searchType = document.querySelector('.radio-button.selected').getAttribute('data-search-type');
var searchText = document.getElementById("search_text").value.trim();
if (searchText === "") {
alert("Please enter a search term.");
return;
}
var studentList = document.getElementById("student_list");
var searchResult = document.getElementById("search_result");
if (searchType === "course") {
// Display course search result
studentList.innerHTML = `
<table>
<thead>
<tr>
<th>Student Name</th>
<th>Date of Birth</th>
<th>Batch Year</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>1990-01-01</td>
<td>2021-25</td>
</tr>
<tr>
<td>Jane Smith</td>
<td>1992-05-15</td>
<td>2021-25</td>
</tr>
<tr>
<td>Michael Johnson</td>
<td>1988-11-30</td>
<td>2021-25</td>
</tr>
</tbody>
</table>`;
searchResult.innerHTML = "";
} else {
// Display enrollment search result
searchResult.innerHTML = `
<table>
<thead>
<tr>
<th>Student Name</th>
<th>Date of Birth</th>
<th>Batch Year</th>
</tr>
</thead>
<tbody>
<tr>
<td>John Doe</td>
<td>1990-01-01</td>
<td>2021-25</td>
</tr>
</tbody>
</table>`;
studentList.innerHTML = "";
}
}
</script>
</head>
<body>
<h1>Teacher Dashboard</h1>
<div id="search_option">
<button id="search_by_course" class="radio-button selected" data-search-type="course" onclick="selectRadioButton('search_by_course')">Search by Course ID</button>
<button id="search_by_enrollment" class="radio-button" data-search-type="enrollment" onclick="selectRadioButton('search_by_enrollment')">Search by Enrollment Number</button>
</div>
<div id="search">
<input type="text" id="search_text" placeholder="Enter search term">
<button id="click" onclick="displayStudents()">Search</button>
</div>
<div id="student_list"></div>
<div id="search_result"></div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>Display Students</title>
<link rel="stylesheet" href="view.css">
<script>
function selectRadioButton(buttonId) {
var buttons = document.querySelectorAll('.radio-button');
for (var i = 0; i < buttons.length; i++) {
buttons[i].classList.remove('selected');
}
document.getElementById(buttonId).classList.add('selected');
}
function displayStudents() {
var searchType = document.querySelector('.radio-button.selected').getAttribute('data-search-type');
var searchText = document.getElementById("search_text").value.trim();
if (searchText === "") {
alert("Please enter a search term.");
return;
}
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState === XMLHttpRequest.DONE) {
if (xhr.status === 200) {
var response = xhr.responseText;
if (searchType === "course") {
document.getElementById("student_list").innerHTML = response;
document.getElementById("search_result").innerHTML = "";
} else {
document.getElementById("search_result").innerHTML = response;
document.getElementById("student_list").innerHTML = "";
}
} else {
alert('There was a problem with the request.');
}
}
};
xhr.open("GET", "get_students.php?search_type=" + searchType + "&search_text=" + searchText, true);
xhr.send();
}
</script>
</head>
<body>
<h1>Teacher Dashboard</h1>
<div id="search_option">
<button id="search_by_course" class="radio-button selected" data-search-type="course" onclick="selectRadioButton('search_by_course')">Search by Course ID</button>
<button id="search_by_enrollment" class="radio-button" data-search-type="enrollment" onclick="selectRadioButton('search_by_enrollment')">Search by Enrollment Number</button>
</div>
<div id="search">
<input type="text" id="search_text" placeholder="Enter search term">
<button id="click" onclick="displayStudents()">Search</button>
</div>
<div id="student_list"></div>
<div id="search_result"></div>
</body>
</html> -->
<!DOCTYPE html>
<html>
<head>
<title>Display Students</title>
<link rel="stylesheet" href="view.css">
<script>
function selectRadioButton(buttonId) {
var buttons = document.querySelectorAll('.radio-button');
for (var i = 0; i < buttons.length; i++) {
buttons[i].classList.remove('selected');
}
document.getElementById(buttonId).classList.add('selected');
}
function displayStudents() {
var searchType = document.querySelector('.radio-button.selected').getAttribute('data-search-type');
var searchText = document.getElementById("search_text").value.trim();
if (searchText === "") {
alert("Please enter a search term.");
return;
}
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
if (xhr.readyState === XMLHttpRequest.DONE) {
if (xhr.status === 200) {
var response = xhr.responseText;
if (searchType === "course") {
document.getElementById("student_list").innerHTML = response;
document.getElementById("search_result").innerHTML = "";
} else {
document.getElementById("search_result").innerHTML = response;
document.getElementById("student_list").innerHTML = "";
}
} else {
alert('There was a problem with the request.');
}
}
};
xhr.open("GET", "get_students.php?search_type=" + searchType + "&search_text=" + searchText, true);
xhr.send();
}
</script>
</head>
<body>
<h1>Teacher Dashboard</h1>
<div id="search_option">
<button id="search_by_course" class="radio-button selected" data-search-type="course" onclick="selectRadioButton('search_by_course')">Search by Course ID</button>
<button id="search_by_enrollment" class="radio-button" data-search-type="enrollment" onclick="selectRadioButton('search_by_enrollment')">Search by Enrollment Number</button>
</div>
<div id="search">
<input type="text" id="search_text" placeholder="Enter search term">
<button id="click" onclick="displayStudents()">Search</button>
</div>
<div id="student_list"></div>
<div id="search_result"></div>
</body>
</html>

103
nakul/teacher_dash/view.css Normal file
View File

@@ -0,0 +1,103 @@
body {
font-family: Arial, sans-serif;
margin: 20px;
}
h1 {
text-align: center;
margin-bottom: 20px;
padding: 70px;
letter-spacing: 3px;
background-color: #c7c7c7;
}
.radio-button {
display: inline-block;
background-color: #c3c3c3;
border: 2px solid #000000;
padding: 8px 16px;
margin-right: 10px;
border-radius: 4px;
cursor: pointer;
}
.radio-button.selected {
background-color: #000000;
color: #fff;
}
input[type="numbers"] {
padding: 5px;
margin-bottom: 10px;
}
button {
padding: 8px 20px;
background-color: #989898;
color: #fff;
border: none;
border-radius: 4px;
cursor: pointer;
}
button:hover {
background-color: #000000;
}
#search_option {
margin-bottom: 10px;
display: flex;
justify-content: center;
}
#student_list,
#search_result {
margin-top: 20px;
}
table {
width: 100%;
border-collapse: collapse;
}
th, td {
border: 1px solid #ddd;
padding: 8px;
text-align: left;
}
th {
background-color: #c3c3c3;
/* color: #fff; */
}
#student_list table,
#search_result table {
margin-top: 10px;
}
#search {
display: flex;
justify-content: center;
gap: 15px;
margin-top: 20px;
}
#search_by_enrollment, #search_by_course {
width: 300px;
height: 50px;
font-size: 18px;
}
#search_text {
height: 40px;
width: 100%;
font-size: 20px;
padding-left: 14px;
}
#click {
width: 20%;
/* height: 51px; */
font-size: 20px;
}