0% found this document useful (0 votes)
323 views62 pages

Online Blood Bank Management System

The document describes a proposed online blood bank management system. The existing system lacks immediate retrieval of information and does not meet emergency requirements. The proposed system aims to address these issues by developing a mobile and web-based system to efficiently manage blood requisition and communication within the supply chain. The system would use PHP for the front end, MySQL for the back end, and allow users to view donor details, select appropriate donors quickly, and reduce time for emergency blood retrieval.

Uploaded by

VINOTH K
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
323 views62 pages

Online Blood Bank Management System

The document describes a proposed online blood bank management system. The existing system lacks immediate retrieval of information and does not meet emergency requirements. The proposed system aims to address these issues by developing a mobile and web-based system to efficiently manage blood requisition and communication within the supply chain. The system would use PHP for the front end, MySQL for the back end, and allow users to view donor details, select appropriate donors quickly, and reduce time for emergency blood retrieval.

Uploaded by

VINOTH K
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1.

1 PROJECT DESCRIPTION

BLOOD BANK AND DONATION SYSTEM


ABSTRACT
An online Blood Bank Management System can be utilized in any center, clinic, lab, or crisis
circumstance which requires blood units for endurance. The Online Blood Bank site is a true
exertion of facilitating all cycles rotating around getting and giving blood. The site empowers the
client to get to without any problem data with respect to the accessibility of blood classifications
in different blood donation centers. Our framework can be utilized to track down the required
measures of blood in crisis circumstances from either blood donation centers or even blood
benefactors. The goals of proposing such a framework are to annul the frenzy made during a
crisis due inaccessibility of blood. The objective of this undertaking is to give individuals a
solitary answer for all the blood-giving and getting issues all at one place in a solitary snap

FRONT END: PHP

BACK END: MYSQL

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.

• Ensure safety and quality of blood.

• Motivate and maintain a permanent well-indexed record of voluntary blood donors.


SYSTEM ANALYSIS
2. SYSTEM ANALYSIS
2.1 EXISTING SYSTEM:

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.

3. DRAWBACKS OF EXISTING SYSTEM:

• Lack of immediate retrievals: -The information is very difficult to retrieve and to


find particular information like- E.g. – To find out about the donor’s history, the user has
to go through various registers. This results in inconvenience and wastage of time.
• Does not meet emergency requirements.
• Searching required blood group and donor is tedious job

2.2 PROPOSED SYSTEM

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.

2.3 SYSTEM REQUIREMENTS

2.3.1 HARDWARE REQUIREMENTS

The Hardware of the computer consists of physical component such as Input


Devices, Storage Devices, Processing & Control units and Output Devices. Computer includes
external storage unit to store data in programs.

The Hardware Configuration involved in this project.

• AMD PRO A4-4350B R4

• 4 GB Ram

• Hard disk 500 GB

• Internet connection.

• CPU Speed in 2.50 GHz


2.3.2 SOFTWARE REQUIREMENTS

Software is a group of programs that computers need to do a particular task. It is an


essential requirement of Computer system.

The Software used to develop the project is

• Operating System: Windows 10


• Front-End: PHP
• Back End: MYSQL

2.3.3 SOFTWARE DESCRIPTION

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

INTEGRATED DEVELOPMENT ENVIRONMENT (IDE) FOR PHP

Zend HYPERLINK "https://en.wikipedia.org/wiki/Zend_Technologies" HYPERLINK


"https://en.wikipedia.org/wiki/Zend_Technologies"Technologies provides the following
development tools for PHP program

• PHP Web Developer

• 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 pronounced either “MY S-Q-L” or “My Sequel,” is an open-source


relational database management system. It is based on the structure query language (SQL),
which is used for adding, removing, and modifying information in the database. Standard SQL
commands, such as ADD, DROP, INSERT, and UPDATE can be used with MYSQL.

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

3.1 DATA FLOW DIAGRAM

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 Need blood page

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...

Need blood page


This module includes select the blood group and Reason, why do you need blood, show
the blood group 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.

3.3 Input Design

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.

3.4 Output Design

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

User Panel Images

HOME
About Us
Why Donate Blood page

Become A Donor Page


Need Blood

Contact us page
Admin Output

Login

Dashboard
Change Password Page

Add Donor Page


Donor List Page

Check Contact Us Query Page


Manage Page Data
3.5 Database Design

Tables

Table – Users
Table – page

Table-Query
3.6 Code Design

Home. 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="">

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

<?php include'ticker.php'; ?>

<div id="page-container" style="margin-top:50px; position: relative;min-height: 84vh; ">

<div class="container">

<div id="content-wrap"style="padding-bottom:75px;">

<div id="demo" class="carousel slide" data-ride="carousel">

<!-- Indicators -->

<ul class="carousel-indicators">

<li data-target="#demo" data-slide-to="0" class="active"></li>

