Online Book Store
Online Book Store
INTRODUCTION
PROJECT INFORMATION
There are the some common examples of the automation like that auto pilot system in
the aircraft, automatic home systems (electric system, water system, fire alarm system, doors
system etc). These are best examples of the automation systems.
Here we have tried to develop such automatic system which is provide the automation
on the any type of the bookshop. That means a shop which has the type system which
provides the facility to the customers of the shop to purchase the books from the shop without
any complexity. For example any customer want to purchase any book from the shop than
first of all customer just choose the stream of the book than he/she can see the more than one
type of books there and than he/she can choose the specific book from there. And then
purchase it by paying price on bookshop cash counter and receives its invoice.
1
ABSTRACT
2
SCOPE
The web site will not provide the following facilities to the customers:
Cannot reserve the product for more than two days
Cannot reserve more than two products
Responsibility of damages
The product cannot be changeable when once confirmed
The objective of this web site is to provide easy assistance to both the customer as well as
the merchant with proper database and information.
3
OBJECTIVE
The purpose of this project is to provide easy shopping facility online and easy
selling facility to the merchants of all categories.
4
TOOLS AND PLATFORM
Hardware Configuration: -
-Pentium III processor with 1.2 GHz
-128mb ram
-free space of 250mb
5
CHAPTER – 2
SYSTEM DESIGN
DATA FLOW DIAGRAM
6
DATA FLOW DIAGRAM
7
E-R DIAGRAM
8
SYSTEM DEVELOPMENT LIFE CYCLE
9
DATA DESCRIPTION
10
11
MODULES
Register:
12
Profile detail:
13
Store ASP category:
14
Book details:
15
CHAPTER – 3
TESTING
i. Unit Testing:
Test cases
This test is carried out to see whether all the modules in the softwar are properly
interrelated or not. Here, the nodes are that relationship moves in only one
direction.
16
A simple line represents undirected link.
White box testing is concerned only with testing the product: it cannot guarantee
that the complete specification has been implementated.
It is implemented so that if the system fails in future we can trace as where the
fault had occurred and by directly concentrating on the error we can easily recover
or solve the problem in future.
White box testing is much more expensive than block box testing it required the
source code to be produced before the tests can be planned and the is much more
laborious in the determination of suitable input data and the determination if the
software is or is not correct.
White box testing is concerned only with testing the software product it cannot
guarantee that the complete specification has been implemented. Black box testing
is concerned only with testing the specification; it cannot guarantee that all parts
of the implementation have been tested. Thus black box testing is against the
specification and will discover faults of omission, indicating that parts of the
specification have not been fulfilled. White box testing is testing against the
implementation and will discover faults of commission, indicating that part of
the implementation is faulty. In order to faulty test a software product both black
and white box testing are required.
17
USER TRAINING
Layouts:
Register:
To access the our book store details, login is compulsory and by this means we can known
who is interested in our book store and also we can gather information of visitor.
Also after filling the registration form the visitor is known as authorized user.
18
Login:
Clicking on the login button with correct username and password the user can use the service.
19
Profile Details:
User can edit its personal information like username, password, first name, last name,
country, city, address, phone number, credit card number, credit card expire date.
20
Book Details:
This facility gives the information of selected book such as author’s name, ISBN
number,press(publisher) and the price of book.
21
Add to cart:
This is the facility provided to the visitor where user can place all there favorite books at a
single place and can access all at a time.
22
Cart Details:
In cart detail it shows the books which has been selected before for purchasing and it also
shows the quantity, book name, ISBN number, price, total price.
The user has two options such as remove item and Submit my order.
23
Order Submit:
This gives the conform nation of your order which you had done is submitted successfully.
24
Logoff:
Here visitor can leave the site. And all its previous work done in last login are been removed
because another user can’t access or misuse it.
25
LIMITATIONS
You can only see what will fit on one page at a time.
If you have a slow connection or if there are many shoppers at this site, shopping will
take F-O-R-E-V-E-R.
Online sites malfunction more frequently than B&M stores unexpectedly close.
You can't buy with cash or write a check (at most sites).
Packaging materials can take over your home (and our earth).
26
FUTURE ENHANCEMENTS
Fast service
Good management
Networking
27
CHAPTER – 4
SOURCE CODE
Index php: In index we have the principal part of the system us we see the Administrator
part and the login part.
<?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>School Result Management System</title>
<link rel="stylesheet" href="styles/bootstrap.min.css" media="screen" >
<link rel="stylesheet" href="styles/font-awesome.min.css" media="screen" >
<link rel="stylesheet" href="styles/animate-css/animate.min.css" media="screen" >
<link rel="stylesheet" href="styles/icheck/skins/flat/blue.css" >
<link rel="stylesheet" href="styles/style.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
</head>
<body class="">
<div class="sup-title">
<div class="title1">
<h1 >Student Result Management System</h1>
</div>
<div class="admin1">
<a href="admin.php">ADMIN</a>
</div>
28
</div>
<div class="main-wrapper">
29
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>
</form>
<hr>
</div>
</div>
<!-- /.panel -->
</div>
<!-- /.col-md-6 col-md-offset-3 -->
</div>
<!-- /.row -->
</div>
30
<!-- /. -->
</div>
31
Admin Login: in admin login the administrator add his username and password
<?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{
<!DOCTYPE html>
<html lang="en">
32
<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="styles/bootstrap.min.css" media="screen" >
<link rel="stylesheet" href="styles/font-awesome.min.css" media="screen" >
<link rel="stylesheet" href="styles/animate-css/animate.min.css" media="screen" >
<link rel="stylesheet" href="styles/icheck/skins/flat/blue.css" >
<link rel="stylesheet" href="styles/style.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
</head>
<body class="">
<div class="sup-title">
<div class="title1">
<h1 >Student Result Management System</h1>
</div>
<p class="text-muted text-center"><small>Copyright © SRMS by NOLINE
MAGAIA</small></p>
</div>
<div class="main-wrapper">
<div class="panel1">
<div class="row">
<div class="col-lg-6">
<section class="section">
<div class="row mt-40">
<div class="col-md-10 col-md-offset-1 pt-50">
33
<div class="panel">
<div class="panel-heading">
<div class="panel-title text-center">
<h4 id="radio1">Admin Login</h4>
</div>
</div>
<div class="panel-body p-20">
34
<div class="col-sm-6">
<a href="index.php" id="radio1">Back to Home</a>
</div>
</form>
</div>
</div>
<!-- /.panel -->
</div>
<!-- /.col-md-11 -->
</div>
<!-- /.row -->
</div>
<!-- /.col-md-12 -->
</div>
<!-- /.row -->
</section>
</div>
<!-- /.col-md-6 -->
</div>
<!-- /.row -->
</div>
<!-- /. -->
</div>
<!-- /.main-wrapper -->
35
<script src="js/iscroll/iscroll.js"></script>
});
</script>
36
Dashboard part:in dashboard part we have the parts that the administrator can organize
and edit the student, classes, results information.
<?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>Student Result Management 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">
37
<?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 -->
</div>
<!-- /.container-fluid -->
<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();
?>
38
<span class="name">Regd Users</span>
<span class="bg-icon"><i class="fa fa-users"></i></span>
</a>
<!-- /.dashboard-stat -->
</div>
<!-- /.col-lg-3 col-md-3 col-sm-6 col-xs-12 -->
39
<span class="name">Total classes listed</span>
<span class="bg-icon"><i class="fa fa-bank"></i></span>
</a>
<!-- /.dashboard-stat -->
</div>
<!-- /.col-lg-3 col-md-3 col-sm-6 col-xs-12 -->
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.section -->
</div>
<!-- /.main-page -->
40
</div>
<!-- /.content-container -->
</div>
<!-- /.content-wrapper -->
</div>
<!-- /.main-wrapper -->
41
<script>
$(function(){
// 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>
</html>
<?php } ?>
42
Create a classes:
<?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'];
$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";
}
43
}
?>
<!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" >
<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);
}
44
</style>
</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">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>
45
</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">
<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">
46
<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>
</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>
47
</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 -->
48
<!-- ========== THEME JS ========== -->
<script src="js/main.js"></script>
Manage Classes:in manage classes we can edit and organize, dividing with sections or
groups.
<?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">
49
<title>Admin Manage Classes</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" ><!-- USED FOR
DEMO HELP - YOU CAN REMOVE IT -->
<link rel="stylesheet" type="text/css" href="js/DataTables/datatables.min.css"/>
<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">
50
<!-- ========== 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">
<h2 class="title">Manage Classes</h2>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
<section class="section">
<div class="container-fluid">
51
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
<h5>View Classes 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 } ?>
<div class="panel-body p-20">
52
<tfoot>
<tr>
<th>#</th>
<th>Class Name</th>
<th>Class Name Numeric</th>
<th>Section</th>
<th>Creation Date</th>
<th>Action</th>
</tr>
</tfoot>
<tbody>
<?php $sql = "SELECT * from tblclasses";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<tr>
<td><?php echo htmlentities($cnt);?></td>
<td><?php echo htmlentities($result->ClassName);?></td>
<td><?php echo htmlentities($result->ClassNameNumeric);?></td>
<td><?php echo htmlentities($result->Section);?></td>
<td><?php echo htmlentities($result->CreationDate);?></td>
<td>
<a href="edit-class.php?classid=<?php echo htmlentities($result->id);?>"><i class="fa
fa-edit" title="Edit Record"></i></a>
</td>
</tr>
<?php $cnt=$cnt+1;}} ?>
53
</tbody>
</table>
</div>
<!-- /.col-md-12 -->
</div>
</div>
<!-- /.panel -->
</div>
<!-- /.col-md-6 -->
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.section -->
</div>
<!-- /.main-page -->
</div>
<!-- /.content-container -->
</div>
<!-- /.content-wrapper -->
54
</div>
<!-- /.main-wrapper -->
$('#example2').DataTable( {
"scrollY": "300px",
"scrollCollapse": true,
"paging": false
} );
$('#example3').DataTable();
});
</script>
</body>
</html>
<?php } ?>
55
Create Subject: to create a subject we or the administrator can create a subject with the
respective program of the course.
<?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'];
$sql="INSERT INTO tblsubjects(SubjectName,SubjectCode)
VALUES(:subjectname,:subjectcode)";
$query = $dbh->prepare($sql);
$query->bindParam(':subjectname',$subjectname,PDO::PARAM_STR);
$query->bindParam(':subjectcode',$subjectcode,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
$msg="Subject Created successfully";
}
else
{
$error="Something went wrong. Please try again";
}
56
?>
<!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 Subject Creation </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">
<div class="main-page">
<div class="container-fluid">
57
<div class="row page-title-div">
<div class="col-md-6">
<h2 class="title">Subject Creation</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>Create Subject</h5>
</div>
</div>
<div class="panel-body">
<?php if($msg){?>
<div class="alert alert-success left-icon-alert" role="alert">
58
<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">Subject Name</label>
<div class="col-sm-10">
<input type="text" name="subjectname" class="form-control" id="default"
placeholder="Subject Name" required="required">
</div>
</div>
<div class="form-group">
<label for="default" class="col-sm-2 control-label">Subject Code</label>
<div class="col-sm-10">
<input type="text" name="subjectcode" class="form-control" id="default"
placeholder="Subject Code" required="required">
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button type="submit" name="submit" class="btn btn-primary">Submit</button>
</div>
</div>
</form>
</div>
</div>
59
</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 } ?>
60
Manage Subject:in manage subject we can edit the subject or make sure that is belong to
that program.
<?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>Admin Manage Subjects</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" ><!-- USED FOR
DEMO HELP - YOU CAN REMOVE IT -->
<link rel="stylesheet" type="text/css" href="js/DataTables/datatables.min.css"/>
<link rel="stylesheet" href="css/main.css" media="screen" >
<script src="js/modernizr/modernizr.min.js"></script>
<style>
.errorWrap {
61
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">
<div class="main-page">
<div class="container-fluid">
<div class="row page-title-div">
<div class="col-md-6">
<h2 class="title">Manage Subjects</h2>
62
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
<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">
<h5>View Subjects Info</h5>
</div>
</div>
63
<?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 p-20">
64
<?php $sql = "SELECT * from tblsubjects";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<tr>
<td><?php echo htmlentities($cnt);?></td>
<td><?php echo htmlentities($result->SubjectName);?></td>
<td><?php echo htmlentities($result->SubjectCode);?></td>
<td><?php echo htmlentities($result->Creationdate);?></td>
<td><?php echo htmlentities($result->UpdationDate);?></td>
<td>
<a href="edit-subject.php?subjectid=<?php echo htmlentities($result->id);?>"><i
class="fa fa-edit" title="Edit Record"></i></a>
</td>
</tr>
<?php $cnt=$cnt+1;}} ?>
</tbody>
</table>
<!-- /.col-md-12 -->
</div>
</div>
</div>
<!-- /.col-md-6 -->
</div>
<!-- /.col-md-12 -->
65
</div>
</div>
<!-- /.panel -->
</div>
<!-- /.col-md-6 -->
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.section -->
</div>
<!-- /.main-page -->
</div>
<!-- /.content-container -->
</div>
<!-- /.content-wrapper -->
</div>
<!-- /.main-wrapper -->
66
<!-- ========== THEME JS ========== -->
<script src="js/main.js"></script>
<script>
$(function($) {
$('#example').DataTable();
$('#example2').DataTable( {
"scrollY": "300px",
"scrollCollapse": true,
"paging": false
} );
$('#example3').DataTable();
});
</script>
</body>
</html>
<?php } ?>
Add Subject Combination: this part the administrator can add the subject combination
with the respective program of the course.
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])=="")
{
header("Location: index.php");
}
else{
// for activate Subject
67
if(isset($_GET['acid']))
{
$acid=intval($_GET['acid']);
$status=1;
$sql="update tblsubjectcombination set status=:status where id=:acid ";
$query = $dbh->prepare($sql);
$query->bindParam(':acid',$acid,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$msg="Subject Activate successfully";
}
68
<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" type="text/css" href="js/DataTables/datatables.min.css"/>
<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">
69
<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">
<h2 class="title">Manage Subjects Combination</h2>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
<section class="section">
<div class="container-fluid">
70
<div class="row">
<div class="col-md-12">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
<h5>View Subjects Combination 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 } ?>
<div class="panel-body p-20">
71
<th>#</th>
<th>Class and Section</th>
<th>Subject </th>
<th>Status</th>
<th>Action</th>
</tr>
</tfoot>
<tbody>
<?php $sql = "SELECT
tblclasses.ClassName,tblclasses.Section,tblsubjects.SubjectName,tblsubjectcombination.i
d as scid,tblsubjectcombination.status from tblsubjectcombination join tblclasses on
tblclasses.id=tblsubjectcombination.ClassId join tblsubjects on
tblsubjects.id=tblsubjectcombination.SubjectId";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<tr>
<td><?php echo htmlentities($cnt);?></td>
<td><?php echo htmlentities($result->ClassName);?> Section-<?php echo
htmlentities($result->Section);?></td>
<td><?php echo htmlentities($result->SubjectName);?></td>
<td><?php $stts=$result->status;
if($stts=='0')
{
echo htmlentities('Inactive');
}
else
{
echo htmlentities('Active');
72
}
?></td>
<td>
<?php if($stts=='0')
{ ?>
<a href="manage-subjectcombination.php?acid=<?php echo htmlentities($result->scid);?
>" onclick="confirm('do you really want to ativate this subject');"><i class="fa fa-check"
title="Acticvate Record"></i></a><?php } else {?>
</tbody>
</table>
<!-- /.col-md-12 -->
</div>
</div>
</div>
<!-- /.col-md-6 -->
</div>
<!-- /.col-md-12 -->
</div>
</div>
<!-- /.panel -->
</div>
<!-- /.col-md-6 -->
</div>
73
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.section -->
</div>
<!-- /.main-page --> `
</div>
<!-- /.content-container -->
</div>
<!-- /.content-wrapper -->
</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
} );
74
$('#example3').DataTable();
});
</script>
</body>
</html>
<?php } ?>
Manage Subject: in the part the administrator can edit and organize the sujects.
<?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>Admin Manage Subjects</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" ><!-- USED FOR
DEMO HELP - YOU CAN REMOVE IT -->
75
<link rel="stylesheet" type="text/css" href="js/DataTables/datatables.min.css"/>
<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">
<div class="main-page">
76
<div class="container-fluid">
<div class="row page-title-div">
<div class="col-md-6">
<h2 class="title">Manage Subjects</h2>
</div>
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
<section class="section">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="panel">
77
<div class="panel-heading">
<div class="panel-title">
<h5>View Subjects 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 } ?>
<div class="panel-body p-20">
78
<th>Updation Date</th>
<th>Action</th>
</tr>
</tfoot>
<tbody>
<?php $sql = "SELECT * from tblsubjects";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<tr>
<td><?php echo htmlentities($cnt);?></td>
<td><?php echo htmlentities($result->SubjectName);?></td>
<td><?php echo htmlentities($result->SubjectCode);?></td>
<td><?php echo htmlentities($result->Creationdate);?></td>
<td><?php echo htmlentities($result->UpdationDate);?></td>
<td>
<a href="edit-subject.php?subjectid=<?php echo htmlentities($result->id);?>"><i
class="fa fa-edit" title="Edit Record"></i></a>
</td>
</tr>
<?php $cnt=$cnt+1;}} ?>
</tbody>
</table>
79
</div>
</div>
<!-- /.col-md-6 -->
</div>
<!-- /.col-md-12 -->
</div>
</div>
<!-- /.panel -->
</div>
<!-- /.col-md-6 -->
</div>
<!-- /.row -->
</div>
<!-- /.container-fluid -->
</section>
<!-- /.section -->
</div>
<!-- /.main-page -->
</div>
<!-- /.content-container -->
</div>
<!-- /.content-wrapper -->
</div>
<!-- /.main-wrapper -->
80
<!-- ========== 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>
$('#example2').DataTable( {
"scrollY": "300px",
"scrollCollapse": true,
"paging": false
} );
$('#example3').DataTable();
});
</script>
</body>
</html>
<?php } ?>
Student admission:in this part we have all the information about the student. Name, roll
number, gender, class.
81
<?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;
$sql="INSERT INTO
tblstudents(StudentName,RollId,StudentEmail,Gender,ClassId,DOB,Status)
VALUES(:studentname,:roolid,:studentemail,:gender,:classid,:dob,:status)";
$query = $dbh->prepare($sql);
$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)
82
{
$msg="Student 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>SMS 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" >
<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">
83
<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">Student Admission</h2>
</div>
</div>
<!-- /.row -->
</div>
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
84
<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">Full Name</label>
<div class="col-sm-10">
<input type="text" name="fullanme" class="form-control" id="fullanme"
required="required" autocomplete="off">
</div>
</div>
<div class="form-group">
<label for="default" class="col-sm-2 control-label">Rool Id</label>
<div class="col-sm-10">
<input type="text" name="rollid" class="form-control" id="rollid" maxlength="12"
required="required" autocomplete="off">
</div>
</div>
85
<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>
86
<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=$(".clid").val();
var val=$(".stid").val();;
var abh=clid+'$'+val;
//alert(abh);
$.ajax({
type: "POST",
87
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>
88
<!-- /.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-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">
89
<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">
90
</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 -->
91
<script src="js/prism/prism.js"></script>
Result:to see the result the student must put the roll number or id number and password.
<?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>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" >
92
<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">
<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 -->
<section class="section">
<div class="container-fluid">
<div class="row">
93
<div class="col-md-8 col-md-offset-2">
<div class="panel">
<div class="panel-heading">
<div class="panel-title">
<?php
// code Student Data
$rollid=$_POST['rollid'];
$classid=$_POST['class'];
$_SESSION['rollid']=$rollid;
$_SESSION['classid']=$classid;
$qery = "SELECT
tblstudents.StudentName,tblstudents.RollId,tblstudents.RegDate,tblstudents.StudentId,tbl
students.Status,tblclasses.ClassName,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">
94
<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>
95
<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">Percentage</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>
96
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>
97
<script src="js/lobipanel/lobipanel.min.js"></script>
<script src="js/iscroll/iscroll.js"></script>
});
</script>
</body>
</html>
98
CONCLUSION
This software is easy to use and will definitely reduce the paper used in the recurring
system for the keeping information of client. Here agent can easily make the updating,
creation, deletion of the account easily. There is no headache of remembering or storing of
the paper work of the old and new client.
This Online Book Store System is an attempt to overcome the present inefficient and
time
consuming process of locating, reserving and purchasing quality reading materials available
in
the store. Currently, clients have to go through a time consuming process to perform
aforementioned tasks which cause waste of labor and firms resources. Through our
automated
book store solution, we provide an easy way of searching, reserving and purchasing of books.
99
BIBLIOGRAPHY
Books:
ASP Programming
Mastering ASP 3.0
Beginners Guide to ASP Programming
Websites:
www.scribd.com
www.google.com
www.scourecodeonline.com
100