Organ New Full Doc PHP

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

Table of Contents

ORGAN SHARING-DONATOR AND FINDER APPLICATION............................................................3


ABSTRACT................................................................................................................................................3
CHAPTER 1 –INTRODUCTION...............................................................................................................4
1.1 Objectives....................................................................................................................................8
1.2 System Specifications........................................................................................................................8
CHAPTER 2 – LITERATURE REVIEW.................................................................................................10
EXISTING SYSTEM:...........................................................................................................................13
CHAPTER 3 OVERALL DESCRIPTION OF THE PROPOSED SYSTEM............................................15
3.1 Module Description.........................................................................................................................15
4.1.1Usecase Diagrams:........................................................................................................................20
4.1.2 Sequence Diagram:......................................................................................................................22
4.1.3 Collaborate Diagram:.......................................................................................................................24
4.1.4 Table Design.................................................................................................................................25
4.1.5. Work Flow Diagram.........................................................................................................................26
4.1.6. Architectural Diagram......................................................................................................................27
4.1.7. Data Flow Diagram..........................................................................................................................27
4.1.8. ER Diagram......................................................................................................................................29
4.1.9 Class Diagram..................................................................................................................................30
4.1.10 Activity Diagram..........................................................................................................................31
CHAPTER 6 – IMPLEMENTATION DETAILS.....................................................................................40
CHAPTER 7- SYSTEM STUDY..............................................................................................................46
CHAPTER 8-TECHNICAL FEASIBILITY.............................................................................................47
CHAPTER 9-SYSTEM TESTING...........................................................................................................50
CHAPTER 10– CONCLUSIONS.............................................................................................................57
CHAPTER 11- REFERENCES.................................................................................................................58
ORGAN SHARING-DONATOR AND FINDER APPLICATION

ABSTRACT

Our project is mainly focused to provide the services to the needy through a
single application and make the donation process easy. In this donation the donor
can easily reach the needy through the consent of the admin. In the other kinds of
donations, it mainly collects the donations of the donors and deliver them to the
respective organizations and provide the information to the respective doctors of
that organization to maintain transparency. To manage the donor registration and
user maintenance. People who interested can register themselves through this
system. The main aim is collecting the donations and delivering them to the
respective organizations and also provide the information to the doctors of that
organization.
CHAPTER 1 –INTRODUCTION

The need for organs for donation is far greater than organ availability. In the last
decade this has led to restructuring and investment in the organ donation
programme with political and public support. The majority of transplanted organs
are retrieved from patients dying on an intensive care unit, and the wish to consider
organ donation as a normal part of end-of-life care has led to considerable pressure
on clinicians to adhere to the large amount of practical and ethical guidance being
published to achieve this. Organ donation is defined as giving an organ or part of
an organ to be transplanted into another person. Organ transplantation is the only
option to save lives in patients affected by terminal organ failures and improve
their quality of life. However, there is a disparity exists between the supply and
demand of donated organs, leads to a loss of many lives. The number of organ
transplantation have gradually increased in the last two decades and provide
excellent results in children and young adults, and are challenging by the growing
proportion of elderly transplant patients with co morbidity. The results of organ
transplantation continue to improve, as a consequence of the innovations and the
improvements in peri-operative management.

Organ donation is defined as giving an organ or part of an organ to be transplanted


into another person. Organ transplantation is the only option to save lives in
patients affected by terminal organ failures and improve their quality of life.
However, there is a disparity exists between the supply and demand of donated
organs, leads to a loss of many lives. The number of organ transplantation have
gradually increased in the last two decades and provide excellent results in children
and young adults, and are challenging by the growing proportion of elderly
transplant patients with co morbidity. The results of organ transplantation continue
to improve, as a consequence of the innovations and the improvements in peri-
operative management.

Organ transplantation currently depends on the availability of human organs. Their


scarcity means that there is a waiting list of almost 63,000 in the European Union,
and over 100,000 people in the United States according to the recent survey. The
process of obtaining organs for donation and transplantation purely depends on the
resources of health services and by health professionals’ performance in potential
donor identification and management tasks. However, in accordance with the
current legislation it is mainly subjected to a personal or family decision, strongly
mediated by psychosocial processes. Therefore, the need to analyze and intervene
both in the practices of the professionals involved in the process of organ
generation and in the attitudes of the general population need to stressed and
addressed.

DONATING organs have revolutionized the health sector. There are a lot of
people who are willing to donate or-gans in living, dead or even in brain dead
condition. The main issue related to organ donation is the delay in the supply of the
organ because of multiple factors and hence a lot of patients in need of an organ
don’t survive. We aim at re-solving this issue using blockchain which is a
distributed da-tabase and can dynamically manage such databases. It gives the
participant a clear overview of the entire process. There will be an implementation
of blocks that will store the data entered hence facilitating ease in the process.
Using blockchain will also guarantee that no one can falsify any block or even
have illegal access to the information making all the transac-tions very secure.
Furthermore, to guarantee the physical safe-ty of organs, we also plan on
implementing a weight checking system for the container in which the organ will
be stored. If any change in weight of the container is recorded by this sys-tem, it
will automatically be alarmed and the administration will be notified.

Organ transplantation involves the surgical implantation of an organ or section of


an organ into a person whose own organ is failing. The donor organ may come
from both deceased individual as well as from a living donor. The patients
psychological and behavior aspect as well their emotional response and mental
health and adherence to medical regimen should be assessed before and after organ
transplantation. The living donor’s psychological response towards organ donation
(most commonly for kidney and liver segment transplantation) is an important
aspect to consider in the transplantation process.

Organ donation is defined as “giving an organ or part of an organ to be


transplanted into another person” (Organ procurement of Transplant Network
(OPTN), 2015), organ donation has the potential to save lives. The organs donated
from one single donor can save up to eight lives. Organ transplantation may be one
of the options left to sustain someone’s life. However, the disparity that exists
between the supply and demand of donated organs, leads to a loss of many lives.
Based on recent OPTN data, approximately 21 people will die each day while
waiting for a transplant in the United States (US). Currently, 123, 358 people are
awaiting organs and on the transplant list in the US with this number growing and
the number of donated organs declining.

