Вы находитесь на странице: 1из 40

COIMBATORE BLOOD BANK

CHAPTER 1
1. INTRODUCTION

The main aim of developing this website is to provide blood to the people who are in
need of blood. The number of persons who are in need of blood are increasing in large
number day by day. Using this website user can search blood group available in the city and
the user can also get contact number of the donor who has the same blood group were user
needs. In order to help people who are in need of blood, this Coimbatore Blood Bank Website
can be used effectively for getting the details of available blood groups and user can also get
contact number of the blood donors having the same blood group and within the same city.
So if the blood group is not available in the blood bank user can request the donor to donate
the blood to him and save someone life. Using this website people can register himself or
herself who want to donate blood. To register in the website they have to enter their contact
information like name, address, mobile number etc.
A person want to donate blood user have to register to the website. Donor registration
is very easy, to get register to the system user have to fill up registration form. After
submitting the registration once blood is needed user will be contacted by the person who is
in need of the particular blood. Donor have to give information like blood group, contact
details etc. Using this website people can search blood group available which they are
needed.

1.1 OVERVIEW

The main aim of this website is to build a solution for growing requirement of blood
due to accidents and various health issues, This provide blood donor details to the people who
are in need of blood. Blood requirement are large in number which increasing day by day.
Using this system user can search blood group available in the city and one can also get
contact number of the donor who has the same blood group user needs. Donors are provided
with registration process to maintain their information for future donations as well as to make
their information available to search. This details will be stored in back-end database. This is
totally targeted for immediate use. The donors can update their status after donating the
blood.

B.Sc. (SS) Page 1


COIMBATORE BLOOD BANK

1.2 OBJECTIVE

The project is programmed in order to help the humans or patients who are seeking
for blood at particular location. This PHP project is designed in such a way that it keeps
detailed information as well as separate information of all the locations where blood is
available and what kind of blood is available.

The website does not store blood but is stores the information about the blood or more
precisely we can say it store the information or database of the blood available in a particular
location. Because there was a time when some needs bloods in urgent, then this website
proved it is best option.

The website is basically an E-information site for getting the information for the
blood availability in an particular arena.

MODULES

 Home
 Search donor
 Donor registration
 About blood donation
 Contact us

B.Sc. (SS) Page 2


COIMBATORE BLOOD BANK

CHAPTER 2

2. SYSTEM SPECIFICATION

2.1 HARDWARE REQUIREMENTS

Processor : Dual Core

Speed : 1.1 GHz

RAM : 2GB

Hard Disk : 1 TB

2.2 SOFTWARE REQUIREMENTS

Operating System : Windows XP or Later

Front end : PHP, Html, JavaScript, CSS

IDE : XAMPP

Back end : MS SQL Server 2008

B.Sc. (SS) Page 3


COIMBATORE BLOOD BANK

2.3 SOFTWARE DESCRIPTION

HTML

Webpages are usually viewed in a web browser. They can include writing, links,
pictures, and even sound and video. HTML is used to mark and describe each of these kinds
of content so the web browser can show them correctly.

HTML can also be used to add meta information to a webpage. Meta information is
information about the web page. For example, the name of the person who made it. Meta
information is not usually shown by web browsers.

Cascading Style Sheets (CSS) and JavaScript can be included in HTML code. CSS is
used to change how a webpage looks. JavaScript is used to add features to webpages and
make them more interactive.

HTML was made by the World Wide Web Consortium (W3C). There are many
versions of HTML. The current standard is HTML 4.01. So, it is the version the W3C
recommends. A newer version, called HTML5, will become standard within the next few
years. The W3C also develops XHTML. This is another mark-up language which is very
similar to HTML, but very strict.

JAVA SCRIPT

JavaScript runs on the client side of the web, which can be used to design or program
how the web pages behave on the occurrence of an event. JavaScript is an easy to learn and
also powerful scripting language, widely used for controlling web page behaviour. Contrary
to popular misconception, JavaScript is not "Interpreted Java". In a nutshell, JavaScript is a
dynamic scripting language supporting prototype based object construction. The basic syntax
is intentionally similar to both Java and C++ to reduce the number of new concepts required
to learn the language. Language constructs, such as if statements, for and while loops,
and switch and try ... catch blocks function the same as in these languages.

B.Sc. (SS) Page 4


COIMBATORE BLOOD BANK

PHP

