Online Blood Bank Management System
Online Blood Bank Management System
1 PROJECT DESCRIPTION
OBJECTIVES:
• Provide safe and quality blood and blood components collected from voluntary donors,
round the clock, at affordable cost to the general public and free of cost to the poor.
Blood bank has a major task to collect blood from donors, monitor blood quality and supply, and
distribute blood and blood components to hospitals within the network. Blood distribution is an
important activity within this blood supply chain. If the blood bank is able to deliver blood
supply to its respective demand in a timely manner, patients’ lives will be saved. But nowadays,
many regional blood banks in our region confront with ineffective communication channel and
insufficient information to fulfill its obligation. Thus, this leads to an inaccurate blood
distribution and a waste of time, which can be harmful to patients with critical conditions.
Our goal to develop a mobile-web-based system to manage blood requisition within the
blood supply chain. The system was designed to cope with above described problem. The main
objective is to improve the efficiency of data communication within the supply chain to reduce
response time for each blood demand request. We also focused on managing blood inventory at
each blood bank effectively. The results have shown that the proposed system helps enhancing
the communication among blood partners within the supply chain network.
2.2.1 ADVANTAGE OF PROPOSED SYSTEM
• This project has a login page which allows only the registered user to login and thereby
preventing unauthorized access.
• This system can be used to view all the donor details and accordingly select the right
donor.
• The user will be able make quick decision in selecting a donor.
• Usage of this application will greatly reduce time in selecting the right donor.
• This application can be used by any common people.
• 4 GB Ram
• Internet connection.
PHP
PHP is an intuitive, server-side scripting language. PHP consists of a scripting
language and an interpreter. Like other scripting languages, PHP enables web developers to
define the behavior and logic they need in a web page. These scripts are embedded into the
HTML documents that are served by the web server. Like any other scripting language, it allows
developers to build logic into the creation of web page content and handle data returned from a
web browser. PHP also contains a number of extensions that make it easy to interact with
databases, extracting data to be displayed on a web page and storing information entered by a
web site visitor back into the database. PHP consists of a scripting language and an interpreter.
Like other scripting languages, PHP enables web developers to define the behavior and logic
they need in a web page. These scripts are embedded into the HTML documents that are served
by the web server. The interpreter takes the form of a module that integrates into the web server,
converting the scripts into commands the computer then executes to achieve the results defined
in the script by the web developer.
FEATURES OF PHP:
Performance: Script written in PHP executes much faster than those scripts written in other
languages such as JSP & ASP.
Open-Source Software: PHP source code is free available on the web; you can develop all the
version of PHP according to your requirement without paying any cost.
Platform Independent: PHP are available for WINDOWS, MAC, and LINUX & UNIX.
Operating system: A PHP application developed in one OS can be easily executed in other OS
also.
Compatibility: PHP is compatible with almost all local servers used today like Apache, IIS etc.
Embedded: PHP
• PHP Language Model - provides infrastructure for the PHP language and the most popular
extensions. This Core component is the basis of all PHP language classes, functions and constants
and it will support both PHP 4 and PHP 5. The two PHP major versions support will affect the
code assist, syntax coloring and PHP Functions view.
• PHP Source Code Formatter - Format PHP code according to personal preferences. The tool
works in tandem with the Web Tools Project formatter
MY SQL
MYSQL can be used for a variety of applications, but is most commonly found on
web servers. A website that uses MYSQL may include Web pages that access information from
a database. These pages are often referred to as “dynamic,” meaning the content of each page is
generated from a database as the page loads. Websites that use dynamic Web pages are often
referred to as database driven websites. Many database-driven websites that use MYSQL also
use a Web scripting language like PHP to access information from the database. MYSQL
commands can be incorporated into the PHP code, allowing part or all of a Web page to be
generated from database information. Because both MYSQL and PHP are both open source
(meaning they are free to download and use), the PHP/MYSQL combination has become a
popular choice for database driven websites.
SYSTEM DESIGN AND DEVELOPMENT
3.1 SYSTEM DESIGN AND DEVELOPMENT
START
LOGIN
ADMIN
USER SIGN UP
HOME DASHBOARD
ABOUT US CHANGE
PASSWORD
WHY
DONATE
ADD DONOR
BLOOD
BECOME
A DONOR DONOR LIST
NEED
BLOOD CHACK
CONTACT
CONTACT
UPDATE DATA
LOG OUT
3.2 MODULE DESCRIPTION
The Project having with Modules
o Home
o Admin Dashboard
o User Dashboard
o Log in
o Register
o Become A Donor
o Add Donor
Home
This module provides users whether choose admin or student to login and its also provide
Donor to sign up and create new account for their own.
Admin Dashboard
his module provides all the operations and functionalities done by the administrator include
create new Donor, Donor list page, Manage page data and etc..
User Dashboard
This module provides the Donor’s information including about us, Why Donate blood, ,Become
A Donor, need blood ,etc..
Login
This module is used to admin or user to login.
Register
This module is used to create and register new account for new user
Become A Donor
This module provides all the operations and functionalities done by the administrator
include Donate blood details and etc...
Add Donor
This module includes Add Donor details.
SYSTEM DESIGN
Definition
The most creative and challenging face of the system development is System Design. It provides
the understanding and procedural details necessary for the logical and physical stages of
development. In designing a new system, the system analyst must have a clear understanding of
the objectives, which the design is aiming to fulfill. The first step is to determine how the output
is to be produced and in what format. Second, input data and master files have to be designed to
meet the requirements of the proposed output. The operational phases are handled through
program construction and testing.
In this software, importance is given to develop Graphical User Interface (GUI), which is an
important factor in developing efficient and user-friendly software. For inputting user data,
attractive forms are designed. User can also select the desired options from the menu, which
provides all possible facilities. Also, the important input format is designed in such a way that
accidental errors are avoided. The user has to input only just the minimum data required, which
also helps in avoiding the errors that the users may make. Accurate designing of the input format
is very important in developing efficient software. The goal of input design is to make entry as
easy, logical and free from errors.
In the output design, the emphasis is on producing a hard copy of the information requested or
displaying the output on the CRT screen in a predetermined format. Two of the most output
media today are printers and the screen. Most users now access their reports from either a hard
copy or screen display. Computer’s output is the most important and direct source of information
to the user, efficient, logical, output design should improve the systems relations with the user
and help in decision-making.
SAMPLE OUTPUT
HOME
About Us
Why Donate Blood page
Contact us page
Admin Output
Login
Dashboard
Change Password Page
Tables
Table – Users
Table – page
Table-Query
3.6 Code Design
Home. php
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<style>
</style>
</head>
<body>
<div class="header">
<?php
$active="home";
include('head.php'); ?>
</div>
<div class="container">
<div id="content-wrap"style="padding-bottom:75px;">
<ul class="carousel-indicators">
</ul>
<div class="carousel-inner">
<img src="image\_107317099_blooddonor976.jpg"
alt="image\_107317099_blooddonor976.jpg" width="100%" height="500">
</div>
<div class="carousel-item">
</div>
</div>
<span class="carousel-control-prev-icon"></span>
</a>
<span class="carousel-control-next-icon"></span>
</a>
</div>
<br>
<br>
<div class="row">
<div class="card">
<h4 class="card-header card bg-info text-white" >The need for blood</h4>
<?php
include 'conn.php';
$result=mysqli_query($conn,$sql);
if(mysqli_num_rows($result)>0) {
while($row = mysqli_fetch_assoc($result)) {
echo $row['page_data'];
?>
</p>
</div>
</div>
<div class="card">
<?php
include 'conn.php';
$result=mysqli_query($conn,$sql);
if(mysqli_num_rows($result)>0) {
while($row = mysqli_fetch_assoc($result)) {
echo $row['page_data'];
?>
</p>
</div>
</div>
<div class="card">
include 'conn.php';
$result=mysqli_query($conn,$sql);
if(mysqli_num_rows($result)>0) {
while($row = mysqli_fetch_assoc($result)) {
echo $row['page_data'];
?>
</p>
</div>
</div>
</div>
<div class="row">
<?php
include 'conn.php';
$sql= "select * from donor_details join blood where
donor_details.donor_blood=blood.blood_id order by rand() limit 6";
$result=mysqli_query($conn,$sql);
if(mysqli_num_rows($result)>0)
while($row = mysqli_fetch_assoc($result)) {
?>
<div class="card-body">
<p class="card-text">
</p>
</div>
</div>
</div>
<?php }} ?>
</div>
<br>
<div class="row">
<div class="col-lg-6">
<h2>BLOOD GROUPS</h2>
<p>
<?php
include 'conn.php';
$result=mysqli_query($conn,$sql);
if(mysqli_num_rows($result)>0) {
while($row = mysqli_fetch_assoc($result)) {
echo $row['page_data'];
?></p>
</div>
<div class="col-lg-6">
</div>
</div>
<hr>
<div class="col-md-8">
<p>
<?php
include 'conn.php';
$result=mysqli_query($conn,$sql);
if(mysqli_num_rows($result)>0) {
while($row = mysqli_fetch_assoc($result)) {
echo $row['page_data'];
}
?></p>
</div>
<div class="col-md-4">
</div>
</div>
</div>
</div>
<?php include('footer.php');?>
</div>
</body>
</html>
Donate_blood.page
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
</head>
<body>
<?php
$active ='donate';
include('head.php') ?>
<div class="container">
<div class="row">
<div class="col-lg-6">
</div>
</div>
<div class="row">
</div>
</div>
</div>
</div>
<div class="row">
</div>
<option value="">Select</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</div>
</div>
<?php
include 'conn.php';
while($row=mysqli_fetch_assoc($result)){
?>
<option value=" <?php echo $row['blood_id'] ?>"> <?php echo $row['blood_group'] ?>
</option>
<?php } ?>
</select>
</div>
</div>
</div>
<div class="row">
</div>
<div class="row">
</div>
</div>
</div>
</div>
</div>
</body>
</html>
Login.php
<html>
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script
src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script></head>
<body background="admin_image\blood-cells.jpg">
<div class="col-lg-6">
</h1>
</div>
</div>
<div class="card-body">
</div>
</div>
<div class="font-italic"style="font-weight:bold">Password<span
style="color:red">*</span></div>
</div>
</div>
</div>
</div>
</div>
</div></div>
<br>
<?php
include 'conn.php';
if(isset($_POST["login"])){
$username=mysqli_real_escape_string($conn,$_POST["username"]);
$password=mysqli_real_escape_string($conn,$_POST["password"]);
if(mysqli_num_rows($result)>0)
while($row=mysqli_fetch_assoc($result)){
session_start();
$_SESSION['loggedin'] = true;
$_SESSION["username"]=$username;
header("Location: dashboard.php");
else {
?>
</form>
</body>
</html>
Dashboard.php
<html>
<head>
<meta charset="utf-8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<style>
#sidebar{position:relative;margin-top:-20px}
#content{position:relative;margin-left:210px}
#content {
position:relative;margin-left:auto;margin-right:auto;
.block-anchor {
color:red;
cursor: pointer;
}
</style>
</head>
<?php
include 'conn.php';
include 'session.php';
?>
<div id="header">
?>
</div>
<div id="sidebar">
<?php
$active="dashboard";
</div>
<div id="content">
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
<h1 class="page-title">Dashboard</h1>
</div>
</div>
<hr>
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-3">
<?php
$row=mysqli_num_rows($result);
?>
<div class="stat-panel-number h1"><?php echo $row?></div>
<br>
</button>
</div>
</div>
</div>
</div>
<div class="col-md-3">
<?php
$row1=mysqli_num_rows($result1);
?>
<br>
</button>
</div>
</div>
</div>
</div>
<div class="col-md-3">
$row2=mysqli_num_rows($result2);
?>
<br>
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php
} else {
?>
<div class="form-group">
</div>
</div>
</form>
<?php }
?>
</body>
</html>
Add_donor.php
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script
src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
<style>
#sidebar{position:relative;margin-top:-20px}
#content{position:relative;margin-left:210px}
#content {
position:relative;margin-left:auto;margin-right:auto;
}
}
</style>
</head>
<body style="color:black">
<?php
include 'conn.php';
?>
<div id="header">
?>
</div>
<div id="sidebar">
</div>
<div id="content">
<div class="content-wrapper">
<div class="container-fluid">
<div class="row">
</div>
</div>
<hr>
<div class="row">
</div>
</div>
</div>
</div>
<div class="row">
</div>
<option value="">Select</option>
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</div>
</div>
<?php
include 'conn.php';
while($row=mysqli_fetch_assoc($result)){
?>
<option value=" <?php echo $row['blood_id'] ?>"> <?php echo $row['blood_group'] ?>
</option>
<?php } ?>
</select>
</div>
</div>
</div>
<br>
<div class="row">
</div> <br>
<div class="row">
</div>
</div>
</form>
</div>
</div>
</div>
<?php
} else {
?>
<div class="form-group">
</div>
</div>
</form>
<?php }
?>
<script>
function popup() {
</scrip</body>
TESTING AND IMPLEMENTATION
4. TESTING AND IMPLEMENTATION
System testing is the state of implementation, which is aimed at ensuring that the System Works
accurate and efficient as expect before, live operation, commences. It certifies that the whole set
of programs hang together system testing requires a test plan, that consist of several key
activities and step for run program, string, system and user acceptance testing. the
implementation f newly design package is important in adapting a successful new system
Testing phase development phase that validates the code against the functional specification.
testing is a vital to the achievement of the system goals the objective of testing is to discover
errors, to fulfill this objective a series of test step such as the unit test, integration, validation and
system test where planned and executed.
UNIT TESTING
Unit testing are called module testing. The following modules have been tested
INTEGRATION TESTING
Following modules have been integrated for evaluating the efficiency of interface
. The acceptance is the final stage of the user the various possibilities of the data are entered and
the result are tested.
VAILIDATION TESTING
Implementation is the final and important phase, the most critical stage in
achieving a successful new system and giving the user confidence. That the new system will
work be effective. The system can be implemented only after through testing is done and if it
found to working according to the specification.
CONCLUSION
5. CONCLUSION
The major advantage of the system is fast accurate information retrieval minimization of
clerical work, easy and efficient data storage and report generation
A feature that is required for the BLOOD BANK AND DONATION SYSTEM
7.BIBLIOGRAPHY
1. "PHP and MySQL Web Development" by Luke Welling and Laura Thomson: This book
provides a comprehensive guide to building dynamic, database-driven web applications
using PHP and MySQL.
2. "Learning PHP, MySQL & JavaScript: With jQuery, CSS & HTML5" by Robin Nixon:
This book covers the basics of web development using PHP, MySQL, and JavaScript,
along with jQuery, CSS, and HTML5.
3. "Modern PHP: New Features and Good Practices" by Josh Lockhart: This book covers
the latest features and best practices in PHP programming, including object-oriented
programming, namespaces, and testing.
4. "MySQL Cookbook: Solutions for Database Developers and Administrators" by Paul
DuBois: This book provides practical solutions and examples for common MySQL
database problems, including optimizing queries, working with indexes, and managing
data.
5. "PHP and MySQL for Dynamic Web Sites: Visual QuickPro Guide" by Larry Ullman:
This book offers a practical, hands-on approach to learning PHP and MySQL, with step-
by-step instructions and examples.
• https://www.tutorialspoint.com/
• https://www.w3schools.com/
• https://www.youtube.com/
• http://www.visuastudio.com/