Synopsis - Aarti Lodha

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 17

A Project Report on

Blood Donation System

By

Aarti Bharat Lodha.

MCA – I, SEM – I

2022-2023

To

Savitribai Phule Pune University

Pune- 411041

In Partial Fulfillment of the Degree of

Master in Computer Application (M. C. A.)

Under The Guidance Of

Dr. Manisha Kumbhar Mam.

Suryadatta Institutes of Management, Pune

Suryadatta Institute of Management and Mass Communication (SIMMC)


Date:-

CERTIFICATE

This is to certify that Mr. / Ms. _________________________________, has successfully completed

his/her

project work entitled “________________________” in partial fulfillment of MCA – I Semester-I

program

for the year A.Y. 2022-2023. He / She have worked under our guidance and direction.

Prof. Dr. Manisha Kumbhar Mam Dr. Manisha Kumbhar

(Project Guide) HoD-MCA, SGI

Examiner 1 Examiner 2

Date :

Place :
Acknowledgment

It is my pleasure to be indebted to various people, who directly or


indirectly contributed in the development of this work and who
influenced my thinking, behavior and acts during the course of study.

I express my sincere gratitude to Dr. Manisha Kumbhar mam for


providing me an opportunity to undergo Mini Project.

I am thankful for her support, cooperation and motivation provided


to me during the Mini Project for constant inspiration, presence and
blessings.

I also extend my sincere appreciation to who provided her valuable


suggestions and precious time in accomplishing my Minor Project
Report.

Lastly, I would like to thank the almighty and my parents for their
moral support and my friends with whom I shared my day-to-day
experience and received lots of suggestions that increased my quality
of work.

Thank You

Aarti Bharat Lodha.

Index
Chapter Page number
CHAPTER 1 : INTRODUCTION
1.1 Existing System
1.2 Need for System
1.3 Operating Environment Hardware and Software
CHAPTER 2 : PROPOSED SYSTEM
2.1 Proposed System (Introduction of system)
2.2 Module specifications (Scope)
2.3 Objectives of System
CHAPTER 3 : ANALYSIS & DESIGN
3.1 Use Case Diagrams
3.2 Activity Diagram
3.3 Class Diagram
3.3 Module Hierarchy Diagram
3.4 Table specifications (Database design)
3.5 Data dictionary
CHAPTER 4 : USER MANUAL
4.1 User Interface Screens (Input)
4.2 Output Screens with data
4.3 Data Reports
4.4 Sample program code
4.5 Limitations and Bibliography

Chapter 1- Introduction
1.1 Project Scope

Blood Donation System

Project Scope:-
 This Project would mainly emphasize in integrating more number of
connections and resources related to blood donation.
 This System will connect all the blood banks in a particular area
based on their zip codes.
 All the blood donors will be notified of the blood donation camp.
 All the records will be maintained about donors.
 Every Blood donation camp will have a online registration system.
 All the blood donors have to register first for future references.

Problem Statement:
 Manual system of keeping the records is very time consuming.
 Sometimes it is just due to common human errors which are difficult
to prevent.
 Some people in the rage of excitement or by intension to help
donate blood before the criteria completes of three months, this may
result a adverse effect on the donor’s health.
 In above case it is a very difficult task search in records manually the
last blood donated date.
 While searching in the records manually there is no primary key or
unique key on which the similar name people can be bifurcated or
identified as distinct individual.

Objective and Goals:


 The generation of smart time table systems allows users to generate
timetable for newly occurring changes in less time with less effort
with more efficiency.
 The creation of the Centralized blood donation system will keep the
 It prevents wastage of time.
 It shows exactly who and when blood donation had happened.
 System is user friendly.
 Easy to maintain.
 The main objective of developing this system is to have a feasible and
handy data of donors.

Technology used:
Front end: HTML,CSS.
Back end:MySQL
Middle tear-PHP

Module Specification:-
Admin-(Blood Banks)
User- (Blood Donor and Blood Receviver)

Chapter -2- Design


2.1 Business Use case

2.2 Class diagram


2.3 Database design
City
City_id Int(100), PRIMARY KEY
City_name Varchar(100)
Pin_code Varchar(100)
District Varchar(100)
State Int(100)

Advertisement
Adv_id Int(100),PRIMARY KEY
Camp_title Varchar(100)
Org_by Varchar(100)
pic Varchar(700)
detail varchar(900)