<li data-target="#demo" data-slide-to="1"></li>

</ul>

<!-- The slideshow -->

<div class="carousel-inner">

<div class="carousel-item active">

<img src="image\_107317099_blooddonor976.jpg"
alt="image\_107317099_blooddonor976.jpg" width="100%" height="500">
</div>

<div class="carousel-item">

<img src="image\Blood-facts_10-illustration-graphics__canteen.png" alt="image\Blood-


facts_10-illustration-graphics__canteen.png" width="100%" height="500">

</div>

</div>

<!-- Left and right controls -->

<a class="carousel-control-prev" href="#demo" data-slide="prev">

<span class="carousel-control-prev-icon"></span>

</a>

<a class="carousel-control-next" href="#demo" data-slide="next">

<span class="carousel-control-next-icon"></span>

</a>

</div>

<br>

<h1 style="text-align:center;font-size:45px;">Welcome to BloodBank & Donor


Management System</h1>

<br>

<div class="row">

<div class="col-lg-4 mb-4">

<div class="card">
<h4 class="card-header card bg-info text-white" >The need for blood</h4>

<p class="card-body overflow-auto" style="padding-left:2%;height:120px;text-


align:left;">

<?php

include 'conn.php';

$sql=$sql= "select * from pages where page_type='needforblood'";

$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="col-lg-4 mb-4">

<div class="card">

<h4 class="card-header card bg-info text-white">Blood Tips</h4>


<p class="card-body overflow-auto" style="padding-left:2%;height:120px;text-
align:left;">

<?php

include 'conn.php';

$sql=$sql= "select * from pages where page_type='bloodtips'";

$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="col-lg-4 mb-4">

<div class="card">

<h4 class="card-header card bg-info text-white" >Who you could Help</h4>

<p class="card-body overflow-auto" style="padding-left:2%;height:120px;text-


align:left;">
<?php

include 'conn.php';

$sql=$sql= "select * from pages where page_type='whoyouhelp'";

$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>

<h2>Blood Donor Names</h2>

<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="col-lg-4 col-sm-6 portfolio-item" ><br>

<div class="card" style="width:300px">

<img class="card-img-top" src="image\blood_drop_logo.jpg" alt="Card image"


style="width:100%;height:300px">

<div class="card-body">

<h3 class="card-title"><?php echo $row['donor_name']; ?></h3>

<p class="card-text">

<b>Blood Group : </b> <b><?php echo $row['blood_group']; ?></b><br>

<b>Mobile No. : </b> <?php echo $row['donor_number']; ?><br>

<b>Gender : </b><?php echo $row['donor_gender']; ?><br>

<b>Age : </b> <?php echo $row['donor_age']; ?><br>

<b>Address : </b> <?php echo $row['donor_address']; ?><br>

</p>

</div>

</div>
</div>

<?php }} ?>

</div>

<br>

<!-- /.row -->

<!-- Features Section -->

<div class="row">

<div class="col-lg-6">

<h2>BLOOD GROUPS</h2>

<p>

<?php

include 'conn.php';

$sql=$sql= "select * from pages where page_type='bloodgroups'";

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

<img class="img-fluid rounded" src="image\blood_donationcover.jpeg" alt="" >

</div>

</div>

<!-- /.row -->

<hr>

<!-- Call to Action Section -->

<div class="row mb-4">

<div class="col-md-8">

<h4>UNIVERSAL DONORS AND RECIPIENTS</h4>

<p>

<?php

include 'conn.php';

$sql=$sql= "select * from pages where page_type='universal'";

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

<a class="btn btn-lg btn-secondary btn-block" href="donate_blood.php"


style="align:center; background-color:#7FB3D5;color:#273746 ">Become a Donor </a>

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

<meta name="description" content="">

<meta name="author" content="">

<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 id="page-container" style="margin-top:50px; position: relative;min-height: 84vh;">

<div class="container">

<div id="content-wrap" style="padding-bottom:50px;">

<div class="row">

<div class="col-lg-6">

<h1 class="mt-4 mb-3">Donate Blood </h1>

</div>
</div>

<form name="donor" action="savedata.php" 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>

<div class="col-lg-4 mb-4">

<div class="font-italic">Gender<span style="color:red">*</span></div>


<div><select name="gender" class="form-control" required>

<option value="">Select</option>

<option value="Male">Male</option>

<option value="Female">Female</option>

</select>

</div>

</div>

<div class="col-lg-4 mb-4">

<div class="font-italic">Blood Group<span style="color:red">*</span></div>

<div><select name="blood" class="form-control" required>

<option value=""selected disabled>Select</option>

<?php

include 'conn.php';

$sql= "select * from blood";

$result=mysqli_query($conn,$sql) or die("query unsuccessful.");

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 class="col-lg-4 mb-4">