Asian Indians are more likely to have higher rates of having obesity and diabetes
when compared with other Asian subgroups which make them at an increased risk
of needing a donated organ. These conditions can lead one to develop coronary
artery disease and hypertension which then can lead to chronic kidney disease and
other chronic illnesses. Patients who suffer from chronic kidney disease need
regular dialysis which can ultimately lead them to organ transplantation to improve
one’s quality of life. Also, conditions such as diabetes and obesity can be
detrimental to one’s life and can lead to fatty liver disease which can lead to
chronic liver disease requiring liver transplantation if the liver decompensates.
The development of organ transplantation in the second half of the 20th century
has been a remarkable achievement. Recently; organ transplantation is one of the
most effective options for those with an end-stage organ failure. Its success has
been basically dependent on public awareness, support and active participation.
Without these factors, the efficiency of organ transplantation and the consequent
saving or extension of lives would have undoubtedly suffered adversely.

The number of patients in need of organ transplantation has increased at a rapid


pace; in contrast, the number of available organs has increased only slightly.
Expanded criteria for donor selection, such as older age, have resulted in more
people who meet the criteria for brain death becoming organ donors although
fewer organs are transplanted from each donor. Improvements in automobile and
highway safety, as well as increased enforcement of gun control laws, have also
contributed to a plateau in the number of young, healthy donors. Public education
efforts that encourage organ donation may be effective in getting more people to
sign organ donor cards, but most individuals who do so will never be in a position
to become organ donors.

Faced with increasing numbers of patients who need transplantation, deaths on the
waiting list, and a fixed number of available organs, some transplant programs are
working to increase the number of transplants from living donors. Although living
donation has always been an option for some types of transplants, many programs
have been reluctant to promote it, as living donation requires invasive surgery on a
healthy person with associated risks of morbidity and mortality. For example, since
dialysis is an option for patients with end-stage renal disease, surgery on a healthy
donor may be difficult to justify, despite the dialysis patient’s diminished quality of
life.
The most important in organ donation is to maximize the psychological status and
well-being of the donors before and after transplantation has become the foremost
goal of all transplantation centres. The psychological issues that mainly concern
with the living organ donation includes prevention of psychological harm, ensuring
the donors are fully informed and decide to donate without coercion, monitoring
donor psychosocial outcomes are intimately linked to the factors that historically
served as barriers to use of organs from living donors. These barriers can be
overcome by the motivating of the public and creating awareness and
responsibility among oneself.

Organs that can be transplanted from the living donor includes one kidney, part of
intestine, pancreas, islets of Langerhans, bone, part of liver, one testis, bone
marrow and blood. The organ that can be transplanted from the deceased donor are
heart, kidney, pancreas, stomach, hand, skin, blood vessels, lungs, liver, intestine,
testis, cornea and heart valve.

1.1 Objectives

The main objective of the study was to create electronic Organ donor
management information system in order to assist in the management of Organ
donor records, planning and share information in a more confidential, convenient
and secure way using modern technology.
1.2 System Specifications

Hardware Requirements:-

 PROCESSOR : Intel 3
 RAM : 4 GB DDR2 RAM
 HARD DISK DRIVE : 500 GB
 MONITOR : 17” Color TFT Monitor
 KEYBOARD : Multimedia Keyboard 108 Keys
 MOUSE : Logitech Optical Mouse
Software Requirements: -

Software Requirements: -
Front End: HTML5, CSS3, Bootstrap
Back End: PHP 8.1, MYSQL
Control End: Angular Java Script
Tools:
xampp-win64-8.1
CHAPTER 2 – LITERATURE REVIEW

Organ donation after cerebrum demise has gained momentum in India in the last
not many years. Cerebrum demise as a type of death and made the offer of organs a
culpable offense. With the acknowledgment of cerebrum demise, it got
conceivable to embrace kidney transplantations as well as start other strong organ
transplants like liver, heart, lungs, and pancreas. Donating an organ or organs is
one of the most respectable demonstrations of mankind, sparing the lives of the
individuals who endure genuine diseases that require organ transplantation. At the
point when the human body gets tainted with malady urgent organs in the body, for
example, the kidney, lungs, heart, pancreas, liver, or digestion tracts become non-
functional, making life deplorable generally prompting passing. Anybody can get
presented to an infection. Making an organ donation is a vital commitment to
sparing lives. Organ transplantation tasks started during the 1950s and upset drug,
sparing incalculable lives and making life simpler for the individuals who endure
long haul sicknesses. On account of givers, they might be alive, dead, or in certain
nations, cerebrum dead. Any live individual must be alive and well to give, and gift
is took into account organs that won't influence their wellbeing, for example, a
kidney, liver, lungs or bone marrow. There are nogreatest or least age limits for
organ donation, however the organ must be in a decent condition and its
misfortune won't present a risk to life. In many nations minors can possibly give
organs in the event that one of their gatekeepers gives assent. On account of
perished organ donation, a giver probably gave their assent while they were as yet
alive, for the most part by marking their name in the donation framework. India
has currently the third largest internet user base in the world, but it accounts for
only 10 percent of its population [3]. The mobile application is designed keep in
mind that it can be useful even if mobile internet or GPS facilities are not available
at all. Also, if app is to be used in India then it may not be possible for user to avail
services like GPS and Internet connection all the time. The recent initiatives
undertaken by the Indian Government to improve the quality of education and
provide for digital information to people, it launched World’s cheapest Android
based tablet Aakash, costing USD 35.The government is exploring plans to
develop and sell subsidized $100 Smart phones to people of India[4].Web is a
Linux-based operating system designed primarily for touch-screen mobile devices
such as smart-phones and tablet computers, and it is supporting for multiple device
configurations and this count is increasing at very fast rate. Web operating system
had a worldwide market share of 76% during the third quarter of 2012 with more
than 500 million devices activated in total and 1.3 million activations daily [5]. All
these factors made Web OS a perfect platform to implement full proofs.

In “The Optimization of Blood Donor Information and Management System by


Technopedia” This System is a Web based Web Application. The System consist
of two Devices -Web Smartphone and A server (Usually a pc). Donor/Acceptor
creates an account and a unique user id and password is given to them. Acceptor
can be either the patient or any relative to patient. Every detail is stored in
Database (MySQL).

In “A Survey Paper on E-Blood Bank and an Idea to use on Smartphone” This


Blood Bank system is applicable for a Single Blood Bank. All details such as
Blood Group, Total units of Blood available, donors details etc are stored in a
Database. This System provides unique Id to donors to keep track of records of
donor and to retrieve information in future. If Seeker needs blood, Doctor will just
use this application on his/her Smartphone to get desired information from a Blood
Bank about a particular Blood Type. The use of GPS will advance and fasten the
searching technique.
In “Web Blood Bank Web Blood Bank is a Web based web application” User has
to create an account. The Details will be stored in Database (MySQL). User will
get various options like various Blood Camps nearby, search blood donors, search
blood bank, search for a particular blood type etc. GPS can be used to locate
nearby Blood Camps, Blood Bank and Hospitals. GPS can also be used to get
exact path to Blood Bank in case of emergency to save time.

