0% found this document useful (0 votes)
14 views61 pages

Web Development

web

Uploaded by

Prakash Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views61 pages

Web Development

web

Uploaded by

Prakash Sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 61

CENTURION UNIVERSITY OF TECHNOLOGY AND MANAGEMENT

A project report submitted For


ADVANCED WEB PROGRAM
On the topic
“Student Management System”

Submitted in partial fulfillments for the


MASTER IN COMPUTER APPLICATION
Second Semester
(2023-25)

SCHOOL OF APPLIED SCIENCE

Submitted By:
Nikhil Maharana(234420100001) Priyas Palai(234420100016)
Chinmaya Kumar Tarei(234420100002) Jyoti Ranjan Dalai(234420100018)
Amaresh Tarei(234420100003) Linkan Kumar Jena(234420100021)
A Asutosh Prasad Rao(234420100004) Ipsita Priyadarshini Sahoo(234420100022)
Amit Kumar Praharaj(234420100005) Adarsha Dalabehera(234420100023)
Samraju Dimpal(234420100006) Samanta Biswajit Ranasingh(234420100024)
Bikash Pradhan(234420100007) Subhankar Patra(234420100025)
Roshan Kumar Nayak(234420100008) Md. Taufiq Raja(234420100026)
Chinmaya Pradhan(234420100009) Ashutosh Maharana(234420100028)
Chandan Pollai(234420100010) Saswat Stita Prangya(234420100029)
Sumitra Samal(234420100012) Jajnadatta Achary(234420100031)
Padmini Rout(234420100013) Kisan Kumar Sethi(234420100032)
Manoj Kumar Nayak(234420100014) Prakash Chandra Sahu(234420100033)
Saroj Kumar Sahu(234420100015) Santosh Sahu(234420100034)
Sagar Muduli(234420100035)

Under the guidance of


SANJAYA KUMAR MOHANTY
(Lecture in MCA)

CENTURION UNIVERSITY OF TECHNOLOGY AND MANAGEMENT


Chatrapur Campu Skaliabali Chhak, P.O-Chatrapur, Dist- Ganjam,Odisha,
India,Pin-761020
CENTURION UNIVERSITY OF TECHNOLOGY AND MANAGEMENT

SCHOOL OF APPLIED SCIENCE

CERTIFICATE

This is to certify that the project entitled “Student Management System ”, is a bona fide work
carried out by Nikhil Maharana (234420100001),Priyas Palai(234420100016),Chinmaya Kumar
Tarei(234420100002),Jyoti Ranjan Dalai(234420100018),Amaresh Tarei(234420100003),Linkan
KumarJena(234420100021),AAsutoshPrasadRao(234420100004),IpsitaPriyadarshiniSahoo(234420100
022),AmitKumarPraharaj(234420100005),AdarshaDalabehera(234420100023),SamrajuDimpal(23442
0100006),SamantaBiswajitRanasingh(234420100024),BikashPradhan(234420100007),SubhankarPatra
(234420100025),RoshanKumarNayak(234420100008),Md.TaufiqRaja(234420100026),ChinmayaPradh
an(234420100009),AshutoshMaharana(234420100028),ChandanPollai(234420100010),SaswatStitaPran
gya(234420100029),SumitraSamal(234420100012),JajnadattaAchary(234420100031),PadminiRout(234
420100013),Kisan Kumar Sethi(234420100032),Manoj Kumar Nayak(234420100014),PrakashChandra
Sahu(234420100033),SarojKumarSahu(234420100015),SantoshSahu(234420100034),SagarMuduli(234
420100035), in partial fulfillment of the Master In Computer Application In Centurion University Of
TechnologyAnd Management, during the year2023-2025.

It is certified that all corrections/suggestions indicated during reviews have been in corporate in the
report. The project report satisfies the academic requirements in respect of the Phase I project work
prescribed for the said Degree.

Guided by
SANJAYA KU. MOHANTY
( Lecture of MCA) Signature of Principal
CENTURION UNIVERSITY OF TECHNOLOGY AND MANAGEMENT

SCHOOL OF APPLIED SCIENCE

DECLARATION

I, Nikhil Maharana (234420100001),Priyas Palai(234420100016),Chinmaya Kumar


Tarei(234420100002),Jyoti Ranjan Dalai(234420100018),Amaresh Tarei(234420100003),Linkan
KumarJena(234420100021),AAsutoshPrasadRao(234420100004),IpsitaPriyadarshiniSahoo(234420100
022),AmitKumarPraharaj(234420100005),AdarshaDalabehera(234420100023),SamrajuDimpal(23442
0100006),SamantaBiswajitRanasingh(234420100024),BikashPradhan(234420100007),SubhankarPatra
(234420100025),RoshanKumarNayak(234420100008),Md.TaufiqRaja(234420100026),ChinmayaPradh
an(234420100009),AshutoshMaharana(234420100028),ChandanPollai(234420100010),SaswatStitaPran
gya(234420100029),SumitraSamal(234420100012),JajnadattaAchary(234420100031),PadminiRout(234
420100013),Kisan Kumar Sethi(234420100032),Manoj Kumar Nayak(234420100014),PrakashChandra
Sahu(234420100033),SarojKumarSahu(234420100015),SantoshSahu(234420100034),SagarMuduli(234
420100035),bonafide students of Centurion University Of Technology And Management, here by
declare that the dissertation entitled “Student Management System ”,has been carried out by us under
the guidance of SANJAYA KUMAR MOHANTY, Lecture in MCA , in partial fulfillment of the
requirements for theMaster of Computer Application, of the Centurion University Of Technology And
Management, Chatrapur during the academic year 2023-2025.

Guided by
SANJAYA KU. MOHANTY
( Lecture of MCA) Signature of Principal

(Signature of Student)
CENTURION UNIVERSITY OF TECHNOLOGY AND MANAGEMENT

ACKNOWLEDGEMENT

The satisfaction and euphoria that accompany a successful completion of any


taskwould be incomplete without the mention of people who made it possible,
success isthe epitome of hard work and perseverance, but steadfast of all is
encouragingguidance. So, it is with gratitude that we acknowledge all those whose
guidance andencouragement served as beacon of light and crowned our effort with
success. Wewould like to thank JYOTI PRAKASH DAS , Principal of CUTM,
chatrapur, for providing an excellent academic environment in the college and his
never-endingsupport for the MASTER IN COMPUTER APPLICATION program.
We considerit a privilege and honor to express our sincere gratitude to our internal
guide Sanjay Kumar Mohanty, Lecture in MCA , School of Applied Science (MCA)
for their valuable guidance throughout the tenure of this project work. We would
alsolike to thank all the faculty members who have always been very Co- operative
andgenerous. Conclusively, we also thank all the non-teaching staff and all others
whohave done immensehelpdirectlyorindirectlyduringour project.

Nikhil Maharana(234420100001) Priyas Palai(234420100016)


Chinmaya Kumar Tarei(234420100002) Jyoti Ranjan Dalai(234420100018)
Amaresh Tarei(234420100003) Linkan Kumar Jena(234420100021)
A Asutosh Prasad Rao(234420100004) Ipsita Priyadarshini Sahoo(234420100022)
Amit Kumar Praharaj(234420100005) Adarsha Dalabehera(234420100023)
Samraju Dimpal(234420100006) Samanta Biswajit Ranasingh(234420100024)
Bikash Pradhan(234420100007) Subhankar Patra(234420100025)
Roshan Kumar Nayak(234420100008) Md. Taufiq Raja(234420100026)
Chinmaya Pradhan(234420100009) Ashutosh Maharana(234420100028)
Chandan Pollai(234420100010) Saswat Stita Prangya(234420100029)
Sumitra Samal(234420100012) Jajnadatta Achary(234420100031)
Padmini Rout(234420100013) Kisan Kumar Sethi(234420100032)
Manoj Kumar Nayak(234420100014) Prakash Chandra Sahu(234420100033)
Saroj Kumar Sahu(234420100015) Santosh Sahu(234420100034)
Sagar Muduli(234420100035)

Signature of Lecture Signature of Principal


ABSTRACT

This project presents a comprehensive Student Management System (SMS)


developed using HTML, JavaScript, CSS, and PHP technologies. The SMS is
designed to streamline and automate various administrative tasks related to
student management within educational institutions. The system allows
administrators to efficiently manage student information, including
enrollment, attendance, grades, and personal details. Moreover, it facilitates
communication between students, faculty, and administration through features
such as messaging and notifications. The system's user-friendly interface
ensures accessibility for both administrators and students, enhancing overall
efficiency and effectiveness in managing academic processes. Through the
integration of modern web technologies, this SMS offers a robust solution for
educational institutions seeking to optimize their student management
workflows.
TABLE OF CONTENT

1 INTRODUCTION
2 OBJECTIVE
3 CODING
4 OUTPUT
5 SCOPE OF SMS
6 CONCLUSION
Introduction

A Student Management System (SMS) is a comprehensive software platform


designed to streamline and automate various administrative tasks within
educational institutions. It serves as a centralized hub for managing student
data, academic records, course information, and other relevant aspects of
student life. Here's a detailed introduction to the components and
functionalities typically found in a Student Management System:

1. Student Information Management: The core function of an SMS is to


maintain a centralized database of student information. This includes basic
details such as name, address, contact information, as well as more specific
data like enrollment status, academic performance, attendance records, and
disciplinary history.

2. Admissions and Enrollment: SMS facilitates the admissions process by


allowing prospective students to submit applications online, track the status of
their applications, and receive communication from the institution regarding
admission decisions. It also manages enrollment procedures, class
assignments, and generates student IDs.

3. Academic Records Management: Academic records play a crucial role in


tracking students' progress throughout their academic journey. The SMS stores
information related to courses taken, grades received, transcripts,
certifications, and degrees obtained. It allows administrators, faculty, and
students themselves to access and update this information as needed.

4. Attendance Tracking: SMS provides tools for monitoring student attendance


in classes and other academic activities. It may include features such as
electronic attendance capture through biometric systems or mobile apps,
automated notifications to students with poor attendance, and generation of
attendance reports for administrative purposes.

5. Grading and Transcript Generation: Faculty members can input grades for
assignments, exams, and other assessments directly into the SMS, which then
calculates final grades and generates transcripts for individual students. This
feature helps maintain accuracy and consistency in grading practices across
courses and departments.

6. Course Management: SMS assists in managing course offerings, scheduling


classes, assigning instructors, and allocating resources such as classrooms and
teaching materials. It also enables students to browse course catalogs, register
for classes, and view their class schedules online.
7. Communication and Collaboration: Effective communication between
students, faculty, and administrators is essential for the smooth functioning of
an educational institution. SMS often includes communication tools such as
email integration, messaging systems, discussion forums, and announcement
boards to facilitate interactions and disseminate important information.

8. Financial Management: In addition to academic matters, SMS may


incorporate features for managing student finances, including tuition
payments, fee structures, scholarships, and financial aid disbursements. It
generates invoices, tracks payment statuses, and provides financial reports to
aid in budgeting and financial planning.