PHP stands for Hypertext Preprocessor. PHP scripts run inside Apache server or
Microsoft IIS. PHP and Apache server are free. PHP code is very easy. PHP is the most used
server side scripting language. PHP files contain PHP scripts and HTML. PHP files have the
extension “php”, “php3”, “php4”, or “phtml”.

Using PHP
 Generate dynamic web pages. PHP can display different content to different user or
display different content at different times of the day.
 Process the contents of HTML forms. We can use a PHP to retrieve and respond to
the data entered into an HTML form.
 Can create database-driven web pages. A PHP can insert new data or retrieve existing
data from a database such a MySQL.

Working of PHP
PHP is a standard HTML file that is extended with additional features. Like a standard
HTML file, PHP contains HTML tag that can be interpreted and displayed by a web browser.
Anything we could normally place in an HTML file Java applets, Blinking text, server side
scripts .we can place in PHP. However, PHP has two important features that make it unique.

 PHP contains server side scripts.


 PHP provides several built-in objects.
XAMPP
XAMPP is a free and open source cross-platform web server solution stack package
developed by Apache Friends, consisting mainly of the Apache HTTP server, MariaDB
database, and interpreters for scripts written in the PHP and Perl programming
languages. XAMPP stands for Cross-Platform (X), Apache (A), MariaDB (M), PHP (P) and
Perl (P). It is a simple, lightweight Apache distribution that makes it extremely easy for
developers to create a local web server for testing and deployment purposes. Everything
needed to set up a web server – server application (Apache), database (MariaDB), and
scripting language (PHP) – is included in an extractable file. XAMPP is also cross-platform,
which means it works equally well on Linux, Mac and Windows. Since most actual web
server deployments use the same components as XAMPP, it makes transitioning from a local
test server to a live server extremely easy as well.

B.Sc. (SS) Page 5


COIMBATORE BLOOD BANK

MYSQL
MySQL Server is a powerful database management system and the user can create
application that requires little or no programming. It supports GUI features and an entire
programming language, Phpmyadmin which can be used to develop richer and more
developed application. There are quite a few reasons, the first being that MySQL is a feature
rich program that can handle any database related task you have. You can create places to
store your data build tools that make it easy to read and modify your database contents, and
ask questions of your data. MySQL is a relational database, a database that stores information
about related objects. In MySQL that database means a collection of tables that hold data. It
collectively stores all the other related objects such as queries, forms and reports that are used
to implement function effectively.

The MySQL database can act as a back end database for PHP as a front end, MySQL
supports the user with its powerful database management functions. A beginner can create
his/her own database very simply by some mouse clicks. Another good reason to use
MySQL as backend tool is that it is a component of the overwhelmingly popular Open source
software.

B.Sc. (SS) Page 6


COIMBATORE BLOOD BANK

CHAPTER 3

3. SYSTEM STUDY

3.1 EXISTING SYSTEM


The existing system has the donor details taken from the hospital and
checks for following factors.

 Filling up the form


 Donating blood
 Searching record

People who are in need of blood should call the hospital or blood bank for donors by
searching the records of previous donors. This process is very difficult.

3.1.1 DRAWBACKS

However existing system has following drawbacks:

 Requires manpower
 Extra clerical work
 Error handling is not efficient
 More paper work
 Time consuming

B.Sc. (SS) Page 7


COIMBATORE BLOOD BANK

3.2 PROPOSED SYSTEM

The proposed blood donation website helps the people who are in need of blood by
giving them all the details of blood group availability or regarding the donors with same
blood group. It is difficult to do it manually, so now the website will be accessed by the
people (user) directly.

3.2.1 ADVANTAGES OF PROPOSED SYSTEM

 The Information of blood is catered and the same can be accessed by anyone,
anywhere at any time.
 The information within our site can be quickly accessed.
 The site will be kept updated to extend the latest information to users about the blood
donors.
 Intimation on unavailability of donor will also be displayed.
 Easy to use the website to get information about the donor and easy to operate.

B.Sc. (SS) Page 8


COIMBATORE BLOOD BANK

CHAPTER 4

4. SYSTEM DESIGN

System design is the process of defining the architecture, components, modules,


interfaces, and data for a system to satisfy specified requirements. The process of building
systems has always been complex with system becoming larger, the costs and complexities
get multiplied. So the need for better methods for developing systems is widely recognized to
be effective and the applied model should meet a few requirements.