In “Blood and Organ for Patient using Web Application” ADMIN will Manage all
information in Database like Userids, Passwords, Contact Details(Phone no ,
email), OTP, Detailsabout Blood(Blood Group, Blood Units) etc. User
(Donor/Seeker)-Each User first registers as donor, they fill a login form which
identities them uniquely. Donor/Seeker gets facilities to change password, select
blood group etc. Seeker gets extra facilities to make calls and send messages to
donor.Database contains each and every detail about blood and organ donation,
user details, details of Static Places like-Hospitals, Blood Banks, Medical Stores.

In “Mobile Hospitalization for Kidney Transplantation” Proposed system is called


Smart Mobile Hospital System SMHS is gather Artificial Intelligent (AI),
providing access to end users (doctor and nurse) via smart phone and tablets by
their authority, monitor kidney patient and their donors by notification between
end users to communicate, and this system stored cloudly to gain feature of cloud.
SMHS used for monitoring and analyzing Bioanalysis and measuring biomarkers
of kidney transplant patients and their donors by using smart phones and tablets for
any operating system. Besides, this system also includes the patients injection entry
records, medicines and prescriptions.
EXISTING SYSTEM:

In the present-day scenario though there are many donors, their donations are
unable to reach the needy at the right time or due to third parties, malpractices in
all the cases such as blood donation and organ donation, fund donation, household
items or any other donations.

Disadvantages

 Medical experts have to consider one by one all the possible receivers and
evaluate the matching with weak supports to process large amount of data.
 Information is usually not stored a in compact, re-usable way, therefore the
coordination between medical experts and surgeons has to pass through
telephone and facsimile.
 Finding the best route involves looking up several timetables of means of
transport (such astrains or planes) and making spatial and temporalreasoning
to provide the most efficient solution
 Scheduling the medical teams involves looking up the timetables of
operating theaters and medical personnel to find solutions which are
available at the required times

PROPOSED SYSTEM:

In this we maintain all kinds of essential donations to the needy under single
portal and providing donations to needy. The main aim is collecting the
donationsand delivering them to then respective organizations and also provides
the information to the volunteers of that organization to maintain transparency.
Moreover, the system could be designed in such a way to exchange information
with the other tools and take into account their results, producing a result which is
already suitable under the three points of view. Even in the case of multiple organs
to be assigned, the process would turn out to be more efficient, since different
software tools (one for each organ/medical team/route) could work in parallel
substituting human beings and producing results with less cost in term of human
resources involved.

Advantages
 Maintain transparency
 Easy access to data
 Saves time
CHAPTER 3 OVERALL DESCRIPTION OF THE PROPOSED SYSTEM

3.1 Module Description

The system is proposed to have the following modules: This app enhanced
level of categories for Bus Pass App.

3.2 System Features

In the life of the software development, problem analysis provides a base for
design and development phase. The problem is analyzed so that sufficient matter is
provided to design a new system. Large problems are sub-divided into smaller
once to make them understandable and easy for finding solutions. Same in this
project all the task are sub-divided and categorized.

SYSTEM MODULES:

 Admin ,
 Doctor
 User

MODULES LIST:

Admin

 Add Doctor
 View Doctor
 Manage Organ Need Request
 Assign Doctor for organ request
 Manage Organ Donation
 Assign Doctor for Organ Collection
 Manage hospital Location
 View User Details
User

 Add Organ Donation


o Get SMS OTP
 View My Donation
 Add Organ Request
 View My Organ Request
o Status
o Assigned Doctor for organ request
 My Profile
Doctor

 New Organ Request


 Update Request Status
o Pending
o Available
o Unavailable
o Allocated
o Delivered
 Organ Collection
o Verify OTP
MODULE DESCRIPTION:

Admin

 Add Doctor
Admin will be add a doctor for every hospitals and create a login details for
every doctors in that hospitals. When doctor open their dashboards means
use this login details.

 View Doctor
Admin can view and check the doctor details and if there is any modification
means admin can change their personal details and manage the details.

 Manage organ need request


Admin can manage the all organ detail from location to location and then
handle which has to request to needed organ they are approval by the
hospital. Then user can be access the requests.

 Assign doctor for organ need request


Admin can assign a doctor for a donator. If user has to giving the
request an admin then admin can view and approval assign for a doctor to
that specific user.

 Manage organ donation


Admin can manage all arrival organs for a donation is based on hospitals.
All the organs stored in a hospitals if user requested needed organs they are
manage organ donation.

 Assign Doctor for organ collection


Admin can assign a doctor for a collection organ. It will stored in
specified hospitals. If any user want to an organ then admin will assign the
doctor for user and organ.

 Manage Hospital location


Admin can manage the all hospital register location. Every hospital
has unique login id and their location details they are managed by admin.

 View user details


Admin can view user details. All the user and doctors details can manage
admin and viewed by admin for an maintain the details.

User

 Add organ Details


User once can register their profile and add their donated organ details
like donor name, phone number, address, which organ user has to donated
they are added in that details. Once user has to add then they will get OTP
verification.

 View my donation
User once can added an organ then if any details modified means
check their details of organ donation.

 Add organ request


User can add the request for a needed organ to a hospitals. Then hospital
response to a user.

 View My organ request status


User has to add an organ from the list and check my organ requested
status like if the organ was approval or not.

 Assign Doctor for organ request


User has given the request for an organ then admin will assign the doctor
for and the specific patient.

 My profile
User once register a their profile like enter their Name, phone number,
address, and which hospital they give an organ or else request an organ they
are managed in the my profile.

Doctor

 New organ request


Doctor will check the new organ request from the user. Then if it is
available means doctor will update the status.

 Update the organ request


Doctor once get a request from the user if that organ is available means
doctor will be updated the status like pending, available, unavailable.

 Organ collection
Doctor will get the organ collection from the user and donator. They are
collected once getting a OTP verification.
CHAPTER 4 – DESIGN

Design is the first step in the development phase for any techniques and principles
for the purpose of defining a device, a process or system in sufficient detail to
permit its physical realization.

Once the software requirements have been analyzed and specified the software
design involves three technical activities - design, coding, implementation and
testing that are required to build and verify the software.

