Professional Documents
Culture Documents
No CONTENTS PAGE
1 PROJECT TITLE 3
2 INTRODUCTION 3-7
16 TESTING 256-269
20 BIBLIOGRAPHY/CONCULSION 274
2. Introduction
A blood donation is a process whereby a person voluntarily has blood drawn to be used
for future transfusions when in need at hospitals for treatment procedures that require
them. Donation may be of whole blood (blood drawn directly from the body) or of
specific components of the blood; such as red blood cells, white blood cells, plasma,
and platelets. Blood banks often participate in the process of collecting blood and other
procedures such as managing stocks, approving blood requests and updating donation
information. The inspiration of this project is to improve blood banks in India and to
develop a blood bank information system which focuses on making an online system
that is accessible for both donors and administrators. Donors can directly receive
information regarding their previous blood donations, including their blood results and
donation history,
in order to easily schedule their next donations. They can also update the personal
information through the system, without having to contact the blood bank registry. The
system is also developed for the administrators, who are the main authority in the
2
system. Administrators can add, modify, delete, and query any donation information if
necessary. The administrator is also responsible for responding to the hospital’s blood
requests.
Documentation will highlight all current problems, which were not covered with in the
existing system.
I have explained all identified problems in my documentation which can be utilized by the
user or developer in future whenever required.
During the documentation phase of my Project, I have focused on area, like feasibility
study, options study, and comparative study as well as the total topic mentioned in the
guideline of IGNOU’s Project Proposal like Introduction, objectives, coding, Process
logic, etc.
To Proposed System:
In the proposed system, in this web application once the timer is being arranged, it put
up updates automatically and does not need anyone to do so. Also it is easily available
due to its speed and programming part and using it is quite an easy task and well as
due to its speed the information which will be available by one or two clicks, will get
available in few seconds only.
I have used HTML, CSS and JSP programming as front end and mysql as back end.
The project must confirm to various objectives. These objectives are explained
briefly in the following points: -
3
• The main objective of the website on blood bank Management system is to
manage the details of Blood bank , Blood Group, Donor, Blood Stock, Blood cell it
manage all the information about Blood Bank , Record, Blood Cell, Blood Bank.
• The project is totally built at administrative end and thus only the administrator is
guaranteed the access .The purpose of the website is to build an application
program to reduce the manual work for managing the Blood Bank, Blood Group,
Record, Donor.It tracks all the details about the Donor Blood Stock, Blood Cell.
• The main objective of this website is to help blood patients to find blood donor in
their city nearby their area loction.
• This application also helpful for those patients who can’t go to different blood bank
for search blood group they can easily search on this website .
ACTIVITIES OF PROJECT
1) Secure Login
4
7) Admin can control every Donor
NEED OF COMPUTERIZATION
In the proposed system, in this software once the timer is being arranged, it put up
updates and uploads automatically and does not need anyone to do so. Also it is easily
available due to its speed and programming part and using it is quite an easy task and
well as due to its speed the information which will be available by one or two clicks, will
get available in few seconds only.
5
PROBLEMS WITH THE PHYSICAL SYSTEM
Problems of the physical system are described below:
• When you need blood to save your friends then you have to go hospital or blood
bank Which take to much time.
• Donor and are not able to communicate and share the details with each
other,city.
2. There is also a feature of forget password which is more helpful if someone loose
his/her password.
6
Software Requirements
Hardware Requirements
A. Hardware Requirements
Standalone Platform Network Platform
RAM 4 GB 1 GB
B. Software Requirements
Standalone Platform Network Platform
7
Back-End None MySQL
5.PROJECT ANALYSIS
1 PROBLEM RECOGNITION
• REQUIREMENT ANALYSIS
2 OVERALL ANALYSIS AND FEASIBILITY STUDY
• ANALYSIS METHODOLOGY
FEASIBILITY STUDY o TECHNICAL FEASIBILITY
o OPERATIONAL FEASIBILITY o ECONOMIC
FEASIBILITY
COST BENEFIT ANALYSIS
3 SYSTEM ANALYSIS
4 SYSTEM DESIGN
5 SYSTEM TESTING
6 IMPLEMENTATION
1.PROBLEM RECOGNITION
The idea of developing a new system occurs to me when recognizes that existing
system has a problem in term of easy handling of business. This awareness marks the
8
beginning of the problem recognition phase, as almost all computer system replaces an
existing system (either manual or automated).
A proper understanding of the problem and its classification enables the systems
analyst to separate symptoms from the real causes. It also helps the analyst to
consider it as a system problem rather than a business problem and thereby increasing
the chances of success in proposing solutions.
1. The existing System is slow and cannot respond to information requests i.e.
problem of responsiveness. In this case analyst will look to:
(i) Find out present level of responsiveness and factors contributing to it.
2. Originating workload is higher than the volume of workload handled i.e. problem of
throughput.
3. The present services are very expensive i.e. problem of economy the management
intentions could be
5. Problem of information is the next criteria for the analyst wherein he is concerned
with the available information, its accessibility for decision-making. These types of
problems have close relationship with the ways of data storage and organization.
6. Problem of Efficiency: The analyst must create a proper balance between all the
contributing factors like response time, workload volume, cost of processing, and
information needs etc.
9
7. Problem of security of information wherein analyst tries to device controls over
accessibility of information.
REQUIREMENT ANALYSIS
Requirement analysis is a Software Engineering Task (SET) that bridges the gap
between system level software allocation and software design. Requirement analysis
enables the system engineer to specify software function and performance, indicate
software’s interface with other system elements, and establish constraints that software
must meet. Requirement analysis allows the software engineer (often called analyst in
this role) to refine the software allocation and build models of the data, functional and
behavioral domains that will be related by software. Requirement analysis provides the
interface, and procedural design.
Finally, the requirement specification provides the developer and the customer with the
means to assess quality once software is built. Communication has begun. But as we
have already noted, the road from communication to understanding is often full of
potholes.
10
The Linear Sequential Model encompasses the following activities: -
• Design
Software design is actually a multistep process that focuses on four distinct attributes of a
program:-data structure, software architecture, interface representations, and procedural
(algorithmic) detail. The design process translates requirements into a representation of
the software that can be assessed for quality before coding begins. Like requirements, the
design is documented and becomes part of the software configuration. Code
Generation
The design must be translated into a machine-readable form. The code generation step
performs this task. If design is performed in a detailed manner, code generation can be
accomplished mechanistically.
• Testing
Once code has been generated, program testing begins. The testing process focuses
on the logical internals of the software, ensuring that all statements have been tested,
and on the functional externals; that is, conducting tests to uncover errors and ensure
that defined input will produce actual results that agree with required results.
• Support
11
Software will undoubtedly undergo change after it is delivered to the customer (a
possible exception is embedded software). Change will occur because errors have been
encountered, because the software must be adapted to accommodate changes in its
external environment
- Requirement Document
- Project Plan
- Final Code
- Software Manuals
- Review Reports
Having recognized the problem areas, next step is to carryout an overall analysis of
the system requirements in terms of its:
• Input data
To carryout the analysis of the existing system, the system analyst may take the
help of any of the following techniques:
12
(i) Interviews
(ii) Questionnaires
(iii) Observations
This would help for an in-depth study of the existing system and understand its strengths
and weaknesses as well as the requirements of the new proposed system.
ANALYSIS METHODOLOGY
A complete understanding of software requirement is essential for the success of a
software development effort. No matter how well designed to well coded, a poorly
analyzed and specified program will disappoint the user and bring grief to the developer.
Both the development and customer take an active role in requirements analysis and
specifications. The customer attempts to reformulate a sometimes – nebulous concept
of software function and performance into concrete details. The developer acts as
interrogator, consultant, and problem solver.
Requirement analysis and specification may appear to be a relatively sample task, but
appearances are deceiving. Communication content is very high. Chances for
misinterpretation or misinformation abound. Ambiguity is probable. The dilemma that
confronts a software engineer may best to understand by repeating the statements of
an anonymous (infamous?) customer. “I know you believe you understood what you
think I said, but I am not sure you realize that what you heard is not what I meant”.
3.SYSTEM ANALYSIS
Having gone through the step of overall analysis and feasibility study next step to carry
out a detailed system analysis. It involves an in-depth study of the existing system with
respect to the following: (i) Organization Structure
13
(ii) Sources of data organization
The system analyst should be in a position to study the complete system requirements
and be ready to begin the detailed design of the computerized system, which should
meet the given objectives.
4. SYSTEM DESIGN
This is the most time and resource consuming stage. It is the real technical activity,
which involves the design of the system around the computer. It includes many steps
such as:
(ii) Design of input forms, validation procedures and data preparation procedures
14
(ix) Testing of the programs
5.SYSTEM TESTING
The testing phase involves the testing, first of separate parts of the system and then
finally of the system. Each sub-system or independent module and program is tested
first and then through the interfaces to other subsystems the complete system is rested.
This is the most important phase as the system analyst must get the user certification
for the accuracy of the system. In other words, it may also be referred as the
acceptance testing by the user. The user, the user’s representative, the system analyst,
the standards group, the external systems auditor or any combination thereof should
carry out such a testing. The test data is normally prepared by the user to check for all
possible combination of correct data as well as the wrong data, which should be trapped
by the system and reported as an error.
6. IMPLEMENTATION
After the system, has been certified by the user, it comes to be stage of implementation.
It involves many issues like preparation for the change over the new system and then
the actual change over. Preparation of the site and installation of the facilities, training
of the staff, Preparation of data files etc. are the various steps involved which might
require the involvement of the system analyst, the user as well as the operational
management.
MAINTENANCE
This is an ongoing exercise after the system has been implemented. The real life would
be never static. Its requirements and objectives keep changing. So shall be the
system, which has been designed primarily to meet those objectives. Thus the system
analyst has to keep on carrying out changes and modification into the system, a stage
called normally as system maintenance.
15
6. PROJECT DESIGN *
DESIGN METHODOLOGY
1) DESIGN CONCEPT
2) DESIGN OBJECTIVES
3) DESIGN OVERVIEW
• Attributed definition
• User Preferences
• Program Specification
16
1. DESIGN CONCEPT
The design of all information system produces the details that state how a system will
meet the requirements identified during system analysis. System specialists often refer
to this stage as logical design, in contrast to the process of developing program
software, which is referred to as physical design.
System analyses begin process by identifying reports and other outputs the system will
produce. Then the specific data on each are pinpointed. Usually, designers sketch the
form of display as they expect it to appeal when the system is complete. This may be
done on paper or on a computer display, using one of the automated system tools
available. The system design also describes the data to be input, calculated or stored.
Individual data items and calculation procedures are written in detail. The procedure
tells how to process the data and produce the output.
2.DESIGN OBJECTIVES
The following goals were kept in mind while designing the existing system:
• To avoid errors inherent in the manual working and hence make the outputs
consistent and correct.
• To make the system completely menu-driven and hence user friendly, this was
necessary so that even non-programmers could use the system efficiently and
system could act as Catalyst in achieving objectives.
• To make the system completely compatible i.e., it should "fit in" in the total,
integrated system.
• To design the system in such a way that reduced future maintenance and
enhancement times and efforts.
17
• To make the system reliable, understandable and cost effective.
3.DESIGN OVERVIEW
The design stage takes the final specification of the system from analysis stages and
finds the best way of filling them, given the technical environment and precious decision
on required level of automation.
All the entities related to the module were identified checked and consolidated.
The relationships between entities within and outside the system identified.
Attributed definition:
The entities were identified, and their field Statistics was specified.
Normalization:
The entities were normalized. After first and second normalization third normalization was
achieved for all entities of system.
Based on user preferences like block name, validation of primary keys, layouts of
blocks, layouts of fields, creating titles for blocks, mandatory input field prompts etc.,
were incorporated here.
The program was generated based on the relationship specified and according to the user
preferences.
Program Specification:
The program specification was written for the master’s transactions, reports and
queries. The logic for each field, block and window were written so that anyone who
doesn't know the system will be able to code the logic.
7.FEASIBILITY STUDY
The feasibility studies may be carried out in three phases:
During technical analysis the technical merits of the system concept are evaluated, at
the same time collecting additional information about performance, reliability,
maintainability and produce-ability. In some cases, it also includes a limited amount of
research and design.
Technical analysis begins with an assessment of the technical viability of the proposed
system. What technologies are required to accomplish system function and
performance? What new methods, algorithms or processes are required, and what is
their development risk? How will these technology issues effect Cost. The tools
19
available for technical analysis are derived from mathematical modeling and
optimization techniques, probability and statistics, queuing theory and control theory.
Technical feasibility is frequently the most difficult area to assess at this stage of the
product engineering process. Because objectives, functions and performance are
somewhat hazy, anything seems possible if the “right” assumption is made. It is
essential that the process of analysis and definition to be conducted in parallel with an
assessment of technical feasibility.
The considerations that are normally associated with technical feasibility include:
Development Risk: can the system element to designed so that necessary function and
performance are achieved within the constraints uncovered during analysis?
Resource Availability: Are skilled staff available to develop the system element in
question? Are other necessary resources (hardware and software) available to build
the system?
Technology: Has the relevant technology progressed to a state that will support the
system?
The considerations that are normally associated with technical feasibility include
development risk, resource availability and technology, Indian Oil Corporate Limited
(NR) Delhi has Pentium machines connected to Novel NetWare Server, Windows
workgroup and SCO Unix server to provide Multi-user environment facility. IOCL staffs
were available to develop the system. Management provides latest hardware and
software facilities for the successful completion of the project.
20
(ii)OPERATIONAL FEASIBILITY
The operational feasibility is to take the operational staff into confidence. The success
of a good system depends upon the willing ness of the operating staff. They should not
have any fears like uncertainty about their jobs or controls over the working, which
develops a bias in their minds towards the computerized systems, which acts as a big
barrier in the successful implementation of any project.
(iii)ECONOMIC FEASIBILITY:
Among the most important information contained in a feasibility study is cost benefit
analysis an assessment of the economic justification for a computer based system
project. Cost benefit analysis delineated costs for project development and weights
them against tangible (i.e. Measurable directly in currency) and intangible benefits of a
system.
21
doctorphn Numric(20) - Doctor pnone no
22
23
24
25
26
10.ER Diagram
Entities
A data entity is anything real or abstract about which we want to store the data. Entity type
falls into five classes: roles, events, location, tangible things or concepts.
Attributes
Relationships
27
Relationship provides the structure needed to draw information from multiple entities. It is
a natural association that exists between one or more entities.
Cardinality
Cardinality defines the number of occurrences of one entity for a single occurrence of
related entity. Cardinality can be 1 to 1, 1 to many or vice versa and many to many.
ERD (This is new ERD: I have modified it after re-analysis. it is given below:-)
28
11.NUMBER OF MODULES, THEIR DESCRIPTION AND
PROCESS LOGIC FOR ECAH MODULE
This section explains the complete structure of the project including the description
of the modules.
29
S.NO PAGE NAME DESCRIPTION
1 Login In which donor and admin can login into the website and then they can
perform their task. Like search donor request for blood etc. if the user is
admin then he will perform more task like adding new donor give
notification to all donor etc.
2 Sign up If donor has not already registered from this website, then the donor must
click on the Sign-up button.
Then the donor must be fill the details for sign-up and click the sign-up
button.
3 Query In the query section donor can give the feedback about the website.
Admin can also reply the feedback given by the donor.
4 Forget password If the donor/patient has already registered from this site and forget
password.
Then the donor/patient has to click the forget password button to reset the
password.
5 About us In this section donor can see the description about the website.
After click on About us there are some options will open like maker of
website, version, date of launch etc. Everyone can read about the website.
6 Contact us In the section contact us donor can contact to the admin of this website.
In this section the information of the admin is available for the donor to
contact.
7 Sale of blood
In this module admin can view the detail of total blood sale.
Admin can also view the requirement of blood.
8 Blood bank camp In this module admin can add new blood camp, donor can view the details
of camp locations ,date etc.
9 Gallery Admin can add new photos of past camp which had been successful and
donor can see these photos.
10 Doctor details
Doctor can update their information and donor can view this details.
Admin can add new doctors.
30
11 Change password If the donor or admin want to change the password, then they can change
the password for their own account.
If password of any user is stolen by anyone, then he will have change their
password.
12 Donor
In this module admin will see all the new joined and past donor from donor
user.
Admin can also see the details of donor like name, mobile no, DOB,
alternate mail etc. Donor can update their personal information.
13 Patient In this module patient can request to the admin for providing the blood.
Patient can also contact to the donor with the help of admin.
14 Donor details In this module donor can view their details and also update and delete.
31
Process login of each module:
32
33
12.Validation checks
34
At the time of sign up not any text box will accept null Can’t accept a wrong
email id.
At the time of login for any user duplicate or fake results will not be
accepted.
If someone forgets password and want to get their password they mostly will
have to enter that Alternate email id which he has given at the time of sign
up, else he wouldn’t be able to get his password back.
Without entering a valid email id and password users will not be able to view
their profile.
Only Admin has the right to block any user if they behave offensively. And
when User is getting blocked by admin, they will not able to get their
account’s access.
In admin section, admin also have a feature to give important information to
all the users simultaneously.
NAMINING CONVENTION
35
Variables Integer – intVarName
Long – lVarName
Decimal – dVarName
String – strVarName
Boolean – bVarName
Report Output:
4) Admin can view all the details of donor using their user
name, mobile no., alternate account.
36
5) Admin and donor both can change their passwords
14. Input output screen Design (All the Screens are taken in full screen
mode using cast option of google chrome)
37
2. Screen of gallery page (gallery.jsp)
38
4. Screen of contact us (contact.jsp)
39
6.Secren of blood camp page(Bloodcamp.jsp)
40
7.Screen of lost password (lostpasswoerd.jsp)
41
9. Screen of donor history (donorhistory.jsp)
42
11. Screen of donor changepass (donorchangpass.jsp)
43
12. Screen of Admin after login (camp.jsp)
45
14. Screen of admin display doctor (displaydoctor.jsp)
48
*/
/*
*/
body{ pad
ding: 0;
margin: 0;
} ul { list-style-type: none;
margin: 0; padding: 0;
overflow: hidden;
background-color:transparent;
li
fl
oa
t:
ri
49
g
ht
} li
a{
display: inline-block;
16px; text-decoration:
none;
li a:hover { background-
color:darkseagreen;
50
AKSH BLOOD BANK
.Registerbox{
width:300px;
60px;
.Registerbox
h1{ color:#f9fefe;
margin-bottom: 30px;
.inputbox{ border-
radius: 20px;
51
AKSH BLOOD BANK
padding: 10px;
margin: 10px 0;
outline: none;
.Rtrbtn{
color: #fff;
width: 100px;
padding: 10px;
border-radius: 20px;
font-size: 15px;
margin: 10px;
border: none;
outline: none;
52
AKSH BLOOD BANK
signinbox{ width:
300px;
60px;
.signinbox h1{
color:#f9fefe;
margin-bottom: 30px;
53
AKSH BLOOD BANK
.sgnbtn{
color: #fff;
width: 100px;
padding: 10px;
border-radius: 20px;
font-size: 15px;
margin: 10px;
border: none;
outline: none;
.from-control{ width:
600px; background-color:
54
AKSH BLOOD BANK
color:black; margin-
bottom: 16px;
input{ height
: 45px;
from-
control.submit{ background:re
d;
55
AKSH BLOOD BANK
/*
*/
/*
*/
/*
*/
/*
56
AKSH BLOOD BANK
*/
body{ pad
ding: 0;
margin: 0;
} ul { list-style-type: none;
margin: 0; padding: 0;
overflow: hidden;
background-color:transparent;
li
float: right;
} li
a{
display: inline-block;
57
AKSH BLOOD BANK
16px; text-decoration:
none;
li a:hover { background-
color:darkseagreen;
.Registerbox{
width:300px;
60px;
58
AKSH BLOOD BANK
.Registerbox
h1{ color:#f9fefe;
margin-bottom: 30px;
.inputbox{
border-radius: 20px;
padding: 10px;
none;
.Rtrbtn{
color: #fff;
width: 100px;
padding: 10px;
59
AKSH BLOOD BANK
border-radius: 20px;
font-size: 15px;
margin: 10px;
border: none;
outline: none;
60px;
.signinbox h1{
color:#f9fefe;
margin-bottom: 30px;
60
AKSH BLOOD BANK
.sgnbtn{
color: #fff;
width: 100px;
padding: 10px;
border-radius: 20px;
font-size: 15px;
margin: 10px;
border: none;
outline: none;
.from-control{ width:
600px; background-color:
61
AKSH BLOOD BANK
color:black; margin-bottom:
16px;
input{ height
: 45px;
from-
control.submit{ background:re
d;
62
AKSH BLOOD BANK
<!--
-->
<html>
<head>
<title>blood bank</title>
<meta charset="UTF-8">
<!--
css link
-->
</head>
63
AKSH BLOOD BANK
<body>
<!--
first div
-->
</div>
<div style="width:
23%;height:80px;float:left;marginleft: -75px;">
</div>
<ul style="float:right">
<li style="float:left;">
64
AKSH BLOOD BANK
<a href="index.html">HOME</a></li>
<li style="float:left;">
<a href="gallery.jsp">GALLERY</a></li>
<li style="float:left;">
<li style="float:left;">
<li style="float:left;">
<a href="searchdonor.jsp">SEARCH
DONOR</a></li>
<li style="float:left;">
</ul>
</div>
</div>
<!--
-->
<div style="width:100%;
height:400px;backgroundcolor: transparent;">
65
AKSH BLOOD BANK
<div
style="width:50%;backgroundcolor:transparent;height:400
px;float:left;"> </div>
<div
style="width:50%;backgroundcolor:transparent;height:400
px;float:right;">
<div style="width:70%;height:400px;margin-left:
25%;margin-top:5%;">
<form action="checklogin.jsp"
method="post">
<br>
<br>
66
AKSH BLOOD BANK
<br>
<br>
<button style="padding:
8px; width:50%;margin-
class=""placeholder="">L
ogin</button>
<br>
<br>
<a href="Lostpassword.jsp"
style="marginleft:45px;font-size:20px;color:black;text-
decoration: none;">Lost your password</a><br>
</form>
</div>
</div>
</div>
</div>
67
AKSH BLOOD BANK
<!--
third div
-->
</div>
68
AKSH BLOOD BANK
</div>
<div style='margin-left:30px;width:30%;height:
300px;background-color:transparent;float:
right;margintop:20px;margin-right: 30px;'>
</div>
</div>
<p align="right">
<a href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:40px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 40px; width:
4%;margin-left:10px;"/></a>
</p>
69
AKSH BLOOD BANK
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
<%--
Document : gallery
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
70
AKSH BLOOD BANK
<head>
</head>
<body>
<!--
menu list
-->
</div>
<div style="width:
23%;height:80px;float:left;marginleft: -75px;">
71
AKSH BLOOD BANK
</div>
<ul style="float:right">
<li style="float:left;"><a
href="index.html">HOME</a></li>
<li style="float:left;"><a
href="gallery.jsp">GALLERY</a></li>
<li style="float:left;"><a
href="aboutus.jsp">ABOUT US</a></li>
<li style="float:left;"><a
href="contactus.jsp">CONTACT US</a></li>
<li style="float:left;"><a
href="searchdonor.jsp">SEARCH DONOR</a></li>
<li style="float:left;"><a
href="bloodcamp.jsp">BLOOD CAMP</a></li>
</ul>
</div>
</div>
72
AKSH BLOOD BANK
<!--
gallery div
-->
</div>
73
AKSH BLOOD BANK
</div>
</div>
</div>
<!--
social div
-->
<p align="right">
74
AKSH BLOOD BANK
<a href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:40px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 40px; width:
4%;margin-left:10px;"/></a>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
%--
Document : aboutus
75
AKSH BLOOD BANK
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!--
menu list
-->
76
AKSH BLOOD BANK
</div>
<div style="width:
23%;height:80px;float:left;marginleft: -75px;">
</div>
<ul style="float:right">
<li style="float:left;"><a
href="index.html">HOME</a></li>
<li style="float:left;"><a
href="gallery.jsp">GALLERY</a></li>
<li style="float:left;"><a
href="aboutus.jsp">ABOUT US</a></li>
77
AKSH BLOOD BANK
<li style="float:left;"><a
href="contactus.jsp">CONTACT US</a></li>
<li style="float:left;"><a
href="searchdonor.jsp">SEARCH DONOR</a></li>
<li style="float:left;"><a
href="bloodcamp.jsp">BLOOD CAMP</a></li>
</ul>
</div>
</div>
<!--
aboutus div
-->
<p>
79
AKSH BLOOD BANK
<br>
<br>
</h3>
</div>
</div>
<!--
social
80
AKSH BLOOD BANK
-->
<p align="right">
<a href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:40px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 40px; width:
4%;margin-left:10px;"/></a>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
<%--
81
AKSH BLOOD BANK
Document : contactus
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
82
AKSH BLOOD BANK
</div>
<div style="width:
30%;height:40px;float:left;marginleft: -75px;">
</div>
<ul style="float:right">
<li style="float:left;"><a
href="index.html">HOME</a></li>
<li style="float:left;"><a
href="gallery.jsp">GALLERY</a></li>
<li style="float:left;"><a
href="aboutus.jsp">ABOUT US</a></li>
<li style="float:left;"><a
83
AKSH BLOOD BANK
href="contactus.jsp">CONTACT US</a></li>
<li style="float:left;"><a
href="searchdonor.jsp">SEARCH DONOR</a></li>
<li style="float:left;"><a
href="bloodcamp.jsp">BLOOD CAMP</a></li>
</ul>
</div>
</div>
<!--
contact us div
-->
84
AKSH BLOOD BANK
</h1>
<p><textarea
style="width:50%;height:30px;margin-left: 23%;"
name="ms">Enter your message </textarea></p>
</form>
85
AKSH BLOOD BANK
</div>
<br>Vasant Kunj,
<br>ph:99105566891,9555505555
</h3>
</p>
</div>
86
AKSH BLOOD BANK
</div>
<!--
social
-->
<p align="right">
<a href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:40px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 40px; width:
4%;margin-left:10px;"/></a>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
87
AKSH BLOOD BANK
</div>
</body>
</html>
<%--
Document : searchdonor
--%>
<!DOCTYPE html>
<html>
<head>
<title>Search donor</title>
</head>
<body>
88
AKSH BLOOD BANK
</div>
</div>
<ul style="float:right">
</ul>
</div>
</div>
<form action="searchdonor1.jsp">
<div style="width:100%;height:60px;">
</div>
89
AKSH BLOOD BANK
<option value="A+">A+</option>
<option value="B+">B+</option>
<option value="O+">O+</option>
<option value="A-">A-</option>
<option value="b-">B-</option>
<option value="AB">AB+</option>
<option value="AB-">AB-</option>
</select>
</div>
<%
try
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
cn=DriverManager.getConnection("jdbc:derby://localhost:1527/Lifebloodbank");
90
AKSH BLOOD BANK
%>
<%
while(rs.next()==true)
%>
<%
%>
</select>
</div>
<%
91
AKSH BLOOD BANK
catch(Exception ex)
out.print(ex);
%>
</form>
</div>
<!--
social
-->
<p align="right">
</p>
</div>
</div>
92
AKSH BLOOD BANK
</body>
</html>
%--
Document : bloodcamp
--%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<!--
menu list
-->
93
AKSH BLOOD BANK
</div>
</div>
<ul style="float:right">
</ul>
</div>
94
AKSH BLOOD BANK
</div>
<!--
-->
<%
try
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
cn=DriverManager.getConnection("jdbc:derby://localhost:1527/Lifebloodbank");
PreparedStatement ps= cn.prepareStatement("select * from BLOOD_BANK_CAMP");
%>
<center>
95
AKSH BLOOD BANK
<td>PLACE</td>
<td>DOCTOR</td>
<td>TIME</td>
<td>DATE</td>
</tr>
<%
while(rs.next()==true)
%>
<td><%=rs.getString("PLACE")%></td>
<td><%=rs.getString("DOCTOR_NAME")%></td>
<td><%=rs.getString("C_TIME")%></td>
<td><%=rs.getString("CDATE")%></td>
</tr>
<%
%>
</table>
96
AKSH BLOOD BANK
<br><br>
</center>
<%
catch(Exception ex)
out.print(ex);
%>
</div>
<!--
social
-->
97
AKSH BLOOD BANK
</p>
</div>
</div>
</body>
</html>
<%--
Document : donorprofile
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
98
AKSH BLOOD BANK
</head>
<body>
</div>
<h1 style="font-size:
30px;width:100%;marginleft: -20px"> <font
color="white">AKSH BLOOD BANK</h1>
</div>
99
AKSH BLOOD BANK
<ul style="float:right">
<li style="float:left;"><a
href="donorprofile.jsp">PROFILE</a></li>
<li style="float:left;"><a
href="donorhistory.jsp">HISTORY</a></li>
<li style="float:left;"><a
href="donorcamp.jsp">CAMP</a></li>
<li style="float:left;"><a
href="donorchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
href="index.html">LOG OUT</a></li>
</ul>
</div>
</div>
100
AKSH BLOOD BANK
<%
String
em=(String)session.getAttribute("useremail");
out.print(em);
try {
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
cn=DriverManager.getConnection("jdbc:derby://localhost:
1527/Lifebloodbank");
PreparedStatement ps=
cn.prepareStatement("select * from DONOR where
EMAIL_ID=?");
ps.setString(1, em);
//out.print(em);
if(rs.next()==true)
101
AKSH BLOOD BANK
%>
<br>
<td><%=rs.getString("EMAIL_ID")%></td>
</tr>
<td><%=rs.getString("NAME")%></td>
</tr>
102
AKSH BLOOD BANK
<td><%=rs.getString("GENDER")%></td>
</tr>
<td><%=rs.getString("AGE")%></td>
</tr>
<td><%=rs.getString("ADDRESS")%></td>
</tr>
<td><%=rs.getString("BLOOD_GROUP")%></td>
</tr>
<td><%=rs.getString("MOBILENO")%></td>
103
AKSH BLOOD BANK
</tr>
<td><%=rs.getString("AREA")%></td>
</tr>
</table>
<%
catch(Exception ex)
out.print(ex);
%>
104
AKSH BLOOD BANK
</div>
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
<image src="image\\google-plus.png"
style="height: 50px; width: 4%;margin-left:10px;"/>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
105
AKSH BLOOD BANK
</div>
</body>
</html>
<%--
Document : donorhistory
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
106
AKSH BLOOD BANK
</head>
<body>
</div>
<h1
style="font-size:
30px;width:100%;marginleft: -20px"><font
color="white"> AKSH BLOOD BANK</h1>
</div>
107
AKSH BLOOD BANK
<ul style="float:right">
<li style="float:left;"><a
href="donorprofile.jsp">PROFILE</a></li>
<li style="float:left;"><a
href="donorhistory.jsp">HISTORY</a></li>
<li style="float:left;"><a
href="donorcamp.jsp">CAMP</a></li>
</ul>
</div>
</div>
108
AKSH BLOOD BANK
<%
String
em=(String)session.getAttribute("useremail");
out.print(em);
try
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
cn=DriverManager.getConnection("jdbc:derby://localhost:
1527/Lifebloodbank");
PreparedStatement ps=
cn.prepareStatement("select * from DONOR_History");
//out.print(em);
if(rs.next()==true)
{
109
AKSH BLOOD BANK
%>
<br>
<td><%=rs.getString("EMAIL_ID")%></td>
</tr>
<td><%=rs.getString("HB")%></td>
</tr>
<td><%=rs.getString("BP")%></td>
</tr>
110
AKSH BLOOD BANK
<td><%=rs.getString("C_ID")%></td>
</tr>
<td style="font-size:
25px;">DESCRIPTION</td>
<td><%=rs.getString("DESCRIPTION")%></td>
</tr>
<td><%=rs.getString("DATE")%></td>
</tr>
</table>
111
AKSH BLOOD BANK
<%
catch(Exception ex)
out.print(ex);
%>
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
112
AKSH BLOOD BANK
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
113
AKSH BLOOD BANK
<%--
Document : donorcamp
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>donor camp</title>
</head>
<body>
114
AKSH BLOOD BANK
</body>
</div>
<h1 style="font-size:
30px;width:100%;marginleft: -20px"> <font
color="white">AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="donorprofile.jsp">PROFILE</a></li>
<li style="float:left;"><a
href="donorhistory.jsp">HISTORY</a></li>
115
AKSH BLOOD BANK
<li style="float:left;"><a
href="donorcamp.jsp">CAMP</a></li>
<li style="float:left;"><a
href="donorchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
href="index.html">LOG OUT</a></li>
</ul>
</div>
</div>
<%
116
AKSH BLOOD BANK
try
String bg=request.getParameter("bg");
String area=request.getParameter("area");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
cn=DriverManager.getConnection("jdbc:derby://localhost:
1527/Lifebloodbank");
PreparedStatement ps=
cn.prepareStatement("select * from
BLOOD_BANK_CAMP");
%>
<td>CAMP ID</td>
<td> PLACE</td>
<td>DOCTOR NAME</td>
<td>CAMP TIME</td>
<td>CAMP DATE</td>
</tr>
<%
while(rs.next())
%>
<td><%=rs.getString("CAMP_ID")%></td>
<td><%=rs.getString("PLACE")%></td>
<td><%=rs.getString("DOCTOR_NAME")%></td>
<td><%=rs.getString("C_TIME")%></td>
<td><%=rs.getString("CDATE")%></td>
</tr>
<%
118
AKSH BLOOD BANK
%>
</table >
<%
catch(Exception ex)
{ out.print(ex
);
%>
</div>
119
AKSH BLOOD BANK
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</html>
120
AKSH BLOOD BANK
<%--
Document : donorchangepass
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>JSP Page</title>
</head>
<body>
121
AKSH BLOOD BANK
</div>
<h1 style="font-size:
30px;width:100%;marginleft: -20px"> <font
color="white">AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="donorprofile.jsp">PROFILE</a></li>
<li style="float:left;"><a
href="donorhistory.jsp">HISTORY</a></li>
<li style="float:left;"><a
href="donorcamp.jsp">CAMP</a></li>
122
AKSH BLOOD BANK
<li style="float:left;"><a
href="donorchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
href="index.html">LOG OUT</a></li>
</ul>
</div>
</div>
<form action="changepassword.jsp">
<br>
<br>
>PASSWORD
<input type="text"
name="" style="height: 30px;"></p>
124
AKSH BLOOD BANK
</form>
</div>
</div>
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
</p>
125
AKSH BLOOD BANK
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
<%--
Document : logout
--%>
126
AKSH BLOOD BANK
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>
<%--
Document : Register
--%>
127
AKSH BLOOD BANK
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>Register</title>
</head>
<body style="background-image:
url(image\\6.jpg);background-size: cover;"> <div
style="background-color: transparent;width:
100%;height:60px;">
</div>
<div style="width:
30%;height:80px;float:left;margin-left: -75px;">
128
AKSH BLOOD BANK
<h1
style="font-size:
30px;width:100%;marginleft: 20px"><font
color="white"> AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="index.html">HOME</a></li>
<li style="float:left;"><a
href="gallery.jsp">GALLERY</a></li>
<li style="float:left;"><a
href="aboutus.jsp">ABOUT US</a></li>
<li style="float:left;"><a
href="contactus.jsp">CONTACT US</a></li>
<li style="float:left;"><a
href="searchdonor.jsp">SEARCH DONOR</a></li>
<li style="float:left;"><a
href="bloodcamp.jsp">BLOOD CAMP</a></li>
</ul>
</div>
129
AKSH BLOOD BANK
</div>
<h1 style="padding:20px;margin-left:
27%;color:white;">REGISTER HERE</h1>
<br>
<br>
130
AKSH BLOOD BANK
15%;text-align: center;background:
transparent;border:none;" type="email"name="em"
placeholder="ENTER YOUR EMAIL ID">
<br>
<br>
<br>
<br>
131
AKSH BLOOD BANK
<br>
<br>
<br>
<br>
<input type="submit"value="submit"
style="width: 20%;height: 30px; background-size:
100px;margin-left:40%;">
</form>
</div>
132
AKSH BLOOD BANK
<!--
social
-->
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:40px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 40px; width:
4%;margin-left:10px;"/></a>
</p>
133
AKSH BLOOD BANK
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
<%--
Document : Sign In
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
134
AKSH BLOOD BANK
<title>Sign in</title>
</head>
<body>
<!--
menu list
-->
<div style="width:
30%;height:80px;float:left;margin-left: -75px;">
<h1 style="font-size:
30px;width:100%;marginleft: 20px"><font color="white">
LIFE BLOOD BANK</h1>
</div>
135
AKSH BLOOD BANK
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="gallery.jsp">Gallery</a></li>
<li><a href="contactus.jsp">Contact
us</a></li>
<li><a href="searchdonor.jsp">Search
donor</a></li>
<li><a href="bloodcamp.jsp">Blood
camp</a></li>
<li><a href="Register.jsp">Register</a></li>
</ul>
</div>
</div>
<!--
signin div
-->
136
AKSH BLOOD BANK
<div style="background-color:gray;width:
100%;height: 550px;margin-top: -21px;" >
<div >
<center>
<h1>LOGIN HERE</h1>
<br>
<br>
137
AKSH BLOOD BANK
<br>
<br>
<br>
<br>
</form>
</div>
</center>
</div>
</div>
138
AKSH BLOOD BANK
<image
src="image\\facebook.png;style="height: 50px; width:
20;margin-left: 15px;">
</div>
<image
src="image\\instagram.png;style="height: 50px; width:
20;float: right;margin-left:70px;">
</div>
139
AKSH BLOOD BANK
<image
src="image\\googleplus.png;style="height: 50px;
width: 20;margin-left: 100px;">
</div>
</div>
</body>
</html>
<%--
Document : signupdb
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
140
AKSH BLOOD BANK
<html>
<head>
</head>
<body>
<%
141
AKSH BLOOD BANK
try
Java.sql.Connection con
Class.forName("org.gjt.mm.mysql.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhos
t/"lifebloodbank,xyz,12345);
PreparedStatement ps=
cn.prepareStatement("insert into Login values (?,?,?,?)");
ps.setString(1, nm);
ps.setString(2, em);
ps.setString(3,pass );
ps.setString(4, "user");
ps.executeUpdate();
142
AKSH BLOOD BANK
ps.setString(4,age ); ps.setString(5,
address); ps.setString(6, bg);
ps.setString(8, mno);
ps.setString(7, area);
ps.executeUpdate();
%>
<jsp:forward page="index.html"/>
<%
catch(Exception ex)
{ out.print(ex
);
%>
</body>
</html>
143
AKSH BLOOD BANK
<%--
Document : contactusbd
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>JSP Page</title>
</head>
<body>
<h1>Hello World!</h1>
144
AKSH BLOOD BANK
<%
try
Java.sql.Connection con
Class.forName("org.gjt.mm.mysql.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhos
t/"lifebloodbank,xyz,12345);
PreparedStatement ps=
cn.prepareStatement("insert into CONTACTUS values
(?,?,?,?)");
ps.setString(1,nm);
ps.setString(2,em);
145
AKSH BLOOD BANK
ps.setLong(3,Long.parseLong(mb) );
ps.setString(4,ms); ps.executeUpdate();
%>
<jsp:forward page="contactus.jsp"/>
<%
catch(Exception ex)
out.print(ex);
%>
</body>
</html>
<%--
Document : newcampdb
146
AKSH BLOOD BANK
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>JSP Page</title>
</head>
<body>
<%
147
AKSH BLOOD BANK
try
Java.sql.Connection con
Class.forName("org.gjt.mm.mysql.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhos
t/"lifebloodbank,xyz,12345);
PreparedStatement ps=
cn.prepareStatement("insert into BLOOD_BANK_CAMP
values (?,?,?,?,?)"); ps.setString(1, cid);
ps.setString(2, pl); ps.setString(5, dt);
ps.setString(3, dct);
ps.setString(4, ti);
ps.executeUpdate();
%>
<jsp:forward page="Adminprofile.jsp"/>
148
AKSH BLOOD BANK
<%
catch(Exception ex)
out.print(ex);
%>
</body>
</html>
<%--
Document : doctor
--%>
149
AKSH BLOOD BANK
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
150
AKSH BLOOD BANK
</div>
<h1 style="font-size:
30px;width:100%;marginleft: -20px"><font color="red">
AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="Adminprofile.jsp"></a></li> <li
style="float:left;"><a
href="camp.jsp">CAMP</a></li>
<li style="float:left;"><a
href="doctor.jsp">DOCTOR</a></li>
<li style="float:left;"><a
href="sale.jsp">SALE</a></li>
<li style="float:left;"><a
href="stock.jsp">STOCK</a></li>
<li style="float:left;"><a
href="donordetails.jsp">DONOR DETAILS</a></li>
<li style="float:left;"><a
151
AKSH BLOOD BANK
href="Adminchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
href="index.html">LOG OUT</a></li>
</ul>
</div>
</div>
<a href="newdoctor.jsp"><button
style="width:20%; height:60px; margin-left: 10%;color:
red; margin-top: 10%" type="button">NEW
DOCTOR</button></a>
152
AKSH BLOOD BANK
<a href="displaydoctor.jsp"><button
style="width:20%; height:60px;margin-left: 30%;color:
red;" type="button"> DISPLAY DOCTOR</button></a>
</div>
</div>
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
</p>
153
AKSH BLOOD BANK
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</body>
</html>
<%--
Document : newdoctor
--%>
154
AKSH BLOOD BANK
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>JSP Page</title>
</head>
<body>
</div>
155
AKSH BLOOD BANK
<h1 style="font-size:
30px;width:100%;marginleft: -20px"><font color="red">
AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="Adminprofile.jsp"></a></li> <li
style="float:left;"><a
href="camp.jsp">CAMP</a></li>
<li style="float:left;"><a
href="doctor.jsp">DOCTOR</a></li>
<li style="float:left;"><a
href="sale.jsp">SALE</a></li>
<li style="float:left;"><a
href="stock.jsp">STOCK</a></li>
<li style="float:left;"><a
href="donordetails.jsp">DONOR DETAILS</a></li>
<li style="float:left;"><a
href="Adminchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
156
AKSH BLOOD BANK
href="index.html">LOG OUT</a></li>
</ul>
</div>
</div>
<form action="newdoctorbd.jsp">
<br>
<br>
157
AKSH BLOOD BANK
 <input
type="text" name="dn" style="height: 30px;"></p>
158
AKSH BLOOD BANK
ADDRESS
<input
type="text"name="dadd" style="height: 30px;" ></p>
</form>
159
AKSH BLOOD BANK
</div>
</div>
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
<image src="image\\google-plus.png"
style="height: 50px; width: 4%;margin-left:10px;"/>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
160
AKSH BLOOD BANK
</html>
<%--
Document : newdoctorbd
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>JSP Page</title>
</head>
<body>
161
AKSH BLOOD BANK
<%
try
Java.sql.Connection con
Class.forName("org.gjt.mm.mysql.Driver");
con=DriverManager.getConnection("jdbc:mysql://localhos
t/"PrimeMeds,xyz,12345);
PreparedStatement ps=
cn.prepareStatement("insert into DOCTOR values
(?,?,?,?,?,?,?)");
162
AKSH BLOOD BANK
ps.setString(1, dn);
ps.setString(5, dadd);
ps.setString(6, qul);
ps.setString(7, spl);
ps.executeUpdate();
%>
<jsp:forward page="Adminprofile.jsp"/>
<%
catch(Exception ex)
out.print(ex);
%>
163
AKSH BLOOD BANK
</html>
22.Design of stockpage(stock.jsp)
<%--
Document : stock
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
164
AKSH BLOOD BANK
</head>
<body>
</div>
<div style="width:
23%;height:80px;float:left;margin-left: -75px;">
<ul style="float:right">
165
AKSH BLOOD BANK
<li style="float:left;"><a
href="Adminprofile.jsp"></a></li>
<li style="float:left;"><a
href="camp.jsp">CAMP</a></li>
<li style="float:left;"><a
href="doctor.jsp">DOCTOR</a></li>
<li style="float:left;"><a
href="sale.jsp">SALE</a></li>
<li style="float:left;"><a
href="stock.jsp">STOCK</a></li>
<li style="float:left;"><a
href="donordetails.jsp">DONOR DETAILS</a></li>
<li style="float:left;"><a
href="Adminchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
href="index.html">LOG OUT</a></li>
</ul>
</div>
</div>
166
AKSH BLOOD BANK
<%
try
String bg=request.getParameter("bg");
String area=request.getParameter("area");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
cn=DriverManager.getConnection("jdbc:derby://localhost:
1527/Lifebloodbank");
PreparedStatement ps=
cn.prepareStatement("select * from BLOOD_stoke");
ResultSet rs= ps.executeQuery();
%>
167
AKSH BLOOD BANK
<td>S.No</td><td>BLOOD
GROUP</td><td>UNITS AVAILABLE</td>
</tr>
while(rs.next())
%>
<td><%=i%></td><td><%=rs.getString("blood_group")%><
/td><td><%=rs.getString("no_of_units")%></td>
</tr>
<% i++;
168
AKSH BLOOD BANK
%>
</table >
</div>
</div>
<%
catch(Exception ex)
out.print(ex);
%>
<p align="right">
169
AKSH BLOOD BANK
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
23.Design of sendmail(sendmail.jsp)
<%--
170
AKSH BLOOD BANK
Document : sendmail.jsp
--%>
<html>
<head>
</head>
<body>
</div>
<h1 style="font-size:
30px;width:100%;marginleft: -20px"> <font color="red">
LIFE BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="index.html">HOME</a></li>
<li style="float:left;"><a
href="gallery.jsp">GALLERY</a></li>
<li style="float:left;"><a
href="aboutus.jsp">ABOUT US</a></li>
<li style="float:left;"><a
href="contactus.jsp">CONTACT US</a></li>
<li style="float:left;"><a
href="searchdonor.jsp">SEARCH DONOR</a></li>
<li style="float:left;"><a
172
AKSH BLOOD BANK
href="bloodcamp.jsp">BLOOD CAMP</a></li>
</ul>
</div>
</div>
<%
String result;
int otp=rd.nextInt(9000)+1000;
173
AKSH BLOOD BANK
// Defining properties
props.put("mail.smtp.host", host);
props.put("mail.transport.protocol", "smtp");
props.put("mail.smtp.auth", "true");
props.put("mail.smtp.starttls.enable", "true");
props.put("mail.user", from);
props.put("mail.password", pass);
props.put("mail.port", "587");
174
AKSH BLOOD BANK
@Override
protected PasswordAuthentication
getPasswordAuthentication() {
});
try {
message.setFrom(new InternetAddress(from));
message.addRecipient(Message.RecipientType.TO,
175
AKSH BLOOD BANK
new InternetAddress(to));
message.setSubject(subject); //
message.setText(messg);
// Send message
Transport.send(message);
session.setAttribute("em", email);
%>
<%
//mex.printStackTrace();
out.println(mex);
%>
<form action="checkotp.jsp">
176
AKSH BLOOD BANK
</form>
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
177
AKSH BLOOD BANK
</p>
<div style="width:23%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
<%--
Document : sale
178
AKSH BLOOD BANK
--%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
179
AKSH BLOOD BANK
</div>
<div style="width:
30%;height:80px;float:left;margin-left: -75px;">
<h1 style="font-size:
30px;width:100%;marginleft: 20px"><font color="red">
AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="Adminprofile.jsp"></a></li>
<li style="float:left;"><a
href="camp.jsp">CAMP</a></li>
<li style="float:left;"><a
href="doctor.jsp">DOCTOR</a></li>
<li style="float:left;"><a
href="sale.jsp">SALE</a></li>
180
AKSH BLOOD BANK
<li style="float:left;"><a
href="stock.jsp">STOCK</a></li>
<li style="float:left;"><a
href="donordetails.jsp">DONOR DETAILS</a></li>
<li style="float:left;"><a
href="Adminchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
href="index.html">LOG OUT</a></li>
</ul>
</div>
</div>
<%
try
String bg=request.getParameter("bg");
String area=request.getParameter("area");
181
AKSH BLOOD BANK
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
cn=DriverManager.getConnection("jdbc:derby://localhost:
1527/Lifebloodbank");
PreparedStatement ps=
cn.prepareStatement("select * from BLOOD_sale");
%>
182
AKSH BLOOD BANK
<td>S.No</td><td>Email Id</td><td>Doctor
Name</td><td>Patient Name</td><td>No. of
unit</td><td>Date of Sale</td>
<td>Blood Group</td>
</tr>
while(rs.next())
%>
<td><%=i%></td><td><%=rs.getString("email_ID")%></td>
<td><%=rs.getString("name")%></td><td><%=rs.getString
("p_name")%></td><td><%=rs.getString("n_unit")%></td>
<td><%=rs.getString("d_sale")%></td><td><%=rs.getStrin
g("bloodgroup")%></td>
</tr>
<% i++;
183
AKSH BLOOD BANK
%>
</table >
</div>
</div>
<%
catch(Exception ex)
out.print(ex);
%>
<p align="right">
<a
184
AKSH BLOOD BANK
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
<image src="image\\google-plus.png"
style="height: 50px; width: 4%;margin-left:10px;"/>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
185
AKSH BLOOD BANK
</html>
<%--
Document : donordetails
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>JSP Page</title>
</head>
186
AKSH BLOOD BANK
<body>
</div>
<div style="width:
23%;height:80px;float:left;margin-left: -75px;">
<h1 style="font-size:
30px;width:100%;marginleft: 20px"><font color="red">
AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="Adminprofile.jsp"></a></li>
<li style="float:left;"><a
187
AKSH BLOOD BANK
href="camp.jsp">CAMP</a></li>
<li style="float:left;"><a
href="doctor.jsp">DOCTOR</a></li>
<li style="float:left;"><a
href="sale.jsp">SALE</a></li>
<li style="float:left;"><a
href="stock.jsp">STOCK</a></li>
<li style="float:left;"><a
href="donordetails.jsp">DONOR DETAILS</a></li>
<li style="float:left;"><a
href="Adminchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
href="index.html">LOG OUT</a></li>
</ul>
</div>
</div>
<%
try {
188
AKSH BLOOD BANK
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
cn=DriverManager.getConnection("jdbc:derby://localhost:
1527/Lifebloodbank");
PreparedStatement ps=
cn.prepareStatement("select * from donor");
%>
<td>S.No</td><td>Email Id</td><td>Donor
189
AKSH BLOOD BANK
Name</td><td>Gender</td><td>Age</td><td>Address</td
>
<td>Blood Group</td><td>Mobile
No</td><td>Area</td>
</tr>
while(rs.next())
%>
<tr style="">
<td><%=i%></td><td><%=rs.getString("email_ID")%></td>
<td><%=rs.getString("name")%></td><td><%=rs.getString
("gender")%></td><td><%=rs.getString("age")%></td>
<td><%=rs.getString("address")%></td><td><%=rs.getStri
ng("blood_group")%></td><td><%=rs.getString("MOBILE
NO")%></td><td><%=rs.getString("area")%></td>
</tr>
<% i++;
190
AKSH BLOOD BANK
%>
</table >
</div>
</div>
<%
catch(Exception ex)
out.print(ex);
%>
<p align="right">
<a
191
AKSH BLOOD BANK
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
<image src="image\\google-plus.png"
style="height: 50px; width: 4%;margin-left:10px;"/>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
<%--
Document : labimage
192
AKSH BLOOD BANK
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>JSP Page</title>
</head>
<body>
193
AKSH BLOOD BANK
</div>
<div style="width:
23%;height:80px;float:left;margin-left: -75px;">
<h1 style="font-size:
30px;width:100%;marginleft: 20px"><font color="red">
AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="index.html">HOME</a></li>
<li style="float:left;"><a
href="gallery.jsp">GALLERY</a></li>
<li style="float:left;"><a
href="aboutus.jsp">ABOUT US</a></li>
<li style="float:left;"><a
194
AKSH BLOOD BANK
href="contactus.jsp">CONTACT US</a></li>
<li style="float:left;"><a
href="searchdonor.jsp">SEARCH DONOR</a></li>
<li style="float:left;"><a
href="bloodcamp.jsp">BLOOD CAMP</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<a href="gallery.jsp"><button
196
AKSH BLOOD BANK
</div>
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:40px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 40px; width:
4%;margin-left:10px;"/></a>
</p>
197
AKSH BLOOD BANK
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
<%--
Document : campimage
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
198
AKSH BLOOD BANK
<!DOCTYPE html>
<html>
<head>
<title>camp image</title>
</head>
<body>
</div>
<div style="width:
23%;height:80px;float:left;margin-left: -75px;">
199
AKSH BLOOD BANK
<h1 style="font-size:
30px;width:100%;marginleft: 20px"><font
color="red">AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="index.html">HOME</a></li>
<li style="float:left;"><a
href="gallery.jsp">GALLERY</a></li>
<li style="float:left;"><a
href="aboutus.jsp">ABOUT US</a></li>
<li style="float:left;"><a
href="contactus.jsp">CONTACT US</a></li>
<li style="float:left;"><a
href="searchdonor.jsp">SEARCH DONOR</a></li>
<li style="float:left;"><a
200
AKSH BLOOD BANK
href="bloodcamp.jsp">BLOOD CAMP</a></li>
</ul>
</div>
</div>
</div>
</div>
201
AKSH BLOOD BANK
</div>
</div>
<a href="gallery.jsp"><button
style="width:8%;float: right;margin-right:
80px;margintop: 260px;height: 30px;color: red;"
type="button" class=""placeholder="">Go
back</button></a>
</div>
202
AKSH BLOOD BANK
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</body>
</html>
203
AKSH BLOOD BANK
<%--
Document : donorimage
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>donor image</title>
</head>
<body>
</div>
<div style="width:
23%;height:80px;float:left;margin-left: -75px;">
<h1 style="font-size:
30px;width:100%;marginleft: 20px"><font
color="red">AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="index.html">HOME</a></li>
<li style="float:left;"><a
href="gallery.jsp">GALLERY</a></li>
<li style="float:left;"><a
href="aboutus.jsp">ABOUT US</a></li>
<li style="float:left;"><a
href="contactus.jsp">CONTACT US</a></li>
205
AKSH BLOOD BANK
<li style="float:left;"><a
href="searchdonor.jsp">SEARCH DONOR</a></li>
<li style="float:left;"><a
href="bloodcamp.jsp">BLOOD CAMP</a></li>
</ul>
</div>
</div>
<image src="image\\blooddonor4.jpg"
style="height: 300px; width: 100%;">
</div>
<image src="image\\blooddonor2.jpeg"
style="height: 300px; width: 100%;">
</div>
206
AKSH BLOOD BANK
<image src="image\\blooddonor3.jpg"
style="height: 300px; width: 100%;">
</div>
<image src="image\\blooddonation3.jpg"
style="height: 300px; width: 100%;">
</div>
<a href="gallery.jsp"><button
style="width:8%;float: right;margin-right:
80px;margintop: 260px;height: 30px;color: red;"
type="button" class=""placeholder="">Go
back</button></a>
207
AKSH BLOOD BANK
</div>
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
208
AKSH BLOOD BANK
</div>
</div>
</body>
</html>
<%--
Document : updatepassword
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<%@page import="java.sql.*"%>
<!DOCTYPE html>
<html>
<head>
209
AKSH BLOOD BANK
<title>JSP Page</title>
</head>
<body>
<%
String p=request.getParameter("newpass");
String em=(String)session.getAttribute("em");
try
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection cn=
DriverManager.getConnection("jdbc:derby://localhost:152
7/Lifebloodbank");
PreparedStatement
st=cn.prepareStatement("update userlogin set
password=? where email=?");
210
AKSH BLOOD BANK
st.setString(1,p);
st.setString(2,em);
st.executeUpdate(); cn.close();
out.print("password updated");
catch(Exception ex)
out.print(ex);
%>
</body>
</html>
-<%--
Document : checklogin
211
AKSH BLOOD BANK
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<%
212
AKSH BLOOD BANK
try
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
cn=DriverManager.getConnection("jdbc:derby://localhost:
1527/Lifebloodbank");
PreparedStatement ps=
cn.prepareStatement("select * from Login where email=?
and password=?");
ps.setString(1, em);
ps.setString(2, pass);
if(rs.next()==true)
213
AKSH BLOOD BANK
session.setAttribute("useremail", em);
if(rs.getString("U_type").equals("user"))
%>
<jsp:forward page="donorprofile.jsp"/>
<%
else if(rs.getString("U_type").equals("admin"))
%>
<jsp:forward page="Adminprofile.jsp"/>
<%
else
214
AKSH BLOOD BANK
catch(Exception ex)
{ out.print(ex
);
%>
</body>
</html>
31.Design of checkotppage(checotp.jsp)
<%--
215
AKSH BLOOD BANK
Document : checkotp
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<%
String uotp=request.getParameter("userotp");
String sotp=request.getParameter("systemotp");
if(uotp.equals(sotp))
216
AKSH BLOOD BANK
%>
<form action="updatepassword.jsp">
</form>
<%
} else
out.print("otp mismatched");
%>
</body>
</html>
<%--
Document : doctor
217
AKSH BLOOD BANK
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
</head>
<body>
</div>
<h1 style="font-size:
30px;width:100%;marginleft: -20px"><font color="red">
AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="Adminprofile.jsp"></a></li>
<li style="float:left;"><a
href="camp.jsp">CAMP</a></li>
<li style="float:left;"><a
href="doctor.jsp">DOCTOR</a></li>
<li style="float:left;"><a
href="sale.jsp">SALE</a></li>
<li style="float:left;"><a
219
AKSH BLOOD BANK
href="stock.jsp">STOCK</a></li>
<li style="float:left;"><a
href="donordetails.jsp">DONOR DETAILS</a></li>
<li style="float:left;"><a
href="Adminchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
href="index.html">LOG OUT</a></li>
</ul>
</div>
</div>
<a href="newdoctor.jsp"><button
style="width:20%; height:60px; margin-left: 10%;color:
220
AKSH BLOOD BANK
<a href="displaydoctor.jsp"><button
style="width:20%; height:60px;margin-left: 30%;color:
red;" type="button"> DISPLAY DOCTOR</button></a>
</div>
</div>
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
221
AKSH BLOOD BANK
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</body>
</html>
33.Design of displaydoctor(displaydoctor.jsp)
<%--
Document : displaydoctor
222
AKSH BLOOD BANK
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>JSP Page</title>
</head>
<body>
223
AKSH BLOOD BANK
</div>
<h1 style="font-size:
30px;width:100%;marginleft: -20px"><font
color="red">AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="camp.jsp">CAMP</a></li>
<li style="float:left;"><a
href="sale.jsp">SALE</a></li>
<li style="float:left;"><a
href="stock.jsp">STOCK</a></li>
<li style="float:left;"><a
href="donordetails.jsp">DONOR DETAILS</a></li>
<li style="float:left;"><a
224
AKSH BLOOD BANK
href="Adminchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
href="index.html">LOG OUT </a></li>
</ul>
</div>
</div>
<%
try
String bg=request.getParameter("bg");
String area=request.getParameter("area");
225
AKSH BLOOD BANK
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
cn=DriverManager.getConnection("jdbc:derby://localhost:
1527/Lifebloodbank");
PreparedStatement ps=
cn.prepareStatement("select * from DOCTOR");
%>
<td>DOCTORNAME</td><td>
EMAIL</td><td>PHONE
NO</td><td>GENDER</td><td>ADDRESS</td>
<td>QUALIFICATION</td><TD>SPL</TD>
226
AKSH BLOOD BANK
</tr>
while(rs.next())
%>
<td style="height:
50px;"><%=i%><%=rs.getString("DOCTORNAME")%></td
>
<td><%=rs.getString("DOCTOREMAIL")%></td> <td><
%=rs.getString("DOCTORPHN")%></td>
<td><%=rs.getString("GENDER")%></td>
<td><%=rs.getString("ADDRESS")%></td>
<td><%=rs.getString("DOCTORQUL")%></td>
<td><%=rs.getString("DOCTORSPEL")%></td>
</tr>
<% i++;
}
227
AKSH BLOOD BANK
%>
</table >
<%
catch(Exception ex)
out.print(ex);
%>
</div>
<p align="right">
<a
228
AKSH BLOOD BANK
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
<image src="image\\google-plus.png"
style="height: 50px; width: 4%;margin-left:10px;"/>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
<%--
Document : displaydoctor
229
AKSH BLOOD BANK
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>JSP Page</title>
</head>
<body>
230
AKSH BLOOD BANK
</div>
<ul style="float:right">
<li style="float:left;"><a
href="camp.jsp">CAMP</a></li>
<li style="float:left;"><a
href="sale.jsp">SALE</a></li>
<li style="float:left;"><a
href="stock.jsp">STOCK</a></li>
<li style="float:left;"><a
href="donordetails.jsp">DONOR DETAILS</a></li>
231
AKSH BLOOD BANK
<li style="float:left;"><a
href="Adminchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
href="index.html">LOG OUT </a></li>
</ul>
</div>
</div>
<%
try
String bg=request.getParameter("bg");
232
AKSH BLOOD BANK
String area=request.getParameter("area");
Class.forName("org.apache.derby.jdbc.ClientDriver");
Connection
cn=DriverManager.getConnection("jdbc:derby://localhost:
1527/Lifebloodbank");
PreparedStatement ps=
cn.prepareStatement("select * from DOCTOR");
%>
<td>DOCTORNAME</td><td>
EMAIL</td><td>PHONE
NO</td><td>GENDER</td><td>ADDRESS</td>
<td>QUALIFICATION</td><TD>SPL</TD>
</tr>
233
AKSH BLOOD BANK
<%
int i=1;
while(rs.next())
%>
<td style="height:
50px;"><%=i%><%=rs.getString("DOCTORNAME")%></td
>
<td><%=rs.getString("DOCTOREMAIL")%></td>
<td><%=rs.getString("DOCTORPHN")%></td>
<td><%=rs.getString("GENDER")%></td>
<td><%=rs.getString("ADDRESS")%></td>
<td><%=rs.getString("DOCTORQUL")%></td>
<td><%=rs.getString("DOCTORSPEL")%></td>
</tr>
<%
234
AKSH BLOOD BANK
i++;
%>
</table >
<%
catch(Exception ex)
out.print(ex);
%>
</div>
235
AKSH BLOOD BANK
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
<image src="image\\google-plus.png"
style="height: 50px; width: 4%;margin-left:10px;"/>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
236
AKSH BLOOD BANK
<%--
Document : Adminprofile
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>JSP Page</title>
</head>
<body>
237
AKSH BLOOD BANK
</div>
<h1 style="font-size:
30px;width:100%;marginleft: 20px"> <font
color="red">AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
<li style="float:left;"><a
href="Adminprofile.jsp"></a></li>
<li style="float:left;"><a
href="camp.jsp">CAMP</a></li>
<li style="float:left;"><a
href="doctor.jsp">DOCTOR</a></li>
<li style="float:left;"><a
href="sale.jsp">SALE</a></li>
<li style="float:left;"><a
238
AKSH BLOOD BANK
href="stock.jsp">STOCK</a></li>
<li style="float:left;"><a
href="donordetails.jsp">DONOR DETAILS</a></li>
<li style="float:left;"><a
href="Adminchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
href="index.html">LOG OUT</a></li>
</ul>
</div>
</div>
admin
</div>
239
AKSH BLOOD BANK
<p align="right">
<a
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
<image src="image\\google-plus.png"
style="height: 50px; width: 4%;margin-left:10px;"/>
</p>
<div style="width:27%;height:40px;margin-top:
40px;">
</div>
240
AKSH BLOOD BANK
</div>
</body>
</html>
<%--
Document : camp
--%>
<%@page contentType="text/html"
pageEncoding="UTF8"%>
<!DOCTYPE html>
<html>
<head>
<title>JSP Page</title>
241
AKSH BLOOD BANK
</head>
<body>
</div>
<h1 style="font-size:
30px;width:100%;marginleft: -20px"><font color="red">
AKSH BLOOD BANK</h1>
</div>
<ul style="float:right">
242
AKSH BLOOD BANK
<li style="float:left;"><a
href="Adminprofile.jsp"></a></li>
<li style="float:left;"><a
href="camp.jsp">CAMP</a></li>
<li style="float:left;"><a
href="doctor.jsp">DOCTOR</a></li>
<li style="float:left;"><a
href="sale.jsp">SALE</a></li>
<li style="float:left;"><a
href="stock.jsp">STOCK</a></li>
<li style="float:left;"><a
href="donordetails.jsp">DONOR DETAILS</a></li>
<li style="float:left;"><a
href="Adminchangepass.jsp">CHANGE
PASSWORD</a></li>
<li style="float:left;"><a
href="index.html">LOG OUT</a></li>
</ul>
</div>
</div>
243
AKSH BLOOD BANK
<a href="NewCamp.jsp"><button
style="width:20%; height:60px; margin-left: 10%;color:
red; margin-top: 10%" type="button">ADD NEW
CAMP</button></a>
<a href="detailscamp.jsp"><button
style="width:20%; height:60px;margin-left: 30%;color:
red;" type="button"> All CAMP DETAILS </button></a>
</div>
</div>
<p align="right">
<a
244
AKSH BLOOD BANK
href="https://www.facebook.com/"><image
src="image\\facebook.png" style="height:50px; width:
4%;margin-left: 20px;margin-top: 50px;"/></a>
<a
href="https://www.instagram.com/"><image
src="image\\instagram.png" style="height: 50px; width:
4%;margin-left:10px;"/></a>
</p>
<div style="width:27%;height:40px;margin-top:
40px;margin-left:60px;">
</div>
</div>
</body>
</html>
245
AKSH BLOOD BANK
16.TESTING
1) TESTING METHODOLOGY
2) TESTING OBJECTIVES
3) TESTING PRINCIPLES
APPLICATIONS
a) UNIT TESTING
b) MODULE TESTING
246
AKSH BLOOD BANK
c) SYESTEM TESTING
d) RECOVERY TESTING
e) SECURITY TESTING
f) STRESS TESTING
1) TESTING METHODOLOGY
In the extreme, testing of human-rated software (e.g., flight control, nuclear reactor
monitoring) can cost three to five times as much as all other software engineering
activities combined!
2) TESTING OBJECTIVES:
247
AKSH BLOOD BANK
2. A good test case is one that has a high probability of finding an as-yet
undiscovered error.
The above objectives imply a dramatic change in viewpoint. They move counter to the
commonly held view that a successful test is one in which no errors are found. Our
objective is to design tests that systematically uncover different classes of errors and do
so with a minimum amount of time and effort.
Testing cannot show the absence of defects, it can only show that software errors are
present.
3) TESTING PRINCIPLES
Before applying methods to design effective test cases, a software engineer must
understand the basic principles that guide software testing. Davis suggests a set of
testing principles, which are as follows:
• Tests should be planned long before testing begins: Test planning can begin as
soon as the requirement(s) model is completed. Detailed definition of test cases can
begin as soon as the design model has been solidified. Therefore, all tests can be
planned and designed before any code has been generated.
• The pareto principle applies to software testing: Stated simply, the pareto
principle implies that 80 percent of all errors uncovered during testing will likely be
248
AKSH BLOOD BANK
• Testing should begin "in the small" and progress toward testing "in the large".
The first tests planned and executed generally focus on individual program modules. As
testing progresses, testing shifts focus in an attempt of find errors in integrated clusters
of modules and ultimately in the entire system.
• Exhaustive testing is not possible. The number of path permutations for even a
moderately sized program is exceptionally large. For this reason, it is impossible to
execute every combination of paths during testing. It is possible, however, to
adequately cover program logic and to ensure that all conditions in the procedural
design have been exercised.
Because modern GUIs have the same look and feel, a series of standard tests can be
derived. The following questions can serve as a guideline for creating a series of
generic tests for GUIs:
For Windows:
249
AKSH BLOOD BANK
• Is all data content contained within the window properly addressable with a
mouse, function keys, directional arrows and keyboard?
• Does the window properly regenerate when it is overwritten and then recalled?
• Are tile relevant pull-down menus, tool bars, scroll bars, dialog boxes, and
buttons, icons and other controls available and properly displayed for the
window?
• For pull-down menus and mouse operations: the same name of the updated at
appropriate within the window cause.
• Do the application menu bar display system features (e.g., clock display)?
250
AKSH BLOOD BANK
Data Entry:
Because of the large no of permutations associated with GUI operations, testing should
be approached using automated tools. A wide array of GUI testing tools is available to
achieve this goal.
b) MODULE TESTING
c) SYESTEM TESTING
d) RECOVERY TESTING
e) SECURITY TESTING
f) STRESS TESTING
251
AKSH BLOOD BANK
g) PERFORMANCE TESTING
a) UNIT TESTING
Unit testing focuses verification effort on tile smallest unit of software design is modules.
Using the procedural design description as a guide, important control paths are tested
to uncover errors within the boundary of' the module. The relative complexity of testing.
The unit testing is normally white-box oriented, and the step can be conducted in
parallel for multiple modules.
Tests of data flow across a module interface are required before any other test is
initiated. If data do not enter and exit properly, all other tests are moot. In his text on
software testing, Myers proposes a checklist for interface tests:
252
AKSH BLOOD BANK
b) MODULE TESTING
A Module represents the logical elements of a system. For a module to FULL
satisfactorily, it will compile and test data correctly and tie in property with other
modules.
Module testing checks for two types of error: Syntax and Logical.
• Syntax Error
A Syntax error is a module statement that violates one or more rules of the language in
which it is written. An improperly defined field dimension or omitted key words are
common syntax errors. These errors are shown through error messages generated by
the computer.
• Logical Error
A logical error, on the other hand, deals with incorrect data fields, out-range items, and
invalid combinations, since diagnostics do not detect logic errors, the programmer must
examine the output carefully for them.
When a module is tested, the actual output is compared with the expected output. When
there is a discrepancy, the sequence of instructions must be traced to determine the
253
AKSH BLOOD BANK
problem. The process is facilitated by breaking the program shown into self-contained
portions, each of which can be checked at certain key points. The idea is to compare
module values against desk-calculated values to isolate the module.
c) SYSTEM TESTING
The last high-order testing step falls outside the boundary of Software Engineering and
into tile broader context of computer System Engineering. Software, once validated,
must be combined with other system element (e.g., hardware, people, and databases).
System testing verifies that all elements mesh properly and that overall system
function/performance is achieved.
Ultimately, software is incorporated with other system elements (e.g., new hardware
and information) and a series of system integration and validation tests are conducted.
These tests fall outside the scope of the software engineering process and are not
conducted solely by the software developer. However, steps taken during software
design and testing can greatly improve the probability of successful integration in the
larger system.
• Design error-handling paths that test all information coming from other elements
of the system.
• Conduct a series of tests that simulate bad data or other potential errors at the
software interface.
• Record the results of tests to use as "evidence" if finger pointing does occur.
System testing is actually a series of different tests whose primary purpose is to fully
exercise the computer-based system. Although each test has a different purpose, all
work to verify that all system elements have been properly integrated and perform
254
AKSH BLOOD BANK
allocated functions. In the sections that follow, we discuss the types of system tests that
are worth while for software-based system.
d) RECOVERY TESTING
Recovery testing is a system test that forces the software to fail in a variety of ways and
verifies that recovery is properly performed. If recovery is automatic (performed by the
system itself), re-initialization, check pointing mechanisms, data recovery, and restart
are each evaluated for correctness. If recovery requires human intervention, the mean
time to repair is evaluated to determine whether it is within acceptable limits.
e) SECURITY TESTING
Security testing attempts to verify that protection mechanisms built into a system will in
fact protect it from improper penetration. The system's security must, of course, be
tested for invulnerability from frontal attack - but must also be tested for invulnerability
from flank or rear attack.
During security testing, the tester plays the role(s) of the individual who desires to
penetrate the system. Anything goes! The tester may attempt to acquire passwords
through external clerical means, may attack the system with custom software designed
to break down any defenses that have been constructed; may overwhelm the system,
thereby denying service to other; may purposely cause system errors, hoping to
penetrate during recovery; may browse through insecure data, hoping to find the key to
system entry; and so on.
Given enough time and resources, good security testing will ultimately penetrate a
system. The role of the system designer is to make penetration cost greater then
the value of the information that will be obtained
f) STRESS TESTING
Stress testing executes a system in a manner that demands resources in abnormal
quantity, frequency, or volume. For example:
Special tests may be deigned that generate 10 interrupts per second, when one or two
is the average rate.
255
AKSH BLOOD BANK
Input data rates may be increased by an order of magnitude to determine, how input
functions will respond?
Test cases that require maximum memory or other resources may be executed.
Test cases that may cause thrashing in a Virtual Operating System may be designed.
Test cases that may cause excessive hunting for disk resident data may create.
Essentially, the tester attempts to break the program.
g) PERFORMANCE TESTING
Performance tests are often coupled with stress testing and often require both hardware
and software instrumentation. That is, it is often necessary to measure resource
utilization (e.g., processor cycles) in an exacting fashion. External instrumentation can
monitor execution intervals, log events (e.g., interrupts) as they occur, and sample
machine states on a regular basis. By instrumenting a system, the tester can uncover
situations that lead to degradation and possible system failure.
When computer software is built for one customer, a series of acceptance tests are
conducted to enable the customer to validate all requirements. Conducted by the end
user rather than the system developer, an acceptance test can range from an informal
"test drive" to a planned and systematically executed series of tests. In fact, acceptance
testing can be conducted over a period of weeks or months, thereby uncovering
cumulative errors that might degrade the system over time.
256
AKSH BLOOD BANK
A customer conducts the alpha test at the developer’s site. The software is used in
natural setting with the developer "looking over the shoulder" of the user and recording
errors and usage problems. Alpha tests are conducted in controlled environment.
The beta test is conducted at one or more customer sites by the end user(s) of the
software. Unlike alpha testing, the developer is generally not present. Therefore, the
beta test is a "live" application of the software in an environment that cannot be
controlled by the developer. The customer records all problems (real or imagined) that
are encountered during beta testing and reports these to the developer at regular
intervals.
As a result of problems reported during beta test, the software developer makes
modifications and then prepares for release of the software product to the entire
customer base.
(1) Guarantee that all independent paths within a module have been exercised at
least once;
(2) Exercise all logical decisions on their true and false sides;
(3) Execute all loops at their boundaries and within their operational bounds; and
A reasonable question might be posed at this juncture: "why spend time and energy
worrying about (and testing) logical minutiae when we might better expend effort
ensuring that program requirements have been met?" Stated another way, why don't we
spend all of our energies on black-box tests? The answer lies in nature of software
defects.
257
AKSH BLOOD BANK
when we design and implement function, conditions, or control that are out of the
mainstream.
• We often believe that a logical path is not likely to be executed when, in fact, it
may be executed on regular basis. The logical flow of a program is sometimes
counterintuitive, meaning that our unconscious assumptions abut flow of control and
data may lead us to make design errors that are uncovered only once path testing
commences.
Each of these reasons provides an argument for conducting white-box tests. Black-Box
Testing, no matter how thorough, may miss the kinds of errors noted above. As Beiger
has stated: "Bugs lurk in corners and congregate at boundaries to uncover them
"Whitebox testing is far more likely
258
AKSH BLOOD BANK
Unlike White-Box Testing, which is performed early in the testing process, Black-Box
Testing tends to be applied during later stages of testing. Because black box testing
purposely disregards control structure, attention is focused on the information domain.
Tests are designed to answer the following questions:
• What data rates and data volume can the system tolerate?
• By applying black-box techniques, we derive a set of test cases that satisfy the
following criteria:
(1) Test cases that reduce, by a count that is greater than one, the number of
additional test cases that must be designed to achieve reasonable testing, and
(2) Test cases that tell us something about the presence or absence of classes of
errors, rather than errors associated only with the specific test at hand.
All the important aspect of a systems analyst’s job is to make sure that tile new design
is implemented to established standards. The term implementation has different
meanings, ranging from the conversion of basic application to a complete replacement
of a computer system. The procedure, however, is virtually the same. Implementation is
used here to maintain the process of converting a new or a revised system design into
an operational one. Conversion is one aspect of implementation. The other aspects are
the post implementation review and software maintenance.
259
AKSH BLOOD BANK
GANNT CHART
260
AKSH BLOOD BANK
PERT CHART
A = Prepare Site
B = Review Specification
C = Install Equipments
D = Test Hardware
E = Training
F = Write Programs
G = Test Programs
H = Test Software
J = Implement Follow-up
K = Accept
261
AKSH BLOOD BANK
Off-line reports of blood bank cell, Donor cannot be generated due to batch mode
execution..
We can add more future. We can give more advance software for blood bank management system
including more facilities.
We will host the platform on online servers to make it accessible worldwide
20.BIBLIOGRAPHY/CONCULSION
Books References: -
http://tubetutorial.com
http://www.w3school.com
http://www.draw.io
http://showmevideo.com
262
AKSH BLOOD BANK
CONCLUSION:
These were great days of my life because I was doing such a type of project which I
have thought in my dreams and when I have decided to this project my soul encouraged
me too because I have thought that if I make such a platform for all pepole it will be task
of great spirituality, and really this encouraged me too.
I am very very thankful to my project guide who helped me a lot in all the trouble
time related to this project.
I also learnt the rarer concept of time management during the project
session which I will never forget, and really creating such a real time application is very
soulful for me.
263