You are on page 1of 92

lOMoARcPSD|29289883

Php Peoject - this is an php project for online food delivery


system
computer science (Lovely Professional University)

Studocu is not sponsored or endorsed by any college or university


Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)
lOMoARcPSD|29289883

FOOD DELIVERY SYSTEM


Project report submitted in partial fulfillment of the requirement for the
award of the Degree of

Bachelor of Computer Application

Submitted by:-
Name:- Abhishek Balan
Roll No:- 20500011
Enrollment No:- 2019/39780
Session: - 2021-22
Under the supervision of
Prof. Rakesh Kumar
Assistant Professor of CS/IT

Seth Gyaniram Bansidhar Podar College


(Run by The Anandilal Podar Trust, Nawalgarh)
Rambilas Podar Road, Nawalgarh (Jhunjhunu), Rajasthan, India

Pandit Deendayal Upadhyaya Shekhawati University, Sikar

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

i.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

Student Declaration

This is to certify that the Project Report on “ Food Delivery


System ” and submitted by Mr. Abhishek Balan under the
supervision of Mr. Rakesh Kumar Enrollment No. 2019/39780
for award of B.C.A Degree of the University carried out during
the period of 12/12/2021 to 12/06/2022 embodies my original
work and has not formed the basis for the award of any degree
of our college in last two session.

Signature in full:
Name in block letters: ABHISHEK BALAN
Enrollment No: 2019/39780

Date : 25/07/2022
ii.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

Acknowledgement

I would like to express my deep and sincere gratitude to my


supervisor, Mr. Rakesh Kumar , his wide knowledge and
logical way of thinking have been of great value for me. His
understanding, encouraging and personal guidance have
provided good basis for the present report.

I am forever indebted to my parents and brothers for extending


enthusiastic moral support to me. Their ideas and concepts have
had a remarkable influence on my entire career in the field of
work. Without encouragement & understanding from all above,
it would have been impossible for motto finish this work.

ABHISHEK BALAN

iii.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

PREFACE

Seminar Presentation forms an integral component of any


professional course. The institute where we pursue out studies
cannot provide that practical knowledge on all aspects of
learning. Often the study of a subject is said to be incomplete
until the student has been exposed to its practical aspects. The
theoretical studies provide the pools of knowledge whereas the
practical application make agile and competent.
As the important part of the Post Graduate
curriculum, each student has to undergo through the Seminar
Presentation. This B.C.A course Seminar helps a student in
getting acquainted with the manner in which his/her knowledge
is being practically. Normally different for what he/she
knowledge. He/She finds an abrupt change. This is exactly why
this seminar session during the B.C.A curriculum becomes all
the more important .
Seminar presentation is prescribed for the student of
Technical College as a part of the two year degree of B.C.A by
Pandit Deendayal Upadhyaya Shekhawati University. We are
required to give the presentation on any of the current topics or
technology.

iv.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

INDEX
S.r. no. Content Page No.
1 Introduction of PHP 1-4

2 Objective & Scope of the Project 5-6

3 System Analysis & Design 7-17

3.1 System Analysis 7-10


3.2 System Planning 11-13
3.3 Project System Specification 14
3.4 System Maintenance 15-16

4 Coding 17-75

5 Database 76-78

6 Snapshots 79-81

7 Conclusion 82

8 Future Scope of the Application 83

9 Bibliography 84

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

INTRODUCTION OF PHP

 What is PHP

PHP, or Hypertext Preprocessor, is a programming language that allows


for the user to have more control over the HTML that makes up a web
page. PHP allows for many more functions than HTML does, such as
DIV table, login functions and graphical displays. PHP was originally
known as Personal Home Page, which describes the purpose of the
language. PHP works alongside HTML within the same document which
allows for users to organize and display information within a web
browser much easier than other programming languages. PHP is easy to
learn and allows for users to make web page look and behave exactly as
they want it to.

 History of PHP

 In 1994 the development of PHP was started by Rasmus Lerdorf.


 On June 8, 1995, it was released publicly.
 In 1997, Zeev Suraski and Andi Gutmans rewrote the parser.
 In 1998, PHP 3 was officially producing the Zend Engine.
 On May 22, 2004, PHP 4 was released and it was Powered by
Zend engine 1.0

2.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

 Different features of PHP

1. Open source, free to download and use.


2. Cross platform.
3. Compatible with any server.
4. Supports popular database.
5. Easy to learn.

 Data types supported by PHP

Following data types are supported by PHP:

 Integer: It is stored assigned integers with 32 bits.


 Float: It is stored as IEEE floating point number with 64 bits.
 String: It is a sequence of 8-bit characters.
 Boolean: It has two literal values: ‘true’ and ‘false’.
 Array: It stores an ordered map of pairs of class.
 Resource: It is for storing file handling, or database connection.
 Null: It has only value null.

Easy To Read
PHP is preferred among users because it is easy to read and understand.
Many programming languages are complex and intimidating to new
users while PHP is organized, clean, and fluent. PHP documents do not
have to necessarily be in any order which allows for users to quickly add
new functions whenever they want without having to make sure that the
new code is in the correct place. This is excellent for users who have

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

3.

long scripts for many of their pages, especially for style sheets and
reference documents.

Easy To Edit
PHP is also easy to edit as a user is able to quickly scan a PHP document
for the code that they are looking for the change it to suit their needs.
Many other Programming languages require that you change multiple
functions within several documents in order to do the same thing that
PHP can. PHP documents can also be easily integrated into a collection
of other PHP documents or individual PHP commands. This allows for
users to take full advantage of their programming skills and computer
experience as they can write their own PHP scripts and extensions
without having to handle a large amount of file cleaning. Another reason
that PHP is preferred among users is that it is entirely free. While many
other programming languages require that the user obtains expensive
programs and pays for support files, PHP is open to anyone, anywhere,
and any time. A beginner in PHP does not have to worry about finding
support for their interest in programming and web design as there is an
entire online community dedicated to assisting others in PHP
manipulation and implementation. PHP is also aided by many large
companies that contribute to its success on a daily basis.

More Control
PHP offers more control over web browsers than other programming
languages do. Many other Programming languages require large scripts
to do simple tasks while PHP can do the same thing with a few lines of

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

code. PHP allows user to design web pages to their exact specifications
and it can even be used alongside other programming languages to

4.

perform a wider variety of tasks. When using PHP, the user can stop
focusing on programming and concentrate more on designing their
website.

Better Performance
PHP has better performance ratings than other programming languages
do. PHP is fast, and works great in almost any web browser as well as
integrating into almost any server. A user is able to add a few lines of
code to a PHP document, click save, and watch their website transform
into a more powerful and more organized version of itself. PHP
documents are high in demand because they compete with almost all
other programming languages available. PHP is also quickly growing in
its capabilities and offers more features as well as better operating
standards every day.

PHP is Widely Available

As PHP has become such a success on the open market, it is very