The design activities are of main importance in this phase, because in this activity,
decisions ultimately affecting the success of the software implementation and its
ease of maintenance are made. These decisions have the final bearing upon
reliability and maintainability of the system. Design is the only way to accurately
translate the customer’s requirements into finished software or a system.

Design is the place where quality is fostered in development. Software design is a


process through which requirements are translated into a representation of
software. Software design is conducted in two steps. Preliminary design is
concerned with the transformation of requirements into data.

4.1UML Diagrams:

UML stands for Unified Modeling Language. UML is a language for specifying,
visualizing and documenting the system. This is the step while developing any
product after analysis. The goal from this is to produce a model of the entities
involved in the project which later need to be built. The representation of the
entities that are to be used in the product being developed need to be designed.

There are various kinds of methods in software design:


 Use case Diagram
 Sequence Diagram
 Collaboration Diagram
4.1.1Usecase Diagrams:
Use case diagrams model behavior within a system and helps the developers
understand of what the user require. The stick man represents what’s called an
actor. Use case diagram can be useful for getting an overall view of the system and
clarifying that can do and more importantly what they can’t do.

login

add organ

view doctor

manage organ reuest

assing doctor for organ request

admin
manage organ donation

assign doctor organ collection

manage hospital location


register, login

add organ donation

view my donation

add organ request

user

organ request status

assign doctor organ request

My profile

doctor login

new organ request

upate request status


Doctor

organ collection

Use case diagram consists of use cases and actors and shows the interaction
between the use case and actors.
 The purpose is to show the interactions between the use case and
actor.
 To represent the system requirements from user’s perspective.
 An actor could be the end-user of the system or an external system

4.1.2 Sequence Diagram:


Sequence diagram and collaboration diagram are called INTERACTION
DIAGRAMS. An interaction diagram shows an interaction, consisting of set of
objects and their relationship including the messages that may be dispatched
among them.
user doctor admin database

1 : register, login()

2 : add organ donation()

3 : view my donation()

4 : add organ request()

5 : view my organ request()

6 : assign doctor for organ request()

7 : my profile()

8 : login()

9 : update request organ()

10 : organ collection()

11 : login()

12 : add doctor()

13 : view doctor()

14 : manage organ request()

15 : assign doctor for organ()

16 : manage organ donation()

17 : assign doctor for organ()

18 : manage hospital locaiton()

19 : view user details()


A sequence diagram is an introduction that empathizes the time ordering of
messages. Graphically a sequence diagram is a table that shows objects arranged
along the X-axis and messages ordered in increasing time along the Y-axis.

4.1.3 Collaborate Diagram:

A collaboration diagram, also called a communication diagram or interaction


diagram, is an illustration of the relationships and interactions among software
objects in the Unified Modeling Language (UML).
4.1.4 Table Design
User & Hospital Login

Id Username Password
Primary Key Varchar Varchar
100 100 100

User & Hospital - Register

User ID Name Email Id Password Mobile Address City Question Question


1 2
Primary Varchar Varchar Varchar Varchar Varchar Varcha Varchar Varchar
Key r
100 100 100 100 100 100 100 100 100

Hospital details

ID Hospital Email Id Password Mobile Address 1 Address City Locality


Name 2
Primary Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar
Key
100 100 100 100 100 100 100 100 100

Donor Details

ID Name Email Id Password Mobile 1 Mobile 2 Address City Locality


1
Primary Varchar Varchar Varchar Varchar Varchar Varchar Varchar Varchar
Key
100 100 100 100 100 100 100 100 100

Admin Login

User ID Username Password


100 100 100
Primary
key
4.1.5. Work Flow Diagram
4.1.6. Architectural Diagram

4.1.7. Data Flow Diagram


Doctor

Login

New organ
request

Update
organ status

Organ
collection
User
Register,
login

Add organ
donation

View my
donation

Add organ
request

View my organ
request status

Assign doctor for


organ request

My profile
Admin
Login

Add, view
Doctor

Assign,
manage organ
request

Assign, mange
organ donation,
collection

Manage hospital
location

My profile
4.1.8. ER Diagram

4.1.9 Class Diagram


Add organ
View Doctor Add Organ Donation
+Organ name
new organ request details
+organ type +Doctor Name +organ name
+Doctor Details +organ details +organ details
+Add organ()
+View Doctor() +Add Organ Donation() View My Donation +new organ request details()
+Donation name
+donation type
organ result
+View My Donation()
User
+completed Doctor login
ADMIN +pending +Email id
+password +email id
+username +manage organ result() Add organ Request +pasword
+password +User Login() +organ details +Doctor login()
+ADMIN Login()
+Add organ Request()
organ donation

+donation name View organ request status Update Request status


+typr
+pending +pending
+manage organ donation() +completed +approve
Hospital Lcation
+View organ request status\() +Update Request status()
+hospital map

+manage Hospital Lcation()


4.1.10 Activity Diagram

Admin Login User Login Doctor Login

Add Organ Add Organ Donation New Organ Request

View Doctor View My Donation


Upadte Request Status

Manage organ Request Add Organ Request


organ Collection

organ Request Status


Manage Organ Donation

Manage Hospital Location My Profile

Assign Doctor organ Collection


CHAPTER 5 - OUTPUT SCREENSHOTS
CHAPTER 6 – IMPLEMENTATION DETAILS

6.1 Introduction to Html Framework

HyperText Markup Language, commonly referred to as HTML, is the


standard markup language used to create web pages. Along with CSS,
and JavaScript, HTML is a cornerstone technology used to create web pages, as
well as to create user interfaces for mobile and web applications. Web
browsers can read HTML files and render them into visible or audible web pages.
HTML describes the structure of a website semantically along with cues for
presentation, making it a markup language, rather than a programming language.

HTML elements form the building blocks of HTML pages. HTML


allows images and other objects to be embedded and it can be used to
create interactive forms. It provides a means to create structured documents by
denoting structuralsemantics for text such as headings, paragraphs, lists, links,
quotes and other items. HTML elements are delineated bytags, written using angle
brackets. Tags such as <img /> and <input /> introduce content into the page
directly. Others such as <p>...</p> surround and provide information about
document text and may include other tags as sub-elements. Browsers do not
display the HTML tags, but use them to interpret the content of the page.

HTML can embed scripts written in languages such as JavaScript which affect the
behavior of HTML web pages. HTML markup can also refer the browser
to Cascading Style Sheets (CSS) to define the look and layout of text and other
material
6.2 Cascading Style Sheets (CSS)

