Professional Documents
Culture Documents
by
M. MADHUSUDHAN 21L31A
Department of AI&DS
VIGNAN’S INSTITUTE OF INFORMATION
TECHNOLOGY VISAKHAPATNAM
(Autonomous)
(Approved by AICTE, New Delhi, Accredited by NBA
Affiliated to Jawaharlal Nehru Technological University, Vizianagaram)
Besides VSEZ, Duvvada, Vadlapudi-Post, Gajuwaka
Visakhapatnam -530049, A.P., India
2022 - 2023
11
VIGNAN’S INSTITUTE OF INFORMATION TECHNOLOGY
Department of AI&DS
CERTIFICATE
This is to certify that this project report entitled “ LIFE SAVER” is a bonafide record of the work done by
A. Kavitha 21L31A5403 , A. Nithin 21L31A5406, K. Sai Rohit 21L31A5452, K. Laxman Reddy
21L31A5453, M. Madhusudhan 21L31A5461, in the Department of AI&DS, Vignan's Institute of
Information Technology, Visakhapatnam.
EXTERNAL EXAMINER
2
ACKNOWLEDGEMENT
I would like to express my sincere gratitude to the following individuals and organizations
who have contributed to the successful completion of this mini project:
I am immensely thankful to Dr. Anima Naik for their invaluable guidance, support, and
expertise throughout this project. Their insightful feedback, constant encouragement, and
commitment to excellence have been instrumental in shaping the outcome of this work. I am
grateful for their patience, availability, and willingness to share their knowledge, which has
greatlyenriched my learning experience.
I extend my heartfelt appreciation to the HOD, Dr. T.V. MADHUSUDHANA RAO for their
continuous encouragement and support. Their visionary leadership, guidance, and valuable
suggestions have played a significant role in fostering an environment conducive to learning
and innovation. I am grateful for their belief in my abilities and for providing the necessary
resources and facilities to carry out this project.
I would also like to extend my thanks to the faculty members and staff of the ARTIFICIAL
INTELLIGENCE & DATA SCIENCE (AI &DS),for their support, encouragement, and
valuable inputs throughout this project. Their dedication to teaching and commitment to
nurturing the students' potential have been crucial in my academic journey.
I am truly grateful to all the individuals and organizations mentioned above for their
contributions, without which this project would not have been possible.
A.AMBATI KAVITHA (21L31A5403)
A. NITHIN (21L31A5406)
K. SAI ROHIT (21L31A5452)
K.LAXMAN REDDY(21L31A5453)
M.MADHUSUDHAN (21L31A5461)
JUNE,2023
3
ABSTRACT
4
purposes. The system's administration relies heavily on the admin. They are
able to plan blood donation drives, accept or reject blood donations, and keep
track of the blood units that are still available for each blood group. Regular
blood donors are identified by the system, and their images are shown on the
dashboard to encourage and recognize them. Anyone with access to the
dashboard can quickly verify the number of blood units that are available for a
given blood group. This function is helpful in circumstances requiring quick
access to information. The "Life Saver" blood bank management system
provides a complete solution by providing effective procedures for blood
requests and donations, user registrations, and strong administrative control.
The system uses technology to strengthen relationships between blood donors,
recipients, and healthcare professionals and to save lives.
5
CONTENTS
Page No.
CERTIFICATE (i)
ACKNOWLEDGEMENT (ii)
ABSTRACT (iii)
CONTENTS (iv)
LIST OF FIGURES (v)
LIST OF TABLES (vi)
NOMENCLATURE (vii)
LIST OF APPENDICES (viii)
1.1 Motivation
1.2 Problem definition
1.3 Objective of the Project
1.4Applications and Advantages
6
Chapter6 CONCLUSION, LIMITATION, AND FUTURE ENCHANCEMENT
6.1 Conclusion
6.2 Limitation
6.3 Future Work
Chapter7 REFERENCES
7
*********************************************************************************
N OMENCLATURE
*******************************************************************************
8
CHAPTER 1
INTRODUCTION OF LIFE SAVE
8
INTRODUCTION
A comprehensive web-based application created to optimize and streamline the
blood donation and request process is called the "Life Saver" Blood Bank
Management System. To maintain a smooth and effective workflow, this system
acts as a central hub that links blood donors, recipients, and administrators.
The "Life Saver" system promises to help save lives and enhance the overall blood
management process by utilizing contemporary technologies, secure data
management, and user-friendly interfaces. The system's goal is to help blood banks
overcome their difficulties and streamline the handling of blood donations and
requests. It offers a simple user interface and a range of features and functionalities
to cater to the needs of the numerous engaged parties. The system includes user
registration, blood request submission, donor functionality, and complete Users
can easily register on the platform by providing their relevant information and a
unique identification number for accurate tracking. Registered donors gain access
to a dedicated interface where they can submit their details, including personal
information, health history, and previous blood donation records. Administrators
review these details and communicate the donation process to the donors through
email, ensuring transparency and clear instructions. Donors' health conditions are
evaluated, and if deemed suitable, the blood donation is accepted, with an
appreciation certificate sent to their email address. In cases of rejection, the system
provides reasons for the decision. The "Life Saver" system also enables users in
need of blood to submit requests, accompanied by medical proof to validate their
urgency. Administrators review these requests and facilitate the blood transfer
process, ensuring timely and appropriate allocation of blood units. The system
maintains a comprehensive inventory of available blood units for each blood
group, allowing administrators to efficiently manage and monitor the blood stock
levels. Additionally, administrators have the authority to organize blood donation
camps, further promoting awareness and engagement in the community. The
system's user-friendly dashboard provides a centralized interface, accessible to all
users, enabling quick checks on blood availability for different blood groups. This
feature ensures that vital information is readily available in urgent situations,
assisting healthcare providers and recipients in making informed decisions. The
9
"Life Saver" Blood Bank Management System offers a robust solution to the
challenges faced by blood banks, donors, and recipients. By leveraging modern
technologies, the system aims to enhance the blood donation process, optimize
blood resource allocation, and improve overall healthcare services. This
documentation provides a comprehensive overview of the system's
functionalities, design considerations, and implementation details, serving as a
guide for developers, administrators, and users. Together, we can make a
significant impact in saving lives and fostering a culture of blood donation.
can enter information about themselves, such as their name, address, medical
history, and past blood donations. Administrators examine these specifics and
inform contributors of the donation procedure via email, ensuring transparency
and unambiguous instructions. When a donor's health is considered suitable,
their blood donation request is accepted, and an email thank-you note is sent to
them. The system gives justifications for its decisions in cases of rejection. The
"Life Saver" system also allows people who require blood to submit requests,
along with medical documentation to support their urgent need. These requests
are examined by administrators, who facilitate Users who want blood can make
requests using the "Life Saver" system and include medical documentation to
support their urgent need. In order to ensure prompt and proper allocation of
blood units, administrators analyze these requests and simplify the blood
transfer procedure. The system keeps a complete inventory of the blood units
that are available for each blood type, enabling administrators to efficiently
manage and track the blood stock levels. In order to further raise awareness and
encourage participation in the community, administrators also have the power
to plan blood donation drives.
Quick checks on blood availability for various blood types are made possible by
the system's user-friendly dashboard, which offers a centralized interface that is
available to all users. The availability of critical information in an emergency is
ensured by this feature, enabling healthcare providers and recipients to make
educated decisions. A reliable answer to the problems blood banks, donors, and
receivers confront is provided by the "Life Saver" Blood Bank Management
System. The system seeks to optimize the distribution of blood resources, better
the blood donation procedure, and boost overall healthcare services. For
10
developers, administrators, and users, this documentation offers a thorough
overview of the system's functionality, design considerations, and
implementation details. We can significantly improve blood donation culture
and save lives by working together
11
12
1.1 MOTIVATION
The development and implementation of a Blood Bank Management System can bring
numerous benefits and address critical needs in the healthcare sector. The motivation behind
creating such a system stems from the following reasons: Efficient Blood Inventory
Management: A Blood Bank Management System aims to streamline the process of managing
blood inventory. It allows for real-time tracking of blood units, ensuring accurate and up-to-
date information on available blood types, quantities, and expiration dates.This helps optimize
the utilization of blood resources and reduces the risk of shortages or wastage. Quick and
Reliable Blood Supply: The primary objective of a Blood Bank Management System is to
facilitate the prompt and reliable supply of blood to healthcare facilities and patients in
need.By automating processes such as blood request management, cross-matching, and donor
compatibility checks, the system enables faster response times, reduces errors, and enhances
the overall efficiency of blood supply operations. Enhanced Donor Management: Managing
blood donors effectively is vital for maintaining a steady supply of blood. A Blood Bank
contact details, blood type, donation history, and eligibility criteria. This improves donor
tracking, facilitates targeted donor recruitment, and simplifies communication and engagement
with donors. Traceability and Safety Compliance: Maintaining traceability and ensuring safety
standards are crucial in blood banking. A robust Blood Bank Management System enables
accurate tracking of each unit of blood from donation to transfusion, including information on
collection, testing, Storage, and distribution. This traceability enhances blood safety, helps
identify potential issues or recalls, and ensures compliance with regulatory requirements.
integrate with other healthcare systems and platforms, such as electronic health records
(EHRs) or hospital management systems. This integration promotes seamless data exchange,
reduces manual data entry, and enhances the overall coordination and efficiency of healthcare
operations.
13
Data Analytics and Reporting: By capturing and analyzing relevant data, a Blood Bank
Management System can generate valuable insights and reports. These insights can aid in
decision-making, resource planning, and identifying trends or patterns in blood utilization.
Data-driven analytics can contribute to optimizing blood bank operations, improving
patient outcomes, and supporting research and public health initiatives.
14
1.2 PROBLEM DEFINITION
The Blood Bank Management System aims to address the challenges and
focuses streamlining and optimizing the operationsof blood banks, enhancing blood
inventory management, improving donor management, and ensuring the timely and
reliable supply of blood to healthcare facilities and patients in need. The key problems
15
Efficient Blood Inventory Management: The primary objective of the project is to
blood bank. The system should enable easy tracking, monitoring, and maintenance
of blood stock levels, ensuring an adequate supply of different blood types and
components.
system for managing blood donors. It should provide features to register and
maintain donor records, including their personal information, blood type, donation
history, and any relevant medical data. This objective ensures a smooth process for
Effective Blood Requests and Distribution: The system should enable efficient
16
1.1 APPLICATIONS AND ADVANTAGES
Blood Banks: The primary application of the system is in blood banks or blood
donation centers, where it can streamline the entire blood management process,
including donor registration, blood testing, inventory management, and
distribution to hospitals and clinics.
Enhanced Blood Safety: The system ensures better blood safety by accurately
tracking and maintaining records of blood units, including details of donor
screening, testing, and storage conditions. This helps in maintaining the quality
and integrity of the blood supply.
17
Timely Blood Availability: The system enables quick identification and retrieval
of available blood units, ensuring timely delivery to hospitals and healthcare
institutions. This is crucial during emergencies when the prompt availability of
compatible blood can be life-saving.
Data Analysis and Decision Making: The system offers reporting and analytics
capabilities, enabling blood banks to analyze data on blood inventory, donation
patterns, and utilization. This information aids in strategic decision-making,
resource planning, and optimizing blood bank operations.
18
19
CHAPTER -2
BLOOD BANK MANAGEMENT SYSTEM
15
BLOOD BANK MANAGEMENT SYSTEM
A blood bank management system is a piece of software that makes it easier for
blood banks and other healthcare facilities to efficiently track, organize, and
manage the donation, storage, and distribution of blood processes. It makes
processes more efficient, ensures the accuracy of donor and recipient information,
and guarantees the availability of blood units for transfusions.
The "Life Saver" blood bank management system is the system that is being
suggested for this project. It is a web-based tool designed to improve and streamline
the blood donation and request process. User registration, donor functionality, blood
request submission, and extensive administrative controls are just a few of the
capabilities offered by the system. It offers a simple dashboard with instant access
to data on the availability of blood supplies and makes effective communication
between donors, recipients, and administrators possible. The suggested system
seeks to enhance all aspects of blood management, maximize resource use, and help
save lives.
The “Live Saver” Blood bank management system project’s goal is to dev friendly
platform that improves
steam-lines the processes for requesting and donating blood. By offering a user-
friendly interface for donors
16
to register, enter their information, and receive detailed instructions on the
contribution procedure,the system
Overall, a management system for blood banks is essential for enhancing the
effectiveness, precision, and transparency of blood-related operations. It ensures
prompt access to blood units for transfusion and encourages a culture of blood
donation by automating procedures, keeping accurate records,
Enhanced Blood Safety: Accurate tracking and recording of blood units, along with
proper screening and testing, ensure safety and quality of the blood supply,
reducing risk of transfusion-related complications.
Timely Blood Availability: The system enables quick identification and retrieval of
compatible blood units, ensuring timely availability for transfusions and emergency
situations, potentially saving lives. Data-Driven .
17
Decision Making: The system provides valuable insights through reporting and
Another advantage lies in the enhanced blood safety ensured by the system. With
accurate tracking and recording of blood units, along with rigorous screening and
testing processes, the system minimizes the risk of transfusion-related
complications, ensuring the highest level of patient safety.
The system also improves the overall donor experience. By simplifying the donor
registration process, enabling easy appointment scheduling, and providing effective
communication channels, it encourages donor participation and retention.
18
BLOOD BANK MANAGEMENT SYSTEM(LIFE SAVER)
A complete software solution called a blood bank management system is created to
optimize and streamline the procedures involved in blood donation, storage, and
delivery. It acts as a hub connecting blood donors, recipients, and administrators,
enabling effective and open management of blood-related activities. User registration
is one of the main components of a blood bank management system. By supplying
their contact information and a special identification code, donors can quickly register.
This makes it possible to track information accurately and retain records, ensuring that
all relevant data is available when needed.Registered donors can input their
information, including personal details, health histories, and past blood donation
records, through a specialized portal provided by the system. Then, administrators
check these particulars to make sure the contributor qualifies and donation-eligibility.
This process is automated, which removes the need for manual paperwork and lowers
the possibility of mistakes or omissions.The system also manages blood requests from
in need patients in addition to blood donations. In order to To guarantee on-time
transfusions, administrators quickly assess these requests and assign the relevant blood
units. This effective request management ensures that blood is distributed to those who
need it most urgently, perhaps saving lives. Effective stock management is another key
component of the blood bank management system. It keeps an up-to-date inventory of
the blood units that are available for each blood group, enabling administrators to track
stock levels and make informed plans. This guarantees that there is never a scarcity or
wastage of blood and that there is always a enough supply available for
transfusions.The approach also encourages interaction and cooperation between
administrators, beneficiaries, and donors. It notifies contributors through email of the
status of their donations, notifying them of any approvals or rejections as well as the
rationale behind any denials. In order to further include the neigh- bour-hood and
spread knowledge of the value of blood donation, the system also enables
administrators to plan blood donation camps.Overall, a management system for blood
banks is essential for enhancing the effectiveness, precision, and transparency of
blood-related operations. It ensures prompt access to blood units for transfusion and
encourages a culture of blood donation by automating procedures, keeping accurate
records, and facilitating effective communication.
19
CHAPTER-3
LITERATURE REVIEW
20
LITERATURE REVIEW
A robust and well-liked email-sending library for PHP is called PHP-Mailer. It offers a
simple and practical way for PHP scripts to send emails utilizing SMTP and other email transport
protocols, as well as PHP's built-in mail() function. With its many features and functionalities, PHP-
Mailer is a well-liked option for delivering emails programmatically.
PHP-Mailer enables you to send both HTML-formatted and plain text emails. You
can compose emails using HTML content, including formatting, images, and links,
or send simple plain text emails if needed. HTML and Plain Text Email Support:
PHP-Mailer enables you to send both HTML-formatted and plain text emails. You
can compose emails using HTML content, including formatting, images, and
links,or send simple plain text emails if needed..HTML and Plain Text Email
Support: PHP-Mailer enables you to send both HTML-formatted and plain text
emails. You can compose emails using HTML content, including formatting,
images, and links, or send simple plain text emails if needed.
21
text.
font-weight: Determines the thickness or boldness of the text.
text-align: Aligns the text horizontally within its
container (e.g., left, right, center). margin: Sets the
spacing outside an element.
padding: Sets the spacing between the content and the
border of an element. border: Defines the border
properties of an element (e.g., color, width, style).
width and height: Specifies the width and height of an
element, respectively. display: Determines how an
element is displayed (e.g., block, inline, none).
position: Specifies the positioning method of an element (e.g., static,
relative, absolute, fixed). float: Positions an element to the left or right
and allows other elements to wrap around it. background-image: Sets
an image as the background of an element.
3.2 PHP :
PHP is a versatile and widely-used server-side scripting language become a
cornerstone of web development. With its acronym standing for "PHP: Hypertext
Preprocessor," PHP is designed to handle web pages and server-side tasks. One of its
key strengths is its ability to integrate with different web servers, operating systems,
and databases. It offers extensive compatibility and for platforms such as Windows,
Linux, and macOS, as well as popular web servers like Apache and Nginx.
The PHP community is robust and active, providing developers with a wealth of
intuitive syntax and flexibility, allows developers to quickly learn and build web
PHP's database connectivity is another advantage, with support for multiple databases
22
storage and retrieval, making it easier to build applications that interact with
databases efficiently.
Symfony, CodeIgniter, and Yii, which provide structure and additional functionality
for building web applications. These frameworks streamline common tasks and
projects.
help prevent common vulnerabilities like cross-site scripting (XSS) and SQL injection
attacks. However, developers must still adhere to best practices and implement
additional security measures to ensure the safety and integrity of PHP applications.
and compatibility make it a powerful tool for web development. From small-scale
PHP has several popular frameworks that provide structure and additional features for
Symfony, CodeIgniter, and Yii, among others. These frameworks simplify common
23
3.6 MySQL
MySQL is a widely used open-source relational database management
system (RDBMS) that provides a robust and scalable solution for storing and
managing structured data. Here are some key implications of using MySQL:
Data Storage and Management: MySQL allows efficiently store and organize
structured data in tables, with support for various data types, such as integers,
strings, dates, and more. It provides mechanisms for creating, modifying, and
querying databases, tables, and records, enabling effective data management.
24
Security: MySQL provides various security features to protect data, including
user authentication, access control,and data encryption. It allows you to define
user privileges and permissions at the database, table, or column level,
ensuring data confidentiality and integrity. Community and Ecosystem:
MySQL has a large and active community of developers and users, providing
extensive resources, documentation, and support. Additionally, a wide range of
tools, libraries, and frameworks are available that integrate seamlessly with
MySQL, further enhancing its functionality and ease of use.Cross-Platform .
25
3.5 EMAIL ENCRYPTION AND
AUTHENTICATION:
Secure Sockets Layer (SSL). It also provides options for SMTP authentication,
"SwiftMailer" that provide built-in support for authentication mechanisms like SPF,
Simple Mail Transfer Protocol (SMTP) support: PHP-Mailer enables you to connect
to an SMTP server and send emails using the SMTP protocol. When sending emails
using an external SMTP server, such as Gmail, SendGrid, or your own email server,
the SMTP server, authenticate with your credentials, and send emails using the
SMTP protocol. This enables you to leverage the capabilities of external SMTP
PHP-Mailer includes error handling and debugging capabilities to help you diagnose
and troubleshoot any issues that may arise during the email-sending process. It
provides detailed error messages and logs to assist in identifying and resolving
26
configuration options, and advanced features, making it easier for developers to
27
CHAPTER-4
HTML, CSS, PHP AND SQL
SYSTEM DESIGN AND CODING
26
SYSTEM DESIGN AND CODING
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet"
href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700
&display=swap" />
<style>
body{
background-color: black; color: white;
padding-top: 200px;
}
.btn{
border: 3px solid transparent;
border-image: repeating-linear-gradient(to bottom right, #d33fa4 , #18F9D0
100%); border-image-slice: 1;
border-width: 3px; background-color: transparent; color:white;
height:50px; width:100px; margin-top: 30px;
}
.btn:hover{
border-image: repeating-linear-gradient(to bottom right, black 50%, #18F9D0 );
border-image-slice: 1;
color: rgba(255, 255, 255, 1);
box-shadow: 0 5px 15px rgba(59, 218, 192, 0.4) ;
/* rgba(59, 218, 192, 0.4) */ cursor: pointer;
}
a{
position: relative;
27
text-decoration: none; color:white;
margin-top: 50px; font-size: 20px;
}
a::after{
content: ''; position: absolute; width:100%; height:3px; background:#fff;
border-radius: 5px; left:0;
top:30px;
transform-origin: middle; transform :scaleX(0); transition: transform.5s;
}
a:hover::after{
transform: scaleX(1);
}
.login{
background-image: linear-gradient(to right, #d33fa4 , #18F9D0 100%); border-
style: solid ;
border-radius: 35px; height:55px; width:105px; margin-top: 30px; font-size:
20px;
font-weight: bolder;
}
.login:hover{
border-image:linear-gradient(to right, #18F9D0 ,#d33fa4 100%);
background-image: linear-gradient(to right, #18F9D0 ,#d33fa4 100%);
border-image-slice: 1;
28
border-width: 1px; cursor: pointer;
box-shadow: 0px 10px 15px rgba(59, 218, 181, 0.4) ;
}
.header{
height:116px; display: flex;
flex-direction: row;
justify-content: space-evenly; position: fixed;
z-index: 1; top:0;
left: 0;
right: 0;
background-color: black;
}
.blood-drop{
height: 156.84475708007812px; width: 152.0596160888672px;
border-radius: 0px;
}
.left{
width:281px; height: 195px; position: relative;
}
.left img{
position: absolute;
}
.right{
28
justify-content: space-evenly; margin-left:400px;
}
.lifesaver{
height: 90.10516357421875px; width: 127.62100219726562px;
/* z-index: 1; */
margin-top: 20px; /* Adjust as needed */ margin-left: 120px;
}
.one{
position: relative; display: block; width: 1418px; height: 333px;
}
.one img{
position: absolute; left: 500px; top:150px
}
.quote1{
position: absolute; display: inline;
font-weight: 700; font-size: 45px; height: 172px; width: 397px; left: 150px;
}
.quote2{
position: absolute; display: inline; font-weight: 700; font-size: 45px;
29
top: 50px;
}
.quote4{
position: absolute; display: inline; font-weight: 700; font-size: 45px; width: 626px;
height: 204px;
</style>
</head>
<body>
<div class="header">
<div class="left">
<img class="blood-drop" src="./public/blooddropreddropvector2051726--1-
removebgpreview- 2@2x.png">
<img class="lifesaver" src="./public/Frame 73.png">
</div>
<div class="right">
<a href='aboutus.html'>ABOUT </a>
30
<a href='blog.html'>BLOG </a>
<a href='contactus.html'>CONTACT US </a>
<button class="login"
onclick="window.location.href='userlogin.php'">LOGIN</button>
</div>
</div>
<div class="main">
<div class="one">
<p class="quote1"> Once a blood donor, always a lifesaver</p>
<img src="./public/blood-donation-removebg-preview 1.png">
<p class="quote2">One bag of blood can bring back one from the
dead.</p> </div>
<div class="two">
<img src="./public/ellipse-6@2x.png">
<p class="quote3"> Donate blood and be the reason of smile to many faces.</p>
<p class="quote4">Your little effort can give others second chance to live
life.</p> </div>
<div class="three">
<img
src="./public/illustrationbloodcartooncampaigningdonation260nw496325278--1-
removebgpreview-1@2x.png">
<p class="quote5">The bond of blood is stronger than
anything.</p> </div>
<div class="four">
<h1> Check weather blood is avialble or not ? 👉</h1>
<button style="margin-top: 23px;font-size: 16px;" class="btn"
onclick="window.location.href='see-available.php'">Click
Here</button> </div>
</div>
</body>
</html>
31
4.2 PHP AND SQL CODE
php echo $donor['ID']; ?>">
<input type='hidden' name='name_<?php echo $donor['ID']; ?>'
value="<?php echo
$donor['username']; ?>">
<input type='hidden' name='units_<?php echo $donor['ID']; ?>'
value="<?php echo
$donor['units']; ?>">
<input type='submit' name='accept_<?php echo $donor['ID']; ?>' value="accept">
<input type='submit' name='reject_<?php echo $donor['ID']; ?>' value="reject">
</form>
</div>
</div>
<?php endforeach; ?>
</div>
<?php
foreach ($donors as $donor) {
$donorId = $donor['ID'];
if (isset($POST['accept' . $donorId])) {
$ID = $POST['id' . $donorId];
$units = $POST['units' . $donorId];
$recipientEmail = $donor['email'];
$name = $donor['username'];
$service=$donor['service'];
$bloodgroup = $donor['bloodgroup'];
if ($service=='donate'){
$q = "UPDATE bloodstock SET units=units+:units WHERE bloodgroup
= :bloodgroup"; $st = $db->prepare($q);
$st->bindValue('units', $units);
$st->bindValue('bloodgroup', $bloodgroup);
$st->execute();
$attachmentFilePath = '.\certificate.jpg';
$receiverName = $name;
function generateCertificate($receiverName)
{
$certificateTemplate = imagecreatefromjpeg('.\certificate.jpg');
32
$fontColor = imagecolorallocate($certificateTemplate, 0, 0, 0);
$fontFile = 'C:\xampp1\htdocs\ourminiproject\arial-cufonfonts\ARIAL.TTF';
$textX = 625;
$textY = 625;
$textSize = 28;
return $certificateFilePath;
}
function sendEmailWithAttachmentAndCertificate($recipientEmail,
$attachmentFilePath,
$receiverName)
{
$mail = new PHPMailer(true); echo "$recipientEmail";
$mail->isSMTP();
$mail->Host = 'smtp.gmail.com'; // Replace with your SMTP host
$mail->SMTPAuth = true;
$mail->Username = 'lifesaverbbms25@gmail.com'; // Replace with your
email address
$mail->Password = 'bwvpqwgvubkqjlij'; // Replace with your email password
$mail->Port = 587;
$certificateFilePath = generateCertificate($receiverName);
$mail->setFrom('your-email@example.com', 'Your Name'); // Replace with
your name and email
a
d
d $mail->addAddress($recipientEmail); // Recipient email address
r
$mail->Subject = 'Appreciation for Blood Donation';
e
s $mail->Body = 'Dear blood donor, thank you for your valuable contribution to
s our blood bank.';
$mail->addAttachment($attachmentFilePath);
$mail->addAttachment($certificateFilePath);try {
$mail->send();
echo 'Email sent successfully!';
33
} sesendEmailWithAttachmentAndCertificate($recipientEmail,
c $attachmentFilePath, $receiverName);
a
$q2 = "UPDATE user SET frequency=frequency+1, date=:newdate
t
where ID=:id";
c
h $s2 = $db->prepare($q2);
(
E
x $s2->bindvalue('newdate', date('y-m-d'));
c $s2->bindValue('id', $ID);
e
p $s2->execute();
t
i
o $r = "DELETE FROM tasks WHERE id = :id";
n $s = $db->prepare($r);
$
e $s->bindValue('id', $ID);
) $s->execute(); header("Location:service.php");
{
}
e
c else{
h $q = "UPDATE bloodstock SET units=units-:units WHERE bloodgroup
o = :bloodgroup";
'
E $st = $db->prepare($q);
r $st->bindValue('units', $units);
r
o $st->bindValue('bloodgroup', $bloodgroup);
r $st->execute();
s
e $mail = new PHPMailer(true);
n $mail->isSMTP();
d
i $mail->Host = 'smtp.gmail.com';
n $mail->SMTPAuth = true;
g
e $mail->Username =
m 'lifesaverbbms25@gmail.com'; $mail->Password =
a
i 'bwvpqwgvubkqjlij'; $mail->Port = 587;
l $mail->setFrom('your-email@example.com', 'LIFE
:
' SAVER'); $mail->addAddress($recipientEmail); $mail-
. >Subject = ' Blood Request';
$
m $mail->Body = "Dear $name, we hope the help provided by us
a saved a person life thank you for approching our organization if you want to
i
l save any one life don't forgot there is a 'LIFE SAVER' for you"; try {
-
>
} $mail->send();
} echo 'Email sent successfully!';
34
} rorInfo;
c
a }
t $r = "DELETE FROM tasks WHERE id = :id";
c
h $s = $db->prepare($r);
( $s->bindValue('id', $ID);
E
x $s->execute();
c
e
p header("Location:service.php");
t
i }
o
n
$
} elseif (isset($POST['reject' . $donorId])) { if ($service="donate")
e
) { $email = $donor['email'];
{ $recipientEmail = $email;
e
$name = $donor['username'];
c
h $mail = new PHPMailer(true);
o $mail->isSMTP(); $mail->Host
'
E = 'smtp.gmail.com'; $mail-
r >SMTPAuth = true;
r
o $mail->Username =
r 'lifesaverbbms25@gmail.com'; $mail->Password =
s
e 'bwvpqwgvubkqjlij'; $mail->Port = 587;
n $mail->setFrom('your-email@example.com', 'LIFE
d
i SAVER'); $mail->addAddress($recipientEmail);
n $mail->Subject = ' sorry';
g
e $mail->Body = "Dear $name, your reciving this email because you have
m shown interest to donate blood unfortunatley your blood didn't meet the
a
i requirements for donation ";
l try {
:
' $mail->send();
. echo 'Email sent successfully!';
$
m } catch (Exception $e) {
a echo 'Error sending email: ' . $mail->ErrorInfo;
i
l }
- }
>
E $q = "DELETE FROM tasks WHERE id = :id";
r $s = $db->prepare($q);
35
$ der("Location:service.php");
s
}
-
> }
b
?>
i
n <?php endif; ?>
d
V
a </div>
l
</body>
u
e </html>
(
'
i }
d
'
,
$
d
o
n
o
r
I
d
)
;
$
s
-
>
e
x
e
c
u
t
e
(
)
;
h
e
a
36
37
4.3 UML Diagrams
A UML (Unified Modeling Language) diagram is a visual representation used
to illustrate the structure and behavior of a system or software application.
UML diagrams provide a standardized way to depict various aspects of a
system, making it easier to understand, communicate, and design complex
systems. There are several types of UML diagrams, each serving a specific
purpose. Some of the commonly used UML diagrams include:
1. Class Diagram: A class diagram represents the static structure of a system, showing classes,
their attributes, methods, relationships, and inheritance hierarchies. It provides an overview of the
2. Use Case Diagram: A use case diagram depicts the interactions between system users
(actors) and the system itself. It identifies the different use cases or functionalities of the system and
how actors interact with them.
3. A Data Flow Diagram (DFD) is a graphical representation that depicts the flow of data
within a system or process. It illustrates how data is input, processed, stored, and outputted, as well
as the various components or entities involved in the data flow. DFDs are commonly used in
software engineering and systems analysis to model the data flow and provide aclear understanding
of how information is handled within a system.
4. A block diagram is a visual representation that illustrates the components of a system and
their interrelationships. It provides a high-level overview of the system's structure and functionalities,
emphasizing the major building blocks or modules and their connections. Block diagrams are
commonly used in engineering, electronics, and systems analysis to represent complex systems in a
simplified and abstracted manner.
38
collaborations between objects or actors. Interaction diagrams capture the flow
of messages exchanged between objects over time, showcasing how objects
collaborate to achieve specific functionality within the system.
functionalities.
39
interaction diagrams are sequence diagrams and communication
40
components or processes within the system. They show the path and
direction of data as it flows from one process to another, from external
sources to processes, or from processes to external destinations. Data
flows are represented by arrows.
Data Stores: Data stores represent the storage of data within the system.
They can be files, databases, or any other form of data storage. Data stores
are depicted by rectangles with two parallel lines on the sides.
41
CHAPTER 5
OUTPUT SCREENS AND SCREENSHOTS
42
43
44
45
CHAPTER-6
CONCLUSION AND FUTURE
ENHANCEMENT
46
6.1 Conclusion
6.2 Limitations
The "Life Saver" blood bank management system has a few limitations that
should be taken into consideration. These include potential challenges related
47
to internet connectivity, the need for user adoption and training, ensuring
data security and privacy, infrastructure requirements, integration with
existing systems, user engagement, system scalability, and ongoing
maintenance and support. However, with proper planning, continuous
improvement, and proactive measures, these limitations can be effectively
addressed, allowing the system to contribute to the efficient management of
blood-related activities and improved patient care.
In future work for the "Life Saver" blood bank management system, several
areas can be explored to further enhance its functionality and impact. These
may include integrating advanced technologies such as machine learning or
artificial intelligence to improve blood demand prediction and optimize blood
allocation. Additionally, the system can be expanded to include features like
real-time tracking of blood units, automated notifications for donors and
recipients, and integration with wearable devices for monitoring donor health.
Collaboration with other healthcare systems and institutions can also be pursued
to enable seamless exchange of data and improve interoperability. Continuous
user feedback and engagement should be sought to identify areas for
improvement and enhance user experience. Moreover, ongoing research and
development can focus on incorporating emerging trends and technologies to
ensure the system remains relevant and effective in addressing evolving needs
in the field of blood bank management. The "Life Saver" is a web-based blood
bank management system designed to streamline and enhance the process of
blood donation and requests. The system includes a user-friendly dashboard that
provides access to essential features, including information about the website's
mission, regular blog content, and contact details for administrators. Registered
users can log in to the system and perform various actions. They can donate
blood by filling out a comprehensive form with personal details, health
information. The admin reviews the information provided and communicates
the donation process to the user via email. A thorough health check is
conducted at the designated location, and upon approval, the blood is accepted.
An appreciation certificate is sent to the
48
donor's email, while rejections are accompanied by reason notifications. Users
can also request blood by submitting medical proof to validate their needs. The
admin reviews the requests, deducts the required blood units from the available
stock, and facilitates the blood transfer process. Unregistered users have the
option to register by providing a unique identification number for proper record-
keeping. The admin plays a pivotal role in managing the system. They have the
authority to accept or reject blood donations, organize blood donation camps,
and monitor the available blood units for each blood group. The system
identifies frequent blood donors and displays their pictures on the dashboard,
fostering a sense of recognition and encouragement within the community. The
dashboard is accessible to anyone, allowing quick checks on the availability of
blood units for specific blood groups. This feature aids in urgent situations
where immediate access to information is crucial.
The "Life Saver" blood bank management system serves as a comprehensive
solution, offering efficient blood donation and request processes, user
registrations, and powerful administrative control. By leveraging
technology, the system aims to save lives and create a stronger bond
between blood donors, recipients, and healthcare providers.
49
CHAPTER 7
REFERENCES
50
References:
51