Sunteți pe pagina 1din 32

CHAPTER-1

1.1 INTRODUCTION TO PROJECT

Student report generator is a web based application designed and engineered


for colleges that need to manage results across multiple branches students that
need to track, manage and report results. This application can run on any kind
of operating system. At a time we can see all the years result in a single sheet
and we can see the individual candidate’s results separately. The main
objective of the project is to provide the examination result to the student in a
simple way.
This project is useful for students and institutions for getting the results in
simple manner.
By a result analyzer with subject status and marks is an application tool for
displaying the results in secure way.
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.
The whole result analyzer will be under the control of the administrator and the
admin as the full privileges to read, write and execute the result

1.2 TOOLS USED

Language Used : PHP

Database : My SQL

User Interface Design : HTML, AJAX,JQUERY,JAVASCRIPT

Web Browser : Mozilla, Google Chrome, IE8,OPERA

Software : XAMPP ServeR


1
CHAPTER 2

How to install XAMPP on Windows 10

To download and install XAMPP on your Windows 10 computer, use the


following steps:

Step 1:Download XAMPP from Apache Friends.

Step 2: Double-click the file to run the installer.

Step 3: Click the OK button on the warning to continue.

Step 4: Click the Next button.

2
Step 5: XAMPP offers a variety of components that you can install, such as
MySQL, phpMyAdmin, PHP, Apache, and more. For the most part, you will be
using most of these components, as such it’s recommended to leave the default
options and click the Next button.

3
Step 6: Use the default install location settings, or choose another folder to
install the software, and click the Next button.

4
Step 7: Clear the Learn more about Bitnami for XAMPP option.

Step 8: Click the Next button.

5
Step 9: Click the Allow access button to allow the app through the firewall (if
applicable).

6
Step 10: Click the Finish button.

7
Step 11: Choose your language (English or German).

Step 12: Click the Save button.

8
Once you’ve completed the steps, the XAMPP Control Panel will launch, and
you can begin the web server environment configuration.

9
CHAPTER 3

3.1 PROJECT PROTOTYPE

Student Result Management System divided in two modules–

 Student
 Admin

Admin Features

 Admin Dashboard
 Admin can add/update/ Class
 Admin can add/update/ Subjects
 Admin can add/update/ Active/Inactive Subject combination with class
 Admin can register new student and also edit info of the student
 Admin can declare/ edit result of a student.
 Admin can change own password

10
CHAPTER 4

4.1. CODE

Index.php
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if($_SESSION['alogin']!=''){
$_SESSION['alogin']='';
}
if(isset($_POST['login']))
{
$uname=$_POST['username'];
$password=md5($_POST['password']);
$sql ="SELECT UserName,Password FROM admin WHERE UserName=:uname and
Password=:password";
$query= $dbh -> prepare($sql);
$query-> bindParam(':uname', $uname, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
$_SESSION['alogin']=$_POST['username'];
echo "<script type='text/javascript'> document.location = 'dashboard.php'; </script>";
} else{

echo "<script>alert('Invalid Details');</script>";

11
}
}
?>
<!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 Login</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/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>
</head>
<body class="">
<div class="main-wrapper">
<div class="">
<div class="row">
<h1 align="center">Student Result Management System</h1>
<div class="col-lg-6 visible-lg-block">
<section class="section">
<div class="row mt-40">
<div class="col-md-10 col-md-offset-1 pt-50">
<div class="row mt-30 ">
<div class="col-md-11">
<div class="panel">
<div class="panel-heading">

12
<div class="panel-title text-center">
<h4>For Students</h4>
</div>
</div>
<div class="panel-body p-20">
<div class="section-title">
<p class="sub-title">Student Result Management System</p>
</div>
<form class="form-horizontal" method="post">
<div class="form-group">
<label for="inputEmail3" class="col-sm-6 control-label">Search your result</label>
<div class="col-sm-6">
<a href="find-result.php">click here</a>
</div>
</div>
</form>
</div>
</div>
<!-- /.panel -->
</div>
<!-- /.col-md-11 -->
</div>
<!-- /.row -->
</div>
<!-- /.col-md-12 -->
</div>
<!-- /.row -->
</section>
</div>
<div class="col-lg-6">
<section class="section">