Bloodgroup
bg_id Int(100),PRIMARY KEY
Bg_name Varchar(100)

Camp
camp_id Int(100)
Camp_title Varchar(100),PRIMARY KEY
Organized_by Varchar(100)
state int(100)
city int(100)
Pic Varchar(900)
detail Varchar(1000)

Contacts
Row_id Int(100), PRIMARY KEY
name Varchar(100)
Email Varchar(100)
Mobile int(100)
subj int(100)
Donorregistration
Row_id Int(100),PRIMARY KEY
name Varchar(100)
gender Varchar(100)
age int(100)
mobile int(100)
B_id Int(100)
email Varchar(100)
pwd Int(100)
pic Varchar(1000)

Donation
donation_id Int(100), PRIMARY KEY
Camp_id Varchar(100)
ddate Datetime
Units int(100)
detail varchar (800)
email Varchar(100)

Gallery
pic_id Int(100), PRIMARY KEY
Camp_id int(100)
title Varchar(400)
pic varchar(800)

Requestes
req_id Int(100), PRIMARY KEY, Auto_increment
name Varchar(100)
gender Varchar(100)
Age int(100)
mobile int(100)
email Varchar(100)
bgroup int(100)
regdate Datetime
detail Varchar(500)

Chapter -3-User Interface


3.1 Input Design
3.2 Output Design
Chapter -4-Code
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<link href="css/lightbox.css" rel="stylesheet" />
    <link href="StyleSheet.css" rel="stylesheet" type="text/css" />

    <link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro' rel='stylesheet' type='text/css'>


<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!--slider-->
<link href="css/flexslider.css" rel="stylesheet" type="text/css" media="all" />
     <script src="js/jquery-1.11.0.min.js"></script>
    <script src="js/lightbox.min.js"></script>
<script src="js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script src="js/jquery.flexslider.js" type="text/javascript"></script>
 
 <script type="text/javascript">
     $(function () {
         SyntaxHighlighter.all();
     });
     $(window).load(function () {
         $('.flexslider').flexslider({
             animation: "slide",
             animationLoop: false,
             itemWidth: 210,
             itemMargin: 5,
             minItems: 2,
             maxItems: 4,
             start: function (slider) {
                 $('body').removeClass('loading');
             }
         });
     });
  </script>
</head>

<body>
<?php include('admin/function.php'); ?>
 <div class="h_bg">
<div class="wrap">
<div class="header">
        <div class="logo">
            <h1><a href="index.php"><img src="Images/logo.png" alt=""></a></h1>
        </div>
    </div>
</div>
</div>
<div class="nav_bg">
<div class="wrap">
        <?php require('header.php');?>
    </div>
<div style="height:530px; width:700px; margin:auto; margin-top:10px; margin-bottom:10px; background-color:#f8f1e4; border:2px solid red; box-shadow:4px
1px 20px black;">
     <form method="post" enctype="multipart/form-data">
<table cellpadding="0" cellspacing="0" style="margin:auto; width:100%; " >

    <tr><td colspan="2"  align="center"><img src="Images/donor.png" width="300px" height="80px"  /></td></tr>


   
<tr><td colspan="2">&nbsp;</td></tr>
   
                <tr><td  style=" padding-left:20px;" ><img src="Images/sidebanner.jpg" width="170px" class="shaddoww"/>&nbsp; </td>
                    <td style="vertical-align:top;padding-top:20px;">
                    <table cellpadding="0" cellspacing="0" style="width:100%; height:400px;">

<tr><td class="lefttd">Donor Name:</td><td><input type="text" name="t1" required="required" pattern="[a-zA-Z _]{4,15}" title="please enter only character
between 4 to 15 for donor name" /></td></tr>

<tr><td class="lefttd">Gender</td><td><input name="r1" type="radio" value="male" checked="checked">Male<input name="r1" type="radio" value="female"


>Female</td></tr>

<tr><td class="lefttd">Age</td><td><input type="number" name="t2" required="required" pattern="[0-9]{2,2}" title="please enter only  numbers between 2 to
2 for age" /></td></tr>
<tr><td class="lefttd">Mobile No</td><td><input type="number" name="t3" required="required" pattern="[0-9]{10,11}" title="please enter only numbers
between 10 to 11 for mobile no." /></td></tr>
<tr><td class="lefttd"> Blood Group </td><td><select name="t4" required><option value="">Select</option>
<?php
$cn=makeconnection();
$s="select * from bloodgroup";
    $result=mysqli_query($cn,$s);
    $r=mysqli_num_rows($result);
    //echo $r;
    while($data=mysqli_fetch_array($result))
    {
        if(isset($_POST["show"])&& $data[0]==$_POST["s2"])
        {
            echo "<option value=$data[0] selected>$data[1]</option>";
        }
        else
        {
            echo "<option value=$data[0]>$data[1]</option>";
        }
       
       
       
    }
    mysqli_close($cn);