CSS is a style sheet language used for describing the presentation of a document
written in a markup language. Although most often used to set the visual style
of web pages and user interfaces written in HTML and XHTML, the language can
be applied to any XML document, including plain XML, SVG andXUL, and is
applicable to rendering in speech, or on other media. Along with HTML
and JavaScript, CSS is a cornerstone technology used by most websites to create
visually engaging webpages, user interfaces for web applications, and user
interfaces for many mobile applications.

CSS is designed primarily to enable the separation of document content from


document presentation, including aspects such as the layout, colors, and fonts. This
separation can improve content accessibility, provide more flexibility and control
in the specification of presentation characteristics, enable multiple HTML pages to
share formatting by specifying the relevant CSS in a separate .css file, and reduce
complexity and repetition in the structural content, such as semantically
insignificant tables that were widely used to format pages before consistent CSS
rendering was available in all major browsers. CSS makes it possible to separate
presentation instructions from the HTML content in a separate file or style section
of the HTML file. For each matching HTML element, it provides a list of
formatting instructions. For example, a CSS rule might specify that "all heading 1
elements should be bold", leaving pure semantic HTML markup that asserts "this
text is a level 1 heading" without formatting code such as a<bold> tag indicating
how such text should be displaye

This separation of formatting and content makes it possible to present the same
markup page in different styles for different rendering methods, such as on-screen,
in print, by voice (when read out by a speech-based browser orscreen reader) and
on Braille-based, tactile devices. It can also be used to display the web page
differently depending on the screen size or device on which it is being viewed.
Although the author of a web page typically links to a CSS file within the markup
file, readers can specify a different style sheet, such as a CSS file stored on their
own computer, to override the one the author has specified. If the author or the
reader did not link the document to a style sheet, the default style of the browser
will be applied. Another advantage of CSS is that aesthetic changes to the graphic
design of a document (or hundreds of documents) can be applied quickly and
easily, by editing a few lines in one file, rather than by a laborious (and thus
expensive) process of crawling over every document line by line, changing
markup.

The CSS specification describes a priority scheme to determine which style rules
apply if more than one rule matches against a particular element. In this so-
called cascade, priorities (or weights) are calculated and assigned to rules, so that
the results are predictable.

6.3 MYSQL Server

MySQL is an open-source relational database management


system (RDBMS);[6] in July 2013, it was the world's second most widely used
RDBMS, and the most widely used open-source client–server model RDBMS. It is
named after co-founder Michael Widenius's daughter, My. The SQL acronym
stands for Structured Query Language. The MySQL development project has made
its source code available under the terms of the GNU General Public License, as
well as under a variety of proprietary agreements. MySQL was owned and
sponsored by a single for-profit firm, the Swedishcompany MySQL AB, now
owned by Oracle Corporation. For proprietary use, several paid editions are
available, and offer additional functionality.

6.4 PHP

PHP is a server-side scripting language designed for web development but also
used as a general-purpose programming language. Originally created
by RasmusLerdorf in 1994, the PHP reference implementation is now produced by
The PHP Group. PHP originally stood for Personal Home Page, but it now stands
for therecursive backronym PHP: Hypertext Preprocessor.

PHP code may be embedded into HTML code, or it can be used in combination
with various web template systems, web content management system and web
frameworks. PHP code is usually processed by a PHPinterpreter implemented as
a module in the web server or as a Common Gateway Interface (CGI) executable.
The web server combines the results of the interpreted and executed PHP code,
which may be any type of data, including images, with the generated web page.
PHP code may also be executed with a command-line interface(CLI) and can be
used to implement standalone graphical applications.
The standard PHP interpreter, powered by the Zend Engine, is free
software released under the PHP License. PHP has been widely ported and can be
deployed on most web servers on almost every operating system andplatform, free
of charge.

The PHP language evolved without a written formal specification or standard until
2014, leaving the canonical PHP interpreter as a de facto standard. Since 2014
work has gone on to create a formal PHP specification.

6.5 ANGULAR JAVA SCRIPT

AngularJS (commonly referred to as "Angular" or "Angular.js") is an open-


source web application framework mainly maintained by Google and by a
community of individuals and corporations to address many of the challenges
encountered in developing single-page applications. It aims to simplify both the
development and the testing of such applications by providing a framework for
client-side model–view–controller (MVC) and model–view–viewmodel(MVVM)
architectures, along with components commonly used in rich Internet applications.

The AngularJS framework works by first reading the HTML page, which has
embedded into it additional custom tag attributes. Angular interprets those
attributes as directives to bind input or output parts of the page to a model that is
represented by standard JavaScript variables. The values of those JavaScript
variables can be manually set within the code, or retrieved from static or
dynamic JSON resources.
According to JavaScript analytics service Libscore, AngularJS is used on the
websites of Wolfram Alpha, NBC,Walgreens, Intel, Sprint, ABC News, and
approximately 8,400 other sites out of 1 million tested in July 2015.

AngularJS is the frontend part of the MEAN stack, consisting


of MongoDB database, Express.js web application server framework, Angular.js
itself, and Node.js runtime environment.
CHAPTER 7- SYSTEM STUDY

7.1 FEASIBILITY STUDY

The feasibility of the project is analyzed in this phase and business proposal is
put forth with a very general plan for the project and some cost estimates.
During system analysis the feasibility study of the proposed system is to be
carried out. This is to ensure that the proposed system is not a burden to the
company. For feasibility analysis, some understanding of the major
requirements for the system is essential.

Three key considerations involved in the feasibility analysis are

 ECONOMICAL FEASIBILITY
 TECHNICAL FEASIBILITY
 SOCIAL FEASIBILITY

ECONOMICAL FEASIBILITY

This study is carried out to check the economic impact that the system will
have on the organization. The amount of fund that the company can pour into the
research and development of the system is limited. The expenditures must be
justified. Thus the developed system as well within the budget and this was
achieved because most of the technologies used are freely available. Only the
customized products had to be purchased.
CHAPTER 8-TECHNICAL FEASIBILITY

This study is carried out to check the technical feasibility, that is, the
technical requirements of the system. Any system developed must not have a high
demand on the available technical resources. This will lead to high demands on the
available technical resources. This will lead to high demands being placed on the
client. The developed system must have a modest requirement, as only minimal or
null changes are required for implementing this system.

SOCIAL FEASIBILITY

The aspect of study is to check the level of acceptance of the system by the user.
This includes the process of training the user to use the system efficiently. The user
must not feel threatened by the system, instead must accept it as a necessity. The
level of acceptance by the users solely depends on the methods that are employed
to educate the user about the system and to make him familiar with it. His level of
confidence must be raised so that he is also able to make some constructive
criticism, which is welcomed, as he is the final user of the system.