<div class="font-italic">Address<span style="color:red">*</span></div>

<div><textarea class="form-control" name="address" required></textarea></div></div>

</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>

</div>

</div>

<?php include('footer.php') ?>

</div>

</body>

</html>

Login.php

<html>

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

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

<form class="" action="<?php $_SERVER['PHP_SELF']; ?>" method="post">

<div class="container" style="margin-top:200px;">

<div class="row justify-content-center">

<div class="col-lg-6">

<h1 class="mt-4 mb-3" style="color:#D2F015 ;">

Blood Bank & Management

<br>Admin Login Portal

</h1>

</div>
</div>

<div class="card" style="height:250px; background-


image:url('admin_image/glossy1.jpg');">

<div class="card-body">

<div class="row justify-content-lg-center justify-content-mb-center" >

<div class="col-lg-6 mb-6 ">

<div class="font-italic" style="font-weight:bold">Username<span


style="color:red">*</span></div>

<div><input type="text" name="username" placeholder="Enter your username"


class="form-control" value="" required></div>

</div>

</div>

<div class="row justify-content-lg-center justify-content-mb-center">

<div class="col-lg-6 mb-6 "><br>

<div class="font-italic"style="font-weight:bold">Password<span
style="color:red">*</span></div>

<div><input type="password" name="password" placeholder="Enter your Password"


class="form-control" value="" required></div>

</div>

</div>

<div class="row justify-content-lg-center justify-content-mb-center">

<div class="col-lg-4 mb-4 " style="text-align:center"><br>


<div><input type="submit" name="login" class="btn btn-primary" value="LOGIN"
style="cursor:pointer"></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"]);

$sql="SELECT * from admin_info where admin_username='$username' and


admin_password='$password'";

$result=mysqli_query($conn,$sql) or die("query failed.");

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 {

echo '<div class="alert alert-danger" style="font-weight:bold"> Username and Password are


not matched!</div>';

?>

</form>

</body>

</html>

Dashboard.php

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">


<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}

@media screen and (max-width: 600px) {

#content {

position:relative;margin-left:auto;margin-right:auto;

.block-anchor {

color:red;

cursor: pointer;

}
</style>

</head>

<body style="color:black;" >

<?php

include 'conn.php';

include 'session.php';

if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] == true) {

?>

<div id="header">

<?php include 'header.php';

?>

</div>

<div id="sidebar">

<?php

$active="dashboard";

include 'sidebar.php'; ?>

</div>

<div id="content">
<div class="content-wrapper">

<div class="container-fluid">

<div class="row">

<div class="col-md-12 lg-12 sm-12">

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

<div class="panel panel-default panel-info" style="border-radius:50px;">

<div class="panel-body panel-info bk-primary text-light" style="background-


color:#D6EAF8; border-radius:50px">

<div class="stat-panel text-center">

<?php

$sql =" SELECT * from donor_details ";

$result=mysqli_query($conn,$sql) or die("query failed.");

$row=mysqli_num_rows($result);

?>
<div class="stat-panel-number h1"><?php echo $row?></div>

<div class="stat-panel-title text-uppercase">Blood Donors Available </div>

<br>

<button class="btn btn-danger" onclick="window.location.href =


'donor_list.php';">

Full Detail <i class="fa fa-arrow-right"></i>

</button>

</div>

</div>

</div>

</div>

<div class="col-md-3">

<div class="panel panel-default panel-info" style="border-radius:50px;">

<div class="panel-body panel-info bk-primary text-light" style="background-


color:#ABEBC6;border-radius:50px;">

<div class="stat-panel text-center">

<?php

$sql1 =" SELECT * from contact_query ";


$result1=mysqli_query($conn,$sql1) or die("query failed.");

$row1=mysqli_num_rows($result1);

?>

<div class="stat-panel-number h1 "><?php echo $row1?></div>

<div class="stat-panel-title text-uppercase"> All User Queries </div>

<br>

<button class="btn btn-danger" onclick="window.location.href = 'query.php';">

Full Detail <i class="fa fa-arrow-right"></i>

</button>

</div>

</div>

</div>

</div>

<div class="col-md-3">

<div class="panel panel-default panel-info" style="border-radius:50px;">

<div class="panel-body panel-info bk-primary text-light" style="background-


color:#E8DAEF ;border-radius:50px; ">

<div class="stat-panel text-center">


<?php

$sql2 ="SELECT * from contact_query where query_status=2 ";

$result2=mysqli_query($conn,$sql2) or die("query failed.");

$row2=mysqli_num_rows($result2);

?>

<div class="stat-panel-number h1 "><?php echo $row2 ?></div>

<div class="stat-panel-title text-uppercase"> Pending Queries </div>

<br>

<button class="btn btn-danger" onclick="window.location.href =


'pending_query.php';">

Full Detail <i class="fa fa-arrow-right"></i>

</button>

</div>

</div>

</div>

</div>
</div>

</div>

</div>

<?php

} else {

echo '<div class="alert alert-danger"><b> Please Login First To Access Admin


Portal.</b></div>';

?>

<form method="post" name="" action="login.php" class="form-horizontal">

<div class="form-group">

<div class="col-sm-8 col-sm-offset-4" style="float:left">

<button class="btn btn-primary" name="submit" type="submit">Go to Login


Page</button>

</div>

</div>

</form>

<?php }