System design is the process of planning a new system or to replace the existing system.
Simply, system design is like the blueprint for building, it specifies all the features that are to
be in the finished product. The model should be structured and cover the entire system
development process from feasibility study to programming, testing and implementation.

 The model should utilize established methods and techniques like database designs,
normalizations and structured programming techniques.
 Documentation should be a direct result of the development work and should be
concise, precise and as non-redundant as possible.

Based on the above requirements of the system design, the input design, data modeling, input
and output screen design, report design and database design are made.

B.Sc. (SS) Page 9


COIMBATORE BLOOD BANK

4.1 DATA FLOW DIAGRAM

A data flow diagram is graphical tool used to describe and analyse movement of data
through a system. These are the central tool and the basis from which the other components
are developed. The transformation of data from input to output, through processed, may be
described logically and independently of physical components associated with the system.
These are known as the logical data flow diagrams. The physical data flow diagrams show
the actual implements and movement of data between people, departments and workstations.
A full description of a system actually consists of a set of data flow diagrams. Using two
familiar notations Yourdon, Gane and Sarson notation develops the data flow diagrams. Each
component in a DFD is labeled with a descriptive name. Process is further identified with a
number that will be used for identification purpose. The development of DFD’S is done in
several levels. Each process in lower level diagrams can be broken down into a more detailed
DFD in the next level. The lop-level diagram is often called context diagram. It consists a
single process bit, which plays vital role in studying the current system. The process in the
context level diagram is exploded into other process at the first level DFD. The idea behind
the explosion of a process into more process is that understanding at one level of detail is
exploded into greater detail at the next level. This is done until further explosion is necessary
and an adequate amount of detail is described for analyst to understand the process. Larry
Constantine first developed the DFD as a way of expressing system requirements in a
graphical from, this lead to the modular design.

A DFD is also known as a “bubble Chart” has the purpose of clarifying system requirements
and identifying major transformations that will become programs in system design. So it is
the starting point of the design to the lowest level of detail. A DFD consists of a series of
“Bubbles” joined by data flows in the system.

B.Sc. (SS) Page 10


COIMBATORE BLOOD BANK

4.1.1 E-R DIAGRAM

 The relation upon the system is structure through a conceptual ER-Diagram, which
not
 only specifics the existential entities but also the standard relations through which the
system
 exists and the cardinalities that are necessary for the system state to continue.
 The entity Relationship Diagram (ERD) depicts the relationship between the data
objects.
 The ERD is the notation that is used to conduct the date modeling activity the
attributes of
 each data object noted is the ERD can be described resign a data object descriptions.
 The set of primary components that are identified by the ERD are
 Data object
 Relationships
 Attributes
 Various types of indicators.

The primary purpose of the ERD is to represent data objects and their relationships.

B.Sc. (SS) Page 11


COIMBATORE BLOOD BANK

4.2 INPUT DESIGN

The major inputs and outputs and major functions for online auction system are
follows:

Input design is a part of overall system design, which requires very careful attention. The
main objective during the input design is as given below:

 To produce a free cost-efficient method of input for all donor details.


 To achieve the highest possible level of accuracy.
 To ensure that the input is acceptable and understood by the user.

DONOR REGISTRATION MODULE

This page helps the donor to register his details to donate blood and will be informed,
whenever the particular blood group is required. This form is user friendly and details are
taken to the backend from which it is brought back when required
CONTACT US MODULE

Here the user can clarify their queries and also can report if any inconvenience in this
website. It involves a contact form where the user can give his feedback about the website
and also can say about his experience of using this website.

4.3 DATABASE DESIGN


When designing a database, you have to make decisions regarding how best to take
some system in the real world and model it in a database. This consists of deciding which
tables to create, what columns they will contain, as well as the relationships between the
tables. While it would be nice if this process was totally intuitive and obvious, or even better
automated, this is simply not the case. A well-designed database takes time and effort to
conceive, build and refine.

The benefits of a database that has been designed according to the relational model
are numerous. Some of them are:

 Data entry, updates and deletions will be efficient.


 Data retrieval, summarization and reporting will also be efficient.

B.Sc. (SS) Page 12


COIMBATORE BLOOD BANK

4.4 OUTPUT DESIGN

Outputs from computer system are required primarily to communicate the results of
processing to users. They are also used to provide a permanent hard-copy of the results
for later consultation. The various types of outputs in general are:

 External Outputs, whose destination is outside the organization.


 Internal Outputs, whose destination is within the concern and which require