8.1Non Functional Requirements

Non-functional requirements are the quality requirements that stipulate how


well software does what it has to do. These are Quality attributes of any system;
these can be seen at the execution of the system and they can also be the part of the
system architecture.
8.2 Accuracy:

The system will be accurate and reliable based on the design architecture. If there
is any problem in the accuracy then the system will provide alternative ways to
solve the problem.

8.3 Usability:

The proposed system will be simple and easy to use by the users. The users will
comfort in order to communicate with the system. The user will be provided with
an easy interface of the system.

8.4 Accessibility:
The system will be accessible through internet and there should be no any known
problem.

8.5Performance:
The system performance will be at its best when performing the functionality of
the system.

8.6Reliability:
The proposed system will be reliable in all circumstances and if there is any
problem that will be affectively handle in the design.

8.7Security:
The proposed system will be highly secured; every user will be required
registration and username/password to use the system. The system will do the
proper authorization and authentication of the users based on their types and their
requirements. The proposed system will be designed persistently to avoid any
misuse of the application.
CHAPTER 9-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 and/or a
finished product It is the process of exercising software with the intent of ensuring
that the

Software system meets its requirements and user expectations and does not fail in
an unacceptable manner. There are various types of test. Each test type addresses a
specific testing requirement.

TESTCASE

S.NO SCENARIO INPUT EXPECTED ACTUAL OUTPUT

OUTPUT

1 Admin login Admin will enter Login successfully or Login successfully or


Details email and if incorrect login
password details Login unsuccessfully

“Login
unsuccessfully”

2 View donation Admin will check Admin view donation View all donation
the donation report details details

3 Update Organ Admin add the all the hospital login updated successfully or
Need Request organ details details “updated
unsuccessfully
successfully”
4 Add Doctor for Admin add the all the organ details created successfully or
organ request organ details “created
successfully” unsuccessfully

5 Add Doctor for Admin add the all the organ created successfully or
organ organ collection collection details
details “created unsuccessfully
collection
successfully”

6 Update Admin add the All the details updated successfully or


Hospital hospital “updated
unsuccessfully
location location successfully”
details

7 View user Admin check and Admin view user View division user
details view all user details details
details

8 Add Organ User will add the all the organ donation created successfully or
Donation organ donation details “created
unsuccessfully
successfully”

9 User Login Phone number If correct directed to Login successfully or


and get OTP home page
Login unsuccessfully
otherwise show
“Invalid Login”

10 Add Organ User add the all the Organ Request created successfully or
Organ Request details “created
Request Details unsuccessfully
details successfully”

11 Add new Organ User add the new all the new Organ created successfully or
Organ Request Request details
Request Details unsuccessfully
details “created
successfully”
12 View my Organ User will check User will update Updated successfully or
Request status the Organ Request Complaint Status unsuccessfully
status

13 Doctor login Email and If correct directed to Login successfully or


Password home page
Login unsuccessfully
otherwise show
“Invalid Login”

14 Update Request Doctor update Update status Updated successfully


Status organ Status or unsuccessfully

15 Update organ Admin add the all the doctor login updated successfully or
collection organ collection details “updated
unsuccessfully
successfully”

15 Edit My Profile User can edit and If any changes or Updated successfully
profile user can edit profile or unsuccessfully

TYPES OF TESTS

Unit testing
Unit testing involves the design of test cases that validate that the internal
program logic is functioning properly, and that program inputs produce valid
outputs. All decision branches and internal code flow should be validated. It is the
testing of individual software units of the application .it is done after the
completion of an individual unit before integration. This is a structural testing, that
relies on knowledge of its construction and is invasive. Unit tests perform basic
tests at component level and test a specific business process, application, and/or
system configuration. Unit tests ensure that each unique path of a business process
performs accurately to the documented specifications and contains clearly defined
inputs and expected results.

Integration testing
Integration tests are designed to test integrated software components to
determine if they actually run as one program. Testing is event driven and is more
concerned with the basic outcome of screens or fields. Integration tests
demonstrate that although the components were individually satisfaction, as shown
by successfully unit testing, the combination of components is correct and
consistent. Integration testing is specifically aimed at exposing the problems that
arise from the combination of components.

Functional test
Functional tests provide systematic demonstrations that functions tested are
available as specified by the business and technical requirements, system
documentation, and user manuals.

Functional testing is centered on the following items:

Valid Input : identified classes of valid input must be accepted.

Invalid Input : identified classes of invalid input must be rejected.

Functions : identified functions must be exercised.

Output : identified classes of application outputs must be exercised.

Systems/Procedures: interfacing systems or procedures must be invoked.


Organization and preparation of functional tests is focused on requirements, key
functions, or special test cases. In addition, systematic coverage pertaining to
identify Business process flows; data fields, predefined processes, and successive
processes must be considered for testing. Before functional testing is complete,
additional tests are identified and the effective value of current tests is determined.

System Test
System testing ensures that the entire integrated software system meets
requirements. It tests a configuration to ensure known and predictable results. An
example of system testing is the configuration oriented system integration test.
System testing is based on process descriptions and flows, emphasizing pre-driven
process links and integration points.

White Box Testing


White Box Testing is a testing in which in which the software tester has
knowledge of the inner workings, structure and language of the software, or at least
its purpose. It is purpose. It is used to test areas that cannot be reached from a black
box level.

Black Box Testing


Black Box Testing is testing the software without any knowledge of the inner
workings, structure or language of the module being tested. Black box tests, as
most other kinds of tests, must be written from a definitive source document, such
as specification or requirements document, such as specification or requirements
document. It is a testing in which the software under test is treated, as a black
box .you cannot “see” into it. The test provides inputs and responds to outputs
without considering how the software works.

9.1 Unit Testing:

Unit testing is usually conducted as part of a combined code and unit test
phase of the software lifecycle, although it is not uncommon for coding and unit
testing to be conducted as two distinct phases.

Test strategy and approach


Field testing will be performed manually and functional tests will be written
in detail.

Test objectives
 All field entries must work properly.
 Pages must be activated from the identified link.
 The entry screen, messages and responses must not be delayed.

Features to be tested
 Verify that the entries are of the correct format
 No duplicate entries should be allowed
 All links should take the user to the correct page

9.2 Integration Testing


Software integration testing is the incremental integration testing of two or
more integrated software components on a single platform to produce failures
caused by interface defects.

The task of the integration test is to check that components or software


applications, e.g. components in a software system or – one step up – software
applications at the company level – interact without error.

