-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
193 lines (153 loc) · 9.75 KB
/
Copy pathindex.php
File metadata and controls
193 lines (153 loc) · 9.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
<?php
session_start();
include 'dbconnect.php';
?>
<!DOCTYPE html>
<html lang="en-US" dir="ltr">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- ===============================================-->
<!-- Document Title-->
<!-- ===============================================-->
<title>VESIT</title>
<!-- ===============================================-->
<!-- Favicons-->
<!-- ===============================================-->
<link rel="icon" type="image/png" href="images/icons/vesitlogo.png"/>
<meta name="msapplication-TileImage" content="public/assets/img/favicons/mstile-150x150.png">
<meta name="theme-color" content="#ffffff">
<!-- ===============================================-->
<!-- Stylesheets-->
<!-- ===============================================-->
<link href="public/assets/css/theme.css" rel="stylesheet" />
<link href="public/vendors/swiper/swiper-bundle.min.css" rel="stylesheet">
</head>
<body data-bs-spy="scroll" data-bs-target="#navbar">
<nav class="navbar navbar-expand-xl navbar-light fixed-top px-0 pb-0 mb-2" id="navbar" data-navbar-darken-on-scroll="white">
<div class="container-fluid align-items-center py-2"><a class="navbar-brand flex-center" href="index.html"><img class="logo" src="public/assets/img/vesit.png" alt="open enterprise" /><span class="ms-2 d-none d-sm-block fw-bold">VESIT</span></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 justify-content-end" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto mt-3 mt-xl-0">
<?php
if(isset($_SESSION['name'])){
if(isset($_SESSION['teacher_id'])){
echo '<li class="nav-item ps-0 ps-xl-4 ms-2"><a class="nav-link fs-2 fw-medium" href="teacher_home.php">Select Class </a></li>';
}
elseif(isset($_SESSION['stud_id'])){
$stud_id=$_SESSION['stud_id'];
$sql = "SELECT * FROM student WHERE Student_Id=$stud_id";
$result=mysqli_query($con, $sql);
$row = mysqli_fetch_array($result);
if($row['Locality']==NULL or $row['Medu']==NULL or $row['Relationship']==Null){
echo '<li class="nav-item ps-0 ps-xl-4 ms-2"><a class="nav-link fs-2 fw-medium" href="personal.php">Update Details</a></li>';
}
else{
$sql1="select Pred_Mark from stu_marks where student_id=$stud_id limit 1;";
$result1=mysqli_query($con, $sql1);
$row1 = mysqli_fetch_row($result1);
// var_dump($result1);
if($row1[0]==NULL){
echo '<li class="nav-item ps-0 ps-xl-4 ms-2"><a class="nav-link fs-2 fw-medium" href="personal.php">Update Details</a></li>';
echo '<li class="nav-item ps-0 ps-xl-4 ms-2"><a class="nav-link fs-2 fw-medium" href="stumarks.php">Update Marks</a></li>';
}else{
echo '<li class="nav-item ps-0 ps-xl-4 ms-2"><a class="nav-link fs-2 fw-medium" href="predict.php">Predict Marks</a></li>';
echo '<li class="nav-item ps-0 ps-xl-4 ms-2"><a class="nav-link fs-2 fw-medium" href="personal.php">Update Details</a></li>';
echo '<li class="nav-item ps-0 ps-xl-4 ms-2"><a class="nav-link fs-2 fw-medium" href="stumarks.php">Update Marks</a></li>';
}
}
}
echo '<li class="nav-item ps-0 ps-xl-4 ms-2"><a class="nav-link fs-2 fw-medium" href="changepass.php">Reset Password</a></li>';
echo '<li class="nav-item ps-0 ps-xl-4 ms-2"><a class="nav-link fs-2 fw-medium" href="about.php">About Us</a></li>';
echo '<li class="nav-item ps-0 ps-xl-4 ms-2"><a class="nav-link fs-2 fw-medium" href="logout.php">Log out </a></li>';
}
else{
echo '<li class="nav-item ps-0 ps-xl-4 ms-2"><a class="nav-link fs-2 fw-medium" href="login.php">Login </a></li>
<li class="nav-item ps-0 ps-xl-4 ms-2"><a class="nav-link fs-2 fw-medium" href="adminlogin.php">Admin Login </a></li>';
}
?>
</ul>
</div>
</div>
</nav>
<!-- ===============================================-->
<!-- Main Content-->
<!-- ===============================================-->
<main class="main" id="top">
<!-- ============================================-->
<!-- <section> begin ============================-->
<section class="pt-8 py-lg-0" id="hero">
<div class="container-xxl mt-5">
<div class="row align-items-center min-vh-lg-100">
<div class="col-lg order-lg-1 text-center"><img style="width:85%; padding-top:10%" class="img-fluid" src="public/assets/img/illustrations/college1.jpg" alt="" /></div>
<div class="col-lg mt-5 mt-lg-0">
<h2 class="lh-sm font-cursive fw-medium fs-6 fs-sm-8 fs-md-11 fs-lg-9 fs-xl-11 fs-xxl-12">Student Performance Prediction <br class="d.none d-xl-block" /></h2>
<p class="mt-4 fs-2 fs-md-4 lh-sm">A Model To Understand Students More Efficiently and Improve Their Results.</p>
</div>
</div>
</div>
<!-- end of .container-->
</section>
<!-- <section> close ============================-->
<!-- ============================================-->
<!-- ============================================-->
<!-- <section> begin ============================-->
<section class="pt-xxl-0" id="features">
<div class="container-xxl">
<div class="row justify-content-center text-center">
<div class="col-lg-10 col-xl-8">
<h1 class="display-6 font-cursive">The only person who is educated is the one who has learned how to learn …and change.</h1>
<p class="fs-md-1 mt-4">Our Model is based on modern technologies such as Machine Learning which predicts the future results of students taking into consideration many factors such as alcohol comsumption, relationship status,etc and their previous results. Using these predicitions Institutions and Teachers can work efficiently towards the betterment of the results.</p>
</div>
</div>
<div class="row row-cols-1 row-cols-xl-3 g-4 mt-3 text-center">
<div class="col-12 col-md-6">
<div class="card py-md-6 px-md-4 mt-3 h-100 box-shadow-all border-0">
<div class="card-body"><img src="public/assets/img/machine_learning.jpg" class="images" alt="">
<p class="py-3 heading">Machine Learning</p>
<p class="lead mb-0">Machine learning is an application of artificial intelligence (AI) that provides systems the ability to automatically learn and improve from experience without being explicitly programmed.</p>
</div>
</div>
</div>
<div class="col-12 col-md-6">
<div class="card py-md-6 px-md-4 mt-3 h-100 box-shadow-all border-0">
<div class="card-body"><img src="public/assets/img/python.png" class="images" alt="" >
<p class="py-3 heading">Python</p>
<p class="lead mb-0">Python is an interpreted, object-oriented, high-level programming language with dynamic semantics.</p>
</div>
</div>
</div>
<div class="col-12">
<div class="card py-md-6 px-md-4 mt-3 h-100 box-shadow-all border-0">
<div class="card-body"><img src="public/assets/img/data_mining.jpg" class="images" alt="" />
<p class="py-3 heading">Data Mining</p>
<p class="lead mb-0">Data mining is the process of analyzing massive volumes of data to discover business intelligence that helps companies solve problems, mitigate risks, and seize new opportunities.</p>
</div>
</div>
</div>
</div>
</div>
<!-- end of .container-->
</section>
<!-- <section> close ============================-->
<!-- ============================================-->
<!-- ============================================-->
<!-- ============================================-->
</main>
<!-- ===============================================-->
<!-- End of Main Content-->
<!-- ===============================================-->
<!-- ===============================================-->
<!-- JavaScripts-->
<!-- ===============================================-->
<script src="public/vendors/@popperjs/popper.min.js"></script>
<script src="public/vendors/bootstrap/bootstrap.min.js"></script>
<script src="public/vendors/is/is.min.js"></script>
<script src="public/vendors/swiper/swiper-bundle.min.js"> </script>
<script src="https://polyfill.io/v3/polyfill.min.js?features=window.scroll"></script>
<script src="public/assets/js/theme.js"></script>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Abril+Fatface&family=Roboto:wght@400;500;600;700;900&display=swap" rel="stylesheet">
</body>
</html>