careful design because they are the user’s main interface within the computer.
 Operational outputs, whose use is purely within the encrypted data.
 Interactive outputs, which involve the user in communicating directly with the
computers.
HOME PAGE MODULE

This page enables us to search the donor and blood requirements. The home page
consists of all other modules in the tab format and it also has the images of blood
donation. It has a link where it makes us to go to the registration page for easy access.

SEARCH DONOR MODULE

The search donor form has two dropdowns blood group . Blood group is used to select
the blood which is in need from the dropdown list and they can contacted for quick
process of blood arrangements.

B.Sc. (SS) Page 13


COIMBATORE BLOOD BANK

5. SYSTEM TESTING

5.1 SYSTEM TESTING

The purpose of testing is to discover errors. Testing is the process of trying to


discover every conceivable fault or weakness in a work product. It provides a way to check
the functionality of components, sub-assemblies, assemblies or a finished product. System
testing is the stage before system implementation where the system is made error free and all
the needed modifications are made. The system was tested with test data and necessary
corrections to the system were carried out. All the reports were checked by the user and
approved. The system is very user friendly with contact to assist the user wherever necessary.
There are various types of test, each test type addresses a specific testing requirement.

5.2 TESTING METHODOLOGIES

Test Case specification is major activity in the testing process. In this project, I have
performed two levels of testing.

5.2.1 UNIT TESTING


The basic units in Unit testing are:
 Validating the input given by the user.
 Exception handling.
In this project input is validated in Email and Mobile number Column

5.2.2 INTEGRATION TESTING


The basic units in Integration testing are:
 Integration of all programs is correct or not.
 Checking whether the entire system after integrating is working as
expected.
 The system is tested as whole after the unit testing.

B.Sc. (SS) Page 14


COIMBATORE BLOOD BANK

5.3.3 VALIDATION TESTING

 Software validation is achieved through a serious of testes that


demonstrate conformity with requirements. Thus the proposed system
under consideration has been tested by validation & found to be working
satisfactory.

5.4.4 ACCEPTANCE TESTING

 Acceptance testing involves planning an execution of a functional test,


performance test and stress test to verify that the implemented system
satisfies the requirement.The acceptance testing is the final stage of the
user the various possibilities of the data are entered and the results are
tested.

B.Sc. (SS) Page 15


COIMBATORE BLOOD BANK

CHAPTER 6

6. SYSTEM IMPLEMENTATION

During the software-testing phase each module of software is thoroughly tested for
bugs and for accuracy of output. The system developed is very user-friendly and the detailed
documentation is also given to the user as online help wherever necessary. The
implementation phase normally ends with the formal test involving all the components. The
entire system was developed using the CSS, HTML, JavaScript, Personal Web Server, and
MYSQL as back end. The HTML is used to design the web page. The Personal Web Server
is used to understand the client’s request and to send response to them. The JavaScript are
used for client-side validations so that the user can enter only appropriate input in the input
fields. The MYSQL is the back end tool where the database resides. Hence the design of the
entire system is user-friendly and simple the implementation has been quite easy.

B.Sc. (SS) Page 16


COIMBATORE BLOOD BANK

CHAPTER 7

7. CONCLUSION
It has been a great pleasure for me to work on this exciting and challenging Blood
donation website project. This project proved good for me as it provided practical
knowledge of not only programming languages, but also back end database for storing data of
my website. Got a good knowledge in PHP, MYSQL, HTML, CSS, JavaScript and some
other backend applications like XAMPP. This helped me to design my website named
“COIMBATORE BLOOD BANK”. It also provides knowledge about the latest technology
used in developing web enabled application and client server technology that will be great
demand in future. This will provide better opportunities and guidance in future in developing
projects independently.

B.Sc. (SS) Page 17


COIMBATORE BLOOD BANK

CHAPTER 8

8. FUTURE ENHANCEMENT

The “Coimbatore blood bank” is current developed using PHP, it can be future
enhance to AJAX, THE SYSTEM 2.0 or mobile applications for the system site
development. Currently it is implemented for user to just view details of user and it can be
future enhanced by giving many details of user.

These are the following features which can be added in future:

 In future I will create login for my users in the website and the same can be accessed
by anyone, anywhere at any time.
 Blood need will be sent in messages to all the registered users.
 The site will be kept updated to extend the latest information to users about the blood
donors.
 This website can be accessed directly by the hospital organization for easy
arrangements of blood.
 Easy to use the website to get information about the donor and in future the website