Test Results: All the test cases mentioned above passed successfully. No defects
encountered.

9.3 Acceptance Testing


User Acceptance Testing is a critical phase of any project and requires
significant participation by the end user. It also ensures that the system meets the
functional requirements.

Test Results: All the test cases mentioned above passed successfully. No defects
encountered.
CHAPTER 10– CONCLUSIONS

So it will be reduced time consuming for public looking for organ donars.
We can implement the system using web application “Organ App”. When there is
urgent need for organ, it may not be possible for people to communicate with the
each and every hospital and blood and organ bank. For that the application can
fulfill their requirements in short time span so that it can overcome the death rate.
Thus the proposed system can help everyone who is need of organ anytime and
anywhere. This system not only used for the blood and organ bank automation
system but also used for organ donation system. This system is very helpful for the
smart city and smart nation purpose.
CHAPTER 11- REFERENCES

[1] N. Adarsh, J. Arpitha, M. D. Ali, N. M. Charan, and P.


G.Mahendrakar.Effective blood bank management based on rfid in real time
systems.In Embedded Systems (ICES), 2014 InternationalConference on, pages
287–290. IEEE, 2014.

[2] L. Bos and K. Donnelly.Snomed-ct: The advanced terminology and coding


system for ehealth. Stud Health Technol Inform, 121:279–290, 2006.

[3] E. Ekanayaka and C. Wimaladharma. Blood bank management system.


Technical Session-Computer Science and Technology & IndustrialInformation
Technology, page 7, 2015.

[4] L. T. Goodnough, M. E. Brecher, M. H. Kanter, and J. P.


AuBuchon.Transfusionmedicineblood transfusion.New EnglandJournal of
Medicine, 340(6):438–447, 1999.

[5] D. M. Harmening. Modern blood banking and transfusion practices.FA Davis,


2012
[6]. Michael Bergman, “The deep Web: surfacing hidden value”. In the Journal Of
Electronic Publishing 7(1) (2001).
[7]. S. Raghavan, H. Garcia-Molina. Crawling the Hidden Web. In: 27th
International Conference on Very large databases (Rome, Italy, September 11-14,
2001) VLDB’01, 129- 138, Morgan Kaufmann Publishers Inc., San Francisco, CA.
[8]. S. W. Liddle, D. W. Embley, D. T. Scott, S. H. Yau. Extracting Data Behind
Web Forms. In: 28th VLDB Conference2002 , HongKong, China.
CHAPTER 11- REFERENCES

[1]. S.Muthuselvan, E.Srividhya, S.R.Miruthula, S. Abdul Samad “Location Based


Orphanage Finder Application for Google Web Phones”, International Jounal of
Pure and Applied Mathematics, Volume 119 No. 16 2018, 2009-2015.

[2]. M.Archana, K.Mouthami, “Charity Connecting System”, IJLTEMAS, Volume


III, Issue VII, July 2014.

[3]. www.projecthope.org/Volunteering/India

[4].www.annakshetra.org

[5]. www.epa.gov/recycle/reducing-wasted-food-home

[6].www.indiaactivities.com/caring-activities/donate-leftover-excess-food/

[7].Www.http://thecsrjournal.in/food-wastage-in-india-a-serious-concern/

[8].http://www.chennaispider.com/resources/3071-Chennai-Orphanage-List.aspx

[9].http://www.tamilspider.com/resources/8120-list-of-old-age-homes-in-chennai-
tamilnadu.aspx

[10].https://play.google.com/store/apps/details?id=com.helpinghands

[11]. https://play.google.com/store/apps/details?id=help.jeevithavijay.com.carein.

[12]. omal Mandal ,Swati Jadhav, Kruti Lakhani, "Food Wastage Reduction
through Donation using Modern Technological Approach: Helping Hands",
Volume 5, Issue 4, April 2016

CHAPTER 12- CODING

INDEX.HTML
<!DOCTYPE html>

<html ng-app="myapp">

<head>

<!-- Basic -->

<meta charset="utf-8">

<meta name="keywords" content="HTML5 Template" />

<meta name="description" >

<meta name="author" content="pixelgeeklab.com">

<!-- Mobile Metas -->

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


scale=1.0">

<!-- Web Fonts -->

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

<link rel="stylesheet" href="fonts/font.css">

<!-- Vendor CSS -->


<link rel="stylesheet" href="vendor/fontawesome/css/font-
awesome.css">

<link rel="stylesheet" href="vendor/owlcarousel/owl.carousel.css"


media="screen">

<link rel="stylesheet" href="vendor/owlcarousel/owl.theme.css"


media="screen">

<link href="vendor/owl-carousel/owl.transitions.html"
rel="stylesheet" media="screen">

<link rel="stylesheet" href="vendor/flexslider/flexslider.css"


media="screen">

<link rel="stylesheet" href="vendor/chosen/chosen.css"


media="screen">

<link rel="stylesheet" href="vendor/magnific-popup/magnific-


popup.css" media="screen">

<!-- Theme CSS -->

<link rel="stylesheet" href="css/theme.css">

<link rel="stylesheet" href="css/theme-animate.css">

<!-- Style Switcher-->


<!-- Head libs -->

<script src="vendor/modernizr/modernizr.js"></script>

<!--[if IE]>

<link rel="stylesheet" href="css/ie.css">

<![endif]-->

<!--[if lte IE 8]>

<script src="vendor/respond/respond.js"></script>

<script src="vendor/excanvas/excanvas.js"></script>

<![endif]-->

<style>