9. Reporting and Analytics: Data collected within the SMS can be utilized to
generate various reports and analytics to monitor key performance indicators,
identify trends, and make data-driven decisions. This includes reports on
student demographics, enrollment trends, academic performance, and retention
rates.

10. Security and Data Privacy: Given the sensitive nature of student data, SMS
must prioritize security and data privacy measures to safeguard information
against unauthorized access, data breaches, and other security threats. This
involves implementing robust authentication mechanisms, encryption
protocols, and compliance with relevant data protection regulations.

Overall, a Student Management System plays a vital role in enhancing the


efficiency, transparency, and effectiveness of administrative processes within
educational institutions, thereby improving the overall student experience and
academic outcomes.

Objective:
The objective of the Student Management System project is to develop a
comprehensive and user-friendly web application that facilitates efficient
management of student-related information within educational
institutions. By integrating HTML, CSS, JavaScript, PHP,Bootstrap ,
jquery and MySQL, the system aims to streamline various administrative
tasks such as student registration, attendance tracking, grading, and
communication between students, faculty, and administrators. The
ultimate goal is to enhance organizational effectiveness, promote
transparency, and improve overall academic management processes.
TOOLS /PLATFORM AND SOFTWARE REQUIREMENT :

Name of component Specification


Operating system Window 11
Language Html,css,java script
Data base My sql server
Browser Any ( opera, chrome )
Web server Wamp server
Software development kit Notepad++ , chrome
Scripting language enable Java script