can be used by the people under their login where they can update their last blood
donation date, so that they will be available accordingly in the search.

B.Sc. (SS) Page 18


COIMBATORE BLOOD BANK

BIBLIOGRAPHY

BOOKS

 Horton, Sarah and Quesenbery, Whitney. Universal Design for Web Accessibility,
Rosenfeld Media, 2014
 Sydik, Jeremy. Design Accessible Web Sites, Pragmatic Bookshelf, 2007.
 Evans, Ralph M. An Introduction to Color. John Wiley and Sons, New York, 1948.
 Briggs, Owen et al. Cascading Style Sheets: Separating Content from Presentation,
Second Edition, APress, 2004.
 Casciano, Chris. The CSS Pocket Guide, Peachpit Press, 2010.
 Powers, David. Adobe Dreamweaver CS5.5 Studio Techniques: Designing and
Developing for Mobile with jQuery, HTML5, and CSS3, Adobe Press, 2011.
 Meiert, Jens Oliver. The Little Book of HTML/CSS Coding Guidelines, O'Reilly, 2015
 Castro, Elizabeth and Hyslop. HTML5, and CSS, Eight Edition: (Visual QuickStart
Guide), Peachpit Press, 2013.
 Crockford, Douglas. JavaScript: The Good Parts, O'Reilly & Associates, 2008.
 Lerdorf, Rasmus. PHP Pocket Reference, O'Reilly, 2000.
 Welling, Luke and Thomson, Laura. PHP and MySQL Web Development, Third
Edition, Sams, 2008.

WEBSITE

 http://www.friends2support.org/
 http://www.savelifeindia.org/
 http://wikipedia.com/
 http://www.XAMPP.com/
 http://www.bloodbankindia.net/

B.Sc. (SS) Page 19


COIMBATORE BLOOD BANK

APPENDICES

A. DATAFLOW DIAGRAM

Level 0 DFD

Level 1 DFD

B.Sc. (SS) Page 20


COIMBATORE BLOOD BANK

WORKFLOW

B.Sc. (SS) Page 21


COIMBATORE BLOOD BANK

DATABASE DESIGN

REGISTRATION TABLE : primary key - Email_ID

Field Name Field Type Field Length

Donor_name Varchar2 30

Gender Varchar2 10

Age Integer 10

Blood_group Varchar2 10

Mobile_number Varchar2 10

Email_ID Varchar2 50

Address Varchar2 50

Password Varchar2 30

Last_donated_date Date

B.Sc. (SS) Page 22


COIMBATORE BLOOD BANK

FEEDBACK TABLE : primary key - Email_ID

Field Name Field Type Field Length

Name Varchar2 30

Email Varchar2 30

Phone Integer 10

Message Longtext 100

B.Sc. (SS) Page 23


COIMBATORE BLOOD BANK

SAMPLE CODINGS
<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>BLOOD DONOR/HOME </title>

<link type="text/css" rel="stylesheet" href="style.css" />

</head>

<body>

<div class="header">

<div class="leftheader">

<a href="home.php"><imgsrc="logopng.png" width="100%" height="98px"


align="left"/></a>

</div>

<div class="rightheader" align="center">

<h1><font color="#FF0000" > COIMBATORE BLOOD BANK </font></h1>

<div class="rightheader" align="right">

<a href="home.php"><font color="#FF0000"> Home


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="REGISTRATION.php"><font color="#FF0000"> Registration


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="invoice.php"><font color="#FF0000"> Donor details


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="whoneedsblood.php"><font color="#FF0000"> Who Needs Blood


?</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="ABOUT US.php"><font color="#FF0000"> About


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="feedback.php"><font color="#FF0000"> Feedback


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

</div>

</div>
B.Sc. (SS) Page 24
COIMBATORE BLOOD BANK

<div class="body">

<div class="leftsidebar" align="justify">

<?php

include "marque.php";

?>

</div>

<div class="centrebar">

<p align="center"><h3> SEARCH DONORS </h3></p>

<form method="post" action="invoice.php" name="search">

<table cellpadding="5" cellspacing="0" border="0" align="center" width="50%" >

<tr><td>BLOOD GROUP</td><td><select name="BLOOD_GROUP">

<option value="O+">O+ </option>

<option value="A+">A+</option>

<option value="B+">B+</option>

<option value="AB+">AB+</option>

<option value="A1+">A1+</option>

<option value="A2+">A2+</option>

<option value="A1B+">A1B+</option>