difficult to come across a web server that does not support PHP
document. Users can also take satisfaction in that both individual PHP
tags as well as entire PHP documents can be found on the Internet at no
cost. Thousands of these predefined PHP commands are available
around every virtual corner and even those predefined documents can
easily be edited to suit the user’s unique needs.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

5.

 OBJECTIVE AND SCOPE

Nowadays everyone is having a busy schedule whether it is urban areas


or rural. But talking specifically about the urban areas and deeply about
the big cities, people out there are so busy in their life that they don’t get
enough time to have their meals properly. These days women are no less
than men, in any field.

So, in big cities even wives are working women, therefore mostly the
small families manage to have their food ordered from somewhere, as
they lack time. Not only this is the case, if we talk about the children in
the modern era, they like only fast food or something from the outside.
But they ignore eating homemade meals.

So, the food ordering system these days has one of the fastest-growing
markets, though being a new idea. In this project, we have developed
something like the same to learn from and serve the nation in a much
better way possible. Nowadays, people are more regular to dine-in at the
restaurant for their meals.

The online food ordering system provides convenience for the customers
that are nothing special but the general busy people of the society. It
overcomes the demerits of the manual hotel or mess system and the old-
fashioned queuing system. This system enhances the ready-made foods
that people.

Therefore, this system enhances the speed of getting food on a person’s


plate and the quality and manner of taking the order from the customer.
It provides a better communication platform. The user’s details are
stored using electronic media. The online food ordering system provides
the menu online and the customers can easily place the order by just
clicking the mouse or by touching a button on their smartphones.
Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)
lOMoARcPSD|29289883

Also, with the food ordering system online, people can easily track their
orders, and the admin can maintain the customer’s database and advance

6.

the food delivery system. This food ordering system allows the user to
select the desired food items from a list of available menu items
provided by the local hotel or restaurant.

The user can place orders for the food items of their like from the list.
The payment can be made online or pay-on-delivery system. The user’s
details are maintained confidentially because it maintains a separate
account for each user. An id and password are provided for each user.

And several encryption techniques have also been used on the server-
side to protect the card details. Therefore, it provides a more secure and
safe ordering system.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

7.

 SYSTEM ANALYSIS AND DESIGN

SYSTEM ANALYSIS

Requirement analysis is a software engineering task that bridges the gap


between system level requirements engineering and software design.
Requirements engineering activities result in the specification of
software’s operational characteristics (function, data and behavior)
indicate software’s interface with other elements, and establish
constraints that software must meet. The most commonly used
requirements technique is to conduct a meeting or interview.
The first meeting between a software engineer (the analyst) and the
customer can be likened to the awkwardness of a first date between two
adolescents. Neither person knows what to say or ask; both are worried
that they do say will be misinterpreted; both are thinking about where it
might lead (both likely have radically different expectations here); both
want to get the thing over with, but at the same time, both want it to be a
success.
Gause and Weinberg suggest that the analyst start by asking
CONTEXT – FREE QUESTIONS. That is, a set of questions that will
lead to a basic understanding of the problem, the people who want a
solution, the nature of the solution that is desired, and the effectiveness
of the first encounter itself. The goal of the requirement’s gathering
activity is to collect all relevant information from the customer regarding
the product to be developed with a view to clearly understanding the
customer requirements.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

8.
Design Pattern :-

This software based on concept of the Model View Controller (MVC)


design pattern. View renders the data from the Model in response to the
request made to the model by controlled events made by user
interaction.

Model View Controller is a design approach to separate the application


object model form GUI, originally around 80s. Then later on it has
become a widely accepted common design pattern. The main objective
behind this pattern is to decouple the view of the data (presentation
layer) from the actual data processing so that the same model can be
used for various views. This is achieved by using three different types of
objects that interact with each other on loosely coupled manner with
their discreet set of tasks.
These three objectives are known as Model, View and Controller.

VIEW :-
View is the graphical data presentation (outputting) irrespective of the
real data processing. View is the responsible for look and feel, some
custom formatting, sorting etc. View is completely isolated from actual
complex data operations. For example, Online product catalog view is
completely separated from database connection, query, tables etc. It
simply gets final row-data from the model and puts some cosmetics and
formatting before displaying it in browser. View provides interface to
interact with the system. The beauty of MVC approach is that it supports
any kind of view, which is challenging in today’s distributed and multi-
platform environment.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

9.
MODEL :-
Model is responsible for actual data processing, like database
connection, querying database, implementing business rules etc. It feeds
data to the view without worrying about the actual formatting and look
and feel.
Data provided by the Model is displayed-neutral so it can be interfaced
with as many views without code redundancy; this eases your code
maintenance and reduces bugs and allows code-reuse at good extent.
Model responds to the request made by controllers and notifies the
registered views to update their display with new data.

SADM Diagrams :-

Inves琀椀gate
Current System

Business System
Op琀椀ons (BSOs)

Requirement
Speci昀椀ca琀椀on

Technical System
Op琀椀ons (TSOs)

Logical Design

Physical Design

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

10.

 CONTROLLER

Controller is responsible for Notice of action. Controller responds to the


mouse or keyboard input to command model and view to change.
Controllers are associated with views. User interaction triggers the
events to change the model, which in turn calls some methods of model
to update its state to notify other registered views to refresh their display.

 Benefits

Following are the few of the benefits of MVC design pattern.


 Since MVC handles the multiple views using the same enterprise
model it is easier to maintain, test and upgrade the multiple system.
 It will be easier to add new clients just by adding their views and
controllers.
 Since the model is completely decoupled from view it allows lot of
flexibilities to design and implement the model considering
reusability and modularity. This model also can be extended for
further distributed application.
 It is possible to have development process in parallel for model,
view and controller.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

11.

 SYSTEM PLANNING

PROJECT EVALUATION AND REVIEW TECHNIQUE

INTRODUCTION :
Software project managers take the overall responsibility of steering a
project to success. This surely is a very hazy job description. But it is
very difficult to objectively describe the job responsibilities of a project
manager.

 WORK BREAKDOWN STRUCTURE

Work breakdown structure is used to decompose a given task set


recursively into small activities. WBS provides a notation for
representing the major tasks needed to be carried out in order to solve a
problem. The root of the tree is labeled by the problem name. Each node
of the tree is broken down into smaller activities that are made the
children of the node. Each activity is recursively decomposed into
smaller sub-activities until at the leaf level; the activities require approx.
two weeks to develop. If a task is broken down into a large number of
very small activities, these can be distributed to a large number of
engineers. If the activity ordering permits, the solutions to these can be
carried out independently. Thus, it becomes possible to develop the
product faster. The following figure represents the WBS of application
software:

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

12.

Applica琀椀on So昀琀ware

Requirements Design Code Test Document


Speci昀椀ca琀椀ons

Database Graphical User Database Graphical User


Part Interface part Part Interface part

 ANALYSIS

 CONCEPTION
CONCEPTION INITIATION
COMMUNICATION WITH EXPERTS TO UNDERSTAND
REQUIREMENTS

 REQUIREMENT ANALYSIS

