Professional Documents
Culture Documents
Blood Bank and Donor Management Report PHP
Blood Bank and Donor Management Report PHP
Table of Contents
Page No.
Chapter 1. Introduction
1) Introduction 7
2) System environment 7
3) Software requirement 8
4) Hardware requirements 8
1) Purpose 9
2) Project Scope 9
3) Existing System 9
4) Proposed System 9
Page 1
5) System Description 10
1) PHP 11
2) HTML 12
3) CSS 13
4) Javascript 14
5) Mysql 15
Chapter 5. System Design
1) Introduction 21
2) Conceptual Design 22
3) ER-Diagram 23
4) Logical Design 23
5) Physical Design 24
6) Data Flow Diagram of “BloodBank Management” 24
Chapter 7.Coding
33-85
Chapter 8. Conclusion
7) Features of “BloodBank Management” 86
8) Benefits Accrued from “BloodBank Management” 87
9) Limitations of “BloodBank Management” 88
Page 2
Bibliography
CHAPTER # 1
Introduction
Contents:
Introduction
Problem Definition
Aim
Objective
Goal
Need of System
Page 3
Blood Bank and Donor Management system is a web based application on PHP language and
Mysql database. The purpose of this project was to develop a blood donor management
information system to assist in the management of blood donor records and blood group
records. And this project also helpful for searching blood donor according to location and
blood group. This project includes mainly two modules i.e. admin and visitor.
The current system is manual and it is time-consuming. It is also cost-ineffective, and the
average return is low and diminishing.
Objective:
This software helps to easy management of records such as management of blood donors,
blood groups and also helpful for seekers to searching donor.
Page 4
Goal:
The project is basically targeted at those people who would like online management software.
To make a database that is consistent, reliable and secure.
To provide correct, complete and ongoing information.
To develop a well-organized information storage system.
To make good documentation so as to facilitate possible future enhancements.
Page 5
CHAPTER # 2
Hardware and
Software
Requirements
Software Requirements:
Hardware Requirements:
2 GB RAM or more.
Page 6
CHAPTER # 3
System Analysis
Contents:
Purpose
Project Scope
Existing System
Proposed System
System Overview
Page 7
Purpose:
The purpose of this project is to provide a way to manage the donor’s detail and also helpful
for website visitors in searching donor according to location and blood group, and also
provide an easy interface for management.
Project Scope:
The project has a wide scope, as it is not intended to a particular organization. This
project is going to develop generic software, which can be applied by any businesses
organization. More over it provides facility to its users. Also the software is going to
provide a huge amount of summary data.
Proposed System:
The blood bank management system is available in the market that can serve blood
bank owners to easily manage blood donor’s records and also helpful for blood seekers
for searching blood donors.
Page 8
System Overview:
The key features required in the system are as follows:
Page 9
CHAPTER # 4
Implementation issues
PHP
PHP can be defined as a programming language for Database access from the web's browser.
In other words, it is an HTML-embedded scripting language. It focuses on the logic of how a
page responds to user input and not how the page looks that i.e. not the primary appearance
of the page.
PHP runs on the server side, which means that the web server that sends an HTML file to a
user's browser, will carry out the instructions found in the embedded PHP code first, and then
send the output of the PHP code along with the HTML code. The result is a webpage with
dynamic content.
PHP is a language for creating website that can be more or less interactive. It was created in
1994 by Rasmus Lerdorf who was a software engineer and who was part of the Apache Team.
In the same year, he created a package, added some database support and called it PHP/FI
(Form Interpretation).
Page 10
In 1995, it was called the Personal Home Page Tool then was released as version2 with a
name called PHP/FI (a form interpreter responsible for analyzing queries). In mid of 1997,
more than 50,000 websites began using PHP and in October, 1998, there was an increase in
the number of websites using PHP which was about 100,000.
In 2000, there was a release of PHP 4.0.2. And currently over 1,000,000 sites in the whole
world are using PHP.
HTML
HTML (Hypertext Markup Language) is the set of markup symbols or codes inserted in a file
intended for display on a World Wide Web browser page. The markup tells the Web browser
how to display a Web page's words and images for the user. Each individual markup code is
referred to as an element (but many people also refer to it as a tag). Some elements come in
pairs that indicate when some display effect is to begin and when it is to end.
Page 11
Cascading Style Sheets (CSS) are a collection of rules we use to define and modify web
pages. CSS are similar to styles in Word. CSS allow Web designers to have much more
control over their pages look and layout. For instance, you could create a style that defines
the body text to be Verdana, 10 point. Later on, you may easily change the body text to Times
New Roman, 12 point by just changing the rule in the CSS. Instead of having to change the
font on each page of your website, all you need to do is redefine the style on the style sheet,
and it will instantly change on all of the pages that the style sheet has been applied to. With
HTML styles, the font change would be applied to each instance of that font and have to be
changed in each spot.
CSS can control the placement of text and objects on your pages as well as the look of those
objects.
HTML information creates the objects (or gives objects meaning), but styles describe how the
objects should appear. The HTML gives your page structure, while the CSS creates the
“presentation”. An external CSS is really just a text file with a .css extension. These files can
be created with Dreamweaver, a CSS editor, or even Notepad.
The best practice is to design your web page on paper first so you know where you will want
to use styles on your page. Then you can create the styles and apply them to your page.
Page 12
Javascript
Page 13
MYSQL
MySQL is the most popular Open Source Relational SQL Database Management System.
MySQL is one of the best RDBMS being used for developing various web-based software
applications. MySQL is developed, marketed and supported by MySQL AB, which is a
Swedish company.
Page 14
CHAPTER # 5
System Design
Contents:
Use case diagram
Class Diagram
Activity Diagram
Sequence Diagram
Data flow diagram
Page 15
Use case diagram consists of use cases and actors and shows the interaction
between them. The key points are:
The main purpose is to show the interaction between the use cases and the
actor.
The use cases are the functions that are to be performed in the module.
Page 16
Page 17
Login
:Request
:Validate()
:executeQuery()
Administrator Response
Show Result
Success:hide() Failed:show()
Fig.5.4
Page 18
A Data Flow Diagram (DFD) is a graphical representation of the "flow" of data through an
Information System. A data flow diagram can also be used for the visualization of Data
Processing. It is common practice for a designer to draw a context-level DFD first which
shows the interaction between the system and outside entities. This context-level DFD is then
"exploded" to show more detail of the system being modeled.
A DFD represents flow of data through a system. Data flow diagrams are commonly used
during problem analysis. It views a system as a function that transforms the input into desired
output. A DFD shows movement of data through the different transformations or processes in
the system.
Dataflow diagrams can be used to provide the end user with a physical idea of where the data
they input ultimately has an effect upon the structure of the whole system from order to dis-
patch to restock how any system is developed can be determined through a dataflow diagram.
The appropriate register saved in database and maintained by appropriate authorities.
Function
File/Database
Input/output
Flow
Page 19
Page 20
Page 21
ER DIAGRAM
Page 22
CHAPTER # 6
Output Screens
HOME PAGE
Page 23
Page 24
Page 25
CONTACT US PAGE
Page 26
Page 27
Page 28
Page 29
Page 30
Page 31
Page 32
Page 33
CHAPTER # 7
Coding
HOME PAGE CODING
<?php
error_reporting(0);
include('includes/config.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-
fit=no">
<meta name="description" content="">
<meta name="author" content="">
Page 34
</head>
<body>
<div class="row">
<?php
$status=1;
$sql = "SELECT * from tblblooddonars where status=:status order by rand() limit 6";
$query = $dbh -> prepare($sql);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
Page 36
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
</div>
</div>
</div>
<?php }} ?>
</div>
<!-- /.row -->
<div class="col-lg-6">
<h2>BLOOD GROUPS</h2>
<p> blood group of any human being will mainly fall in any one of the following
groups.</p>
<ul>
<hr>
Type O individuals are often called "universal donors" since their blood can be
transfused into persons with any blood type. Those with type AB blood are called
"universal recipients" because they can receive blood of any type.</p>
Page 38
</div>
<div class="col-md-4">
<a class="btn btn-lg btn-secondary btn-block" href="become-
donar.php">Become a Donar</a>
</div>
</div>
</div>
<!-- /.container -->
</body>
</html>
Page 39
<?php
error_reporting(0);
include('includes/config.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-
fit=no">
<meta name="description" content="">
<meta name="author" content="">
<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>
<?php include('includes/header.php');?>
<ol class="breadcrumb">
<li class="breadcrumb-item">
Page 41
<a href="index.php">Home</a>
</li>
<li class="breadcrumb-item active">Search Donor</li>
</ol>
<?php if($error){?><div class="errorWrap"><strong>ERROR</strong>:<?php
echo htmlentities($error); ?> </div><?php }
else if($msg){?><div class="succWrap"><strong>SUCCESS</strong>:<?php echo
htmlentities($msg); ?> </div><?php }?>
<!-- Content Row -->
<form name="donar" method="post">
<div class="row">
Page 42
</div>
<div class="row">
<div class="col-lg-4 mb-4">
<div><input type="submit" name="submit" class="btn btn-primary" value="submit"
style="cursor:pointer"></div>
</div>
</div>
<!-- /.row -->
</form>
<div class="row">
<?php
if(isset($_POST['submit']))
{
$status=1;
$bloodgroup=$_POST['bloodgroup'];
$location=$_POST['location'];
$sql = "SELECT * from tblblooddonars where (status=:status and
BloodGroup=:bloodgroup) || (Address=:location)";
$query = $dbh -> prepare($sql);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->bindParam(':bloodgroup',$bloodgroup,PDO::PARAM_STR);
$query->bindParam(':location',$location,PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
Page 43
foreach($results as $result)
{ ?>
>Message);?></p>
</div>
</div>
</div>
<?php }}
else
{
echo htmlentities("No Record Found");
} ?>
</div>
</div>
<?php include('includes/footer.php');?>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/tether/tether.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>
Page 45
<?php
error_reporting(0);
include('includes/config.php');
if(isset($_POST['submit']))
{
$fullname=$_POST['fullname'];
$mobile=$_POST['mobileno'];
$email=$_POST['emailid'];
$age=$_POST['age'];
$gender=$_POST['gender'];
$blodgroup=$_POST['bloodgroup'];
$address=$_POST['address'];
$message=$_POST['message'];
$status=1;
$sql="INSERT INTO
tblblooddonars(FullName,MobileNumber,EmailId,Age,Gender,BloodGroup,Address,M
essage,status)
VALUES(:fullname,:mobile,:email,:age,:gender,:blodgroup,:address,:message,:status)";
$query = $dbh->prepare($sql);
$query->bindParam(':fullname',$fullname,PDO::PARAM_STR);
$query->bindParam(':mobile',$mobile,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':age',$age,PDO::PARAM_STR);
$query->bindParam(':gender',$gender,PDO::PARAM_STR);
$query->bindParam(':blodgroup',$blodgroup,PDO::PARAM_STR);
$query->bindParam(':address',$address,PDO::PARAM_STR);
$query->bindParam(':message',$message,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
$msg="Your info submitted successfully";
Page 46
}
else
{
$error="Something went wrong. Please try again";
}
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-
fit=no">
<meta name="description" content="">
<meta name="author" content="">
}
</style>
<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>
<?php include('includes/header.php');?>
Page 48
<ol class="breadcrumb">
<li class="breadcrumb-item">
<a href="index.php">Home</a>
</li>
<li class="breadcrumb-item active">Become a Donor</li>
</ol>
<?php if($error){?><div class="errorWrap"><strong>ERROR</strong>:<?php
echo htmlentities($error); ?> </div><?php }
else if($msg){?><div class="succWrap"><strong>SUCCESS</strong>:<?php echo
htmlentities($msg); ?> </div><?php }?>
<!-- Content Row -->
<form name="donar" method="post">
<div class="row">
<div class="col-lg-4 mb-4">
<div class="font-italic">Full Name<span style="color:red">*</span></div>
<div><input type="text" name="fullname" class="form-control" required></div>
</div>
<div class="col-lg-4 mb-4">
<div class="font-italic">Mobile Number<span style="color:red">*</span></div>
<div><input type="text" name="mobileno" class="form-control" required></div>
</div>
<div class="col-lg-4 mb-4">
<div class="font-italic">Email Id</div>
<div><input type="email" name="emailid" class="form-control"></div>
</div>
</div>
<div class="row">
<div class="col-lg-4 mb-4">
<div class="font-italic">Age<span style="color:red">*</span></div>
<div><input type="text" name="age" class="form-control" required></div>
</div>
Page 49
<div class="row">
<div class="col-lg-4 mb-4">
<div class="font-italic">Address</div>
Page 50
<div class="row">
<div class="col-lg-4 mb-4">
<div><input type="submit" name="submit" class="btn btn-primary" value="submit"
style="cursor:pointer"></div>
</div>
</div>
<!-- /.row -->
</form>
<!-- /.row -->
</div>
<!-- Bootstrap core JavaScript -->
<script src="vendor/jquery/jquery.min.js"></script>
<script src="vendor/tether/tether.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
</body>
</html>
Page 51
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])==0)
{
header('location:index.php');
}
else{
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1,
minimum-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/leftbar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<h2 class="page-title">Dashboard</h2>
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-3">
<div
class="panel panel-default">
<div
class="panel-body bk-primary text-light">
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$bg=$query->rowCount();
?>
</div>
</div>
<a
href="manage-bloodgroup.php" class="block-anchor panel-footer">Full Detail <i
class="fa fa-arrow-right"></i></a>
</div>
</div>
<div class="col-md-3">
<div
class="panel panel-default">
<div
class="panel-body bk-success text-light">
Page 54
</div>
</div>
<a
href="donor-list.php" class="block-anchor panel-footer text-center">Full Detail
<i class="fa fa-arrow-right"></i></a>
</div>
</div>
<div class="col-md-3">
<div
class="panel panel-default">
<div
class="panel-body bk-info text-light">
</div>
</div>
<a
href="manage-conactusquery.php" class="block-anchor panel-footer text-center">Full
Detail <i class="fa fa-arrow-right"></i></a>
Page 55
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
window.onload = function(){
}
</script>
</body>
</html>
<?php } ?>
Page 57
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])==0)
{
header('location:index.php');
}
else{
// Code for change password
if(isset($_POST['submit']))
{
$bloodgroup=$_POST['bloodgroup'];
$sql="INSERT INTO tblbloodgroup(BloodGroup) VALUES(:bloodgroup)";
$query = $dbh->prepare($sql);
$query->bindParam(':bloodgroup',$bloodgroup,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
$msg="Blood Group Created successfully";
}
else
{
$error="Something went wrong. Please try again";
}
}
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
Page 58
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1,
minimum-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
}
.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>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/leftbar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-10">
<div class="panel panel-
default">
<div class="panel-
heading">Form fields</div>
<div class="panel-
Page 60
body">
<form
method="post" name="chngpwd" class="form-horizontal" onSubmit="return
valid();">
<?php if($error){?><div
class="errorWrap"><strong>ERROR</strong>:<?php echo htmlentities($error); ?>
</div><?php }
else if($msg){?><div
class="succWrap"><strong>SUCCESS</strong>:<?php echo htmlentities($msg); ?>
</div><?php }?>
<div
class="form-group">
<div class="col-sm-8">
</div>
</div>
<div
class="hr-dashed"></div>
<div
class="form-group">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</body>
</html>
<?php } ?>
Page 63
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])==0)
{
header('location:index.php');
}
else{
if(isset($_POST['submit']))
{
$fullname=$_POST['fullname'];
$mobile=$_POST['mobileno'];
$email=$_POST['emailid'];
$age=$_POST['age'];
$gender=$_POST['gender'];
$blodgroup=$_POST['bloodgroup'];
$address=$_POST['address'];
$message=$_POST['message'];
$status=1;
$sql="INSERT INTO
tblblooddonars(FullName,MobileNumber,EmailId,Age,Gender,BloodGroup,Address,M
essage,status)
VALUES(:fullname,:mobile,:email,:age,:gender,:blodgroup,:address,:message,:status)";
$query = $dbh->prepare($sql);
$query->bindParam(':fullname',$fullname,PDO::PARAM_STR);
$query->bindParam(':mobile',$mobile,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':age',$age,PDO::PARAM_STR);
$query->bindParam(':gender',$gender,PDO::PARAM_STR);
$query->bindParam(':blodgroup',$blodgroup,PDO::PARAM_STR);
$query->bindParam(':address',$address,PDO::PARAM_STR);
Page 64
$query->bindParam(':message',$message,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
$msg="Your info submitted successfully";
}
else
{
$error="Something went wrong. Please try again";
}
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1,
minimum-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
if (charCode > 31 && (charCode < 48 || charCode > 57) && charCode!=46)
return false;
return true;
}
</script>
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/leftbar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-12">
<div class="panel panel-
default">
<div class="panel-
heading">Basic Info</div>
<?php if($error){?><div class="errorWrap"><strong>ERROR</strong>:<?php echo
htmlentities($error); ?> </div><?php }
else if($msg){?><div
class="succWrap"><strong>SUCCESS</strong>:<?php echo htmlentities($msg); ?>
</div><?php }?>
Page 67
<div class="panel-
body">
<form method="post" class="form-horizontal" enctype="multipart/form-data">
<div class="form-group">
<label class="col-sm-2 control-label">Full Name<span
style="color:red">*</span></label>
<div class="col-sm-4">
<input type="text" name="fullname" class="form-control" required>
</div>
<label class="col-sm-2 control-label">Mobile No<span
style="color:red">*</span></label>
<div class="col-sm-4">
<input type="text" name="mobileno" onKeyPress="return isNumberKey(event)"
maxlength="10" class="form-control" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Email id </label>
<div class="col-sm-4">
<input type="email" name="emailid" class="form-control">
</div>
<label class="col-sm-2 control-label">Age<span style="color:red">*</span></label>
<div class="col-sm-4">
<input type="text" name="age" class="form-control" required>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Gender <span
style="color:red">*</span></label>
<div class="col-sm-4">
<select name="gender" class="form-control" required>
Page 68
<option value="">Select</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</div>
<label class="col-sm-2 control-label">Blood Group<span
style="color:red">*</span></label>
<div class="col-sm-4">
</div>
</div>
<div class="hr-dashed"></div>
<div class="form-group">
<label class="col-sm-2 control-label">Address</label>
Page 69
<div class="col-sm-10">
<textarea class="form-control" name="address" ></textarea>
</div>
</div>
<div class="hr-dashed"></div>
<div class="form-group">
<label class="col-sm-2 control-label">Message<span
style="color:red">*</span></label>
<div class="col-sm-10">
<textarea class="form-control" name="message" required> </textarea>
</div>
</div>
<div
class="form-group">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
Page 70
</div>
</div>
</div>
</div>
</div>
<?php
Page 71
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])==0)
{
header('location:index.php');
}
else{
if(isset($_REQUEST['hidden']))
{
$eid=intval($_GET['hidden']);
$status="0";
$sql = "UPDATE tblblooddonars SET Status=:status WHERE id=:eid";
$query = $dbh->prepare($sql);
$query -> bindParam(':status',$status, PDO::PARAM_STR);
$query-> bindParam(':eid',$eid, PDO::PARAM_STR);
$query -> execute();
if(isset($_REQUEST['public']))
{
$aeid=intval($_GET['public']);
$status=1;
}
if(isset($_REQUEST['del']))
{
$did=intval($_GET['del']);
$sql = "delete from tblblooddonars WHERE id=:did";
$query = $dbh->prepare($sql);
$query-> bindParam(':did',$did, PDO::PARAM_STR);
$query -> execute();
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1,
minimum-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
</head>
<body>
<?php include('includes/header.php');?>
Page 74
<div class="ts-main-content">
<?php include('includes/leftbar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<th>Name</th>
<th>Mobile No</th>
Page 75
<th>Email</th>
<th>Age</th>
<th>Gender</th>
<th>Blood
Group</th>
<th>address</th>
<th>Message </th>
<th>action </th>
</tr>
</thead>
<tfoot>
<tr>
<th>#</th>
<th>Name</th>
<th>Mobile No</th>
<th>Email</th>
<th>Age</th>
<th>Gender</th>
<th>Blood
Group</th>
<th>address</th>
<th>Message </th>
Page 76
<th>action </th>
</tr>
</tfoot>
<tbody>
Page 77
<td>
<?php if($result->status==1)
{?>
<a href="donor-list.php?hidden=<?php echo htmlentities($result->id);?>"
onclick="return confirm('Do you really want to hiidden this detail')"> Make
Hidden</a>
<?php } else {?>
<?php } ?>
<a href="donor-list.php?del=<?php echo htmlentities($result->id);?>" onclick="return
confirm('Do you really want to delete this record')"> Delete</a>
</td>
</tr>
<?php
$cnt=$cnt+1; }} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
Page 78
</div>
</div>
</div>
<?php
Page 79
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['alogin'])==0)
{
header('location:index.php');
}
else{
if(isset($_GET['del']))
{
$id=$_GET['del'];
$sql = "delete from tblbloodgroup WHERE id=:id";
$query = $dbh->prepare($sql);
$query -> bindParam(':id',$id, PDO::PARAM_STR);
$query -> execute();
$msg="Data Deleted successfully";
?>
<!doctype html>
<html lang="en" class="no-js">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1,
minimum-scale=1, maximum-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<meta name="theme-color" content="#3e454c">
Page 80
</head>
<body>
<?php include('includes/header.php');?>
<div class="ts-main-content">
<?php include('includes/leftbar.php');?>
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<div class="col-md-12">
<thead>
<tr>
<th>#</th>
<th>Blood Groups/th>
<th>Creation Date</th>
<th>Action</th>
</tr>
</thead>
<tfoot>
<tr>
<th>#</th>
<th>Brand Name</th>
<th>Creation Date</th><th>Action</th>
</tr>
</tr>
</tfoot>
<tbody>
<tr>
<td><?
php echo htmlentities($cnt);?></td>
<td><?
php echo htmlentities($result->BloodGroup);?></td>
<td><?
php echo htmlentities($result->PostingDate);?></td>
<td>
<a href="manage-bloodgroup.php?del=<?php echo $result->id;?>" onclick="return
confirm('Do you want to delete');"><i class="fa fa-close"></i></a></td>
</tr>
<?php
$cnt=$cnt+1; }} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/bootstrap.min.js"></script>
<script src="js/jquery.dataTables.min.js"></script>
<script src="js/dataTables.bootstrap.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/fileinput.js"></script>
<script src="js/chartData.js"></script>
<script src="js/main.js"></script>
</body>
</html>
<?php } ?>
Page 85
CHAPTER # 8
Advantages & Limitations
Page 86
Besides the above achievements and the successful completion of the project,
we still feel the project has some limitations, listed as below:
CHAPTER # 8
Future Scope
Page 87
FUTURE SCOPE
This web application involves almost all the basic features of the blood bank and donor man-
agement. The future implementation will be online help for the users and chatting with web-
site administrator.
CONCLUSION
The project entitled “Blood Bank and Donor Management System” is developed using
HTML, CSS and JS as front end and PHP language and MYSQL database in back end to
computerize the process of donor’s management. This project covers only the basic features
required.
Bibliography
Page 88
http://www.php.net/
www.developer.com
www.15seconds.com
FOR MY SQL
http://www.mysql.com/
FOR CSS
http://cssed.sourceforge.net/
FOR APACHE
http://www.apache.org/
http://www.w3schools.com/default.asp
Page 89
http://en.wikipedia.org/
REFERENCE BOOKS
Page 90