Organ New Full Doc PHP
Organ New Full Doc PHP
Organ New Full Doc PHP
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.
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.
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.
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 “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 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
The system is proposed to have the following modules: This app enhanced
level of categories for Bus Pass App.
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
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.
User
View my donation
User once can added an organ then if any details modified means
check their details of organ donation.
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
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.
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.
login
add organ
view doctor
admin
manage organ donation
view my donation
user
My profile
doctor login
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
1 : register, login()
3 : view my donation()
7 : my profile()
8 : login()
10 : organ collection()
11 : login()
12 : add doctor()
13 : view doctor()
Id Username Password
Primary Key Varchar Varchar
100 100 100
Hospital details
Donor Details
Admin Login
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
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
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.
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.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.
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.
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.
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.
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
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
OUTPUT
“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”
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”
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
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.
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.
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 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
Test Results: All the test cases mentioned above passed successfully. No defects
encountered.
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
[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
INDEX.HTML
<!DOCTYPE html>
<html ng-app="myapp">
<head>
<meta charset="utf-8">
<link href="vendor/owl-carousel/owl.transitions.html"
rel="stylesheet" media="screen">
<script src="vendor/modernizr/modernizr.js"></script>
<!--[if IE]>
<![endif]-->
<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">
<div class="row">
</div>
<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>
</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>
<script src="js/theme.js"></script>
<script type="text/javascript"
src="style-switcher/js/switcher.js"></script>
<script src="js/angular_product.js"></script>
<body onload="onLoad()">
</body>
</html>
ANGULAR_USER.JS
/
******************************************************************
**********/
/
******************************************************************
**********/
// sign in button
$scope.user_login = function()
$http.post('user_login.php',
if(data.success == 1)
alert("Login Successful");
$cookieStore.put("cook_user_email",data.email);
return;
else if(data.success == 2)
else
alert("Login Unsuccessful");
});
}
/************************** Cookies
**********************************/
$scope.cook_user_email = $cookieStore.get("cook_user_email");
/
******************************************************************
**********/
/
******************************************************************
**********/
$scope.user_logout = function()
$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,
if(data.success == 1)
alert("Registered successfully");
window.location = "user_login.html";
return;
else if(data.success == 2)
else if(data.success == 0)
alert("Error");
else
alert(" Un Successfull");
}
});
/
******************************************************************
**********/
/
******************************************************************
**********/
// sign in button
$scope.admin_login = function()
$http.post('admin_login.php',
if(data.success == 1)
{
alert("Login Successful");
$cookieStore.put("cook_admin_email",data.email);
return;
else if(data.success == 2)
else
alert("Login Unsuccessful");
});
$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})
if(data.success == 1)
alert("Registered successfully");
window.location = "admin_login.html";
return;
else
{
alert("Invalid Inputs");
});
$http.post('get_admin_info.php')
if(data.success == 1)
$scope.details = data.details;
});
'email':$scope.cook_user_email
})
if(data.success == 1)
$scope.userdetails = data.details;
});
/
******************************************************************
**********/
/
******************************************************************
**********/
$scope.myinfovar = true;
/
******************************************************************
**********/
/
******************************************************************
**********/
$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})
if(data.success == 1)
alert("Submited successfully");
window.location = "admin_post_info.html";
return;
else
alert("Invalid Inputs");
});
}
/
******************************************************************
**********/
/
******************************************************************
**********/
// sign in button
$scope.newpassword = function()
$http.post('newpassword.php',
})
if(data.success == 1)
{
return;
else if(data.success == 2)
else
alert("Login Unsuccessful");
});
}
});