Professional Documents
Culture Documents
Documents
Documents
Submitted By
PRATHAP K
Register No. 21UCA233916
SALEM-7
CERTIFICATE
This is to certify that the project work entitled “ ONLINE STUDENT RESULT
MANAGEMENT SYSTEM” submitted to Government Arts College (Autonomous), Salem-7. In
partial fulfillment requirements for the award of degree of BACHELOR OF COMPUTER
APPLICATIONS is a record of project work done by (PRATHAP.K) (Register No. :
21UCA233916) between March 2024 under my supervision and guidance.
Date:
Place: Salem-7
Date:
Place: Salem-7.
ACKNOWLEDGEMENT
At the outset, I would like to thank and honor God who gave me the wisdom and knowledge
to complete this project.
SALEM-636 007
March 2024
ONLINE STUDENT RESULT MANAGEMENT SYSTEM
ABSTRACT;
The system is intended for the student. And the privileges that are provided to
student are to read and execute his/here result by providing user name and
password for secure login and in case of new student the registration is
available. And the guest user has the privilege only to read.
NUMBERS OF MODULES;
FRONT END;
HTML: HTML is used to create and save web document. E.g.
Notepad/Notepad++
CSS : (Cascading Style Sheets) Create attractive Layout
Bootstrap : responsive design mobile friendly site
BACKEND;
1.Admin Change-password;
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
{
header("Location: index.php");
}
else{
if(isset($_POST['submit']))
{
$password=md5($_POST['password']);
$newpassword=md5($_POST['newpassword']);
$username=$_SESSION['alogin'];
$sql ="SELECT Password FROM admin WHERE UserName=:username
and Password=: password"; $query= $dbh -> prepare($sql);
$query-> bindParam(':username', $username, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);
if($query -> rowCount() > 0)
{
$con="update admin set Password=:newpassword where
UserName=:username";
$chngpwd1 = $dbh->prepare($con);
$chngpwd1-> bindParam(':username', $username, PDO::PARAM_STR);
$chngpwd1-> bindParam(':newpassword', $newpassword,
PDO::PARAM_STR);
$chngpwd1->execute();
$msg="Your Password succesfully changed";
}
else { $error="Your current password is wrong";
}
}
?>
<!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">
<title>Admin change password</title>
<link rel="stylesheet" href="css/bootstrap.css"
media="screen" >
<link rel="stylesheet" href="css/font-awesome.min.css"
media="screen" >
<link rel="stylesheet" href="css/animate-css/animate.min.css"
media="screen" > <link rel="stylesheet"
href="css/lobipanel/lobipanel.min.css" media=" screen" >
<link rel="stylesheet" href="css/prism/prism.css"
media="screen" > <!-- USED FOR DEMO HELP - YOU CAN REMOVE IT -
-> <link rel="stylesheet" href ="css/main.css" media="screen"
>
<script src="js/modernizr/modernizr.min.js"></script>
<script type="text/javascript">
function valid()
{ if(document.chngpwd.newpassword.value!=
document.chngpwd.confirmpassword. value)
{
alert("New Password and Confirm Password Field do not match
!!"); document.
chngpwd.confirmpassword.focus();
return false;
}
return true;
}
</script>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">
<?php include('includes/topbar.php');?>
<div class="content-wrapper">
<div class="content-container">
<?php include('includes/leftbar.php');?> <!-- /.left-sidebar
-->
<div class="main-page">
<div class="container-fluid">
<div class="row page-title-div">
<div class="col-md-6">
<h2 class="title">Admin Change Password</h2>
</div>
</div>
<!-- /.row -->
<div class="row breadcrumb-div">
<div class="col-md-6">
<ul class="breadcrumb">
<li><a href="dashboard.php"><i class="fa
fa-home"></i> Home</a></li>
</div>
<!--
/.row --
> </div>
<section class="section">
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
<h5>Admin Change Password</h5>
</div>
</div>
<?php if($msg){?>
<div class="alert alert-success left-icon-alert" role="alert">
<strong>Well done!</strong><?php echo htmlentities($msg); ?>
</div><?php }
else if($error){?> <div class="alert alert-danger left-icon-
alert" role=" alert">
<strong>Oh snap!</strong> <?php echo htmlentities($error); ?>
</div>
<?php } ?>
<div class="panel-body">
</div> </div>
<div class="form-group has-success"> <label for="success"
class="controllabel">New Password</label> <div class="">
<input type="password" name="newpassword" required="required"
class="formcontrol" id="success"> </div>
</div>
<div class="form-group has-success"> <label for="success"
class="controllabel">Confirm Password</label> <div class="">
<input type="password" name ="confirmpassword" class="form-
control" required="required" id="success"> </ div>
</div>
<div class="form-group has-success">
<div class="">
<button type="submit" name="submit" class="btn btn-success
btn-labeled"> Change<span class="btn-label btn-label-right"><i
class="fa fa-check"></i></ span></button> </div>
</form>
</div>
</div>
</div> <!-- /.col-md-8 col-md-offset-2 -->
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.section -->
</div>
<!-- /.main-page -->
</div>
<!-- /.content-container -->
</div>
<!-- /.content-wrapper -->
</div>
<!-- /.main-wrapper -->
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
{
header("Location: index.php");
}
else{
if(isset($_POST['submit']))
{
$marks=array();
$class=$_POST['class'];
$studentid=$_POST['studentid'];
$mark=$_POST['marks'];
$stmt = $dbh->prepare("SELECT
tblsubjects.SubjectName,tblsubjects.id FROM
tblsubjectcombination join tblsubjects on tblsubjects.id=
tblsubjectcombination.SubjectId WHERE
tblsubjectcombination.ClassId=:cid
order by tblsubjects.SubjectName"); $stmt-
>execute(array(':cid' => $class));
$sid1=array();
while($row=$stmt->fetch(PDO::FETCH_ASSOC))
{
array_push($sid1,$row['id']);
}
for($i=0;$i<count($mark);$i++){
$mar=$mark[$i];
$sid=$sid1[$i];
$sql="INSERT INTO tblresult(StudentId,ClassId,SubjectId,marks)
VALUES(: studentid,:class,:sid,:marks)"; $query = $dbh-
>prepare($sql); $query->
bindParam(':studentid',$studentid,PDO::PARAM_STR); $query-
>bindParam(':class ',$class,PDO::PARAM_STR); $query-
>bindParam(':sid',$sid,PDO::PARAM_STR); $ query-
>bindParam(':marks',$mar,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
$msg="Result info added successfully";
}
else
{
$error="Something went wrong. Please try again";
}
}
}
?>
<!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">
<title>SRMS Admin| Add Result </title>
<link rel="stylesheet" href="css/bootstrap.min.css"
media="screen" >
<link rel="stylesheet" href="css/font-awesome.min.css"
media="screen" >
<link rel="stylesheet" href="css/animate-css/animate.min.css"
media="screen" > <link rel="stylesheet"
href="css/lobipanel/lobipanel.min.css" media=" screen" >
<link rel="stylesheet" href="css/prism/prism.css"
media="screen" >
<link rel="stylesheet" href="css/select2/select2.min.css" >
<link rel="stylesheet" href="css/main.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
<script>
function getStudent(val) {
$.ajax({
type: "POST",
url: "get_student.php",
data:'classid='+val,
success: function(data){
$("#studentid").html(data);
}
});
$.ajax({
type: "POST",
url: "get_student.php",
data:'classid1='+val,
success: function(data){
$("#subject").html(data);
}
});
}
</script>
<script>
function getresult(val,clid)
{
var
clid=$(".cl
id").val();
var
val=$(".sti
d").val();;
var
abh=clid+'$
'+val;
//alert(abh);
$.ajax({
type: "POST",
url: "get_student.php",
data:'studclass='+abh,
success: function(data){
$("#reslt").html(data);
}
});
} </script>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">
<div class="main-page">
<div class="container-fluid">
<div class="row page-title-div">
<div class="col-md-6">
<h2 class="title">Declare Result</h2>
</div>
</div>
<!-- /.row -->
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-body">
<?php if($msg){?>
<div class="alert alert-success left-icon-alert" role="alert">
<strong>Well done!</strong><?php echo htmlentities($msg); ?>
</div><?php }
else if($error){?>
<div class="alert alert-danger left-icon-alert" role="alert">
<strong>Oh snap!</strong> <?php echo htmlentities($error); ?>
</div>
<?php } ?>
<form class="form-horizontal" method="post">
<div class="form-group">
<label for="default" class="col-sm-2 control-
label">Class</label>
<div class="col-sm-10">
<select name="class" class="form-control clid" id="classid"
onChange=" getStudent(this.value);" required="required">
<option value="">Select Class</ option>
<?php $sql = "SELECT * from tblclasses";
$query = $dbh->prepare($sql);
$query->execute(); $results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<option value="<?php echo htmlentities($result->id); ?>"><?php
echo htmlentities($result->ClassName); ?> Section-<?php
echo htmlentities($ result->Section); ?></option> <?php }} ?>
</select>
</div>
</div>
<div class="form-group">
<label for="date" class="col-sm-2 control-label ">Student
Name</label> <div class="col-sm-10"> <select
name="studentid" class="form-control stid" id=" studentid"
required="required" onChange="getresult(this.value);">
</select>
</div> </div>
<div class="form-group">
<div class="col-sm-10">
<div id="reslt">
</div>
</div>
</div>
<div class="form-group">
<label for="date" class="col-sm-2 control-
label">Subjects</label> <div class="col-sm-10">
<div id="subject">
</div>
</div> </div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10"> <button
type="submit" name="submit" id="submit" class="btn btn-
primary">Declare Result</button> </div>
</div>
</form>
</div>
</div>
</div>
<!--
/.col-
md-12
-->
</div>
</div>
</div>
<!--
/.content-
container -->
}
?>
<!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">
<title>SRMS Admin| Student Admission< </title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" >
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen" >
<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen"
>
<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen"
>
<link rel="stylesheet" href="css/prism/prism.css" media="screen" >
<link rel="stylesheet" href="css/select2/select2.min.css" >
<div class="main-page">
<div class="container-fluid">
<div class="row page-title-div">
<div class="col-md-6">
<h2 class="title">Student Admission</h2>
</div>
<!-- /.col-md-6 text-right -->
</div>
<!-- /.row -->
<div class="row breadcrumb-div">
<div class="col-md-6">
<ul class="breadcrumb">
<li><a href="dashboard.php"><i class="fa fa-home"></i> Home</a></li>
</div>
<!-- /.row -->
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
<h5>Fill the Student info</h5>
</div>
</div>
<div class="panel-body">
<?php if($msg){?>
<div class="alert alert-success left-icon-alert" role="alert">
<strong>Well done!</strong><?php echo htmlentities($msg); ?>
</div><?php }
else if($error){?>
<div class="alert alert-danger left-icon-alert" role="alert">
<strong>Oh snap!</strong> <?php echo htmlentities($error); ?> </div>
<?php } ?>
<form class="form-horizontal" method="post">
<div class="form-group">
<label for="default" class="col-sm-2 control-label">Roll Id</label>
<div class="col-sm-10">
<input type="text" name="rollid" class="form-control" id="rollid" maxlength=" 5"
required="required" autocomplete="off"> </div>
</div>
<div class="form-group">
<label for="default" class="col-sm-2 control-label">Email id</label>
<div class="col-sm-10">
<input type="email" name="emailid" class="form-control" id="email" required="
required" autocomplete="off"> </div>
</div>
<div class="form-group">
<label for="default" class="col-sm-2 control-label">Gender</label>
<div class="col-sm-10"> <input type="radio" name="gender" value="Male"
required="required" checked="">Male <input type="radio" name="gender"
value=" Female" required="required">Female <input type="radio"
name="gender" value=" Other" required="required">Other </div>
</div>
<div class="form-group">
<label for="default" class="col-sm-2 control-label">Class</label> <div
class="col-sm-10">
<select name="class" class="form-control" id="default" required="required">
<option value="">Select Class</option>
<?php $sql = "SELECT * from tblclasses";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?> <option value="<?php echo htmlentities($result->id); ?>"><?php echo
htmlentities($result->ClassName); ?> Section-<?php echo htmlentities($
result->Section); ?></option> <?php }} ?>
</select>
</div>
</div>
<div class="form-group">
<label for="date" class="col-sm-2 control-label">DOB</label> <div class=" col-
sm-10">
<input type="date" name="dob" class="form-control" id="date"> </div>
</div>
</div>
</div>
</div>
<!--
/.col-
md-12 --
>
</div>
</div>
</div>
<!-- /.content-
container -->
</div>
<!-- /.content-wrapper -->
</div>
<!-- /.main-wrapper -->
<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script> <script src="js/pace/
pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
<script src="js/prism/prism.js"></script>
<script src="js/select2/select2.min.js"></script>
<script src="js/main.js"></script>
<script>
$(function($) {
$(".js-states").select2();
$(".js-states-limit").select2({
maximumSelectionLength: 2
});
$(".js-states-hide").select2({
minimumResultsForSearch: Infinity
});
});
</script>
</body>
</html>
<?PHP } ?>
4.Dashboard;
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
{
header("Location: index.php");
}
else{
?>
<!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">
<title>SRMS System | Dashboard</title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" >
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen" >
<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen"
>
<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen"
>
<link rel="stylesheet" href="css/toastr/toastr.min.css" media="screen" >
<link rel="stylesheet" href="css/icheck/skins/line/blue.css" >
<link rel="stylesheet" href="css/icheck/skins/line/red.css" > <link rel="
stylesheet" href="css/icheck/skins/line/green.css" >
<link rel="stylesheet" href="css/main.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">
<?php include('includes/topbar.php');?>
<div class="content-wrapper">
<div class="content-container">
<?php include('includes/leftbar.php');?>
<div class="main-page">
<div class="container-fluid">
<div class="row page-title-div">
<div class="col-sm-6">
<h2 class="title">Dashboard</h2>
</div>
<!-- /.col-sm-6 -->
</div>
<!-- /.row -->
<section class="section">
<div class="container-fluid">
<div class="row">
<div class="col-lg-3 col-md-3 col-sm-6 col-xs-12">
<a class="dashboard-stat bg-primary" href="manage-students.php"> <?php
$sql1 ="SELECT StudentId from tblstudents ";
$query1 = $dbh -> prepare($sql1);
$query1->execute();
$results1=$query1->fetchAll(PDO::FETCH_OBJ);
$totalstudents=$query1->rowCount();
?>
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.section -->
</div>
<!-- /.main-page -->
</div>
<!-- /.content-container -->
</div>
<!-- /.content-wrapper -->
</div>
<!-- /.main-wrapper -->
delay:
10,
time:
1000
});
// Welcome notification
toastr.options = {
"closeButton": true,
"debug": false,
"newestOnTop": false,
"progressBar": false,
"positionClass": "toast-top-right",
"preventDuplicates": false,
"onclick": null,
"showDuration": "300",
"hideDuration": "1000",
"timeOut": "5000",
"extendedTimeOut": "1000",
"showEasing": "swing",
"hideEasing": "linear",
"showMethod": "fadeIn",
"hideMethod": "fadeOut"
}
toastr["success"]( "Welcome to student Result Management System!");
}); </script>
</body>
<div class="foot"><footer>
</footer> </div>
}
?>
<!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"> <
title>SRMS Admin Subject Combination< </title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen" >
<link rel="stylesheet" href="css/font-awesome.min.css" media="screen" >
<link rel="stylesheet" href="css/animate-css/animate.min.css" media="screen"
>
<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen"
>
<link rel="stylesheet" href="css/prism/prism.css" media="screen" >
<link rel="stylesheet" href="css/select2/select2.min.css" >
<link rel="stylesheet" href="css/main.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">
<?php include('includes/topbar.php');?>
<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT ==========
-->
<div class="content-wrapper"> <div class="content-container">
<div class="main-page">
<div class="container-fluid">
<div class="row page-title-div">
<div class="col-md-6">
<h2 class="title">Add Subject Combination</h2>
</div>
</div>
<!-- /.row -->
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
<h5>Add Subject Combination</h5>
</div>
</div>
<div class="panel-body">
<?php if($msg){?>
<div class="alert alert-success left-icon-alert" role="alert">
<strong>Well done!</strong><?php echo htmlentities($msg); ?>
</div><?php }
else if($error){?>
<div class="alert alert-danger left-icon-alert" role="alert">
<strong>Oh snap!</strong> <?php echo htmlentities($error); ?> </div>
<?php } ?>
<form class="form-horizontal" method="post"> <div class="form-group">
<label for="default" class="col-sm-2 control-label">Class</label> <div
class="col-sm-10"> <select name="class" class="form-control" id="default"
required="required">
</div>
</div>
</div>
<!--
/.col-
md-12 --
>
</div>
</div>
</div>
<!-- /.content-
container -->
</div>
<!-- /.content-wrapper -->
</div>
<!-- /.main-wrapper -->
<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
<script src="js/prism/prism.js"></script>
<script src="js/select2/select2.min.js"></script>
<script src="js/main.js"></script>
<script>
$(function($) { $(".js-states").select2();
$(".js-states-limit").select2({
maximumSelectionLength: 2
});
$(".js-states-hide").select2({
minimumResultsForSearch: Infinity
});
});
</script>
</body>
</html>
<?PHP } ?>
6.Manage-classes;
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
header("Location: index.php");
else{
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- USED FOR DEMO HELP - YOU CAN REMOVE IT --> <link rel="stylesheet" type
<script src="js/modernizr/modernizr.min.js"></script>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
</style>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">
<?php include('includes/topbar.php');?>
<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT ==========
--> <
div class="content-wrapper">
<div class="content-container">
<?php include('includes/leftbar.php');?>
<div class="main-page">
<div class="container-fluid">
<div class="row page-title-div">
<div class="col-md-6">
</div>
</div>
<div class="col-md-6">
<ul class="breadcrumb">
</div>
</div>
</div>
<section class="section">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
</div>
</div>
<?php if($msg){?>
<?php } ?>
<tr>
<th>#</th>
</tr>
</thead>
<tfoot>
<tr>
<th>#</th>
</tr>
</tfoot> <tbody>
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<tr>
;?></td> <td>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
</div>
<!-- /.main-wrapper -->
<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
datatables.min.js"></script>
<script src="js/main.js"></script>
<script>
$(function($) {
$('#example').DataTable();
$('#example2').DataTable( {
"scrollY": "300px",
"scrollCollapse": true,
"paging": false
} );
$('#example3').DataTable();
});
</script>
</body>
</html>
<?php } ?>
7.Declare Result;
<?php
session_start();
error_reporting(0);
include('includes/config.php');
?>
<!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">
<title>Student Result Management System</title>
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen"
>
<link rel="stylesheet" href="css/font-awesome.min.css"
media="screen" >
<link rel="stylesheet" href="css/animate-css/animate.min.css"
media="screen"
>
<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css"
media="screen"
>
<link rel="stylesheet" href="css/prism/prism.css" media="screen" >
<link rel="stylesheet" href="css/main.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
</head>
<body>
<div class="main-wrapper">
<div class="content-wrapper"> <div class="content-container">
<!-- /.left-sidebar -->
<div class="main-page">
<div class="container-fluid">
<div class="row page-title-div">
<div class="col-md-12">
<h2 class="title" align="center">Result Management System</h2>
</div>
</div>
<!-- /.row -->
<!-- /.row -->
</div>
<!-- /.container-fluid -->
<section class="section">
<div class="container-fluid">
<div class="row">
<div class="col-md-8 col-md-offset-2"> <div class="panel">
<div class="panel-heading">
<div class="panel-title">
<?php
$rollid=$_POST['rollid'];
$classid=$_POST['class'];
$_SESSION['rollid']=$rollid;
$_SESSION['classid']=$classid;
$qery = "SELECT
tblstudents.StudentName,tblstudents.RollId,tblstudents.
RegDate,tblstudents.StudentId,tblstudents.Status,tblclasses.ClassNa
me,
tblclasses.Section from tblstudents join tblclasses on tblclasses.id=
tblstudents.ClassId where tblstudents.RollId=:rollid and
tblstudents.ClassId
=:classid "; $stmt = $dbh->prepare($qery);
$stmt->bindParam(':rollid',$rollid,PDO::PARAM_STR); $stmt-
>bindParam(':
classid',$classid,PDO::PARAM_STR);
$stmt->execute();
$resultss=$stmt->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($stmt->rowCount() > 0)
{
foreach($resultss as $row)
{ ?>
<p><b>Student Name :</b> <?php echo htmlentities($row-
>StudentName);?></p> <p
><b>Student Roll Id :</b> <?php echo htmlentities($row->RollId);?>
<p><b>Student Class:</b> <?php echo htmlentities($row-
>ClassName);?>(<?php
echo htmlentities($row->Section);?>) <?php }
?>
</div>
<div class="panel-body p-20">
<table class="table table-hover table-bordered"> <thead>
<tr>
<th>#</th>
<th>Subject</th>
<th>Marks</th>
</tr>
</thead>
<tbody>
<?php
// Code for result
$query ="select t.StudentName,t.RollId,t.ClassId,t.marks,SubjectId,
tblsubjects.SubjectName from (select
sts.StudentName,sts.RollId,sts.ClassId,
tr.marks,SubjectId from tblstudents as sts join tblresult as tr on tr.
StudentId=sts.StudentId) as t join tblsubjects on
tblsubjects.id=t.SubjectId
where (t.RollId=:rollid and t.ClassId=:classid)"; $query= $dbh ->
prepare($
query);
$query->bindParam(':rollid',$rollid,PDO::PARAM_STR); $query-
>bindParam(':
classid',$classid,PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($countrow=$query->rowCount()>0)
{
foreach($results as $result){
?>
<tr>
<th scope="row"><?php echo htmlentities($cnt);?></th> <td><?
php echo htmlentities($result->SubjectName);?></td> <td><?php
echo htmlentities($totalmarks=$result->marks);?></td> </tr>
<?php
$totlcount+=$totalmarks;
$cnt++;}
?>
<tr>
<th scope="row" colspan="2">Total Marks</th> <td><b><?php echo
htmlentities(
$totlcount); ?></b> out of <b><?php echo
htmlentities($outof=($cnt-1)*100); ?
></b></td> </tr>
<tr>
<th scope="row" colspan="2">Percntage</th> <td><b><?php echo
htmlentities(
$totlcount*(100)/$outof); ?> %</b></td> </tr>
<tr> <th scope="row" colspan="2">Download Result</th>
<td><b><a href="
download-result.php">Download </a> </b></td> </tr>
<?php } else { ?>
<div class="alert alert-warning left-icon-alert" role="alert">
<strong>Notice!</strong> Your result not declare yet <?php }
?>
</div>
<?php
} else
{?>
<div class="alert alert-danger left-icon-alert" role="alert">
strong>Oh snap!</strong>
<?php
echo htmlentities("Invalid Roll Id");
}
?>
</div>
</tbody>
</table>
</div>
</div> <!-- /.panel -->
</div>
<!-- /.col-md-6 -->
<div class="form-group">
<div class="col-sm-6">
<a href="index.php">Back to Home</a> </div>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.section -->
</div>
<!-- /.main-page -->
</div> <!-- /.content-container -->
</div>
<!-- /.content-wrapper -->
</div>
<!-- /.main-wrapper -->
<!-- ========== COMMON JS FILES ========== -->
<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
<!-- ========== PAGE JS FILES ========== -->
<script src="js/prism/prism.js"></script>
<!-- ========== THEME JS ========== -->
<script src="js/main.js"></script>
<script>
$(function($) {
});
</script>
<!-- ========== ADD custom.js FILE BELOW WITH YOUR CHANGES
========== -->
</body>
</html>
8.Manage – Subjects;
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
{
header("Location: index.php");
else{
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!-- USED FOR DEMO HELP - YOU CAN REMOVE IT --> <link rel="stylesheet" type
<script src="js/modernizr/modernizr.min.js"></script>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
</style>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">
<?php include('includes/topbar.php');?>
<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT ==========
--> <
div class="content-wrapper">
<div class="content-container">
<?php include('includes/leftbar.php');?>
<div class="main-page">
<div class="container-fluid">
<div class="row page-title-div">
<div class="col-md-6">
</div>
</div>
<div class="col-md-6">
<ul class="breadcrumb">
</div>
</div>
</div>
<section class="section">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
</div>
</div>
<?php if($msg){?>
<?php } ?>
<tr>
<th>#</th>
</tr>
</thead>
<tfoot>
<tr>
<th>#</th>
</tr>
</tfoot> <tbody>
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<tr>
UpdationDate);?></td> <td>
</td>
</tr>
<?php $cnt=$cnt+1;}} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- /.row -->
</div>
</section>
</div>
</div>
</div>
</div>
<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
datatables.min.js"></script>
<script src="js/main.js"></script>
<script>
$(function($) {
$('#example').DataTable();
$('#example2').DataTable( {
"scrollY": "300px",
"scrollCollapse": true,
"paging": false
} );
$('#example3').DataTable();
});
</script>
</body>
</html>
<?php } ?>
9.Create - Student Class;
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
header("Location: index.php");
else{
if(isset($_POST['submit']))
$classname=$_POST['classname'];
$classnamenumeric=$_POST['classnamenumeric'];
$section=$_POST['section'];
$query->bindParam(':classname',$classname,PDO::PARAM_STR); $query-
>bindParam(
':classnamenumeric',$classnamenumeric,PDO::PARAM_STR); $query->bindParam(':
section',$section,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
else
{
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
>
>
FOR DEMO HELP - YOU CAN REMOVE IT --> <link rel="stylesheet" href="css/main.
<script src="js/modernizr/modernizr.min.js"></script>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
.succWrap{
padding: 10px;
</style>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">
<!-- ========== TOP NAVBAR ========== -->
<?php include('includes/topbar.php');?>
<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT ========== -->
<div class="content-wrapper">
<div class="content-container">
<?php include('includes/leftbar.php');?>
<div class="main-page">
<div class="container-fluid">
<div class="col-md-6">
</div>
<div class="col-md-6">
<ul class="breadcrumb">
fa-home"></i> Home</a></li>
<li><a href="#">Classes</a></li>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
</div>
</div>
<?php if($msg){?>
</div><?php }
else if($error){?>
<?php } ?>
<div class="panel-body">
<form method="post">
class="">
</div>
div>
</div>
</div>
<div class="">
span></button> </div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
</div>
</div>
<!-- /.content-container -->
</div>
</div>
<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/jquery-ui/jquery-ui.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
<script src="js/prism/prism.js"></script>
<script src="js/main.js"></script>
<!-- ========== ADD custom.js FILE BELOW WITH YOUR CHANGES ========== -->
</body>
</html>
<?php } ?>
10. subject creation;
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
header("Location: index.php");
else{
if(isset($_POST['submit']))
$subjectname=$_POST['subjectname'];
$subjectcode=$_POST['subjectcode'];
$query->bindParam(':subjectname',$subjectname,PDO::PARAM_STR); $query->
bindParam(':subjectcode',$subjectcode,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
else
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
>
<link rel="stylesheet" href="css/lobipanel/lobipanel.min.css" media="screen"
>
<script src="js/modernizr/modernizr.min.js"></script>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">
<?php include('includes/topbar.php');?>
<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT ========== -->
<div class="content-wrapper">
<div class="content-container">
<?php include('includes/leftbar.php');?>
<!-- /.left-sidebar -->
<div class="main-page">
<div class="container-fluid">
<div class="col-md-6">
</div>
</div>
<div class="col-md-6">
<ul class="breadcrumb">
<li><a href="dashboard.php"><i class="fa fa-home"></i> Home</a></li> <li>
Subjects</li>
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
<h5>Create Subject</h5>
</div>
</div>
</div><?php }
else if($error){?>
<?php } ?>
div class="col-sm-10">
</div>
<div class="form-group">
div class="col-sm-10">
</div>
<div class="form-group">
</div>
</form>
</div>
</div>
</div>
<!-- /.col-md-12 -->
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/prism/prism.js"></script>
<script src="js/select2/select2.min.js"></script>
<script src="js/main.js"></script>
<script>
$(function($) {
$(".js-states").select2();
$(".js-states-limit").select2({
maximumSelectionLength: 2
});
$(".js-states-hide").select2({
minimumResultsForSearch: Infinity
});
});
</script>
</body>
</html>
<?PHP } ?>
11.Student Admission;
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
header("Location: index.php");
else{
if(isset($_POST['submit']))
$studentname=$_POST['fullanme'];
$roolid=$_POST['rollid'];
$studentemail=$_POST['emailid'];
$gender=$_POST['gender'];
$classid=$_POST['class'];
$dob=$_POST['dob'];
$status=1;
DOB,Status) VALUES(:studentname,:roolid,:studentemail,:gender,:classid,:dob,:
$query->bindParam(':studentname',$studentname,PDO::PARAM_STR); $query->
bindParam(':roolid',$roolid,PDO::PARAM_STR); $query->bindParam(':studentemail
',$studentemail,PDO::PARAM_STR); $query->bindParam(':gender',$gender,PDO::
PARAM_STR); $query->bindParam(':classid',$classid,PDO::PARAM_STR);
$query->bindParam(':dob',$dob,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute(); $lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
else
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
>
>
/modernizr/modernizr.min.js"></script>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">
<?php include('includes/topbar.php');?>
<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT ========== -->
<div class="content-wrapper">
<div class="content-container">
<?php include('includes/leftbar.php');?>
<div class="main-page">
<div class="container-fluid">
</div>
</div>
<div class="col-md-6">
<ul class="breadcrumb">
</ul>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
</div>
</div>
<div class="panel-body">
<?php if($msg){?>
else if($error){?>
<?php } ?>
Full Name</label>
<div class="col-sm-10">
</div>
<div class="form-group">
<div class="col-sm-10">
</div>
<div class="form-group">
<div class="col-sm-10">
</div>
<div class="form-group">
</div>
<div class="form-group">
class="col-sm-10">
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
foreach($results as $result)
</select>
</div>
</div>
<div class="form-group">
col-sm-10">
</div>
div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/jquery/jquery-2.2.4.min.js"></script>
pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
<script src="js/prism/prism.js"></script>
<script src="js/select2/select2.min.js"></script>
<script src="js/main.js"></script>
<script>
$(function($) {
$(".js-states").select2();
$(".js-states-limit").select2({
maximumSelectionLength: 2
});
$(".js-states-hide").select2({
minimumResultsForSearch: Infinity
});
});
</script>
</body>
</html>
<?PHP } ?>
12.Manage - Subjects Combination;
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
header("Location: index.php");
else{
if(isset($_GET['acid']))
$acid=intval($_GET['acid']);
$status=1;
$query = $dbh->prepare($sql);
$query->bindParam(':acid',$acid,PDO::PARAM_STR); $query->bindParam(':status',
$status,PDO::PARAM_STR);
$query->execute();
if(isset($_GET['did']))
$did=intval($_GET['did']);
$status=0;
$query->bindParam(':did',$did,PDO::PARAM_STR); $query->bindParam(':status',$
status,PDO::PARAM_STR);
$query->execute();
?>
<!DOCTYPE html>
<html lang="en">
<head>
>
<!-- USED FOR DEMO HELP - YOU CAN REMOVE IT --> <link rel="stylesheet" type
<script src="js/modernizr/modernizr.min.js"></script>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
</style>
</head>
<body class="top-navbar-fixed">
<div class="main-wrapper">
<?php include('includes/topbar.php');?>
<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT ========== --> <
div class="content-wrapper">
<div class="content-container">
<?php include('includes/leftbar.php');?>
<div class="main-page">
<div class="container-fluid">
</div>
</div>
<ul class="breadcrumb">
Combination</li>
</ul>
</div>
</div>
</div>
<section class="section">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
</div>
<?php if($msg){?>
</div><?php }
else if($error){?>
<?php } ?>
<div class="panel-body p-20">
<tr>
<th>#</th>
th>
</tr> </thead>
<tfoot>
<tr>
<th>#</th>
th>
</tr>
</tfoot>
tblsubjects.SubjectName,tblsubjectcombination.id as scid,
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
foreach($results as $result)
{ ?>
<tr>
echo htmlentities('Inactive');
else
echo htmlentities('Active');
} ?></td>
<td>
<?php if($stts=='0')
{ ?>
<a href="manage-subjectcombination.php?acid=<?php echo htmlentities($result->
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<!-- /.col-md-12 -->
</div>
</div>
</div>
</div>
</div>
</section>
</div>
<!-- /.main-page -->
</div>
</div>
</div>
<script src="js/jquery/jquery-2.2.4.min.js"></script>
<script src="js/bootstrap/bootstrap.min.js"></script>
<script src="js/pace/pace.min.js"></script>
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
<script src="js/prism/prism.js"></script>
<script src="js/DataTables/datatables.min.js"></script>
<script src="js/main.js"></script>
<script>
$(function($) {
$('#example').DataTable();
$('#example2').DataTable( {
"scrollY": "300px",
"scrollCollapse": true,
"paging": false
} );
$('#example3').DataTable();
});
</script>
</body>
</html>
<?php } ?>