?>

</body>

</html>
Add_donor.php

<?php include 'session.php'; ?>

<html>

<head>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1">

<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}

@media screen and (max-width: 600px) {

#content {

position:relative;margin-left:auto;margin-right:auto;

}
}

</style>

</head>

<body style="color:black">

<?php

include 'conn.php';

if (isset($_SESSION['loggedin']) && $_SESSION['loggedin'] == true) {

?>

<div id="header">

<?php $active="add"; include 'header.php';

?>

</div>

<div id="sidebar">

<?php include 'sidebar.php'; ?>

</div>

<div id="content">

<div class="content-wrapper">

<div class="container-fluid">

<div class="row">

<div class="col-md-12 lg-12 sm-12">


<h1 class="page-title">Add Donor</h1>

</div>

</div>

<hr>

<form name="donor" action="save_donor_data.php" method="post">

<div class="row">

<div class="col-lg-4 mb-4"><br>

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

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

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

<div class="font-italic">Age<span style="color:red">*</span></div>


<div><input type="text" name="age" class="form-control" required></div>

</div>

<div class="col-lg-4 mb-4"><br>

<div class="font-italic">Gender<span style="color:red">*</span></div>

<div><select name="gender" class="form-control" required>

<option value="">Select</option>

<option value="Male">Male</option>

<option value="Female">Female</option>

</select>

</div>

</div>

<div class="col-lg-4 mb-4"><br>

<div class="font-italic">Blood Group<span style="color:red">*</span></div>

<div><select name="blood" class="form-control" required>

<option value=""selected disabled>Select</option>

<?php

include 'conn.php';

$sql= "select * from blood";

$result=mysqli_query($conn,$sql) or die("query unsuccessful.");

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 class="col-lg-4 mb-4">

<div class="font-italic">Address<span style="color:red">*</span></div>

<div><textarea class="form-control" name="address" required></textarea></div></div>

</div> <br>

<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" onclick="popup()"></div>

</div>

</div>

</form>

</div>
</div>

</div>

<?php

} else {

echo '<div class="alert alert-danger"><b> Please Login First To Access Admin


Portal.</b></div>';

?>

<form method="post" name="" action="login.php" class="form-horizontal">

<div class="form-group">

<div class="col-sm-8 col-sm-offset-4" style="float:left">

<button class="btn btn-primary" name="submit" type="submit">Go to Login


Page</button>

</div>

</div>

</form>

<?php }

?>

<script>

function popup() {

alert("Data added Successfully.");

</scrip</body>
TESTING AND IMPLEMENTATION
4. TESTING AND IMPLEMENTATION

4.1 SYSTEM TESTING

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 is important stage in software development system test is implementation should be as


confirmation that all is correct and opportunity to show the user that the system works as they
expected it accounts the largest percentage of technical effort in software development process

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

• Log In module - valid username and password.


• Admin Dashboard Module - valid create new Donor, Donor list page, Manage page data
etc..
• User Dashboard - valid about us, Why Donate blood, ,Become A Donor, need
blood ,etc..

• Account Setting - valid Account name, Username, password change.

INTEGRATION TESTING

Following modules have been integrated for evaluating the efficiency of interface

• Admin module -. Admin log


• User module - insert, update, clear, exit, back

. The acceptance is the final stage of the user the various possibilities of the data are entered and
the result are tested.

VAILIDATION TESTING

Software validation is achieved through a series of test that demonstrates the


conformity and requirement thus the proposed system under consideration has to be tested by
validation and found to be working satisfactorily.

4.2 SYSTEM MPLEMENTATION

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 project is an attempt to develop a system that can be used computerization of


activities in the shop. Since these activities are tedious process lot of effort, more care has taken
for the system development the requirements a suitable database is created maximum effort were
taken to avoid duplication in data entry and data storage various report generated by this system.

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

has been finished successful


FUTURE ENHANCEMENTS AND
BIBLIOGRAPY
6. FUTURE ENHANCEMENTS

• Improve this project in future with Resume builder


• Cross platform compatibility has to be improved
• More securing issues have to be considered.

7.BIBLIOGRAPHY

7.1 REFERENCE BOOKS

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.

7.2 WEBSITE REFERENCE

• https://www.tutorialspoint.com/
• https://www.w3schools.com/
• https://www.youtube.com/
• http://www.visuastudio.com/

You might also like