13
<div class="row mt-40">
<div class="col-md-10 col-md-offset-1 pt-50">
<div class="row mt-30 ">
<div class="col-md-11">
<div class="panel">
<div class="panel-heading">
<div class="panel-title text-center">
<h4>Admin Login</h4>
</div>
</div>
<div class="panel-body p-20">
<div class="section-title">
<p class="sub-title">Student Result Management System</p>
</div>
<form class="form-horizontal" method="post">
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Email</label>
<div class="col-sm-10">
<input type="text" name="username" class="form-control" id="inputEmail3"
placeholder="UserName">
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-2 control-label">Password</label>
<div class="col-sm-10">
<input type="password" name="password" class="form-control" id="inputPassword3"
placeholder="Password">
</div>
</div>
<div class="form-group mt-20">
<div class="col-sm-offset-2 col-sm-10">

14
<button type="submit" name="login" class="btn btn-success btn-labeled pull-right">Sign
in<span class="btn-label btn-label-right"><i class="fa fa-check"></i></span></button>
</div>
</div>
</form>
</div>
</div>
<!-- /.panel -->
<p class="text-muted text-center"><small>Copyright © SRMS</small></p>
</div>
<!-- /.col-md-11 -->
</div>
<!-- /.row -->
</div>
<!-- /.col-md-12 -->
</div>
<!-- /.row -->
</section>
</div>
<!-- /.col-md-6 -->
</div>
<!-- /.row -->
</div>
<!-- /. -->
</div>
<!-- /.main-wrapper -->
<!-- ========== COMMON JS FILES ========== -->
<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>

15
<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 ========== -->

<!-- ========== THEME JS ========== -->


<script src="js/main.js"></script>
<script>
$(function(){
});
</script>
<!-- ========== ADD custom.js FILE BELOW WITH YOUR CHANGES ========== -
->
</body>
</html>

Create class.php
<?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'];

16
$section=$_POST['section'];
$sql="INSERT INTO tblclasses(ClassName,ClassNameNumeric,Section)
VALUES(:classname,:classnamenumeric,:section)";
$query = $dbh->prepare($sql);
$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)
{
$msg="Class Created 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>SMS Admin Create Class</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" >

17
<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>
<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">

<!-- ========== TOP NAVBAR ========== -->


<?php include('includes/topbar.php');?>
<!-----End Top bar>
<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT ==========
-->

18
<div class="content-wrapper">
<div class="content-container">

<!-- ========== LEFT SIDEBAR ========== -->


<?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">Create Student Class</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>
<li><a href="#">Classes</a></li>
<li class="active">Create Class</li>
</ul>
</div>
</div>
<!-- /.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">

19
<div class="panel-heading">
<div class="panel-title">
<h5>Create Student Class</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">
<form method="post">
<div class="form-group has-success">
<label for="success" class="control-label">Class Name</label>
<div class="">
<input type="text" name="classname" class="form-control" required="required"
id="success">
<span class="help-block">Eg- Third, Fouth,Sixth etc</span>
</div>
</div>
<div class="form-group has-success">
<label for="success" class="control-label">Class Name in Numeric</label>
<div class="">
<input type="number" name="classnamenumeric" required="required" class="form-control"
id="success">
<span class="help-block">Eg- 1,2,4,5 etc</span>
</div>

20
</div>
<div class="form-group has-success">
<label for="success" class="control-label">Section</label>
<div class="">
<input type="text" name="section" class="form-control" required="required" id="success">
<span class="help-block">Eg- A,B,C etc</span>
</div>
</div>
<div class="form-group has-success">
<div class="">
<button type="submit" name="submit" class="btn btn-success btn-labeled">Submit<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>

21
<!-- /.main-wrapper -->
<!-- ========== COMMON JS FILES ========== -->
<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>
<!-- ========== PAGE JS FILES ========== -->
<script src="js/prism/prism.js"></script>
<!-- ========== THEME JS ========== -->
<script src="js/main.js"></script>
<!-- ========== ADD custom.js FILE BELOW WITH YOUR CHANGES ========== -
->
</body>
</html>
<?php } ?>