FUNCTIONAL REQUIREMENT ANALYSIS


SCENARIO DEVELOPMENT
FUNCTIONAL MODELING

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

13.
 DATA ANALYSIS

PRESISTENCY REQUIREMENT

 PERFORMANCE ANALYSIS

LOAD REQUIREMENT
RESPONSE TIME REQUIREMENT

 TESTING

TESTING OF TESTING PROGRAMS


MECHANISMS TESTING
UNIT TESTING
MODULE TESTING
DATA FLOW TESTING
ALGORITHM COMPLIANCE TESTING
STRESS TESTING
ROBUSTNESS TESTING

 DEPLOYMENT

EXECUTABLE CREATION
SET UP CREATION
DEPLOYMENT TO STORAGE MEDIA

 DOCUMENTATION

USER MANUAL DEVELOPMENT


PROJECT REPORT DEVELOPMENT

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

14.
 PROJECT SYSTEM SPECIFICATION

The system specification is the final work produced by the system and
requirements engineer. It serves as the foundation for hardware
engineering, software engineering, database engineering and human
engineering.
Once requirements have been gathered explore each requirement in
relationship to others, examine requirements for consistency, omissions
and ambiguity.

Hardware Specification :
It is recommended that the minimum configuration for clients is as
appended below:-
Suggested Configuration of Windows clients:-
Microprocessor : Intel dual core class processor, 450 megahertz
Ram : 1 gigabytes (GB) on installation drive, which
Includes 500 MB on system drive.
DVD ROM Drive : 52 X DVD Drive
Software Specifications
Operating System : Windows 2000XP/Windows 2000NT/ windows7
Display Minimum : 800 X 600 256 colors.
Best Resolution : 1024 X 768 High Color – 16-bit.
Server : Xampp.
Web Browser : Internet Explorer, Google Chrome, Mozilla Firefox.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

15.
 SYSTEM MAINTENANCE

System maintenance denotes any changes made to a software product


after it has been delivered to the customer. Maintenance is inevitable for
almost any kind of product. However, most products need maintenance
due to the wear and tear caused by use. On the other hand, software
products do not need maintenance on this count, but need maintenance
to correct errors, enhance features, port to new platforms, etc.
Software maintenance is becoming an important activity of large
number of organizations. This is no surprise, given the rate of hardware
obsolescence, the immortality of a software product per se, and the
demand of the user community to see the existing software products run
on newer platforms, run in newer environments, and/or with enhanced
features. When the hardware platform changes and a software product
perform some low-level functions, maintenance is necessary. Also,
whenever the support environment of a software product requires re-
work to cope with the newer interface. Thus, every software product
continues to evolve after its development through maintenance efforts.
Maintenance covers a wide range of activities including correcting,
coding and designing errors, updating documentation and test data and
upgrading user support. Enhancement means adding, modifying or re-
developing the code to support changes in the specifications. It is
necessary to keep up with the changing user needs and the operational
environment. The software is designed with the view of easy updating to
the software. Future advancements can be done easily through the
review of product. The software architecture is strong enough to provide
enhancement in functionality, performance and reliability. Functions in
the software are designed in such a way that they dynamically update on
addition of new and revised modules. To append new features on this
software, the database for student details, examination details are
sufficient enough for the task. Thus, the software is capable enough of
being enhanced easily whenever requires by the user.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

16.
MAINTENANCE PROCESS MODEL

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

17.

CODING

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

18.

 login.php(Login page)

<?php session_start() ?>


<div class="container-fluid">
<form action="" id="login-frm">
<div class="form-group">
<label for="" class="control-label">Email</label>
<input type="email" name="email" required=""
class="form-control">
</div>
<div class="form-group">
<label for="" class="control-label">Password</label>
<input type="password" name="password" required=""
class="form-control">
<small><a href="javascript:void(0)"
id="new_account">Create New Account</a></small>
</div>
<button class="button btn btn-info btn-sm">Login</button>
</form>
</div>

<style>
#uni_modal .modal-footer{
display:none;
}

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