?>

</select></td></tr>
<tr><td class="lefttd">E-Mail</td><td><input type="email" name="t5" required="required" /></td></tr>

<tr><td class="lefttd">Password</td><td><input type="password" name="t6" required="required" pattern="[a-zA-Z0-9]{2,10}" title="please enter only


character or numbers between 2 to 10 for password" /></td></tr>
<tr><td class="lefttd">Confirm Password</td><td><input type="password" name="t7" required="required" pattern="[a-zA-Z0-9 ]{2,10}" title="please enter only
character or numbers between 2 to 10 for password" /></td></tr>

<tr><td class="lefttd">Uplode Pic</td><td><input type="file" name="t8" /></td></tr>


<tr><td>&nbsp;</td><td><input type="submit" value="Resitred" name="sbmt" style="border:0px; background:linear-gradient(#900,#D50000); width:100px;
height:30px; border-radius:10px 1px 10px 1px; box-shadow:1px 1px 5px black; color:white; font-weight:bold; font-size:14px; text-shadow:1px 1px 6px black;
"></td></tr></table>
</td></tr>
</table>
</form>
        </div>
         
        <div class="clear"></div>
<div class="ftr-bg">
<div class="wrap">
<div class="footer">
    <div class="f_nav">
        <ul>
            <li class="active"><a href="index.php">Home</a></li>            
            <li><a href="donar.php">Donor</a></li>
            <li><a href="login.php">log In</a></li>
            <li><a href="aboutus.php">About</a></li>
            <li><a href="contact.php">Contact Us</a></li>
           
            </ul>
    </div>
        <div class="copy">
            <p class="title">© All Rights Reserved </p>
        </div>
    <div class="clear"></div>
</div>
</div>
</div>

<?php
if(isset($_POST["sbmt"]))
{
$target_dir = "doner_pic/";
$target_file = $target_dir . basename($_FILES["t8"]["name"]);
$uploadOk = 1;
$imageFileType = pathinfo($target_file,PATHINFO_EXTENSION);
// Check if image file is a actual image or fake image

    $check = getimagesize($_FILES["t8"]["tmp_name"]);
    if($check !== false) {
      //  echo "File is an image - " . $check["mime"] . ".";
        $uploadOk = 1;
    } else {
        echo "File is not an image.";
        $uploadOk = 0;
    }

// Check if file already exists


if (file_exists($target_file)) {
    echo "Sorry, file already exists.";
    $uploadOk = 0;
}
//aloow certain file formats
    if($imageFileType != "jpg" && $imageFileType !="png" && $imageFileType !="jpeg" && $imageFileType !="gif"){
        echo "sorry, only jpg, jpeg, Png & gif files are allowed.";
        $uploadok=0;
    }else{
        if(move_uploaded_file($_FILES["t8"]["tmp_name"], $target_file)){
        $cn=makeconnection();
            $s="insert into donarregistration(name,gender,age,mobile,b_id,email,pwd,pic) values('" . $_POST["t1"] ."','" . $_POST["r1"] . "','" .
$_POST["t2"] . "','" . $_POST["t3"] . "','" . $_POST["t4"] . "','" . $_POST["t5"] . "','" . $_POST["t6"] .  "','" . basename($_FILES["t8"]["name"])
."')";
           
            //$s="INSERT INTO donarregistration(name,gender,age,mobile,b_id,email,pswd,pic) VALUES ([value-1],[value-2],[value-3],[value-4],[value-5],
[value-6],[value-7],[value-8],[value-9])"
    mysqli_query($cn,$s);
    mysqli_close($cn);
    if($s>0)
    {
    echo "<script>alert('Record Save');</script>";
    }
    else
    {echo "<script>alert('Record save');</script>";
    }
        } else{
            echo "sorry there was an error uploading your file.";
        }  
   
    }
}
?>
</body>
</html>
5-Bibliography

PHP Manual www.php.net/

https://www.google.com

http://www.w3schools.com

http://www.indianbloodgroup.com

You might also like