Editclass.php

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
{
header("Location: index.php");
}
else{
if(isset($_POST['update']))
{

22
$classname=$_POST['classname'];
$classnamenumeric=$_POST['classnamenumeric'];
$section=$_POST['section'];
$cid=intval($_GET['classid']);
$sql="update tblclasses set
ClassName=:classname,ClassNameNumeric=:classnamenumeric,Section=:section where
id=:cid ";
$query = $dbh->prepare($sql);
$query->bindParam(':classname',$classname,PDO::PARAM_STR);
$query->bindParam(':classnamenumeric',$classnamenumeric,PDO::PARAM_STR);
$query->bindParam(':section',$section,PDO::PARAM_STR);
$query->bindParam(':cid',$cid,PDO::PARAM_STR);
$query->execute();
$msg="Data has been updated successfully";
}
?>
<!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>SMS Admin Update Class</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>
</head>

23
<body class="top-navbar-fixed">
<div class="main-wrapper">

<!-- ========== TOP NAVBAR ========== -->


<?php include('includes/topbar.php');?>
<!-----End Top bar>
<!-- ========== WRAPPER FOR BOTH SIDEBARS & MAIN CONTENT ==========
-->
<div class="content-wrapper">
<div class="content-container">

<!-- ========== LEFT SIDEBAR ========== -->


<?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">Update Student Class</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>
<li><a href="#">Classes</a></li>
<li class="active">Update Class</li>
</ul>
</div>
</div>

24
<!-- /.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">
<h5>Update Student Class info</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 } ?>
<form method="post">
<?php
$cid=intval($_GET['classid']);
$sql = "SELECT * from tblclasses where id=:cid";
$query = $dbh->prepare($sql);
$query->bindParam(':cid',$cid,PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;

25
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<div class="form-group has-success">
<label for="success" class="control-label">Class Name</label>
<div class="">
<input type="text" name="classname" value="<?php echo htmlentities($result-
>ClassName);?>" required="required" class="form-control" id="success">
<span class="help-block">Eg- Third, Fouth,Sixth etc</span>
</div>
</div>
<div class="form-group has-success">
<label for="success" class="control-label">Class Name in Numeric</label>
<div class="">
<input type="number" name="classnamenumeric" value="<?php echo htmlentities($result-
>ClassNameNumeric);?>" required="required" class="form-control" id="success">
<span class="help-block">Eg- 1,2,4,5 etc</span>
</div>
</div>
<div class="form-group has-success">
<label for="success" class="control-label">Section</label>
<div class="">
<input type="text" name="section" value="<?php echo htmlentities($result->Section);?>"
class="form-control" required="required" id="success">
<span class="help-block">Eg- A,B,C etc</span>
</div>
</div>
<?php }} ?>
<div class="form-group has-success">
<div class="">

26
<button type="submit" name="update" class="btn btn-success btn-labeled">Update<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 -->
<!-- /.right-sidebar -->
</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/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>

27
<!-- ========== PAGE JS FILES ========== -->
<script src="js/prism/prism.js"></script>

<!-- ========== THEME JS ========== -->


<script src="js/main.js"></script>

<!-- ========== ADD custom.js FILE BELOW WITH YOUR CHANGES ========== -
->
</body>
</html>
<?php } ?>

28
CHAPTER 5

OUTPUT SCREENSHOTS

29
30
31
32

S-ar putea să vă placă și