.container {

background-color: #0b2239;

position:relative;

margin-top:100px;

}
.row{

margin-left:50px;

margin-right:50px;

text-align:center;

.login p{

position:relative;

text-align:center;

font-size:30px;

color:#ffffff;

p{

position:relative;

text-align:center;

font-family:'Quicksand';

font-size:35px;

color:#ffffff;

font-weight:200;
}

h2{

position:relative;

text-align:center;

font-size:30px;

color:#ffffff;

font-weight:200;

h3{

text-align:center;

font-size:80px;

color:#ffffff;

font-weight:200;

img{

align:middle;

</style>
<!-- script back button -->

<script src="cordova.js"></script>

<script>

function onLoad()

document.addEventListener("deviceready", deviceReady,
false);

function deviceReady()

document.addEventListener("backbutton",
backButtonCallback, false);

function backButtonCallback()

navigator.app.exitApp();

</script>
<!-- angular js -->

<script src="js/angular-1.3.js"></script>

<script src="js/angular_cookies.js"></script>

</head>

<body >

<div class="container">

<h2>Criminal Identification App</h2>

<div class="row">

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

</div>

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

<img
style="margin-left:100px;"class="img-responsive" src="images/logo.png">
<a href="user_login.html"> <button
style="width:50%;background-color:#4fd8c6;font-weight:bold;color:#000;letter-
spacing:1px">User Login</button> </a> <br><br>

<a href="user_register.html"><button
href="user_register.html" style="width:50%;background-color:#4fd8c6;font-
weight:bold;color:#000;letter-spacing:1px">User Register</button> </a><br><br>

<a href="admin_login.html"><button
href="admin_login.html" style="width:50%;background-color:#4fd8c6;font-
weight:bold;color:#000;letter-spacing:1px">Admin</button> </a><br>

</div>

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

</div>

</div>

</div>

<script src="vendor/jquery/jquery.js"></script>

<script src="vendor/bootstrap/bootstrap.js"></script>

<script src="vendor/jquery.validation/jquery.validation.js"></script>
<script src="vendor/owlcarousel/owl.carousel.js"></script>

<script src="vendor/flexslider/jquery.flexslider-min.js"></script>

<script src="vendor/countdown/countdown.min.js"></script>

<script src="vendor/chosen/chosen.jquery.min.js"></script>

<script src="vendor/pricefilter/jquery.pricefilter.js"></script>

<script src="vendor/masonry/imagesloaded.pkgd.min.js"></script>

<script src="vendor/masonry/masonry.pkgd.min.js"></script>

<script src="vendor/uikit/uikit.js"></script>

<script
src="vendor/magnific-popup/jquery.magnific-popup.js"></script>

<!-- Theme Base, Components and Settings -->

<script src="js/theme.js"></script>

<!-- Style Switcher -->

<script type="text/javascript"
src="style-switcher/js/switcher.js"></script>

<!-- angular js -->

<script src="js/angular_product.js"></script>
<body onload="onLoad()">

</body>

</html>

ANGULAR_USER.JS

var app = angular.module("myapp", ['ngCookies']);

app.controller("myappCtrl", function($scope, $cookieStore, $cookies, $http)

/
******************************************************************
**********/

/************************** User Login


*************************************/

/
******************************************************************
**********/

// sign in button

$scope.user_login = function()

$http.post('user_login.php',

{'email': $scope.email, 'password':$scope.password})


.success(function(data, status, headers, config)

if(data.success == 1)

alert("Login Successful");

$cookieStore.put("cook_user_email",data.email);

window.location = "home.html"; // Home Page

return;

else if(data.success == 2)

alert("Please Fill All Fields");

else

alert("Login Unsuccessful");

});

}
/************************** Cookies
**********************************/

$scope.cook_user_email = $cookieStore.get("cook_user_email");

/
******************************************************************
**********/

/************************** User Logout


************************************/

/
******************************************************************
**********/

$scope.user_logout = function()

if(confirm("Are You Sure?"))

$cookies.cook_user_email = "";

$cookies.cook_admin_email = "";
window.location = "index.html";

return;

else

return false;

//************************** admin_register
**********************************/

$scope.user_register = function()

$http.post('user_register.php',{

'name':$scope.name,'email':$scope.email,'password':
$scope.password,

'mobile': $scope.mobile,'field_1': $scope.field_1,'field_2':


$scope.field_2,

'field_3': $scope.field_3,'field_4': $scope.field_4 })


.success(function(data, status, headers, config)

if(data.success == 1)

alert("Registered successfully");

window.location = "user_login.html";

return;

else if(data.success == 2)

alert("Please Fill All Fields");

else if(data.success == 0)

alert("Error");

else

alert(" Un Successfull");
}

});

/
******************************************************************
**********/

/************************** Admin Login


*************************************/

/
******************************************************************
**********/

// sign in button

$scope.admin_login = function()

$http.post('admin_login.php',

{'email': $scope.email, 'password':$scope.password})

.success(function(data, status, headers, config)

if(data.success == 1)

{
alert("Login Successful");

$cookieStore.put("cook_admin_email",data.email);

window.location = "admin_home.html"; // Home Page

return;

else if(data.success == 2)

alert("Please Fill All Fields");

else

alert("Login Unsuccessful");

});

/************************** Cookies Login


**********************************/

$scope.cook_admin_email = $cookieStore.get("cook_admin_email");
//************************** admin_register
**********************************/

$scope.admin_register = function()

$http.post('admin_register.php',{

'name':$scope.name,'email':$scope.email,

'password':$scope.password,'mobile': $scope.mobile})

.success(function(data, status, headers, config)

if(data.success == 1)

alert("Registered successfully");

window.location = "admin_login.html";

return;

else
{

alert("Invalid Inputs");

});

/************************** Update Admin Info


**********************************/

$http.post('get_admin_info.php')

.success(function(data, status, headers, config)

if(data.success == 1)

$scope.details = data.details;

});

/************************** Update User Info


**********************************/
$http.post('get_user_info.php',

'email':$scope.cook_user_email

})

.success(function(data, status, headers, config)

if(data.success == 1)

$scope.userdetails = data.details;

});

/
******************************************************************
**********/

/************************** User Login


*************************************/

/
******************************************************************
**********/
$scope.myinfovar = true;

/
******************************************************************
**********/

/************************** Admin Update Login


*************************************/

/
******************************************************************
**********/

$scope.update_info = function(email,password,name,mobile)

$scope.myinfovar = false;

$scope.email = email;

$scope.password = password;

$scope.name = name;

$scope.mobile = mobile;

//window.location = "home.html";

}
$scope.save_info = function()

$http.post('admin_update.php',{

'name':$scope.name,'email':$scope.email,

'password':$scope.password,'mobile': $scope.mobile})

.success(function(data, status, headers, config)

if(data.success == 1)

alert("Submited successfully");

window.location = "admin_post_info.html";

return;

else

alert("Invalid Inputs");

});
}

/
******************************************************************
**********/

/************************** User Login


*************************************/

/
******************************************************************
**********/

// sign in button

$scope.newpassword = function()

$http.post('newpassword.php',

{ 'email': $scope.email, 'password':$scope.password,

'field_3': $scope.field_3, 'field_4':$scope.field_4

})

.success(function(data, status, headers, config)

if(data.success == 1)
{

alert("Password Reset Successful");

window.location = "index.html"; // Home Page

return;

else if(data.success == 2)

alert("Please Fill All Fields");

else

alert("Login Unsuccessful");

});

}
});

You might also like