19.
</style>
<script>
$('#new_account').click(function(){
uni_modal("Create an Account",'signup.php?
redirect=index.php?page=checkout')
})
$('#login-frm').submit(function(e){
e.preventDefault()
$('#login-frm
button[type="submit"]').attr('disabled',true).html('Logging in...');
if($(this).find('.alert-danger').length > 0 )
$(this).find('.alert-danger').remove();
$.ajax({
url:'admin/ajax.php?action=login2',
method:'POST',
data:$(this).serialize(),
error:err=>{
console.log(err)
$('#login-frm
button[type="submit"]').removeAttr('disabled').html('Login');
},
success:function(resp){
if(resp == 1){
location.href ='<?php echo
isset($_GET['redirect']) ? $_GET['redirect'] : 'index.php?page=home' ?
>';

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

20.

}else{
$('#login-frm').prepend('<div class="alert
alert-danger">Email or password is incorrect.</div>')
$('#login-frm
button[type="submit"]').removeAttr('disabled').html('Login');
}
}
})
})
</script>

 Signup.php (sign up page)

<?php session_start() ?>


<div class="container-fluid">
<form action="" id="signup-frm">
<div class="form-group">
<label for="" class="control-label">Firstname</label>
<input type="text" name="first_name" required=""
class="form-control">
</div>
<div class="form-group">
<label for="" class="control-label">Email</label>

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

21.
<input type="text" name="last_name" required="" class="form-
control">
</div>
<div class="form-group">
<label for="" class="control-label">Contact</label>
<input type="text" name="mobile" required=""
class="form-control">
</div>
<div class="form-group">
<label for="" class="control-label">Address</label>
<textarea cols="30" rows="3" name="address"
required="" class="form-control"></textarea>
</div>
<div class="form-group">
<label for="" class="control-label">Email</label>
<input type="email" name="email" required=""
class="form-control">
</div>
<div class="form-group">
<label for="" class="control-label">Password</label>
<input type="password" name="password" required=""
class="form-control">
</div>
<button class="button btn btn-info btn-sm">Create</button>
</form>
</div>

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

22.
<style>
#uni_modal .modal-footer{
display:none;
}
</style>
<script>
$('#signup-frm').submit(function(e){
e.preventDefault()
$('#signup-frm
button[type="submit"]').attr('disabled',true).html('Saving...');
if($(this).find('.alert-danger').length > 0 )
$(this).find('.alert-danger').remove();
$.ajax({
url:'admin/ajax.php?action=signup',
method:'POST',
data:$(this).serialize(),
error:err=>{
console.log(err)
$('#signup-frm
button[type="submit"]').removeAttr('disabled').html('Create');
},
success:function(resp){
if(resp == 1){
location.href ='<?php echo
isset($_GET['redirect']) ? $_GET['redirect'] : 'index.php?page=home' ?
>';
Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)
lOMoARcPSD|29289883

23.

}else{
$('#signup-frm').prepend('<div class="alert
alert-danger">Email already exist.</div>')
$('#signup-frm
button[type="submit"]').removeAttr('disabled').html('Create');
}
}
})
})
</script>

 db_connection.php (Connection for login batabase)

<?php
$conn= new mysqli('localhost','root','','fos_db')or die("Could not connect
to mysql".mysqli_error($con));
?>

 Home.php (php for home button)

<!DOCTYPE html>
<html lang="en">
<head>
<title>Home</title>

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

<style>

24.
.custom-menu {
z-index: 1000;
position: absolute;
background-color: #ffffff;
border: 1px solid #0000001c;
border-radius: 5px;
padding: 8px;
min-width: 13vw;
}
a.custom-menu-list {
width: 100%;
display: flex;
color: #4c4b4b;
font-weight: 600;
font-size: 1em;
padding: 1px 11px;
}
span.card-icon {
position: absolute;
font-size: 3em;
bottom: .2em;

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

color: #ffffff80;
}

25.
.file-item{
cursor: pointer;
}
a.custom-menu-list:hover,.file-item:hover,.file-item.active {
background: #80808024;
}
a.custom-menu-list span.icon{
width:1em;
margin-right: 5px
}
.candidate {
margin: auto;
width: 23vw;
padding: 0 10px;
border-radius: 20px;
margin-bottom: 1em;
display: flex;
border: 3px solid #00000008;
background: #8080801a;
}

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

.candidate_name {
margin: 8px;
margin-left: 3.4em;

26.
margin-right: 3em;
width: 100%;
}
.img-field {
display: flex;
height: 8vh;
width: 4.3vw;
padding: .3em;
background: #80808047;
border-radius: 50%;
position: absolute;
left: -.7em;
top: -.7em;
}
.candidate img {
height: 100%;
width: 100%;
margin: auto;
border-radius: 50%;

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

}
.vote-field {
position: absolute;
right: 0;

27.
bottom: -.4em;
}
</style>
</head>
<body>
<div class="containe-fluid">
<div class="row">
<div class="col-lg-12">
</div>
</div>
<div class="row mt-3 ml-3 mr-3">
<div class="col-lg-12">
<div class="card">
<div class="card-body">
<?php echo "Welcome back ".
$_SESSION['login_name']."!" ?>
</div>
</div>
</div>

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

</div>
</div>
</div>
</body>

28.
 about.php (About page)

<!DOCTYPE html>
<html lang="en">
<head>
<title>About</title>
</head>
<body>
<header class="masthead">
<div class="container h-100">
<div class="row h-100 align-items-center justify-content-
center text-center">
<div class="col-lg-10 align-self-end mb-4"
style="background: #0000002e;">
<h1 class="text-uppercase text-white font-weight-
bold">About Us</h1>
<hr class="divider my-4" />
</div>
</div>

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

</div>
</header>
<section class="page-section">
<div class="container">

29.
<?php echo html_entity_decode($_SESSION['setting_about_content'])
?>
</div>
</section>
</body>
</html>

 Cart_list.php (Cart page)

<!DOCTYPE html>
<html lang="en">
<head>
<title>Cart_list</title>
</head>
<body>
<header class="masthead">
<div class="container h-100">

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

<div class="row h-100 align-items-center justify-content-


center text-center">
<div class="col-lg-10 align-self-end mb-4 page-title">
<h3 class="text-white">Cart List</h3>
<hr class="divider my-4" />
</div>

30.
</div>
</div>
</header>
<section class="page-section" id="menu">
<div class="container">
<div class="row">
<div class="col-lg-8">
<div class="sticky">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-8"><b>Card</b></div>
<div class="col-md-4 text-right"><b>Total</b></div>
</div>
</div>
</div>
</div>

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

<?php
if(isset($_SESSION['login_user_id'])){
$data = "where c.user_id = '".
$_SESSION['login_user_id']."' ";
}else{

31.

$ip = isset($_SERVER['HTTP_CLIENT_IP']) ?
$_SERVER['HTTP_CLIENT_IP'] :
isset($_SERVER['HTTP_X_FORWARDED_FOR']) ?
$_SERVER['HTTP_X_FORWARDED_FOR'] :
$_SERVER['REMOTE_ADDR'];
$data = "where c.client_ip = '".$ip."' ";
}
$total = 0;
$get = $conn->query("SELECT *,c.id as cid
FROM cart c inner join product_list p on p.id = c.product_id ".$data);
while($row= $get->fetch_assoc()):
$total += ($row['qty'] * $row['price']);
?>
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-4" style="text-align: -webkit-center">

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

<a href="javascript:void(0)" class="rem_cart btn btn-sm btn-outline-


danger" data-id="<?php echo $row['cid'] ?>"><i class="fa fa-
trash"></i></a>
<img src="assets/img/<?php echo $row['img_path'] ?>" alt="">
</div>
<div class="col-md-4">

32.
<p><b><large><?php echo $row['name'] ?></large></b></p>
<p class='truncate'> <b><small>Desc :<?php echo $row['description'] ?
></small></b></p>
<p> <b><small>Unit Price :<?php echo number_format($row['price'],2)
?></small></b></p>
<p><small>QTY :</small></p>
<div class="input-group mb-3">
<div class="input-group-prepend">
<button class="btn btn-outline-secondary qty-minus" type="button"
data-id="<?php echo $row['cid'] ?>"><span class="fa fa-
minus"></button>
</div>
<input type="number" readonly value="<?php echo $row['qty'] ?>" min
= 1 class="form-control text-center" name="qty" >
<div class="input-group-prepend">
<button class="btn btn-outline-secondary qty-plus" type="button" id=""
data-id="<?php echo $row['cid'] ?>"><span class="fa fa-
plus"></span></button>
</div>

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

</div>
</div>
<div class="col-md-4 text-right">
<b><large><?php echo
number_format($row['qty'] * $row['price'],2) ?></large></b>
</div>
</div>

33.
</div>
</div>
<?php endwhile; ?>
</div>
<div class="col-md-4">
<div class="sticky">
<div class="card">
<div class="card-body">
<p><large>Total Amount</large></p>
<hr>
<p class="text-right"><b><?php echo
number_format($total,2) ?></b></p>
<hr>
<div class="text-center">
<button class="btn btn-block btn-
outline-primary" type="button" id="checkout">Proceed to
Checkout</button>

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

</div>
</div>
</div>
</div>
</div>
</div>
</div>

34.
</section>
<style>
.card p {
margin: unset
}
.card img{
max-width: calc(100%);
max-height: calc(59%);
}
div.sticky {
position: -webkit-sticky; /* Safari */
position: sticky;
top: 4.7em;
z-index: 10;
background: white

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

}
.rem_cart{
position: absolute;
left: 0;
}
</style>
<script>
$('.view_prod').click(function(){

35.
uni_modal_right('Product','view_prod.php?id='+$(this).attr('data-id'))
})
$('.qty-minus').click(function(){
var qty = $(this).parent().siblings('input[name="qty"]').val();
update_qty(parseInt(qty) -1,$(this).attr('data-id'))
if(qty == 1){
return false;
}else{
$
(this).parent().siblings('input[name="qty"]').val(parseInt(qty) -1);
}
})
$('.qty-plus').click(function(){
var qty = $
(this).parent().siblings('input[name="qty"]').val();

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

$
(this).parent().siblings('input[name="qty"]').val(parseInt(qty) +1);
update_qty(parseInt(qty) +1,$(this).attr('data-id'))
})
function update_qty(qty,id){
start_load()
$.ajax({
url:'admin/ajax.php?action=update_cart_qty',
method:"POST",

36.
data:{id:id,qty},
success:function(resp){
if(resp == 1){
load_cart()
end_load()
}
}
})
}
$('#checkout').click(function(){
if('<?php echo isset($_SESSION['login_user_id']) ?>' == 1){
location.replace("index.php?page=checkout")
}else{

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

uni_modal("Checkout","login.php?
page=checkout")
}
})
</script>
</body>
</html>

37.
 header.php (navbar coding)

<!DOCTYPE html>
<html lang="en">
<head>
<title><?php echo $_SESSION['setting_name'] ?></title>
</head>
<body>
<!-- Favicon-->
<link rel="icon" type="image/x-icon"
href="assets/img/favicon.ico" />
<!-- Font Awesome icons (free version)-->

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

<script src="https://use.fontawesome.com/releases/v5.13.0/js/all.js"
crossorigin="anonymous"></script>
<!-- Google fonts-->
<link href="https://fonts.googleapis.com/css?
family=Merriweather+Sans:400,700" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?
family=Merriweather:400,300,300italic,400italic,700,700italic"
rel="stylesheet" type="text/css" />
<!-- Third party plugin CSS-->
<link href="https://cdnjs.cloudflare.com/ajax/libs/magnific-
popup.js/1.1.0/magnific-popup.min.css" rel="stylesheet" />
<!-- Core theme CSS (includes Bootstrap)-->

38.
<link href="admin/assets/vendor/bootstrap-datepicker/css/bootstrap-
datepicker.css" rel="stylesheet" />
<link href="css/styles.css" rel="stylesheet" />
<script src="admin/assets/vendor/jquery/jquery.min.js"></script>
<script src="admin/assets/vendor/bootstrap-datepicker/js/bootstrap-
datepicker.js"></script>
</body>
</html>

 Footer.php (Footer page)

<!DOCTYPE html>

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

<html lang="en">
<head>
<title>Footer</title>
</head>
<body>
<script>
$('.datepicker').datepicker({
format:"yyyy-mm-dd"
})
window.start_load = function(){
$('body').prepend('<di id="preloader2"></di>')

39.
}
window.end_load = function(){
$('#preloader2').fadeOut('fast', function() {
$(this).remove();
})
}

window.uni_modal = function($title = '' , $url=''){


start_load()
$.ajax({
url:$url,

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

error:err=>{
console.log()
alert("An error occured")
}
success:function(resp){
if(resp){
$('#uni_modal .modal-title').html($title)
$('#uni_modal .modal-body').html(resp)
$('#uni_modal').modal('show')
end_load()
}
}

40.
})
}
window.uni_modal_right = function($title = '' , $url=''){
start_load()
$.ajax({
url:$url,
error:err=>{
console.log()
alert("An error occured")
},

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

success:function(resp){
if(resp){
$('#uni_modal_right .modal-title').html($title)
$('#uni_modal_right .modal-body').html(resp)
$('#uni_modal_right').modal('show')
end_load()
}
}
})
}
window.alert_toast= function($msg = 'TEST',$bg = 'success'){
$('#alert_toast').removeClass('bg-success')
$('#alert_toast').removeClass('bg-danger')

41.
$('#alert_toast').removeClass('bg-info')
$('#alert_toast').removeClass('bg-warning')
if($bg == 'success')
$('#alert_toast').addClass('bg-success')
if($bg == 'danger')
$('#alert_toast').addClass('bg-danger')
if($bg == 'info')
$('#alert_toast').addClass('bg-info')
if($bg == 'warning')

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

$('#alert_toast').addClass('bg-warning')
$('#alert_toast .toast-body').html($msg)
$('#alert_toast').toast({delay:3000}).toast('show');
}
window.load_cart = function(){
$.ajax({
url:'admin/ajax.php?action=get_cart_count',
success:function(resp){
if(resp > -1){
resp = resp > 0 ? resp : 0;
$('.item_count').html(resp)
}
}
})

42.
}
$('#login_now').click(function(){
uni_modal("LOGIN",'login.php')
})
$(document).ready(function(){
load_cart()
})
</script>

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

<!-- Bootstrap core JS-->


<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/js/bootstrap.bun
dle.min.js"></script>
<!-- Third party plugin JS-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-
easing/1.4.1/jquery.easing.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/magnific-
popup.js/1.1.0/jquery.magnific-popup.min.js"></script>
<!-- Core theme JS-->
<script src="js/scripts.js"></script>
</body>
</html>

43.
 Style.css (CSS ALL FILE)

<style>
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

article, aside, figcaption, figure, footer, header, hgroup, main, nav,


section {
display: block;
}
body {
margin: 0;
font-family: "Merriweather", -apple-system, BlinkMacSystemFont,
"Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto
Color Emoji";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #fff;
}

44.
[tabindex="-1"]:focus:not(:focus-visible) {
outline: 0 !important;
}
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
h1, h2, h3, h4, h5, h6 {
Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)
lOMoARcPSD|29289883

margin-top: 0;
margin-bottom: 0.5rem;
}
p{
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title],
abbr[data-original-title] {
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
cursor: help;
border-bottom: 0;
-webkit-text-decoration-skip-ink: none;

45.
text-decoration-skip-ink: none;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul,

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: 700;
}
dd {
margin-bottom: 0.5rem;

46.
margin-left: 0;
}
blockquote {
margin: 0 0 1rem;
}
b,
strong {
font-weight: bolder;
}

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

small {
font-size: 80%;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -0.25em;
}
sup {
top: -0.5em;

47.
}
a{
color: #f4623a;
text-decoration: none;
background-color: transparent;
}
a:hover {
color: #d6370c;
text-decoration: underline;

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

}
a:not([href]) {
color: inherit;
text-decoration: none;
}
a:not([href]):hover {
color: inherit;
text-decoration: none;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation
Mono", "Courier New", monospace;
font-size: 1em;

48.
}
pre {
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
-ms-overflow-style: scrollbar;
}
figure {

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

margin: 0 0 1rem;
}
img {
vertical-align: middle;
border-style: none;
}
svg {
overflow: hidden;
vertical-align: middle;
}
table {
border-collapse: collapse;
}
caption {
padding-top: 0.75rem;
padding-bottom: 0.75rem;

49.
color: #6c757d;
text-align: left;
caption-side: bottom;
}
th {
text-align: inherit;
}
label {

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

display: inline-block;
margin-bottom: 0.5rem;
}
button {
border-radius: 0;
}
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
input,
button,
select,
optgroup,
textarea {
margin: 0;

50.
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button,
input {
overflow: visible;
}

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

button,
select {
text-transform: none;
}
[role=button] {
cursor: pointer;
}
select {
word-wrap: normal;
}
button,
[type=button],
[type=reset],
[type=submit] {
-webkit-appearance: button;
}

51.
button:not(:disabled),
[type=button]:not(:disabled),
[type=reset]:not(:disabled),
[type=submit]:not(:disabled) {
cursor: pointer;
}
button::-moz-focus-inner,
[type=button]::-moz-focus-inner,

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

[type=reset]::-moz-focus-inner,
[type=submit]::-moz-focus-inner {
padding: 0;
border-style: none;
}
input[type=radio],
input[type=checkbox] {
box-sizing: border-box;
padding: 0;
}
textarea {
overflow: auto;
resize: vertical;
}
fieldset {
min-width: 0;

52.
padding: 0;
margin: 0;
border: 0;
}
legend {
display: block;
width: 100%;
max-width: 100%;

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

padding: 0;
margin-bottom: 0.5rem;
font-size: 1.5rem;
line-height: inherit;
color: inherit;
white-space: normal;
}
progress {
vertical-align: baseline;
}
[type=number]::-webkit-inner-spin-button,
[type=number]::-webkit-outer-spin-button {
height: auto;
}
[type=search] {
outline-offset: -2px;

53.
-webkit-appearance: none;
}
[type=search]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button;

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

}
output {
display: inline-block;
}
summary {
display: list-item;
cursor: pointer;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {

54.
margin-bottom: 0.5rem;
font-family: "Merriweather Sans", -apple-system,
BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
"Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
"Segoe UI Symbol", "Noto Color Emoji";
font-weight: 500;
line-height: 1.2;
}
h1, .h1 {

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

font-size: 2.5rem;
}
h2, .h2 {
font-size: 2rem;
}
h3, .h3 {
font-size: 1.75rem;
}
h4, .h4 {
font-size: 1.5rem;
}
h5, .h5 {
font-size: 1.25rem;
}
h6, .h6 {
font-size: 1rem;

55.
}
.lead {
font-size: 1.25rem;
font-weight: 300;
}
.display-1 {
font-size: 6rem;
font-weight: 300;

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

line-height: 1.2;
}
.display-2 {
font-size: 5.5rem;
font-weight: 300;
line-height: 1.2;
}
.display-3 {
font-size: 4.5rem;
font-weight: 300;
line-height: 1.2;
}
.display-4 {
font-size: 3.5rem;
font-weight: 300;
line-height: 1.2;

56.
}
hr {
margin-top: 1rem;
margin-bottom: 1rem;
border: 0;
border-top: 1px solid rgba(0, 0, 0, 0.1);
}
small,

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

.small {
font-size: 80%;
font-weight: 400;
}
mark,
.mark {
padding: 0.2em;
background-color: #fcf8e3;
}
.list-unstyled {
padding-left: 0;
list-style: none;
}
.list-inline {
padding-left: 0;
list-style: none;

57.
}
.list-inline-item {
display: inline-block;
}
.list-inline-item:not(:last-child) {
margin-right: 0.5rem;
}
.initialism {

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

font-size: 90%;
text-transform: uppercase;
}
.blockquote {
margin-bottom: 1rem;
font-size: 1.25rem;
}
.blockquote-footer {
display: block;
font-size: 80%;
color: #6c757d;
}
.blockquote-footer::before {
content: "— ";
}
.img-fluid {

58.
max-width: 100%;
height: 23vw;
}
.img-thumbnail {
padding: 0.25rem;
background-color: #fff;
border: 1px solid #dee2e6;
border-radius: 0.25rem;

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

max-width: 100%;
height: auto;
}
.figure {
display: inline-block;
}
.figure-img {
margin-bottom: 0.5rem;
line-height: 1;
}
.figure-caption {
font-size: 90%;
color: #6c757d;
}
code {
font-size: 87.5%;

59.
color: #e83e8c;
word-wrap: break-word;
}
a > code {
color: inherit;
}
kbd {
padding: 0.2rem 0.4rem;

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

font-size: 87.5%;
color: #fff;
background-color: #212529;
border-radius: 0.2rem;
}
kbd kbd {
padding: 0;
font-size: 100%;
font-weight: 700;
}
pre {
display: block;
font-size: 87.5%;
color: #212529;
}
pre code {

60.
font-size: inherit;
color: inherit;
word-break: normal;
}

.pre-scrollable {
max-height: 340px;
overflow-y: scroll;

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

}
.container {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
.container-fluid, .container-xl, .container-lg, .container-md, .container-
sm {
width: 100%;
padding-right: 15px;
padding-left: 15px;
margin-right: auto;
margin-left: auto;
}
</style>

61.
 Script.js (All script file)

(function($) {
"use strict"; // Start of use strict
// Smooth scrolling using jQuery easing
$('a.js-scroll-trigger[href*="#"]:not([href="#"])').click(function() {
if (location.pathname.replace(/^\//, '') =xa= this.pathname.replace(/^\//,
'') && location.hostname == this.hostname) {

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

var target = $(this.hash);


target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
if (target.length) {
$('html, body').animate({
scrollTop: (target.offset().top - 72)
}, 1000, "easeInOutExpo");
return false;
}
}
});
// Closes responsive menu when a scroll trigger link is clicked
$('.js-scroll-trigger').click(function() {
$('.navbar-collapse').collapse('hide');
});
// Activate scrollspy to add active class to navbar items on scroll
$('body').scrollspy({
target: '#mainNav',

62.
offset: 75
});
// Collapse Navbar
var navbarCollapse = function() {
if ($("#mainNav").offset().top > 100) {
$("#mainNav").addClass("navbar-scrolled");
} else {

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

$("#mainNav").removeClass("navbar-scrolled");
}
};
// Collapse now if page is not at top
navbarCollapse();
// Collapse the navbar when page is scrolled
$(window).scroll(navbarCollapse);
})(jQuery); // End of use strict

 fos_db.sql (DATABASE)

-- phpMyAdmin SQL Dump


-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 26, 2022 at 02:29 PM

63.
-- Server version: 10.4.22-MariaDB
-- PHP Version: 7.4.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI
ENT */;

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

/*!40101 SET
@OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE
SULTS */;
/*!40101 SET
@OLD_COLLATION_CONNECTION=@@COLLATION_CONNEC
TION */;
/*!40101 SET NAMES utf8mb4 */;
--
-- Database: `fos_db`
--
CREATE DATABASE IF NOT EXISTS `fos_db` DEFAULT
CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
USE `fos_db`;
-- --------------------------------------------------------
--
-- Table structure for table `cart`
-
CREATE TABLE `cart` (
`id` int(30) NOT NULL,

64.
`client_ip` varchar(20) NOT NULL,
`user_id` int(30) NOT NULL,
`product_id` int(30) NOT NULL,
`qty` int(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
-- --------------------------------------------------------
--

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

-- Table structure for table `category_list`


--
CREATE TABLE `category_list` (
`id` int(30) NOT NULL,
`name` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `category_list`
--
INSERT INTO `category_list` (`id`, `name`) VALUES
(1, 'Beverages'),
(3, 'Best Sellers'),
(4, 'Meals'),
(5, 'Snacks'),
(6, 'Dessert'),
(7, 'crunchy');
-- --------------------------------------------------------

65.
--
-- Table structure for table `orders`
--
CREATE TABLE `orders` (
`id` int(30) NOT NULL,
`name` text NOT NULL,
`address` text NOT NULL,

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

`mobile` text NOT NULL,


`email` text NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 0
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `orders`
--
INSERT INTO `orders` (`id`, `name`, `address`, `mobile`, `email`,
`status`) VALUES
(1, 'James Smith', 'adasdasd asdadasd', '4756463215',
'jsmith@sample.com', 1),
(2, 'James Smith', 'adasdasd asdadasd', '4756463215',
'jsmith@sample.com', 1),
(3, 'Camp Codes', '06106 Capitol Site, Brgy. Washington', '+639079373',
'admin@campcodes.com', 1),
(4, 'Camp Codes', '06106 Capitol Site, Brgy. Washington', '+639079373',
'admin@campcodes.com', 1),
(5, 'Camp Codes', '06106 Capitol Site, Brgy. Washington', '+639079373',
'admin@campcodes.com', 1),

66.
(6, 'manish patodiya', 'abc', '1234567894', 'test@testing.com', 1),
(7, 'manish patodiya', 'abc', '1234567894', 'test@testing.com', 0);
-- --------------------------------------------------------
--
-- Table structure for table `order_list`
--
CREATE TABLE `order_list` (

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

`id` int(30) NOT NULL,


`order_id` int(30) NOT NULL,
`product_id` int(30) NOT NULL,
`qty` int(30) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `order_list`
--
INSERT INTO `order_list` (`id`, `order_id`, `product_id`, `qty`)
VALUES
(1, 1, 3, 1),
(2, 1, 5, 1),
(3, 1, 3, 1),
(4, 1, 6, 3),
(5, 2, 1, 2),
(6, 3, 6, 2),
(7, 3, 7, 1),
(8, 4, 1, 1),

67.
(9, 4, 4, 1),
(10, 5, 6, 2),
(11, 5, 1, 2),
(12, 6, 6, 3),
(13, 7, 5, 1),
(14, 7, 5, 1);

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

-- --------------------------------------------------------
--
-- Table structure for table `product_list`
--
CREATE TABLE `product_list` (
`id` int(30) NOT NULL,
`category_id` int(30) NOT NULL,
`name` varchar(100) NOT NULL,
`description` text NOT NULL,
`price` float NOT NULL DEFAULT 0,
`img_path` text NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '0=
unavailable, 2 Available'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `product_list`
--
INSERT INTO `product_list` (`id`, `category_id`, `name`, `description`,
`price`, `img_path`, `status`) VALUES

68.
(1, 3, 'Diet Coke', 'In Can', 20, '1600652160_diet_coke.jpg', 1),
(3, 3, 'Lemon Iced Tea', 'Sample', 10, '1600652520_lemon iced tea.jpg',
1),
(4, 4, 'Chicken', 'Sample only', 150, '1600652880_chicken.jpg', 1),
(5, 3, 'Steak', 'Sample 2', 200, '1600652880_steak.jpg', 1),
(6, 3, 'Chicken2', 'Lorem Ipsum is simply dummy text of the printing and
typesetting industry. Lorem Ipsum has been the industry’s standard
Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)
lOMoARcPSD|29289883

dummy text ever since the 1500s, when an unknown printer took a
galley of type and scrambled it to make a type specimen book. It has
survived not only five centuries, but also the leap into electronic
typesetting, remaining essentially unchanged. It was popularised in the
1960s with the release of Letraset sheets containing Lorem Ipsum
passages, and more recently with desktop publishing software like Aldus
PageMaker including versions of Lorem Ipsum.', 250,
'1600656600_checken2.jpg', 1),
(7, 6, 'Leche Plan', 'Leche Plan Big', 99, '1618937160_arrow.png', 1);

-- --------------------------------------------------------
--
-- Table structure for table `system_settings`
--
CREATE TABLE `system_settings` (
`id` int(30) NOT NULL,
`name` text NOT NULL,
`email` varchar(200) NOT NULL,
`contact` varchar(20) NOT NULL,
`cover_img` text NOT NULL,
`about_content` text NOT NULL

69.
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `system_settings`
--
INSERT INTO `system_settings` (`id`, `name`, `email`, `contact`,
`cover_img`, `about_content`) VALUES

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

(1, 'My Food Delivery', 'admin@admin.com', '+639079373999',


'1600654680_photo-1504674900247-0877df9cc836.jpg', '&lt;p
style=&quot;text-align: center; background: transparent; position:
relative;&quot;&gt;&lt;span style=&quot;font-size:28px;background:
transparent; position: relative;&quot;&gt;&lt;b style=&quot;margin:
0px; padding: 0px; color: rgb(0, 0, 0); font-family: &amp;quot;Open
Sans&amp;quot;, Arial, sans-serif; text-align: justify;&quot;&gt;NICE!
&lt;/b&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style=&quot;text-
align: center; background: transparent; position:
relative;&quot;&gt;&lt;span style=&quot;font-size:28px;background:
transparent; position: relative;&quot;&gt;&lt;span style=&quot;color:
rgb(0, 0, 0); font-family: &amp;quot;Open Sans&amp;quot;, Arial, sans-
serif; font-weight: 400; text-align:
justify;&quot;&gt;&lt;br&gt;&lt;/span&gt;&lt;/p&gt;&lt;p
style=&quot;text-align: center; background: transparent; position:
relative;&quot;&gt;&lt;/p&gt;&lt;h2 style=&quot;font-
size:28px;background: transparent; position: relative;&quot;&gt;Where
does it come from?&lt;/h2&gt;&lt;p style=&quot;text-align: center;
margin-bottom: 15px; padding: 0px; color: rgb(0, 0, 0); font-family:
&amp;quot;Open Sans&amp;quot;, Arial, sans-serif; font-weight:
400;&quot;&gt;Contrary to popular belief, Lorem Ipsum is not simply
random text. It has roots in a piece of classical Latin literature from 45
BC, making it over 2000 years old. Richard McClintock, a Latin
professor at Hampden-Sydney College in Virginia, looked up one of the
more obscure Latin words, consectetur, from a Lorem Ipsum passage,
and going through the cites of the word in classical literature, discovered
the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and
1.10.33 of &quot;de Finibus Bonorum et Malorum&quot; (The

70.
Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a
treatise on the theory of ethics, very popular during the Renaissance. The
first line of Lorem Ipsum, &quot;Lorem ipsum dolor sit amet..&quot;,
comes from a line in section 1.10.32.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;');
-- --------------------------------------------------------
--
-- Table structure for table `users`

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

--
CREATE TABLE `users` (
`id` int(30) NOT NULL,
`name` varchar(200) NOT NULL,
`username` varchar(100) NOT NULL,
`password` varchar(200) NOT NULL,
`type` tinyint(1) NOT NULL DEFAULT 2 COMMENT '1=admin , 2 =
staff'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
--
-- Dumping data for table `users`
--
INSERT INTO `users` (`id`, `name`, `username`, `password`, `type`)
VALUES
(1, 'Administrator', 'admin', 'admin123', 1),
(6, 'Manish', 'manish', '12345678', 1);

-- --------------------------------------------------------
--

71.
-- Table structure for table `user_info`
--
CREATE TABLE `user_info` (
`user_id` int(10) NOT NULL,
`first_name` varchar(100) NOT NULL,
`last_name` varchar(100) NOT NULL,

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

`email` varchar(300) NOT NULL,


`password` varchar(300) NOT NULL,
`mobile` varchar(10) NOT NULL,
`address` varchar(300) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
--
-- Dumping data for table `user_info`
--
INSERT INTO `user_info` (`user_id`, `first_name`, `last_name`, `email`,
`password`, `mobile`, `address`) VALUES
(1, 'James', 'Smith', 'jsmith@sample.com',
'1254737c076cf867dc53d60a0364f38e', '4756463215', 'adasdasd
asdadasd'),
(2, 'Camp', 'Codes', 'admin@campcodes.com',
'827ccb0eea8a706c4c34a16891f84e7b', '+639079373', '06106 Capitol
Site, Brgy. Washington'),
(3, 'manish', 'patodiya', 'test@testing.com',
'827ccb0eea8a706c4c34a16891f84e7b', '1234567894', 'abc');
--
-- Indexes for dumped tables

72.
--
--
-- Indexes for table `cart`
--
ALTER TABLE `cart`
ADD PRIMARY KEY (`id`)

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

--
-- Indexes for table `category_list`
--
ALTER TABLE `category_list`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `orders`
--
ALTER TABLE `orders`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `order_list`
--
ALTER TABLE `order_list`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `product_list`
--

73.
ALTER TABLE `product_list`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `system_settings`
--
ALTER TABLE `system_settings`

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

ADD PRIMARY KEY (`id`);

--
-- Indexes for table `users`
--
ALTER TABLE `users`
ADD PRIMARY KEY (`id`);
--
-- Indexes for table `user_info`
--
ALTER TABLE `user_info`
ADD PRIMARY KEY (`user_id`);
--
-- AUTO_INCREMENT for dumped tables
--
--
-- AUTO_INCREMENT for table `cart`
--

74.
ALTER TABLE `cart`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=19;
--
-- AUTO_INCREMENT for table `category_list`
--

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

ALTER TABLE `category_list`


MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=9;
--
-- AUTO_INCREMENT for table `orders`
--
ALTER TABLE `orders`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=8;
--
-- AUTO_INCREMENT for table `order_list`
--
ALTER TABLE `order_list`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=15;
--
-- AUTO_INCREMENT for table `product_list`
--
ALTER TABLE `product_list`

75.
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=12;
--
-- AUTO_INCREMENT for table `system_settings`
--
ALTER TABLE `system_settings`
Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)
lOMoARcPSD|29289883

MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,


AUTO_INCREMENT=2;
--
-- AUTO_INCREMENT for table `users`
--
ALTER TABLE `users`
MODIFY `id` int(30) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=7;
--
-- AUTO_INCREMENT for table `user_info`
--
ALTER TABLE `user_info`
MODIFY `user_id` int(10) NOT NULL AUTO_INCREMENT,
AUTO_INCREMENT=4;
COMMIT;
/*!40101 SET
CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT
*/;/*!40101 SET
CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESUL
TS */;/*!40101 SET
COLLATION_CONNECTION=@OLD_COLLATION_CONNECTIO
N */;

76.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

DATABASE

77.

 TABLE 1 (CART)

Id Client_i User_id Product_id qty


p

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

22 ::1 7 3 1
23 ::1 7 6 1
24 ::1 2 7 1
25 ::1 2 5 1

 TABLE 2 (CATEGORY_LIST)

ID Name
1 Beverages
3 Best Sellers
4 Meals
5 Snacks
6 Dessert
7 Crunchy

78.

 TABLE 3 (ORDERS)

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

I NAME Address mobile e-mail


D
2 James Asafasa 9549xxxxx jsmith@sample.com
Smith asdfa x
3 Camp Brgy 8875xxxxx admin@campcodes.com
Codes Washingto x
n
8 Abhishe Ward 7850xxxxx Abhisheksaini@gmail.co
k no.25 x m
9 Dipesh Churi 9549xxxxx dipeshsaini@gmail.com
x
10 Hitesh Nawalgarh 6376xxxxx crazy123@gmail.com
x

79.

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

SNAPSHOTS

80.
 FRONT PAGE

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

 CART LIST

81.

 CHECKOUT

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

 ABOUT US

82.

 CONCLUSION

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

The website “The Food Delivery System” is is only a humble venture


to satisfy the needs to manage their project work.Several user friendly
coding have also adopted. This package shall prove to be a powerful
package in satisfying all the requirements of the school. The objective of
software planningis to provide a frame work that enables the manger to
make reasonable estimates madewithin a limited time frame at the
beginning of the software project and should be updatedregularly as the
project progresses.

 Ordering form site is very easy.


 You will get fast processing and immediate results.
 Information is secured in database.

The maintenance of records is made efficient. We have provided you a


search bar, where you can search your desired place and get sufficient
info about it. We have tried pretty much hard to provide you good
content. You can select the food as of your desire, we have a number of
categories. We have used the SQL database to store the records, so data
can be retrieved easily.

83.

 FUTURE SCOPE OF APPLICATION

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

The application can be implemented under various situations. We can


add or update new features as and when required. Reusability as and
when required in the system. There is flexibilility in all modules.

 Website Scope

Extensibility

The website is extendable in several aspects that the original developers


may not except. Following parameters enhance the extensibility of the
software like hidden data structure, avoidance of traversing multiple
links or methods, avoidance of case method on object type and private
operation.

Reusability

Reusability is possible as and when requiredin this application. Reusable


software reduces design, coding and testing cost by amortizing efforts
over several designs.

84.

 BIBLIOGRAPHY

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)


lOMoARcPSD|29289883

Most of the information we need to found on the title page. Here is


the information we need to locate in these books:-

1. Php first version

Author: Rasmus Lerdrof

2. Website Develop in Php on June 8, 1995, it was


released publicly

3. Professional JavaScript for Web developers

Author: Nicholas.C.Zakas

4. From web www.tutorialpoint.com

5. From web www.google.com

6. www.sbbj.co.in

Downloaded by mohan karthikeya (mkarthikeya24@gmail.com)

You might also like