<option value="O-">O-</option>

<option value="B-">B-</option>

<option value="A-">A-</option>

<option value="AB-">AB-</option>

</select></td></tr>

<br />

<tr><td colspan="2"><input type="submit" value="submit" name="search" /></td></tr>

</table>

</form>

B.Sc. (SS) Page 25


COIMBATORE BLOOD BANK

<form method="post" action="" name="Last_donated_date">

<div>

<p>&nbsp;</p>

<h4>TO UPDATE YOUR LAST_DONATED_DATE , KINDLY UPDATE HERE</h4>

Enter your email ID : <input type='email' name='Email_ID' value='' /><br>

<p>&nbsp;</p>

Last_donated_date : <input type='text' name='Last_donated_date' value='' required


placeholder="(YYYY-MM-DD)"/><br>

<p>&nbsp;</p>

<input type="submit" name="Submit" value="Submit" />

</div>

</form>

<?php

if(isset($_POST["Submit"]))

$Email_ID=$_POST['Email_ID'];

$Last_donated_date=$_POST['Last_donated_date'];

mysql_query("update blood set Last_donated_date='$Last_donated_date' where


Email_ID='$Email_ID'")or die(mysql_error());

echo "<script type='text/javascript'>alert('LAST DONATED DATE UPDATED


SUCCESSFULLY')</script>";

?>

</div>

<div class="rightsidebar">

<imgsrc="b2.jpg" width="100%" height="450px" />

</div>

B.Sc. (SS) Page 26


COIMBATORE BLOOD BANK

</div>

<div class="footer" align="right">

<font color="#000000">

<marquee><h3> *****!!!!! DONATE BLOOD NOT ON ROADS !!!!! DONATE


BLOOD SAVE LIVES !!!!!***** <h3></marquee>

<div class="footer1">

<div class="footer" align="right"></div>

</ font>

</div>

</div>

</body>

</html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>BLOOD DONOR / INVOICE</title>

<link type="text/css" rel="stylesheet" href="style.css" />

</head>

<body>

<div class="header">

<div class="leftheader">

<a href="home.php"><imgsrc="logopng.png" width="100%" height="98px"


align="left"/></a>

</div>

<div class="rightheader" align="center">

<h1><font color="#FF0000" > COIMBATORE BLOOD BANK </font></h1>

<div class="rightheader" align="right">

B.Sc. (SS) Page 27


COIMBATORE BLOOD BANK

<a href="home.php"><font color="#FF0000"> Home


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="REGISTRATION.php"><font color="#FF0000"> Registration


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="invoice.php"><font color="#FF0000"> Donor details


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="whoneedsblood.php"><font color="#FF0000"> Who Needs Blood


?</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="ABOUT US.php"><font color="#FF0000">


About</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="feedback.php"><font color="#FF0000"> Feedback


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

</div>

</div>

<div class="inbody" align="center">

<form name="Last_donated_date1" action="" method="post">

<table align="left" cellpadding="10" cellspacing="0" border="1" width="100%">

<tr><th>SNO</th><th>NAME</th><th>GENDER</th><th>AGE</th><th>BLOOD_GRO
UP</th><th>Mobile_number</th><th>Email_ID</th><th>Last_donated_date</th>

</tr>

<?php

if(isset($_POST["search"]))

$Blood_Group=$_POST['BLOOD_GROUP'];

$s=mysql_query("select * from blood where Blood_group='$Blood_Group'");

else

$s=mysql_query("select * from blood");

B.Sc. (SS) Page 28


COIMBATORE BLOOD BANK

while($a=mysql_fetch_array($s))

$sno=$a['sno'];

$Donor_name=$a['Donor_name'];

$Gender=$a['Gender'];

$Age=$a['Age'];

$Blood_group=$a['Blood_group'];

$Mobile_number=$a['Mobile_number'];

$Email_ID=$a['Email_ID'];

$Address=$a['Address'];

$Last_donated_date=$a['Last_donated_date'];

echo "<tr><td><input type='radio' name='sno' value='$sno'


/></td><td>$Donor_name</td><td>$Gender</td><td>$Age</td><td>$Blood_group</td><t
d>$Mobile_number</td><td>$Email_ID</td><td>$Last_donated_date</td></tr>";

?>

</table>

<div align="right">

<p>&nbsp;</p>

<h5>TO UPDATE YOUR LAST_DONATED_DATE , KINDLY UPDATE HERE</h5>

Last_donated_date : <input type='text' name='Last_donated_date2' value='' required


placeholder="(YYYY-MM-DD)" /><br>

<p>&nbsp;</p>

<input type="submit" name="submit" value="submit" />

<p>&nbsp;</p>

</div>

</form>

<?php

B.Sc. (SS) Page 29


COIMBATORE BLOOD BANK

if(isset($_POST["submit"]))

$sno=$_POST['sno'];

$Last_donated_date=$_POST['Last_donated_date2'];

mysql_query("update blood set Last_donated_date='$Last_donated_date' where


sno='$sno'")or die(mysql_error());

?>

</div>

<div class="footer" align="right">

<font color="#000000">

<marquee><h3> *****!!!!! DONATE BLOOD NOT ON ROADS !!!!! DONATE


BLOOD SAVE LIVES !!!!!***** <h3></marquee>

<div class="footer1">

<div class="footer" align="right"></div>

</font>

</div>

</div></strong>

</body>

</html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>BLOOD DONOR / REGISTRATION</title>

<link type="text/css" rel="stylesheet" href="style.css" />

</head>

<body>

<div class="header">

B.Sc. (SS) Page 30


COIMBATORE BLOOD BANK

<div class="leftheader">

<a href="home.php"><imgsrc="logojpg.jpg" width="100%" height="98px"


align="left"/></a>

</div>

<div class="rightheader" align="center">

<h1><font color="#FF0000">COIMBATORE BLOOD BANK </font></h1>

<div class="rightheader" align="right">

<a href="home.php"><font color="#FF0000"> Home


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="REGISTRATION.php"><font color="#FF0000"> Registration


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="invoice.php"><font color="#FF0000"> Donor details


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="whoneedsblood.php"><font color="#FF0000"> Who Needs Blood


?</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="ABOUT US.php"><font color="#FF0000"> About


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="feedback.php"><font color="#FF0000"> Feedback


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

</div>

</div>

</div>

<div class="regbody">

<div class="regleftsidebar" align="center">

<?php

include "marque2.php";

?></div>

<div class="regcentrebar">

<form method="post" action="" name="rform">

B.Sc. (SS) Page 31


COIMBATORE BLOOD BANK

<h1 align="center"><U><font size="+1" color="#FF3737" >BLOOD


REGISTRATION</font></U></h1>

<table cellpadding="5" cellspacing="0" border="0" align="center" width="50%" >

<tr><td>Donor_name</td><td>

<input type="text" name="Donor_name" value="" required /><br /></td>

</tr>

<tr><td>Gender</td></tr>

<td>

<input type="radio" name="Gender" value="Male" required /> Male<br /></td>

<td>

<input type="radio" name="Gender" value="Female" required /> Female<br /></td>

<tr><td>Age</td><td>

<input type="text" name="Age" value="" required /><br /></td>

<tr><td>Blood_Group</td><td><select name="Blood_Group">

<option value="O+">O+ </option>

<option value="A+">A+</option>

<option value="B+">B+</option>

<option value="AB+">AB+</option>

<option value="A1+">A1+</option>

<option value="A2+">A2+</option>

<option value="A1B+">A1B+</option>

<option value="O-">O-</option>

<option value="B-">B-</option>

<option value="A-">A-</option>

<option value="AB-">AB-</option>

</select></td></tr>

<tr><td>Mobile_number</td><td>

B.Sc. (SS) Page 32


COIMBATORE BLOOD BANK

<input type="text" name="Mobile_number" value="" required /><br /></td>

<tr><td>Email_ID</td><td>

<input type="email" name="Email_ID" value="" required/><br /></td>

<tr><td>Address </td><td>

<textarea name="Address" rows="5" cols="30" ></textarea></td></tr>

<tr><td>Last_donated_date</td><td>

<input type="text" name="Last_donated_date" value="" required placeholder="(YYYY-


MM-DD)" /></td></tr><br />

<tr><td colspan="4"><input type="submit" name="submit" value="Submit" /></td></tr>

</table>

</form>

<?php

if(isset($_POST["submit"]))

$Donor_name=$_POST['Donor_name'];

$Gender=$_POST['Gender'];

$Age=$_POST['Age'];

$Blood_Group=$_POST['Blood_Group'];

$Mobile_number=$_POST['Mobile_number'];

$Email_ID=$_POST['Email_ID'];

$Address=$_POST['Address'];

$Last_donated_date=$_POST['Last_donated_date'];

mysql_query("insert into
blood(Donor_name,Gender,Age,Blood_group,Mobile_number,Email_ID,Address,Last_donat
ed_date)values('$Donor_name','$Gender','$Age','$Blood_Group','$Mobile_number','$Email_I
D','$Address','$Last_donated_date')")or die(mysql_error());

echo "<script type='text/javascript'>alert('User registered successfully')</script>";

B.Sc. (SS) Page 33


COIMBATORE BLOOD BANK

?>

</div>

<div class="rightsidebar">

<imgsrc="blood.jpg" width="100%" height="500px" />

</div>

</div>

<div class="footer" align="right">

<font color="#000000">

<marquee><h3> *****!!!!! DONATE BLOOD NOT ON ROADS !!!!! DONATE


BLOOD SAVE LIVES !!!!!***** <h3></marquee>

<div class="footer1">

<div class="footer" align="right"></div>

</font>

</div>

</div>

</body>

</html>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Requirements</title>

<link type="text/css" rel="stylesheet" href="style.css" />

</head>

<body>

B.Sc. (SS) Page 34


COIMBATORE BLOOD BANK

<div class="header">

<div class="leftheader">

<a href="home.php"><imgsrc="logopng.png" width="100%" height="98px"


align="left"/></a>

</div>

<div class="rightheader" align="center">

<h1><font color="#FF0000" > COIMBATORE BLOOD BANK </font></h1>

<div class="rightheader" align="right">

<a href="home.php"><font color="#FF0000"> Home


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="REGISTRATION.php"><font color="#FF0000"> Registration


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="invoice.php"><font color="#FF0000"> Donor details


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="whoneedsblood.php"><font color="#FF0000"> Who Needs Blood


?</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

<a href="ABOUT US.php"><font color="#FF0000">


About</font></a>&nbsp;&nbsp;&nbsp;&nbsp;

<a href="feedback.php"><font color="#FF0000"> Feedback


</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

</div>

</div>

</div><div class="amtbody">

<div class="aboutleftsidebar" align="justify">

<div><p>&nbsp;</p></div>

<a href="home.php"><imgsrc="b3.jpg" /></a>

</div>

<div class="regcentrebar" align="justify">

B.Sc. (SS) Page 35


COIMBATORE BLOOD BANK

<font face="cursive"><br />Before you finalize any of the donors, run each donor through
"the vital 10" checklist.

<ol type="1"><li>The donor should not have donated blood in the last 3 months.</li>

<li>The donor should not have undergone any major surgery within 3 months.</li>

<li>The donor has not had alcohol 48 hours before the donation.</li>

<li>The donor should avoid smoking on the day of donation and 3 hours after donation.</li>

<li>The donor should not have fever at the time of donation.</li>

<li>The donor should have had a good meal before donation.</li>

<li>The donor should disclose whether he is under any medication for malaria, jaundice,
etc.</li>

<li>The donor should not have had any tooth extraction in the past 2 weeks.</li>

<li>The donor should not be pregnant.</li>

<li>The donor should not have had any immunization at least one month before.</li></ol>

Please be courteous to donors who are unable to donate.

Please do not force or convince a donor if he/she is not in a position to donate.</font>

</div>

<div class="rightsidebar">

<div><p>&nbsp;</p></div>

<a href="REGISTRATION.php"><imgsrc="blood1.png" width="100%" align="bottom"


/></a>

</div>

</div>

<div class="footer" align="right">

<font color="#000000">

B.Sc. (SS) Page 36


COIMBATORE BLOOD BANK

<marquee><h3> *****!!!!! DONATE BLOOD NOT ON ROADS !!!!! DONATE


BLOOD SAVE LIVES !!!!!***** <h3></marquee>

<div class="footer1">

<div class="footer" align="right"></div>

</ font>

</div>

</div>

</body>

</html>

B.Sc. (SS) Page 37


COIMBATORE BLOOD BANK

SMAPLE SCREENSHOTS

INPUT DESIGN

Fig 4.2 Registration details

B.Sc. (SS) Page 38


COIMBATORE BLOOD BANK

DATABASE DESIGN

Fig 4.3 Database process

OUTPUT DESIGN

Fig 4.4 Output process

B.Sc. (SS) Page 39


COIMBATORE BLOOD BANK

TESTING

FIG 5.1 UNIT TESTING

Fig 5.4 EMAIL VALIDATION

B.Sc. (SS) Page 40

Вам также может понравиться