Coding:
ADMIN –PROFILE
<?php session_start();
//error_reporting(0); include('includes/dbconnection.php'); if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{ if(isset($_POST['submit'])){
$aid=$_SESSION['aid'];
$aname=$_POST['adminname'];
$aemail=$_POST['aemailid'];
$query=mysqli_query($con,"update tbl_login set
FullName='$aname',AdminEmail='$aemail' whereid='$aid'");
if($query){
echo '<script>alert("Admin Profile updated successfully")</script>'; echo
"<script>window.location.href='admin-profile.php'</script>";
} } ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Edit Profile</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css">
</head>
<body>
<form method="post" >
<div id="wrapper">
<?php include('leftbar.php')?>;
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h4 class="page-header"> <?php echo strtoupper("welcome"."
".htmlentities($_SESSION['login']));?></h4>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<?php
$adminid=intval($_SESSION['aid']);
$query=mysqli_query($con,"SELECT * FROM tbl_login where id='$adminid'");
$sn=1; while($res=mysqli_fetch_array($query)){?>
<div class="panel-heading"><b>Edit Admin Profile</b></div>
<div class="panel-body">
<div class="row">
<div class="col-lg-10">
<div class="form-group">
<div class="col-lg-4">
<label>Name</label></div>
<div class="col-lg-6">
<input class="form-control" name="adminname" id="adminname" value="<?php
echo
$res['FullName'];?>" required="required">
</div></div><br><br>
<div class="form-group">
<div class="col-lg-4">
<label>Email id</label></div>
<div class="col-lg-6">
<input class="form-control" name="aemailid" id="aemailid" value="<?php echo
$res['AdminEmail'];?>" required="required"> </div></div><br><br>
<div class="form-group"><div class="col-lg-4">
<label>Logind Id/ username</label></div>
<div class="col-lg-6">
<input class="form-control" name="loginid" id="loginid" value="<?php echo
$res['loginid'];?>" disabled required="required">
<small style="color:red;">Logind Id/ username can't be edit</small></div>
</div> <br><br>
<?php } ?>
<div class="form-group"><div class="col-lg-4"></div>
<div class="col-lg-6"><br><br><input type="submit" class="btn btn-primary"
name="submit" value="Update Profile"></button></div>
</div></div></div></div></div></div></div></div></div></div>
<script src="bower_components/jquery/dist/jquery.min.js"
type="text/javascript"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"
type="text/javascript"></script><!-- Metis Menu Plugin JavaScript -->
<script src="bower_components/metisMenu/dist/metisMenu.min.js"
type="text/javascript"></script><!-- Custom Theme JavaScript -->
<script src="dist/js/sb-admin-2.js" type="text/javascript"></script>
</form></body></html><?php } ?>
COURCESS-AVAIABLE
<?php
$dbuser="root";
$dbpass="";
$host="localhost";
$dbname = "studentrecorddb";
$mysqli = new mysqli($host, $dbuser, $dbpass, $dbname);
if(!empty($_POST['cshort'])){
$cshort=$_POST['cshort'];
$result ="SELECT count(*) FROM tbl_course WHERE cshort=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('s',$cshort);
$stmt->execute();
$stmt->bind_result($count);
$stmt->fetch();
$stmt->close();if($count>0)
echo "<span style='color:red'> Course Short Name Already Exist .</span>";
}
if(!empty($_POST['cshort1'])){
$cshort=$_POST['cshort1'];
$result ="SELECT count(*) FROM subject WHERE cshort=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('i',$cshort);
$stmt->execute();
$stmt->bind_result($count);
$stmt->fetch();
$stmt->close();if($count>0)
echo "<span style='color:red'> Course Short Name Already Exist .</span>";
}
if(!empty($_POST['cfull'])){
$cfull=$_POST['cfull'];
$result ="SELECT count(*) FROM tbl_course WHERE cfull=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('s',$cfull);
$stmt->execute();
$stmt->bind_result($count);
$stmt->fetch();
$stmt->close();if($count>0)
echo "<span style='color:red'> Course Full Name Already Exist .</span>";
}
if(!empty($_POST['cfull1'])){
$cfull=$_POST['cfull1'];
$result ="SELECT count(*) FROM subject WHERE cfull=?";
$stmt = $mysqli->prepare($result);
$stmt->bind_param('s',$cfull);
$stmt->execute();
$stmt->bind_result($count);
$stmt->fetch();
$stmt->close();if($count>0)
echo "<span style='color:red'> Course Full Name Already Exist .</span>";
} ?>
DASHBOARD
<?php session_start(); include('includes/dbconnection.php'); if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Dashboard</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"
rel="stylesheet"><!-- MetisMenu CSS -->
<link href="bower_components/metisMenu/dist/metisMenu.min.css"
rel="stylesheet"><!-- Custom CSS -->
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css"></head><body>
<form method="post" >
<div id="wrapper">
<?php include('leftbar.php')?>;
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h4 class="page-header">
<?php echo strtoupper("welcome"." ".htmlentities($_SESSION['login']));?></h4>
</div><!-- /.col-lg-12 -->
</div><!-- /.row -->
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Add Course</div>
<div class="panel-body"><div class="row"><div class="col-lg-12">
<div class="col-lg-4 col-md-6">
<div class="panel panel-primary">
<div class="panel-heading"> <div class="row">
<div class="col-xs-3">
<i class="fa fa-file fa-5x"></i> </div>
<?php $query=mysqli_query($con,"SELECT cid FROM tbl_course");
$listedcourses=mysqli_num_rows($query); ?>
<div class="col-xs-9 text-right">
<div class="huge"><?php echo htmlentities($listedcourses);?></div>
<div>Listed Courses</div> </div></div></div>
<a href="manage-courses.php">
<div class="panel-footer">
<span class="pull-left">View Details</span>
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>
</div></a> </div></div>
<!------------Subjects >
<div class="col-lg-4 col-md-6">
<div class="panel panel-green">
<div class="panel-heading">
<div class="row"><div class="col-xs-3">
<i class="fa fa-files-o fa-5x"></i></div>
<?php
$query1=mysqli_query($con,"SELECT subid FROM subject");
$tsubjects=mysqli_num_rows($query1);
?>
<div class="col-xs-9 text-right">
<div class="huge"><?php echo htmlentities($tsubjects);?></div>
<div>Subjects</div></div></div></div>
<a href="manage-subjects.php">
<div class="panel-footer">
<span class="pull-left">Courses Wise Subjects</span>
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div>
</div> </a> </div></div>
<!---- Students >
<div class="col-lg-4 col-md-6">
<div class="panel panel-yellow">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-users fa-fw fa-5x"></i></div>
<?php
$query2=mysqli_query($con,"SELECT id FROM registration");
$totalstudents=mysqli_num_rows($query2);
?>
<div class="col-xs-9 text-right">
<div class="huge"><?php echo htmlentities($totalstudents);?></div>
<div>Total Students</div></div></div></div>
<a href="manage-students.php">
<div class="panel-footer">
<span class="pull-left">View Details</span>
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div></div></a> </div></div>
<!---Countries >
<div class="col-lg-4 col-md-6">
<div class="panel panel-red">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-globe fa-5x"></i></div>
<?php
$query3=mysqli_query($con,"SELECT id FROM countries");
$countires=mysqli_num_rows($query3);
?>
<div class="col-xs-9 text-right">
<div class="huge">
<?php
echo htmlentities($countires);?></div>
<div>Listed Countires</div> </div>
</div></div>
<a href="manage-users.php">
<div class="panel-footer">
<span class="pull-left">View Details</span>
<span class="pull-right"><i class="fa fa-arrow-circle-right"></i></span>
<div class="clearfix"></div></div> </a> -->
</div></div>
<!----- States--->
<div class="col-lg-4 col-md-6">
<div class="panel panel-yellow">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-file fa-5x"></i>
</div>
<?php
$query4=mysqli_query($con,"SELECT id FROM states");
$states=mysqli_num_rows($query4);
?>
<div class="col-xs-9 text-right">
<div class="huge"><?php echo htmlentities($states);?></div>
<div>Listed States</div>
</div> </div> </div></div></div>
<!----------Cities >
<div class="col-lg-4 col-md-6">
<div class="panel panel-primary">
<div class="panel-heading">
<div class="row">
<div class="col-xs-3">
<i class="fa fa-file fa-5x"></i> </div>
<?php $query5=mysqli_query($con,"SELECT id FROM cities");
$cities=mysqli_num_rows($query5);
?>
<div class="col-xs-9 text-right">
<div class="huge"><?php echo htmlentities($cities);?></div>
<div>Listed Cities</div> </div></div></div>
</div></div></div></div></div></div></div></div>
</div></div></div></div>
<script src="bower_components/jquery/dist/jquery.min.js"
type="text/javascript"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"
type="text/javascript"></script>
<script src="bower_components/metisMenu/dist/metisMenu.min.js"
type="text/javascript"></script>
<script src="dist/js/sb-admin-2.js" type="text/javascript"></script>
<script>
function courseAvailability() {
$("#loaderIcon").show();
jQuery.ajax({url: "course_availability.php",data:'cshort='+$("#cshort").val(),type:
"POST", success:function(data){
$("#course-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
function coursefullAvail() {
$("#loaderIcon").show();
jQuery.ajax({url: "course_availability.php",data:'cfull='+$("#cfull").val(),type:
"POST", success:function(data){
$("#course-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script></form></body></html>
<?php } ?>
ADD-COURCESS
<?php session_start(); include('includes/dbconnection.php'); if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{ if(isset($_POST['submit'])){
$cshortname=$_POST['course-short'];
$cfullname=$_POST['course-full'];
$cdate=$_POST['cdate'];
$query=mysqli_query($con,"insert into
tbl_course(cshort,cfull,cdate)values('$cshortname','$cfullname','$cdate')"); if($query){
echo '<script>alert("Course Added successfully")</script>';
echo "<script>window.location.href='manage-courses.php'</script>";
} else{
echo '<script>alert("Something went wrong. Please try again")</script>'; echo
'<script>window.location.href=add-course.php</script>';
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>add course</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css">
</head>
<body>
<form method="post" >
<div id="wrapper">
<?php include('leftbar.php')?>;
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h4 class="page-header"> <?php echo strtoupper("welcome"."
".htmlentities($_SESSION['login']));?></h4>
</div><!-- /.col-lg-12 --></div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Add Course</div>
<div class="panel-body">
<div class="row"><div class="col-lg-10">
<div class="form-group">
<div class="col-lg-4">
<label>Course Short Name<span id="" style="font-
size:11px;color:red">*</span></label>
</div><div class="col-lg-6">
<input class="form-control" name="course-short" id="cshort" required="required"
onblur="courseAvailability()">
<span id="course-availability-status" style="font-
size:12px;"></span></div></div><br><br>
<div class="form-group"><div class="col-lg-4">
<label>Course Full Name<span id="" style="font-
size:11px;color:red">*</span></label>
</div><div class="col-lg-6">
<input class="form-control" name="course-full" id="cfull" required="required"
onblur="coursefullAvail()">
<span id="course-status" style="font-size:12px;"></span></div></div><br><br>
<div class="form-group"><div class="col-lg-4"><label>Creation Date</label>
</div><div class="col-lg-6">
<input class="form-control" value="<?php echo date('d-m-Y');?>"
readonly="readonly" name="cdate"></div></div></div><br><br>
<div class="form-group"><div class="col-lg-4"></div>
<div class="col-lg-6"><br><br>
<input type="submit" class="btn btn-primary" name="submit" value="Create
Course"></button>
</div></div></div></div></div></div></div></div></div></div></div>
<script
src="bower_components/jquery/dist/jquery.min.js"type="text/javascript"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"
type="text/javascript"></script><!-- Metis Menu Plugin JavaScript -->
<script src="bower_components/metisMenu/dist/metisMenu.min.js"
type="text/javascript"></script>
<script src="dist/js/sb-admin-2.js" type="text/javascript"></script>
<script>
function courseAvailability() {
$("#loaderIcon").show();
jQuery.ajax({url: "course_availability.php",data:'cshort='+$("#cshort").val(),type:
"POST", success:function(data){
$("#course-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
function coursefullAvail() {
$("#loaderIcon").show(); jQuery.ajax({
url: "course_availability.php", data:'cfull='+$("#cfull").val(),type: "POST",
success:function(data){
$("#course-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script></form></body></html>
<?php } ?>
ADD-SUBJECT
<?php session_start();
//error_reporting(0); include('includes/dbconnection.php'); if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{ if(isset($_POST['submit'])){
$cdata=$_POST['course-short'];
$coursedata=explode('-',$cdata);
$cshortname=$coursedata['0'];
$cfullname=$coursedata['1'];
$sb1=$_POST['sub1'];
$sb2=$_POST['sub2'];
$sb3=$_POST['sub3'];
$sb4=$_POST['sub4'];
$query=mysqli_query($con,"insert into
subject(cshort,cfull,sub1,sub2,sub3,sub4)values('$cshortname','$cfullname','$sb1','$sb2
','$sb3','$sb4 ')");
if($query){
echo '<script>alert("Subject Added successfully")</script>';
echo "<script>window.location.href='manage-subjects.php'</script>";
} else{
echo '<script>alert("Something went wrong. Please try again")</script>'; echo
'<script>window.location.href=add-subject.php</script>';
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"
rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css">
</head>
<body>
<form method="post" >
<div id="wrapper">
<?php include('leftbar.php')?>;
<div id="page-wrapper"><div class="row">
<div class="col-lg-12">
<h4 class="page-header"> <?php echo strtoupper("welcome"."
".htmlentities($_SESSION['login']));?></h4>
</div><!-- /.col-lg-12 --></div><!-- /.row -->
<div class="row"><div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Add Subject</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-10">
<div class="form-group">
<div class="col-lg-4">
<label>Course Short Name<span id="" style="font-
size:11px;color:Red">*</span></label>
</div><div class="col-lg-6">
<select class="form-control" name="course-short" id="cshort"
onchange="courseAvailability()" required="required" ><option
VALUE="">SELECT</option>
<?php $query=mysqli_query($con,"select * from tbl_course");
while($res=mysqli_fetch_array($query) ) { ?>
<option VALUE="<?php echo htmlentities($res['cid']."-".$res['cfull']);?>"><?php
echohtmlentities($res['cshort'])?> (<?php echo htmlentities($res['cfull'])?>)</option>
<?php }?> </div> </select>
<span id="course-availability-status" style="font-size:12px;"></span>
</div> </div><br><br>
<div class="form-group">
<div class="col-lg-4">
<label>Subject 1</label></div>
<div class="col-lg-6">
<input class="form-control" name="sub1" required>
</div> </div><br><br>
<div class="form-group">
<div class="col-lg-4">
<label>Subject 2</label></div>
<div class="col-lg-6">
<input class="form-control" name="sub2" required>
</div> </div><br><br>
<div class="form-group">
<div class="col-lg-4">
<label>Subject 3</label></div>
<div class="col-lg-6">
<input class="form-control" name="sub3" required>
</div></div><br><br>
<div class="form-group">
<div class="col-lg-4">
<label>Subject 4</label>
</div><div class="col-lg-6">
<input class="form-control" name="sub4" >
</div></div></div><br><br><br>
<div class="form-group">
<div class="col-lg-4">
</div><div class="col-lg-6"><br><br>
<input type="submit" class="btn btn-primary" name="submit" value="Add
Subject"></button>
</div></div></div></div></div></div></div></div></div></div></div>
<script src="bower_components/jquery/dist/jquery.min.js"
type="text/javascript"></script>
<script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"
type="text/javascript"></script>
<script src="../bower_components/metisMenu/dist/metisMenu.min.js"
type="text/javascript"></script>
<script src="../dist/js/sb-admin-2.js" type="text/javascript"></script>
<script>function coursefullAvail() {
$("#loaderIcon").show();
jQuery.ajax({url: "course_availability.php",data:'cfull1='+$("#cfull").val(),type:
"POST", success:function(data){
$("#course-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
function courseAvailability() {
$("#loaderIcon").show();
jQuery.ajax({url: "course_availability.php",data:'cshort1='+$("#cshort").val(),type:
"POST", success:function(data){
$("#course-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script></form></body></html>
<?php } ?>
EDIT-COURCESS
<?php session_start(); include('includes/dbconnection.php'); if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{ if(isset($_POST['submit'])){
$cshortname=$_POST['course-short'];
$cfullname=$_POST['course-full'];
$udate=$_POST['udate'];
$cid=intval($_GET['cid']);
$query=mysqli_query($con,"update tbl_course set
cshort='$cshortname',cfull='$cfullname',cdate='$udate' where cid='$cid'"); if($query){
echo '<script>alert("Course updated successfully")</script>';
echo "<script>window.location.href='manage-courses.php'</script>";
} else{
echo '<script>alert("Something went wrong. Please try again")</script>'; echo
'<script>window.location.href=add-course.php</script>';
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title></title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="../bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css">
</head><body>
<form method="post" ><div id="wrapper">
<?php include('leftbar.php')?>;
<div id="page-wrapper">
<div class="row"><div class="col-lg-12">
<h4 class="page-header"> <?php echo strtoupper("welcome"."
".htmlentities($_SESSION['login']));?></h4>
</div><!-- /.col-lg-12 --></div><!-- /.row -->
<div class="row"><div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Edit Course</div>
<div class="panel-body">
<div class="row"><div class="col-lg-10">
<?php $cid=intval($_GET['cid']);
$query=mysqli_query($con,"select * from tbl_course where cid='$cid'");
$sn=1;
$count=mysqli_num_rows($query); if($count>0){
while($res=mysqli_fetch_array($query)){?>
<div class="form-group">
<div class="col-lg-4">
<label>Course Short Name<span id="" style="font-size:11px;color:red">*</span>
</label>
</div>
<div class="col-lg-6">
<input class="form-control" name="course-short" id="cshort" value="<?php echo
$res['cshort'];?>" required="required" onblur="courseAvailability()">
<span id="course-availability-status" style="font-
size:12px;"></span></div></div><br><br>
<div class="form-group">
<div class="col-lg-4">
<label>Course Full Name<span id="" style="font-
size:11px;color:red">*</span></label>
</div><div class="col-lg-6">
<input class="form-control" name="course-full" id="cfull" value="<?php echo
$res['cfull'];?>" required="required" onblur="coursefullAvail()">
<span id="course-status" style="font-size:12px;"></span></div>
</div> <br><br><div class="form-group">
<div class="col-lg-4"> <label>Date</label>
</div><div class="col-lg-6">
<input class="form-control" value="<?php echo date('d-m-Y');?>"
readonly="readonly" name="udate"> </div></div></div><br><br>
<?php }} else { ?>
<h5 style="color:red;" align="center">No record found</h5>
<?php } ?>
<div class="form-group"><div class="col-lg-4"></div>
<div class="col-lg-6"><br><br>
<input type="submit" class="btn btn-primary" name="submit" value="Update
Course"></button>
</div></div></div></div></div></div></div></div></div></div></div>
<script
src="bower_components/jquery/dist/jquery.min.js"type="text/javascript"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"
type="text/javascript"></script>
<script src="bower_components/metisMenu/dist/metisMenu.min.js"
type="text/javascript"></script><!-- Custom Theme JavaScript -->
<script src="dist/js/sb-admin-2.js" type="text/javascript"></script><script>function
courseAvailability() {
jQuery.ajax({url: "course_availability.php",data:'cshort='+$("#cshort").val(),type:
"POST", success:function(data){
$("#course-availability-status").html(data);
},
error:function (){}
});
}
function coursefullAvail() { jQuery.ajax({
url: "course_availability.php", data:'cfull='+$("#cfull").val(),type: "POST",
success:function(data){
$("#course-status").html(data);
},
error:function (){}
});
}
</script>
</form>
</body>
</html>
<?php } ?>
EDIT-STUDENT
<?php session_start();
//error_reporting(0); include('includes/dbconnection.php'); if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{ if(isset($_POST['submit'])){
$sid=intval($_GET['id']);
$cshort=$_POST['course-short'];
$cfull=$_POST['c-full'];
$fname=$_POST['fname'];
$mname=$_POST['mname'];
$lname=$_POST['lname'];
$gname=$_POST['gname'];
$ocp=$_POST['ocp'];
$gender=$_POST['gender'];
$income=$_POST['income'];
$category=$_POST['category'];
$physicallych=$_POST['ph'];
$nation=$_POST['nation'];
$mobno=$_POST['mobno'];
$email=$_POST['email'];
$country=$_POST['country'];
$state=$_POST['state'];
$city=$_POST['city'];
$paddress=$_POST['padd'];
$caddress=$_POST['cadd'];
$board1=$_POST['board1'];
$board2=$_POST['board2'];
$roll1=$_POST['roll1'];
$roll2=$_POST['roll2'];
$passyear1=$_POST['pyear1'];
$passyear2=$_POST['pyear2'];
$sub1=$_POST['sub1'];
$sub2=$_POST['sub2'];
$marks1=$_POST['marks1'];
$marks2=$_POST['marks2'];
$fullmarks1=$_POST['fmarks1'];
$fullmarks2=$_POST['fmarks2'] ;
$query=mysqli_query($con,"update registration set course='$cshort', subject='$cfull',
fname='$fname', mname='$mname', lname='$lname', gender='$gender',
gname='$gname', ocp='$ocp',
income='$income', category='$category', pchal='$physicallych', nationality='$nation',
mobno='$mobno',emailid='$email', country='$country', state='$state', dist='$city',
padd='$paddress', cadd='$caddress', board='$board1',
board1='$board2',roll='$roll1',roll1='$roll2',pyear='$passyear1',yop1='$passyear2',sub
='$sub1',sub1
='$sub2',marks='$marks1',marks1='$marks2',
fmarks='$fullmarks1',fmarks1='$fullmarks2' where registration.id='$sid'");
if($query){
echo '<script>alert("Update successfull")</script>';
echo "<script>window.location.href='manage-students.php'</script>";
} else{
echo '<script>alert("Something went wrong. Please try again")</script>'; echo
"<script>window.location.href='manage-students.php'</script>";
}}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Edit students</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css"rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-
awesome.min.css"rel="stylesheet" type="text/css">
</head><body>
<form method="post" ><div id="wrapper">
<?php include('leftbar.php')?>;
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h4 class="page-header"> <?php echo
strtoupper("welcome"."".htmlentities($_SESSION['login']));?>
</h4></div><!-- /.col-lg-12 --></div><!-- /.row -->
<?php
$sid=intval($_GET['id']);
$query=mysqli_query($con,"SELECT *,states.name as sname,states.id as sid FROM
registrationjoin tbl_course on tbl_course.cid=registration.course left join countries on
countries.id=registration.country
LEFT join states on states.id=registration.state where registration.id='$sid'"); while
($res=mysqli_fetch_array($query)) {
?>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Register</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-10">
<div class="form-group">
<div class="col-lg-4">
<label>Registration Number</label>
</div>
<div class="col-lg-6">
<input class="form-control" name="regno" id="regno" value="<?php echo
$res['regno'];?>" readonly></select></div></div><br><br>
<div class="form-group"><div class="col-lg-4">
<label>Select Course<span id="" style="font-size:11px;color:red">*</span> </label>
</div><div class="col-lg-6">
<select class="form-control" name="course-short" id="cshort"
onchange="showSub(this.value)" required="required" >
<option VALUE="<?php echo $cid=$res['cid']?>"><?php echo
$res['cshort'];?></option> <?php
$sql=mysqli_query($con,"select * from tbl_course");
while($res2=mysqli_fetch_array($sql)){ if($res2['cid']==$c){
continue;
}else{
?>
<option VALUE="<?php echo htmlentities($res2['cid']);?>"><?php echo
htmlentities($res2['cshort']."-".$res2['cfull'])?></option>
<?php } } ?>
</select></div></div><br><br>
<div class="form-group">
<div class="col-lg-4">
<label>Select Subject<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-6">
<input class="form-control" name="c-full" id="c-full" value="<?php echo
$res['subject'];?>">
</select></div></div><br><br> <div class="form-group">
<div class="col-lg-4">
<label>Current Session<span id="" style="font-
size:11px;color:red">*</span></label>
</div><div class="col-lg-6">
<input class="form-control" name="session" value="<?php echo
htmlentities($res['session']);?>" readonly> </div><br><br></div>
<br><br></div></div></div></div></div><div class="row">
<div class="col-lg-12"><div class="panel panel-default"><div class="panel-
heading">Personal Informations</div><div class="panel-body"><div
class="row"><div class="col-lg-12">
<div class="form-group"> <div class="col-lg-2">
<label>First Name<span id="" style="font-size:11px;color:red">*</span>
</label></div><divclass="col-lg-4"><input class="form-control"
name="fname" value="<?php echo
htmlentities($res['fname']);?>"required="required"></div> <div class="col-lg-
2"><label>Middle Name</label></div><div class="col-lg-4"><input class="form-
control" name="mname" value="<?php echo
htmlentities($res['mname']);?>"></div></div><br><br>
<div class="form-group"> <div class="col-lg-2">
<label>Last Name</label></div>
<div class="col-lg-4">
<input class="form-control" name="lname" value="<?php echo
htmlentities($res['lname']);?>">
</div> <div class="col-lg-2">
<label>Gender<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<?php
if (strcasecmp($res['gender'],"Male")==0){?>
<input type="radio" name="gender" id="male" value="Male" required="required"
checked> &nbsp; Male &nbsp;
<?php }else{ ?>
<input type="radio" name="gender" id="male" value="Male" required="required">
&nbsp; Male&nbsp;
<?php }?>
<?php
if (strcasecmp($res['gender'],"female")==0){?>
<input type="radio" name="gender" id="female" value="female" checked> &nbsp;
Female &nbsp;
<?php } else{?>
<input type="radio" name="gender" id="female" value="female"> &nbsp; Female
&nbsp;
<?php }?>
<?php
if (strcasecmp($res['gender'],"other")==0){?>
<input type="radio" name="gender" id="other" value="other" checked> &nbsp;
Other &nbsp;
<?php } else{?>
<input type="radio" name="gender" id="other" value="other"> &nbsp; Other
&nbsp;
<?php }?>
</div></div><br><br> <div class="form-group">
<div class="col-lg-2">
<label>Guardian Name<span id="" style="font-size:11px;color:red">*</span>
</label>
</div><div class="col-lg-4">
<input class="form-control" name="gname" required="required" value="<?php echo
htmlentities($res['gname']);?>">
</div><div class="col-lg-2"><label>Occupation</label>
</div><div class="col-lg-4">
<input class="form-control" name="ocp" id="ocp" value="<?php echo
htmlentities($res['ocp']);?>">
</div></div><br><br><div class="form-group">
<div class="col-lg-2">
<label>Family Income<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<select class="form-control" name="income" id="income"required="required" >
<option value="<?php echo htmlentities($res['income']);?>"><?php echo
htmlentities($res['income']);?></option>
<option VALUE="200000">200000</option>
<option value="500000">500000</option>
<option value="700000">700000</option>
</select></div> <div class="col-lg-2">
<label>Category<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<select class="form-control" name="category" id="category" required="required" >
<option value="<?php echo htmlentities($res['category']);?>"><?php echo
htmlentities($res['category']);?></option>
<option VALUE="general">General</option>
<option value="obc">OBC</option>
<option value="sc">SC</option>
<option value="st">ST</option>
<option value="other">Other</option> </select></div></div><br><br>
<div class="form-group">
<div class="col-lg-2">
<label>Physically Challenged<span id="" style="font-
size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<select class="form-control" name="ph" id="ph"required="required" >
<option VALUE="<?php echo htmlentities($res['pchal']);?>"><?php echo
htmlentities($res['pchal']);?></option> <option VALUE="yes">Yes</option>
<option value="no">No</option> </select></div>
<div class="col-lg-2">
<label>Nationality<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<input class="form-control" name="nation" id="nation" required="required"
value="<?php echo htmlentities($res['nationality']);?>">
</div></div><br><br></div><br><br></div></div></div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Contact Informations</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-12">
<div class="form-group">
<div class="col-lg-2">
<label>Mobile Number<span id="" style="font-size:11px;color:red">*</span>
</label>
</div><div class="col-lg-4">
<input class="form-control" type="number" name="mobno" required="required"
maxlength="10" value="<?php echo htmlentities($res['mobno']);?>"></div>
<div class="col-lg-2">
<label>Email Id<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<input class="form-control" type="email" name="email" required="required"
value="<?php echo htmlentities($res['emailid']);?>"></div></div><br><br>
<div class="form-group">
<div class="col-lg-2">
<label>Country<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<select class="form-control" name="country" id="country"
onchange="showState(this.value)" required="required" value="<?php echo
htmlentities($res['country']);?>">
<option VALUE="<?php echo htmlentities($res['country']);?>"><?php echo
htmlentities($res['name'])?></option>
<?php $ret=mysqli_query($con,"SELECT * FROM countries");
while($res3=mysqli_fetch_array($ret)){ ?>
<option VALUE="<?php echo htmlentities($res3['id']);?>"><?php echo
htmlentities($res3['name'])?></option> <?php }?> </select>
</div> <div class="col-lg-2">
<label>State<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<select name="state" id="state" class="form-control"
onchange="showDist(this.value)" required="required"><option VALUE="<?php
echo htmlentities($res['sid']);?>"><?php echohtmlentities($res['sname'])?></option>
</select></div></div><br><br><br><br><div class="form-group">
<div class="col-lg-2">
<label>City<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<select name="city" id="dist" class="form-control" onchange="showDist(this.value)"
>
<option VALUE="<?php echo htmlentities($res['dist']);?>"><?php echo
htmlentities($res['dist'])?></option></select></div>
<div class="col-lg-2">
<label>Permanent Address<span id="" style="font-
size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<textarea class="form-control" rows="3" name="padd"><?php echo
htmlentities($res['padd']);?></textarea></div></div><br><br><br><br>
<br><br> <div class="form-group">
<div class="col-lg-2">
<label>Correspondence Address<span id="" style="font-
size:11px;color:red">*</span>
</label></div><div class="col-lg-4">
<textarea class="form-control" rows="3" name="cadd"><?php echo
htmlentities($res['cadd']);?></textarea></div>
<div class="col-lg-2"></div><div class="col-lg-4">
</div></div><br><br></div><br><br></div></div></div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Academic Informations</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-12">
<div class="form-group">
<div class="panel panel-default">
<div class="panel-body">
<div class="table-responsive">
<table class="table">
<thead><tr> <div class="col-lg-6">
<th>&nbsp;&nbsp;&nbsp;&nbsp;Board<span id="" style="font-
size:11px;color:red">*</span></label></th></div> <div class="col-lg-6">
<th>&nbsp;&nbsp;&nbsp;&nbsp;Roll No</th></div>
<div class="col-lg-6">
<th>&nbsp;&nbsp;&nbsp;&nbsp;Year Of Passing<span id="" style="font-
size:11px;color:red">*</span></th></div></tr></thead><tbody><tr>
<td><div class="col-lg-6">
<input class="form-control" type="text" name="board1" value="<?php echo
htmlentities($res['board']);?>"> </div></td><td><div class="col-lg-6">
<input class="form-control" type="text" name="roll1" value="<?php echo
htmlentities($res['roll']);?>"></div></td><td><div class="col-lg-6">
<input class="form-control" type="text" name="pyear1" value="<?php echo
htmlentities($res['pyear']);?>"></div></td></tr> <tr> <td><div class="col-lg-6">
<input class="form-control" type="text" name="board2" value="<?php echo
htmlentities($res['board1']);?>"> </div></td><td><div class="col-lg-6">
<input class="form-control" type="text" name="roll2" value="<?php echo
htmlentities($res['roll1']);?>"></div></td><td><div class="col-lg-6">
<input class="form-control" type="text" name="pyear2" value="<?php echo
htmlentities($res['yop1']);?>"></div></td></tr> </tbody> </table> </div>
</div><!-- /.panel -->
</div></div><br><br> </div> <br><br><br><br>
<div class="col-lg-12">
<div class="form-group">
<div class="panel panel-default">
<div class="panel-body">
<div class="table-responsive"> <table class="table"><thead><tr>
<div class="col-lg-6"><th>S.No</th></div>
<div class="col-lg-6">
<th>&nbsp;&nbsp;&nbsp;&nbsp;Subject</th></div>
<div class="col-lg-6"> <th>&nbsp;&nbsp;&nbsp;&nbsp;Marks Obtained</th></div>
<div class="col-lg-6"> <th>&nbsp;&nbsp;&nbsp;&nbsp;Full Marks</th>
</div> </tr> </thead><tbody> <tr><td>1</td><td><div class="col-lg-6">
<input class="form-control" type="text" name="sub1" value="<?php echo
htmlentities($res['sub']);?>"></div></td>
<td><div class="col-lg-6">
<input class="form-control" type="text" name="marks1" value="<?php echo
htmlentities($res['marks']);?>"></div></td><td><div class="col-lg-6">
<input class="form-control" type="text" name="fmarks1" value="<?php echo
htmlentities($res['fmarks']);?>"></div></td></tr> <tr> <td>2</td>
<td><div class="col-lg-6">
<input class="form-control" type="text" name="sub2" value="<?php echo
htmlentities($res['sub1']);?>"></div></td>
<td><div class="col-lg-6">
<input class="form-control" type="text" name="marks2" value="<?php echo
htmlentities($res['marks1']);?>"></div></td> <td><div class="col-lg-6">
<input class="form-control" type="text" name="fmarks2" value="<?php echo
htmlentities($res['fmarks1']);?>"></div></td> </tr></tbody></table></div>
<?php } ?>
</div><!-- /.panel --></div></div> </div><br>
<div class="form-group">
<div class="col-lg-4"></div>
<div class="col-lg-6"><br><br>
<input type="submit" class="btn btn-primary" name="submit"
value="Update"></button>
</div></div></div></div><!--row!--></div></div></div></div>
<script
src="bower_components/jquery/dist/jquery.min.js"type="text/javascript"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"
type="text/javascript"></script>
<script src="bower_components/metisMenu/dist/metisMenu.min.js"
type="text/javascript"></script>
<script src="dist/js/sb-admin-2.js" type="text/javascript"></script><script>function
showState(val) {
$.ajax({type: "POST",url: "subject.php",data:'id='+val,success: function(data){
$("#state").html(data);
}
}); }
function showDist(val) {
$.ajax({type: "POST",url: "subject.php",data:'did='+val,success: function(data){
$("#dist").html(data);
}
});}
function showSub(val) {
$.ajax({type: "POST",url: "subject.php",data:'cid='+val,success: function(data){
$("#c-full").val(data);
}});}
</script></form></body></html>
<?php } ?>
EDIT-SUBJECT
<?php session_start(); include('includes/dbconnection.php'); if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{ if(isset($_POST['submit'])){
$subid=$_GET['sid'];
$s1=$_POST['sub1'];
$s2=$_POST['sub2'];
$s3=$_POST['sub3'];
$s4=$_POST['sub4'];
$udate=$_POST['udate'];
$query=mysqli_query($con,"update subject set
sub1='$s1',sub2='$s2',sub3='$s3',sub4='$s4',update_date='$udate' where
subid='$subid'"); if($query){
echo '<script>alert("Subjects updated successfully")</script>';
echo "<script>window.location.href='manage-subjects.php'</script>";
}}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Edit Subjects</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css"rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-
awesome.min.css"rel="stylesheet" type="text/css">
</head><body>
<form method="post" >
<div id="wrapper">
<?php include('leftbar.php')?>;
<div id="page-wrapper"><div class="row"><div class="col-lg-12">
<h4 class="page-header"> <?php echo strtoupper("welcome"."
".htmlentities($_SESSION['login']));?></h4></div>
</div><div class="row">
<div class="col-lg-12"><div class="panel panel-default">
<?php
$subid=intval($_GET['sid']);
$query=mysqli_query($con,"SELECT * FROM `subject` where subid='$subid'");
$sn=1; while($res=mysqli_fetch_array($query)){?>
<div class="panel-heading"><b>Edit <?php echo $res['cfull'];?> course
Subjects</b></div>
<div class="panel-body"><div class="row"><div class="col-lg-10">
<div class="form-group"><div class="col-lg-4"><label>Subject 1</label>
</div><div class="col-lg-6">
<input class="form-control" name="sub1" id="sub1" value="<?php echo
$res['sub1'];?>" required="required"> </div></div><br><br><div class="form-
group">
<div class="col-lg-4"><label>Subject 2</label></div>
<div class="col-lg-6">
<input class="form-control" name="sub2" id="sub2" value="<?php echo
$res['sub2'];?>" required="required"> </div></div><br><br><div class="form-
group">
<div class="col-lg-4"><label>Subject 3</label>
</div><div class="col-lg-6">
<input class="form-control" name="sub3" id="sub3" value="<?php echo
$res['sub3'];?>" required="required"></div></div> <br><br><div class="form-
group">
<div class="col-lg-4"><label>Subject 4</label></div>
<div class="col-lg-6">
<input class="form-control" name="sub4" id="sub4" value="<?php echo
$res['sub4'];?>" required="required"></div></div> <br><br><div class="form-
group"><div class="col-lg-4">
<label>Date</label></div><div class="col-lg-6">
<input class="form-control" value="<?php echo date('d-m-Y');?>"
readonly="readonly" name="udate"></div></div></div><br><br>
<?php } ?>
<div class="form-group"><div class="col-lg-4"></div>
<div class="col-lg-6"><br><br><input type="submit" class="btn btn-primary"
name="submit" value="Update
Course"></button></div></div></div></div></div></div></div></div></div>
</div></div><script src="bower_components/jquery/dist/jquery.min.js"
type="text/javascript"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"
type="text/javascript"></script>
<script src="bower_components/metisMenu/dist/metisMenu.min.js"
type="text/javascript"></script>
<script src="dist/js/sb-admin-2.js" type="text/javascript"></script>
</form></body></html>
<?php } ?>
MANAGE-COURCESS
<?php session_start(); include('includes/dbconnection.php'); if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{ if(isset($_GET['del'])){
$courseid=$_GET['del'];
$query=mysqli_query($con,"delete from tbl_course where cid='$courseid'"); echo
'<script>alert("Course deleted")</script>';
echo '<script>window.location.href=manage-courses.php</script>';
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Manage Courses</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"
rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<link href="bower_components/datatables-
plugins/integration/bootstrap/3/dataTables.bootstrap.css" rel="stylesheet">
<link href="bower_components/datatables-responsive/css/dataTables.responsive.css"
rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css">
</head><body>
<div id="wrapper">
<?php include('leftbar.php')?>;
<nav>
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12"> <h4 class="page-header"> <?php echo
strtoupper("welcome"." ".htmlentities($_SESSION['login']));?></h4> </div> <!-- /.col-
lg-12 --></div> <!-- /.row -->
<div class="row"> <div class="col-lg-12"> <div class="panel panel-default">
<div class="panel-heading">
Manage Courses </div><!-- /.panel-heading -->
<div class="panel-body"><div class="dataTable_wrapper">
<table class="table table-striped table-bordered table-hover" id="dataTables-
example">
<thead> <tr><th>S No</th><th>Short Name</th><th>Full Name</th> <th>Created
Date</th>
<th>Action</th></tr></thead><tbody>
<?php $query=mysqli_query($con,"select * from tbl_course");
$sn=1; while($res=mysqli_fetch_array($query)){?> <tr class="odd gradeX">
<td><?php echo $sn?></td> <td><?php echo
htmlentities(strtoupper($res['cshort']));?></td>
<td><?php echo htmlentities(strtoupper($res['cfull']));?></td>
<td><?php echo htmlentities($res['cdate']);?></td>
<td>&nbsp;&nbsp;<a href="edit-course.php?cid=<?php echo
htmlentities($res['cid']);?>" class="btnbtn-primary">Edit</a> &nbsp;
<a href="manage-courses.php?del=<?php echo htmlentities($res['cid']); ?>"
class="btn btn-danger" onclick="return confirm('Do you really wan to
delete?');">Delete</a></td></tr>
<?php $sn++;}?></tbody></table></div><!-- /.table-responsive --></div><!-- /.panel-
body -->
</div><!-- /.panel --></div><!-- /.col-lg-12 --></div><!-- /.row --></div><!-- /#page-
wrapper --</div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/metisMenu/dist/metisMenu.min.js"></script>
<script
src="bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
<script src="bower_components/datatables-
plugins/integration/bootstrap/3/dataTables.bootstrap.min.js"></script>
<script src="dist/js/sb-admin-2.js"></script>
<script>
$(document).ready(function() {
$('#dataTables-example').DataTable({ responsive: true
});
});
</script>
</body>
</html>
<?php } ?>
LOGIN-PAGE
<?php session_start();
include('includes/dbconnection.php'); if(isset($_POST['submit']))
{
$uname=$_POST['id'];
$Password=$_POST['password'];
$query=mysqli_query($con,"select ID,loginid from tbl_login where loginid='$uname'
&&password='$Password' ");
$ret=mysqli_fetch_array($query); if($ret>0){
$_SESSION['aid']=$ret['ID'];
$_SESSION['login']=$ret['loginid']; header('location:dashboard.php');
}
else{
echo "Invalid Details";
}
}
?>
<!DOCTYPE html>
<html lang="en"><head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Student Record Management System | Login </title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"
rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="../bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="../dist/css/jquery.validate.css" />
</head><body>
<h2 align="center">Student Record Management System</h2>
<div class="container">
<br><br><br><br>
<div class="col-md-4 col-md-offset-4">
<div class="panel panel-primary"> <div class="panel-heading">
<h3 class="panel-title">Sign In</h3>
</div><div class="panel-body">
<form method="post"><fieldset>
<div class="form-group">
<input class="form-control" placeholder="Login Id" id="id" name="id" type="text"
requiredautofocus autocomplete="off"> </div><div class="form-group">
<input class="form-control" placeholder="Password"
id="password"name="password" type="password" value="" required>
<a href="password-recovery.php">Password Recovery</a> </div>
<input type="submit" value="login" name="submit" class="btn btn-lg btn-success
btn-block">
</fieldset></form></div></div></div></div></div>
<script src="../bower_components/jquery/dist/jquery.min.js"></script>
<script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="../bower_components/metisMenu/dist/metisMenu.min.js"></script>
<script src="dist/js/sb-admin-2.js"></script>
<script src="dist/jquery-1.3.2.js" type="text/javascript"></script>
<script src="dist/jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript">jQuery(function(){ jQuery("#id").validate({
expression: "if (VAL.match(/^[a-z]$/)) return true; else return false;", message:
"Should be a valid id"
});
jQuery("#password").validate({
expression: "if (VAL.match(/^[a-z]$/)) return true; else return false;", message:
"Should be a validpassword" }); });
</script></body></html>
MANAGE-STUDENT
<?php session_start(); include('includes/dbconnection.php'); if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{ if(isset($_GET['del'])){
$sid=$_GET['del'];
$query=mysqli_query($con,"delete from registration where id='$sid'"); echo
'<script>alert("Student record deleted")</script>';
echo "<script>window.location.href='manage-students.php'</script>";
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Manage Students</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"
rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<link href="bower_components/datatables-
plugins/integration/bootstrap/3/dataTables.bootstrap.css" rel="stylesheet">
<link href="bower_components/datatables-responsive/css/dataTables.responsive.css"
rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css">
</head>
<body>
<div id="wrapper">
<?php include('leftbar.php')?>;
<nav>
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h4 class="page-header"> <?php echo strtoupper("welcome"."
".htmlentities($_SESSION['login']));?></h4> </div> <!-- /.col-lg-12 --></div><!-- /.row -
->
<div class="row"> <div class="col-lg-12"> <div class="panel panel-default">
<div class="panel-heading">
View Students
</div> <div class="panel-body">
<div class="dataTable_wrapper">
<table class="table table-striped table-bordered table-hover" id="dataTables-
example">
<thead><tr> <th>SNo</th><th>RegNo</th><th>Name</th><th>Email</th>
<th>Action</th></tr> </thead><tbody>
<?php
$query=mysqli_query($con,"select * from registration left join tbl_course on
tbl_course.cid=registration.course");
$sn=1 while($res=mysqli_fetch_array($query)){
<tr class="odd gradeX"> <td><?php echo $sn?></td>
<td><?php echo htmlentities( strtoupper($res['regno']));?></td> <td><?php echo
htmlentities(strtoupper($res['fname']." ".$res['mname']." ".$res['l></td>
<td><?php echo htmlentities(strtoupper($res['emailid']));?></td>
<td><?php echo htmlentities($res['mobno']);?></td>
<td><?php echo htmlentities(strtoupper($res['cshort']));?></td><td width="100"><a
href="edit-student.php?id=<?php echo htmlentities($res['id']);?>" class="btn btn-
primary btn-xs">Edit</a> &nbsp;&nbsp;
<a href="manage-students.php?del=<?php echo htmlentities($res['id']); ?>"
class="btn btn-dangerbtn-xs" onclick="return confirm('Do you really want to
delete?');">Delete</a></tr>
</div> <!-- /.row --> </div>
</div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/metisMenu/dist/metisMenu.min.js"></script>
<script
src="bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
<script src="bower_components/datatables-
plugins/integration/bootstrap/3/dataTables.bootstrap.min.js"></script>
<script src="dist/js/sb-admin-2.js"></script>
<script>
$(document).ready(function() {
$('#dataTables-example').DataTable({ responsive: true
});
});
</script></body></html>
<?php } ?> MANAGE-SUBJECT
<?php session_start(); include('includes/dbconnection.php'); if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{ if(isset($_GET['del'])){
$courseid=$_GET['del'];
$query=mysqli_query($con,"delete from subject where subid='$courseid'"); echo
'<script>alert("Subjects deleted")</script>';
echo "<script>window.location.href='manage-subjects.php'</script>";
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <title>view
subject</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"
rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<link href="bower_components/datatables-
plugins/integration/bootstrap/3/dataTables.bootstrap.css" rel="stylesheet">
<link href="bower_components/datatables-responsive/css/dataTables.responsive.css"
rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css"></head>
<body> <div id="wrapper">
<?php include('leftbar.php')?>;<nav>
<div id="page-wrapper"> <div class="row"> <div class="col-lg-12"> <h4
class="page-header">
<?php echo strtoupper("welcome"." ".htmlentities($_SESSION['login']));?></h4>
</div>
</div>
<div class="row"><div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
View Course
<div class="panel-body"> <div class="dataTable_wrapper">
<table class="table table-striped table-bordered table-hover" id="dataTables-
example">
<thead> <tr> <th>S No</th> <th>Course</th> <th>Subject1</th <th>Subject2</th>
<th>Subject3</th> <th>Subject4</th><th>Action</th> </tr> </thead> <tbody>
<?php $query=mysqli_query($con,"SELECT * FROM `subject`");
$sn=1; while($res=mysqli_fetch_array($query)){?>
<tr class="odd gradeX">
<td><?php echo $sn?></td>
<td><?php echo htmlentities(strtoupper($res['cfull']));?></td>
<td><?php echo htmlentities( strtoupper($res['sub1']));?></td>
<td><?php echo htmlentities( strtoupper($res['sub2']));?></td>
<td><?php echo htmlentities( strtoupper($res['sub3']));?></td>
<td><?php echo htmlentities( strtoupper($res['sub4']));?></td>
<td width="100"><a href="edit-subject.php?sid=<?php echo
htmlentities($res['subid']);?>" class="btn btn-primary btn-xs">Edit</a> &nbsp;
<a href="manage-subjects.php?del=<?php echo htmlentities($res['subid']); ?>"
class="btn btn-danger btn-xs">Delete </a></td> </tr>
<?php $sn++;}?> </tbody> </table> </div><!-- /.table-responsive --> </div> <!--
/.panel-bo</div>
</div><!-- /.col-lg-12 --></div> <!-- /.row --> </div> <!-- /#page-wrapper --> </div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/metisMenu/dist/metisMenu.min.js"></script>
<script
src="bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
<script src="bower_components/datatables-
plugins/integration/bootstrap/3/dataTables.bootstrap.min.js"></script>
<script src="dist/js/sb-admin-2.js"></script>
<script>
$(document).ready(function() {
$('#dataTables-example').DataTable({ responsive: true
});
});
</script></body></html>
<?php } ?>
REGISTRATION
<?php session_start(); include('includes/dbconnection.php');if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{ if(isset($_POST['submit'])){
$cshort=$_POST['course-short'];
$cfull=$_POST['c-full'];
$fname=$_POST['fname'];
$mname=$_POST['mname'];
$lname=$_POST['lname'];
$gname=$_POST['gname'];
$ocp=$_POST['ocp'];
$gender=$_POST['gender'];
$income=$_POST['income'];
$category=$_POST['category'];
$physicallych=$_POST['ph'];
$nation=$_POST['nation'];
$mobno=$_POST['mobno'];
$email=$_POST['email'];
$country=$_POST['country'];
$state=$_POST['state'];
$city=$_POST['city'];
$paddress=$_POST['padd'];
$caddress=$_POST['cadd'];
$board1=$_POST['board1'];
$board2=$_POST['board2'];
$roll1=$_POST['roll1'];
$roll2=$_POST['roll2'];
$passyear1=$_POST['pyear1'];
$passyear2=$_POST['pyear2'];
$sub1=$_POST['sub1'];
$sub2=$_POST['sub2'];
$marks1=$_POST['marks1'];
$marks2=$_POST['marks2'];
$fullmarks1=$_POST['fmarks1'];
$fullmarks2=$_POST['fmarks2'] ;
$session=$_POST['session'];
$regno=mt_rand(1000000000,9999999999);
$query=mysqli_query($con,"INSERT INTO registration(course, subject, fname,
mname, lname, gender, gname, ocp, income, category, pchal, nationality,
mobno,emailid, country, state, dist, padd, cadd, board,
board1,roll,roll1,pyear,yop1,sub,sub1,marks,marks1, fmarks,fmarks1,session,regno)
value('$cshort','$cfull','$fname','$mname','$lname','$gender','$gname','$ocp','$income
','$category','
$physicallych','$nation','$mobno','$email','$country','$state','$city','$paddress','$cadd
ress','$board1'
,'$board2','$roll1','$roll2','$passyear1','$passyear2','$sub1','$sub2','$marks1','$marks
2','$fullmarks1'
,'$fullmarks2','$session','$regno')"); if($query){
echo '<script>alert("Student Registration successfull")</script>';
echo "<script>window.location.href='manage-students.php'</script>";
} else{
echo '<script>alert("Something went wrong. Please try again")</script>'; echo
"<script>window.location.href='register.php'</script>";
}}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Student Registration</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"
rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.4/jquery.min.js"></script>
<script type="text/javascript"> function showSub(val) {
$.ajax({
type: "POST",
url: "subject.php", data:'cid='+val,
success: function(data){
$("#c-full").val(data);
}
});
}
</script></head><body>
<form method="post" >
<div id="wrapper">
<?php include('leftbar.php');?>
<div id="page-wrapper">
<div class="row"><div class="col-lg-12">
<h4 class="page-header"> <?php echo strtoupper("welcome"."
".htmlentities($_SESSION['login']));?></h4></div></div>
<div class="row"><div class="col-lg-12">
<div class="panel panel-default"><div class="panel-heading">Register</div>
<div class="panel-body"><div class="row"><div class="col-lg-10"><div class="form-
group">
<div class="col-lg-4">
<label>Select Course<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-6">
<select class="form-control" name="course-short" id="cshort"
onchange="showSub(this.value)" required="required" >
<option VALUE="">SELECT</option>
<?php $query=mysqli_query($con,"select * from tbl_course");
$sn=1; while($res=mysqli_fetch_array($query)){ ?>
<option VALUE="<?php echo htmlentities($res['cid']);?>"><?php echo
htmlentities($res['cshort']."-".$res['cfull'])?></option>
<?php } ?> </select>
</div></div><br><br><div class="form-group"><div class="col-lg-4">
<label>Select Subject<span id="" style="font-
size:11px;color:red">*</span></label></div>
<div class="col-lg-6">
<input class="form-control" name="c-full" id="c-full" required>
</select></div> </div> <br><br>
<div class="form-group"><div class="col-lg-4">
<label>Current Session<span id="" style="font-
size:11px;color:red">*</span></label>
</div><div class="col-lg-6">
<?php $query=mysqli_query($con,"SELECT * FROM `session` where status=1");
while($res=mysqli_fetch_array($query)){?>
<input class="form-control" name="session" value="<?php echo
htmlentities($res['session']);?>" readonly><br><br></div></div></div></div></div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Personal Informations</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-12"><div class="form-group"><div class="col-lg-2">
<label>First Name<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<input class="form-control" name="fname" required="required" pattern="[A-Za-
z]+$">
</div><div class="col-lg-2"><label>Middle Name</label></div>
<div class="col-lg-4"><input class="form-control" name="mname"></div></div>
<br><br>
<div class="form-group"> <div class="col-lg-2"><label>Last Name</label></div>
<div class="col-lg-4">
<input class="form-control" name="lname" pattern="[A-Za-z]+$"></div>
<div class="col-lg-2"><label>Gender</label></div>
<div class="col-lg-4">
<input type="radio" name="gender" id="male" value="Male"> &nbsp; Male &nbsp;
<input type="radio" name="gender" id="female" value="feale"> &nbsp; Female
&nbsp;
<input type="radio" name="gender" id="other" value="other"> &nbsp; Other
&nbsp;
</div></div><br><br> <div class="form-group"> <div class="col-lg-2">
<label>Guardian Name<span id="" style="font-
size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<input class="form-control" name="gname" required="required">
</div> <div class="col-lg-2"><l</div></div><br><br>
<div class="form-group"><div class="col-lg-2">
<label>Family Income<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<select class="form-control" name="income" id="income"required="required" >
<option VALUE="">SELECT</option>
<option VALUE="200000">200000</option><option
value="500000">500000</option>
<option value="700000">700000</option>
</select></div> <div class="col-lg-2"><label>Category<span id="" style="font-
size:11px;color:red">*</span></label><div class="col-lg-4">
<select class="form-control" name="category" id="category" required="required" >
<option VALUE="">SELECT</option>
<option VALUE="general">General</option> <option value="obc">OBC</option>
<option value="sc">SC</option> <option value="st">ST</option> <div class="form-
group"> <divclass="col-lg-2">
<label>Physically Challenged<span id="" style="font-
size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<select c <option VALUE="">SELECT</option> <option
VALUE="yes">Yes</option>
<option value="no">No</option>
</select></div> <div class="col-lg-2">
<label>Nationality<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-4"><input class="form-</div></div> <br><br></div>
<br><br></div>
</div></div><div class="row">
<div class="col-lg-12"><div class="panel panel-default">
<div class="panel-heading">Contact Informations</div>
<div class="panel-body"><div class="row">
<div class="col-lg-12"><div class="form-group"> <div class="col-lg-2">
<label>Mobile Number<span id="" style="font-
size:11px;color:red">*</span></label></div><divclass="col-lg-4">
<input class="form-control" type="number" name="mobno" required="required"
maxlength="10">
</div>
<div class="col-lg-2"><label>Email Id</label></div><div class="col-lg-4">
<input class="form-control" type="email" name="email"></div></div> <br><br>
<div class="form-group"> <div class="col-lg-2"><label>Country</label></div>
<div class="col-lg-4"><select class="form-control" name="country" id="country"
onchange="showState(this.value)" required="required" >
<option VALUE="">Select Country</option>
<?php $ret=mysqli_query($con,"SELECT * FROM countries");
while($res=mysqli_fetch_array($ret)){?>
<option VALUE="<?php echo htmlentities($res['id']);?>"><?php echo
htmlentities($res['name'])?></option>
<?php }?> </select>
</div> <div class="col-lg-2"><label>State</label></div>
<div class="col-lg-4">
<select name="state" id="state" class="form-control"
onchange="showDist(this.value)" required="required">
<option value="">Select State</option> </select></div></div> <br><br><br><br>
<div class="form-group"> <div class="col-lg-2">
<label>City<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-4">
<select name="city" id="dist" class="form-control" onchange=""
required="required">
<option value="">Select City</option></select></div><div class="col-lg-2">
<label>Permanent Address<span id="" style="font-
size:11px;color:red">*</span></label>
</div><div class="col-lg-4"><textarea class="form-control" rows="3" name="padd"
id="padd"></textarea></div></div><br><br><br><br><br><br>
<div class="form-group"> <div class="col-lg-2">
<label>Correspondence Address<span id="" style="font-
size:11px;color:red">*</span>
</div><div class="col-lg-4">
<textarea class="form-control" rows="3" name="cadd" id="cadd"></textarea>
</div> <div class="col-lg-2"></div><div class="col-lg-4"></div></div><br><br>
</div><br><br></div></div></div><div class="row">
<div class="col-lg-12"><div class="panel panel-default">
<div class="panel-heading">Academic Informations</div>
<div class="panel-body"><div class="row">
<div class="col-lg-12"><div class="form-group">
<div class="panel panel-default"><!-- /.panel-heading -->
<div class="panel-body"> <div class="table-responsive">
<table class="table"> <thead> <tr><div class="col-lg-6">
<th>&nbsp;&nbsp;&nbsp;&nbsp;Board<span id="" style="font-
size:11px;color:red">*</span></label></th></div> <div class="col-lg-6">
<th>&nbsp;&nbsp;&nbsp;&nbsp;Roll No</th></div>
<div class="col-lg-6">
<th>&nbsp;&nbsp;&nbsp;&nbsp;Year Of Passing<span id="" style="font-
size:11px;color:red">*</span></th></div> </tr </thead> <tbody> <tr>
<td><div class="col-lg-6">
<input class="form-control" type="text" name="board1"></div></td>
<td><div class="col-lg-6">
<input class="form-control" type="text" name="roll1" ></div></td>
<td><div class="col-lg-6">
<input class="form-control" type="text" name="pyear1" ></div></td>
</tr> <tr> <td><div class="col-lg-6">
<input class="form-control" type="text" name="board2" > </div></td>
<td><div class="col-lg-6">
<input class="form-control" type="text" name="roll2" ></div></td> <td><div
class="col-lg-6">
<input class="form-control" type="text" name="pyear2" ></div></td> </tr>
</tbody>
</table> </div></div> </div></div><br><br> </div><br><br><br><br>
<div class="col-lg-12"><div class="form-group"> <div class="panel panel-default">
<!-- /.panel-heading --><div class="panel-body"> <div class="table-responsive">
<table class="table"><thead> <tr> <div class="col-lg-6"><th>S.No</th>
</div> <div class="col-lg-6">
<th>&nbsp;&nbsp;&nbsp;&nbsp;Subject</th>
</div> <div class="col-lg-6">
<th>&nbsp;&nbsp;&nbsp;&nbsp;Marks Obtained</th></div>
<div class="col-lg-6"> <th>&nbsp;&nbsp;&nbsp;&nbsp;Full Marks</th>
</div> </tr></thead><tbody><tr> <td>1</td> <td><div class="col-lg-6">
<input class="form-control" type="text" name="sub1"></div></td>
<td><div class="col-lg-6">
<input class="form-control" type="text" name="marks1">
</div></td> <td><div class="col-lg-6">
<input class="form-control" type="text" name="fmarks1">
</div></td> </tr> <tr> <td>2</td><td><div class="col-lg-6">
<input class="form-control" type="text" name="sub2"></div></td>
<td><div class="col-lg-6">
<input class="form-control" type="text" name="marks2"></div></td>
<td><div class="col-lg-6"><input class="form-control" type="text"
name="fmarks2">
</div></td></tr></tbody> </table> </div><!-- /.table-responsive -->
</div> <!-- /.panel --></div></div> </div><br>
<div class="form-group">
<div class="col-lg-4"></div>
<div class="col-lg-6"><br><br>
<input type="submit" class="btn btn-primary" name="submit"
value="Register"></button>
</div></div></div></div><!--row!--></div> </div></div></div>
</form>
<script src="bower_components/jquery/dist/jquery.min.js"
type="text/javascript"></script>
<!-- Bootstrap Core JavaScript -->
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"
type="text/javascript"></script>
<script src="bower_components/metisMenu/dist/metisMenu.min.js"
type="text/javascript"></script>
<script src="dist/js/sb-admin-2.js" type="text/javascript"></script>
<script>
function showState(val) {
$.ajax({
type: "POST",
url: "subject.php", data:'id='+val,
success: function(data){
$("#state").html(data);
}
});
}
function showDist(val) {
$.ajax({type: "POST",url: "subject.php",data:'did='+val,success:
function(data){
$("#dist").html(data);
}});</script></body></html>
<?php } ?>
SESSION-PAGE
<?php session_start(); include('includes/dbconnection.php'); if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{ if(isset($_POST['submit'])){
$status=1;
$session=$_POST['session'];
$sql="update session set status='$status' where session='$session';";
$sql.="update session set status='0' where session!='$session';";
$query = mysqli_multi_query($con, $sql);if($query){
echo '<script>alert("session updated successfully")</script>'; echo
"<script>window.location.href='session.php'</script>";
}
}?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>session</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"
rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<link href="bower_components/datatables-
plugins/integration/bootstrap/3/dataTables.bootstrap.css" rel="stylesheet">
<link href="bower_components/datatables-responsive/css/dataTables.responsive.css"
rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css">
</head><body>
<div id="wrapper">
<?php include('leftbar.php')?>;
<nav> <div id="page-wrapper">
<div class="row"><div class="col-lg-12">
<h4 class="page-header"> <?php echo strtoupper("welcome"."
".htmlentities($_SESSION['login']));?></h4>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">
View Session
</div>
<div class="panel-body">
<div class="form-group">
<div class="col-lg-2">
<label>Session<span id="" style="font-size:11px;color:red">*</span></label>
</div> <div class="col-lg-4">
<?php $query=mysqli_query($con,"SELECT * FROM `session` where status=1");
while($res=mysqli_fetch_array($query)){?>
<b>Current Session:</b> <?php echo $res['session']?>
<?php } ?><br />
<br />
<form method="post">
<?php $query=mysqli_query($con,"SELECT * FROM `session`");
while($res=mysqli_fetch_array($query)){?>
<input type="radio" name="session" id="session" value="<?php echo
$res['session']?>" required="required">
&nbsp;&nbsp;<?php echo $res['session']?> <br>
<?php } ?>
</div> <br />
<div class="col-lg-3">&nbsp;</div>
<div class="col-lg-9">
<input type="submit" class="btn btn-primary" name="submit" value="Update
Session">
</div></div></form></div></div></div></div>
</div>
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="bower_components/metisMenu/dist/metisMenu.min.js"></script>
<script
src="bower_components/datatables/media/js/jquery.dataTables.min.js"></script>
<script src="bower_components/datatables-
plugins/integration/bootstrap/3/dataTables.bootstrap.min.js"></script>
<script src="dist/js/sb-admin-2.js"></script>
<script>
$(document).ready(function() {
$('#dataTables-example').DataTable({ responsive: true
});
});
</script></body></html>
<?php } ?>
SUBJECT-PAGE
<?php include('includes/dbconnection.php'); if(!empty($_POST["id"]))
{
$id=intval($_POST['id']);
$stmt = mysqli_query($con,"SELECT * FROM states WHERE country_id = '$id'");
?><option selected="selected">Select State</option><?php
while($row=mysqli_fetch_array($stmt))
{
?>
<option value="<?php echo htmlentities($row['id']); ?>"><?php echo
htmlentities($row['name']);
?></option>
<?php}
}
if(!empty($_POST["did"]))
{
$id=intval($_POST['did']);
$stmt =mysqli_query($con,"SELECT * FROM cities WHERE state_id = '$id'");
?><option value="">Select City</option><?php
while($row=mysqli_fetch_array($stmt))
{
?>
<option value="<?php echo htmlentities($row['name']); ?>"><?php echo
htmlentities($row['name']); ?></option>
<?php
}
}
if(!empty($_POST["cid"]))
{
$id=intval($_POST['cid']);
$stmt = mysqli_query($con,"SELECT * FROM subject WHERE cshort = '$id'");
$count=mysqli_num_rows( $stmt); if($count>0){
while($row=mysqli_fetch_array($stmt))
{
echo ($row['sub1']."+".$row['sub2']."+ ".$row['sub3']);
} } else{
echo "Subjects listed yet";
}
}
?>
CHANGE-PASSWORD
<?php session_start(); include('includes/dbconnection.php'); if
(strlen($_SESSION['aid']==0)) { header('location:logout.php');
} else{ if(isset($_POST['submit']))
{
$adminid=$_SESSION['aid'];
$cpassword=$_POST['currentpassword'];
$newpassword=$_POST['newpassword'];
$query=mysqli_query($con,"select id from tbl_login where id='$adminid' and
password='$cpassword'");
$row=mysqli_fetch_array($query); if($row>0){
$ret=mysqli_query($con,"update tbl_login set password='$newpassword' where
id='$adminid'"); echo '<script>alert("Your password successully changed.")</script>';
} else {
echo '<script>alert("Your current password is wrong.")</script>';
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>add course</title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"
rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css">
</head>
<script type="text/javascript">function checkpass()
{
if(document.changepassword.newpassword.value!=document.changepassword.confirm
password.value)
{
alert('New Password and Confirm Password field does not match');
document.changepassword.confirmpassword.focus();
return false;
}
return true;
}
</script>
<body>
<form method="post" >
<div id="wrapper">
<?php include('leftbar.php')?>;
<div id="page-wrapper">
<div class="row">
<div class="col-lg-12">
<h4 class="page-header"> <?php echo strtoupper("welcome"."
".htmlentities($_SESSION['login']));?></h4>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div class="panel panel-default">
<div class="panel-heading">Admin Change Password</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-10">
<form class="form-validate form-horizontal" method="post" action=""
name="changepassword" onsubmit="return checkpass();">
<div class="form-group">
<div class="col-lg-4">
<label>Current Password<span id="" style="font-size:11px;color:red">*</span>
</label>
</div><div class="col-lg-6">
<input type="password" name="currentpassword" class=" form-control" required=
"true" value="">
</div></div><br><br>
<div class="form-group">
<div class="col-lg-4">
<label>New Password<span id="" style="font-size:11px;color:red">*</span></label>
</div><div class="col-lg-6">
<input type="password" name="newpassword" id="newpassword" class="form-
control" value="" required> </div></div><br><br>
<div class="form-group">
<div class="col-lg-4">
<label>Confirm Password</label></div>
<div class="col-lg-6">
<input type="password" name="confirmpassword" id="confirmpassword"
class="form-control" value="" required></div></div></div><br><br>
<div class="form-group"><div class="col-lg-4">
</div><div class="col-lg-6"><br><br>
<input type="submit" class="btn btn-primary" name="submit"
value="Change"></button>
</div></div></div></form></div></div></div></div></div></div</div></div>
<script
src="bower_components/jquery/dist/jquery.min.js"type="text/javascript"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.min.js"
type="text/javascript"></script>
<script src="bower_components/metisMenu/dist/metisMenu.min.js"
type="text/javascript"></script>
<script src="dist/js/sb-admin-2.js" type="text/javascript"></script>
</form></body></html>
<?php } ?>
PASSWORD-RECOVERY
<?php session_start(); include('includes/dbconnection.php');
if(isset($_POST['submit']))
{
$uname=$_POST['id'];
$emailid=$_POST['emailid'];
$Password=$_POST['password'];
$query=mysqli_query($con,"select ID,loginid from tbl_login where loginid='$uname'
&&AdminEmail='$emailid' ");
$ret=mysqli_fetch_array($query); if($ret>0){
$ret=mysqli_query($con,"update tbl_login set password='$Password' where
loginid='$uname' &&AdminEmail='$emailid' ");
echo '<script>alert("Your password successully changed.")</script>'; echo
"<script>window.location.href='login.php'</script>";
}
else{
echo '<script>alert("invalid details")</script>';
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Student Record Management System | Password Recovery </title>
<link href="bower_components/bootstrap/dist/css/bootstrap.min.css"
rel="stylesheet">
<link href="bower_components/metisMenu/dist/metisMenu.min.css" rel="stylesheet">
<link href="dist/css/sb-admin-2.css" rel="stylesheet">
<link href="../bower_components/font-awesome/css/font-awesome.min.css"
rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css" href="../dist/css/jquery.validate.css"
/></head><body>
<h2 align="center">Student Record Management System</h2>
<div class="container" <br><br><br><br><div class="col-md-4 col-md-offset-4">
<div class="panel panel-primary"><div class="panel-heading">
<h3 class="panel-title">Sign In</h3> </div> <div class="panel-body">
<form method="post"> <fieldset><div class="form-group">
<input class="form-control" placeholder="Login Id" id="id" name="id" type="text"
requiredautofocus autocomplete="off"> </div><div class="form-group">
<input class="form-control" placeholder="Admin Email id" id="emailid"
name="emailid" type="text" required autofocus autocomplete="off"> </div> <div
class="form-group">
<input class="form-control" placeholder="New Password"
id="password"name="password" type="password" value="" required><a
href="login.php">Login</a></div>
<input type="submit" value="Change Password" name="submit" class="btn btn-lg
btn-success btn-block"></fieldset> </form></div></div> </div></div></div>
<script src="../bower_components/jquery/dist/jquery.min.js"></script>
<script src="../bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<script src="../bower_components/metisMenu/dist/metisMenu.min.js"></script>
<script src="dist/js/sb-admin-2.js"></script>
<script src="dist/jquery-1.3.2.js" type="text/javascript"></script>
<script src="dist/jquery.validate.js" type="text/javascript"></script>
<script type="text/javascript"> jQuery(function(){
jQuery("#id").validate({ expression: "if (VAL.match(/^[a-z]$/)) return true; else
return false;", message: "Should be a valid id"});
jQuery("#password").validate({ expression: "if (VAL.match(/^[a-z]$/)) return true;
else returnfalse;",message: "Should be a valid password"});});
</script></body></html>
LOG-OUT
<?php session_start(); session_unset(); session_destroy();
header('location:login.php');
?>
LEFT-BAR-PAGE
<nav class="navbar navbar-default navbar-static-top"
role="navigation"style="margin-bottom: 0">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"data-
target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span>
<span class="icon-bar"></span>
<spanclass="icon-bar"></span></button>
<a class="navbar-brand" href="index.html">Student Management System</a></div>
<div class="navbar-default sidebar" role="navigation"> <div class="sidebar-nav
navbar-collapse">
<ul class="nav" id="side-menu"><li>
<a href="dashboard.php"><i class="fa fa-dashboard fa-fw"></i> Dashboard</a>
</li><li>
<a href="#"><i class="fa fa-file fa-fw"></i> Course<span class="fa
arrow"></span></a>
<ul class="nav nav-second-level"> <li>
<a href="add-course.php">Add Course</a></li><li>
<a href="manage-courses.php">View</a> </li></ul></li><li>
<a href="#"><i class="fa fa-files-o fa-fw"></i>Subject<span class="fa
arrow"></span></a>
<ul class="nav nav-second-level"><li>
<a href="add-subject.php">Add Subject</a></li><li>
<a href="manage-subjects.php">View</a> </li></ul></li><li>
<a href="register.php"><i class="fa fa-user fa-fw"></i>Regsiter</a> </li> <li>
<a href="manage-students.php"><i class="fa fa-users fa-fw"></i>View Students</a>
</li>
<li><a href="session.php"><i class="fa fa-calendar fa-fw"></i>Session</a> </li> <li>
<a href="change-password.php"><i class="fa fa-cog fa-fw"></i> Change
Password</a> </li> <li>
<a href="admin-profile.php"><i class="fa fa-user fa-fw"></i>Admin Profile</a> </li>
<li>
<a href="logout.php"><i class="fa fa-sign-out fa-fw"></i>Logout</a></li> </ul>
</div></div></nav>
DISCONNECT-PAGE
<?php
$con=mysqli_connect("Localhost", "root", "", "studentrecorddb");
if(mysqli_connect_errno()){
echo "Connection Fail".mysqli_connect_error();
}
?>
INDEX-PAGE
<?php header('location:login.php');
?>
Output:
Scope of Student Management System:

The scope of a Student Management System (SMS) project using HTML,


CSS, JavaScript, PHP, and MySQL encompasses various aspects aimed at
efficiently managing student-related information within an educational
institution. This system typically includes functionalities for administrators,
teachers, and students, facilitating seamless communication and organization
of academic data.

Firstly, the administrative features involve user authentication and


authorization mechanisms to ensure secure access to the system.
Administrators can manage user accounts, including creating, editing, and
deleting accounts for teachers and students. They can also oversee course
offerings, academic calendars, and generate reports on student performance.

For teachers, the system provides tools for managing classes, recording
attendance, assigning grades, and delivering course materials. It enables them
to communicate with students and parents, schedule assignments, quizzes, and
exams, and track student progress throughout the academic term.

Students benefit from features such as accessing course materials, submitting


assignments online, viewing grades and attendance records, and
communicating with teachers. The system may also offer additional resources
such as academic calendars, class schedules, and announcements.

Additionally, the SMS should include a robust database structure implemented


using MySQL to store and manage student information, course details, grades,
attendance records, and other relevant data. PHP scripts will handle server-side
processing, database interactions, and dynamic content generation, ensuring
seamless integration between the front-end interface and back-end
functionality.

The user interface, designed using HTML and CSS, should be intuitive, user-
friendly, and responsive across different devices and screen sizes. JavaScript
will enhance interactivity, enabling features such as form validation, dynamic
content updates, and asynchronous data retrieval.

Furthermore, the project scope should encompass scalability and extensibility


to accommodate future enhancements and modifications. This may include
features like integration with other systems (e.g., learning management
systems), support for multiple languages, and customization options based on
institutional requirements.
Conclusion ;

In conclusion, the development of the Student Management System (SMS)


project has been a comprehensive journey integrating various technologies such
as HTML, CSS, JavaScript, PHP, and MySQL. This project aimed to streamline
the process of managing student information, enhancing efficiency, and
providing a user-friendly interface for both administrators and students.

Throughout the development process, several key features were implemented,


including user authentication, student registration, course management, grade
tracking, and reporting functionalities. These features were carefully designed
and implemented to meet the specific needs of educational institutions, providing
a centralized platform for managing student data.

One of the main highlights of this project is its seamless integration of front-end
and back-end technologies. HTML and CSS were utilized to create an intuitive
and visually appealing user interface, while JavaScript added interactivity and
dynamic behavior to the application. PHP served as the server-side scripting
language, facilitating data processing and interaction with the MySQL
database.Moreover, the project prioritized security and data integrity by
implementing robust authentication mechanisms, input validation techniques, and
encryption protocols to safeguard sensitive information.

Overall, the Student Management System project represents a significant


achievement in leveraging modern web technologies to address real-world
challenges in educational administration. It not only showcases the power and
versatility of HTML, CSS, JavaScript, PHP, and MySQL but also demonstrates
their collective potential in developing practical solutions for academic
institutions. As technology continues to evolve, this project serves as a
foundation for further enhancements and adaptations to meet the ever-changing
needs of the education sector.

You might also like