Food Order System
Food Order System
Food Order System
Submitted By
P. BABU
Register No.20UCA228203
APRIL 2023
CERTIFICATE
This is to certify that the project work entitled “ONLINE FOOD ORDERING
SYSYTEM” submitted to Government Arts College (Autonomous), Salem-7. in partial fulfillment
requirements for the award of degree of BACHELOR OF COMPUTER APPLICATIONS is a
record of project work done by [P.BABU.], (Register No:20UCA228203) between March 2023
under my supervision and guidance.
Place : Salem-7
I here by declare that the mini project work entitled “ONLINE FOOD ORDERING
SYSTEM” submitted to Government Arts College (Autonomous), Salem-7 in partial
fulfillment of the requirements for the award of degree of BACHELOR OF COMPUTER
APPLICATIONS is a record of original work done byme under the supervision and guidance
of Ms. A.Rajalakshmi M.Sc., M.Phil., Guest Lecturer in Department of Computer
Applications, Government Arts College (Autonomous),Salem-7.
(BABU.P)
REGISTER NUMBER:
20UCA228203
Date:
Place: Salem-7.
ACKNOWLEDGEMENT
At the outset, I would like to thank and honor God who gave me the wisdom and
knowledge to complete this project.
I would like to profusely thank to our college principal Dr. S. KALAISELVAN, M.Sc.,
M.Phil., M.Ed., Ph.D., Government Arts College (Autonomous),Salem-7 for her guidance and
encouragement to successfully complete my project.
I express my sincere thanks to all other staff members of computer Applications Department
forthis supporting help.
1.1PROJECT DESCRIPTION:
ABSTRACT:
In particular, this Online Food Ordering System project in PHP focuses mainly on managing online
food orders. To be more precise, the system helps to keep track of clients, and their orders. Also, the
system displays all the available food dishes with their respective restaurants. In addition, the system
allows online bookings for the client. Evidently, this project contains a client-side with an admin
panel. In an overview of this web application, customers have to register in order to use the services.
Here, customers can view food dishes and filter restaurants. In terms of food ordering, he/she can
simply add dishes to the cart and checkout. In fact, all these customers’ activities take place on the
client side which also allows user to view their order list with status. Besides, the customers can delete
orders anytime
OBJECTIVE:
In the present scenario people have to physically visit the hotels or restaurants for eating food,
and have to make payment through cash mode most of the times due to unawareness of advanced technologies
at certain places. In this method time as well as physical work is required, among which time is something that
no one has in ample amount. The traditional food ordering procedure is not efficient enough for hotels and
restaurant, as they have to deal with crowd, in their restaurant. The old methods can be classified into categories
which are paper grounded and verbal grounded. For paper based work, the waiter comes and pens down foods
that customers order and pass the food list containing paper to the chefs or cooks in the kitchen for further
process. Also from the owner’s point of view maintaining data record and the accounts in physical file is
cumbersome and tedious work to do. And also it is full of risk as anyone can access it and modify the data.
➢ Convenience
➢ Improved accuracy
➢ Increased efficiency
➢ Platform : Windows10
➢ Processor : AMD PRO A4-350B R4, 5 COMPUTE CORES2C +
3G
➢ CPU Speed : 2.50 GHz
➢ RAM : 4 GB
➢ Hard Disk : 210 GB
2.3.3 SOFTWARE DESCRIPTION
PHP:
PHP is an intuitive, server side scripting language. Like any other scripting language
it allows developers to build logic into the creation of web page content and handle data returned
from a web browser. PHP also contains a number of extensions that make it easy to interact with
databases, extracting data to be displayed on a web page and storing information entered by a
web site visitor back into the database.
FEATURES OF PHP:
Performance: Script written in PHP executes much faster then those scripts written in
other languages such as JSP & ASP.
Open Source Software: PHP source code is free available on the web, you can
developed all the version of PHP according to your requirement withoutpaying any cost.
Platform Independent: PHP are available for WINDOWS, MAC, and LINUX & UNIX
Operating system: A PHP application developed in one OS can be easily executed in other
OS also.
Compatibility: PHP is compatible with almost all local servers used todaylike Apache,
IIS etc.
Embedded: PHP
MY SQL:
MYSQL can be used for a variety of applications, but is most commonly found on
web servers. A website that uses MYSQL may include Web pages that access information from a
database. These pages are often referred to as “dynamic,” meaning the content of each page is
generated from a database as the page loads. Websites that use dynamic Web pages are often
referred to as database-driven websites.
Many database-driven websites that use MYSQL also use a Web scripting language
like PHP to access information from the database. MYSQL commands can be incorporated into
the PHP code, allowing part or all of a Web page to be generated from databaseinformation.
Because both MYSQL and PHP are both open source (meaning they are free to download and use),
the PHP/MYSQL combination has become a popular choice for database- drivenwebsites.
SYSTEM DESIGN AND
DVELOPMENT
3. SYSTEM DESIGN AND DEVELOPMENT
3.1 DATA FLOW DIAGRAM
START
Login
Home page
Home page
Dashboard All Restaurants
Add Restaurants
Dishes Restaurants
All Menu
Checkout Menu
Add Menu
My orders
Orders
View orders
Admin side:
➢ Login
➢ Dashboard
➢ Users
➢ Restaurants
➢ Menu
➢ Orders
➢ Logout
User side:
➢ Home page
➢ Register
➢ Login
➢ Restaurants
➢ Dishes
➢ Checkout
➢ My orders
➢ Logout
ADMIN SIDE:
LOGIN
This module is used to admin to login.
DASHBOARD
This module provides all information about number of restaurants ,Dishes, Users, Total orders,
Delivered orders, Cancelled orders and Total earnings.
USER
This module shows the users, admin can edit and delete the users.
RESTAURANT
This module is used to add restaurant and view all restaurants , admin can edit and delete the
restaurants also its provide add category
MENU
This module is used to add menu items and it is shows all menu, admin can edit and delete the menu
items.
ORDERS
This module shows all orders admin can edit,delete, and update the order status.
LOGOUT
This module is used to admin to logout.
USER SIDE :
HOME PAGE
This module provide the user to login and create new account for their own.
REGISTER
This module is used to register new account for new user.
LOGIN
This module is used to admin to login
RESTAURANTS
This module is shows the all Restaurants ,the user can choose a restaurants.
DISHES
This module shows all menu item in the restaurant you can choose any food item .
CHECKOUT
This module shows all details about the food item like payment details ,quantity. The details
are okay you can place the order.
MY ORDERS
This module is show the all orders details and also you can cancel the order.
LOGOUT
This module is used to user to logout.
3.3 SYSTEM DESIGN
Definition
The most creative and challenging face of the system development is System Design. It
provides the understanding and procedural details necessary for the logical and physical stages of
development. In designing a new system, the system analyst must have a clear understanding of
the objectives, which the design is aiming to fulfill. The first step is to determine how the output
is to be produced and in what format. Second, input data and master files have to be designed to
meet the requirements of the proposed output. The operational phases are handled through program
construction and testing.
In this software, importance is given to develop Graphical User Interface (GUI), which is
an important factor in developing efficient and user friendly software. For inputting user data,
attractive forms are designed. User can also select the desired options from the menu, which
provides all possible facilities. Also the important input format is designed in such a way that
accidental errors are avoided. The user has to input only just the minimum data required, which
also helps in avoiding the errors that the users may make. Accurate designing of the input format
is very important in developing efficient software. The goal of input design is to make entry as
easy, logical and free from errors.
ADMIN SIDE
1. HOME PAGE
DASHBOARD
2. USERS:
RESTAURANTS:
ALL RESTAURANT:
ADD CATEGORY:
ADD RESTAURANT:
3. MENU:
ALL MENU
ADD MENU:
ORDERS:
ALL ORDERS
VIEW ORDER:
UPDATE ORDER STATUS:
USER SIDE
LOGIN PAGE:
REGISTER PAGE:
HOME PAGE:
RESTAURANTS:
DISHES:
CHECKOUT:
MY ORDERS:
3.6 DATABASE DESIGN
Tables
ADMIN
DISHES:
REMARK:
RESTAURANTS:
RESTAURANTS CETAGORY:
USERS:
USERS ORDERS:
3.7 CODE DESIGN
ADMIN SIDE:
index.php
<!DOCTYPE html>
<html lang="en" >
<?php
include("../connection/connect.php");
error_reporting(0);
session_start();
if(isset($_POST['submit']))
{
$username = $_POST['username'];
$password = $_POST['password'];
if(!empty($_POST["submit"]))
{
$loginquery ="SELECT * FROM admin WHERE username='$username' &&
password='".md5($password)."'";
$result=mysqli_query($db, $loginquery);
$row=mysqli_fetch_array($result);
if(is_array($row))
{
$_SESSION["adm_id"] = $row['adm_id'];
header("refresh:1;url=dashboard.php");
}
else
{
echo "<script>alert('Invalid Username or Password!');</script>";
}
}
?>
<head>
<meta charset="UTF-8">
<title>Admin Login</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/meyer-reset/2.0/reset.min.css">
</head>
<body>
<div class="container">
<div class="info">
<h1>Admin Panel </h1>
</div>
</div>
<div class="form">
<div class="thumbnail"><img src="images/manager.png"/></div>
<span style="color:red;"><?php echo $message; ?></span>
<span style="color:green;"><?php echo $success; ?></span>
<form class="login-form" action="index.php" method="post">
<input type="text" placeholder="Username" name="username"/>
<input type="password" placeholder="Password" name="password"/>
<input type="submit" name="submit" value="Login" />
</form>
</div>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src='js/index.js'></script>
</body>
</html>
dashboard.php
<!DOCTYPE html>
<html lang="en">
<?php
include("../connection/connect.php");
error_reporting(0);
session_start();
if(empty($_SESSION["adm_id"]))
{
header('location:index.php');
}
else
{
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>Admin Panel</title>
<link href="css/lib/bootstrap/bootstrap.min.css" rel="stylesheet">
<link href="css/helper.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<body class="fix-header">
<div class="preloader">
<svg class="circular" viewBox="25 25 50 50">
<circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-
miterlimit="10" /> </svg>
</div>
<div id="main-wrapper">
<div class="header">
<nav class="navbar top-navbar navbar-expand-md navbar-light">
<div class="navbar-header">
<a class="navbar-brand" href="dashboard.php">
echo $rws;?></h2>
<p class="m-b-0">Cancelled Orders</p>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card p-30">
<div class="media">
<div class="media-left meida media-middle">
<span><i class="fa fa-inr f-s-40" aria-hidden="true"></i></span>
</div>
<div class="media-body media-text-right">
<h2><?php
$result = mysqli_query($db, 'SELECT SUM(price) AS value_sum FROM users_orders WHERE status =
"closed"');
$row = mysqli_fetch_assoc($result);
$sum = $row['value_sum'];
echo $sum;
?></h2>
<p class="m-b-0">Total Earnings</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/lib/jquery/jquery.min.js"></script>
<script src="js/lib/bootstrap/js/popper.min.js"></script>
<script src="js/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/jquery.slimscroll.js"></script>
<script src="js/sidebarmenu.js"></script>
<script src="js/lib/sticky-kit-master/dist/sticky-kit.min.js"></script>
<script src="js/custom.min.js"></script>
</body>
</html>
<?php
}
?>
Userprofile.php
<?php
include("../connection/connect.php");
error_reporting(0);
session_start();
if(strlen($_SESSION['user_id'])==0)
{
header('location:../login.php');
}
else
{
if(isset($_POST['update']))
{
$form_id=$_GET['form_id'];
$status=$_POST['status'];
$remark=$_POST['remark'];
$query=mysqli_query($db,"insert into remark(frm_id,status,remark) values('$form_id','$status','$remark')");
$sql=mysqli_query($db,"update users_orders set status='$status' where o_id='$form_id'");
?>
<script language="javascript" type="text/javascript">
function f2()
{
window.close();
}ser
<td><?php if($row['status']==1)
{ echo "<div class='btn btn-primary'>Active</div>";
} else{
echo "<div class='btn btn-danger'>Block</div>";
}
?></td>
</tr>
<tr>
<td colspan="2">
<input name="Submit2" type="submit" class="btn btn-danger" value="Close this window " onClick="return
f2();" style="cursor: pointer;" /></td>
</tr>
<?php }
?>
</table>
</form>
</div>
</body>
</html>
<?php } ?>
All_restaurant.php
<!DOCTYPE html>
<html lang="en">
<?php
include("../connection/connect.php");
error_reporting(0);
session_start();
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<div class="preloader">
<svg class="circular" viewBox="25 25 50 50">
<circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-miterlimit="10" /> </svg>
</div>
<div id="main-wrapper">
<div class="header">
<nav class="navbar top-navbar navbar-expand-md navbar-light">
<div class="navbar-header">
<a class="navbar-brand" href="dashboard.php">
</ul>
</div>
</div>
<script src="js/lib/jquery/jquery.min.js"></script>
<script src="js/lib/bootstrap/js/popper.min.js"></script>
<script src="js/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/jquery.slimscroll.js"></script>
<script src="js/sidebarmenu.js"></script>
<script src="js/lib/sticky-kit-master/dist/sticky-kit.min.js"></script>
<script src="js/custom.min.js"></script>
<script src="js/lib/datatables/datatables.min.js"></script>
<script src="js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.min.js"></script>
<script src="js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.flash.min.js"></script>
<script src="js/lib/datatables/cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
<script src="js/lib/datatables/cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script>
<script src="js/lib/datatables/cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script>
<script src="js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.html5.min.js"></script>
<script src="js/lib/datatables/datatables-init.js"></script>
</body>
</html>
Add_cetagory.php
<!DOCTYPE html>
<html lang="en">
<?php
include("../connection/connect.php");
error_reporting(0);
session_start();
if(isset($_POST['submit'] ))
{
if(empty($_POST['c_name']))
{
$error = '<div class="alert alert-danger alert-dismissible fade show">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-
hidden="true">×</span></button>
<strong>field Required!</strong>
</div>';
}
else
{
if(mysqli_num_rows($check_cat) > 0)
{
$error = '<div class="alert alert-danger alert-dismissible fade show">
</div>';
}
else{
}
}
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
sm m-b-10 m-l-5"><i class="fa fa-edit"></i></a>
</td></tr>';
}
}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/lib/jquery/jquery.min.js"></script>
<script src="js/lib/bootstrap/js/popper.min.js"></script>
<script src="js/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/jquery.slimscroll.js"></script>
<script src="js/sidebarmenu.js"></script>
<script src="js/lib/sticky-kit-master/dist/sticky-kit.min.js"></script>
<script src="js/custom.min.js"></script>
</body>
</html>
Add_restaurant.php
<!DOCTYPE html>
<html lang="en">
<?php
include("../connection/connect.php");
error_reporting(0);
session_start();
if(isset($_POST['submit']))
{
if(empty($_POST['c_name'])||empty($_POST['res_name'])||$_POST['email']==''||$_POST['phone']==''||$_POS
T['url']==''||$_POST['o_hr']==''||$_POST['c_hr']==''||$_POST['o_days']==''||$_POST['address']=='')
{
$error = '<div class="alert alert-danger alert-dismissible fade show">
</div>';
}
else
{
$fname = $_FILES['file']['name'];
$temp = $_FILES['file']['tmp_name'];
$fsize = $_FILES['file']['size'];
$extension = explode('.',$fname);
$extension = strtolower(end($extension));
$fnew = uniqid().'.'.$extension;
$store = "Res_img/".basename($fnew);
</div>';
}
else
control"></textarea>
</div>
</div>
</div>
</div>
</div>
<div class="form-actions">
<input type="submit" name="submit" class="btn btn-primary" value="Save">
<a href="add_restaurant.php" class="btn btn-inverse">Cancel</a>
</div>
</form>
</div>
</div>
</div>
<footer class="footer"> © 2023 - Online Food Ordering System </footer>
</div>
</div>
</div>
</div>
<script src="js/lib/jquery/jquery.min.js"></script>
<script src="js/lib/bootstrap/js/popper.min.js"></script>
<script src="js/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/jquery.slimscroll.js"></script>
<script src="js/sidebarmenu.js"></script>
<script src="js/lib/sticky-kit-master/dist/sticky-kit.min.js"></script>
<script src="js/custom.min.js"></script>
</body>
</html>
Add_menu.php
<!DOCTYPE html>
<html lang="en">
<?php
include("../connection/connect.php");
error_reporting(0);
session_start();
if(isset($_POST['submit']))
{
if(empty($_POST['d_name'])||empty($_POST['about'])||$_POST['price']==''||$_POST['res_name']=='')
{
</div>';
}
else
{
$fname = $_FILES['file']['name'];
$temp = $_FILES['file']['tmp_name'];
$fsize = $_FILES['file']['size'];
$extension = explode('.',$fname);
$extension = strtolower(end($extension));
$fnew = uniqid().'.'.$extension;
$store = "Res_img/dishes/".basename($fnew);
$res=mysqli_query($db, $ssql);
while($row=mysqli_fetch_array($res))
{
echo' <option value="'.$row['rs_id'].'">'.$row['title'].'</option>';;
}
?>
</select>
</div>
</div>
</div>
</div>
</div>
<div class="form-actions">
<input type="submit" name="submit" class="btn btn-primary" value="Save">
<a href="add_menu.php" class="btn btn-inverse">Cancel</a>
</div>
</form>
</div>
</div>
</div>
<footer class="footer"> © 2023 - Online Food Ordering System </footer>
</div>
</div>
</div>
</div>
<script src="js/lib/jquery/jquery.min.js"></script>
<script src="js/lib/bootstrap/js/popper.min.js"></script>
<script src="js/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/jquery.slimscroll.js"></script>
<script src="js/sidebarmenu.js"></script>
<script src="js/lib/sticky-kit-master/dist/sticky-kit.min.js"></script>
<script src="js/custom.min.js"></script>
</body>
</html>
All_orders.php
<!DOCTYPE html>
<html lang="en">
<?php
include("../connection/connect.php");
error_reporting(0);
session_start();
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon.png">
<title>All Orders</title>
<link href="css/lib/bootstrap/bootstrap.min.css" rel="stylesheet">
<link href="css/helper.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
</head>
<div class="preloader">
<svg class="circular" viewBox="25 25 50 50">
<circle class="path" cx="50" cy="50" r="20" fill="none" stroke-width="2" stroke-
miterlimit="10" /> </svg>
</div>
<div id="main-wrapper">
<div class="header">
<nav class="navbar top-navbar navbar-expand-md navbar-light">
<div class="navbar-header">
<a class="navbar-brand" href="dashboard.php">
<span><img src="images/icn.png" alt="homepage" class="dark-logo" /></span>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/lib/jquery/jquery.min.js"></script>
<script src="js/lib/bootstrap/js/popper.min.js"></script>
<script src="js/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="js/jquery.slimscroll.js"></script>
<script src="js/sidebarmenu.js"></script>
<script src="js/lib/sticky-kit-master/dist/sticky-kit.min.js"></script>
<script src="js/custom.min.js"></script>
<script src="js/lib/datatables/datatables.min.js"></script>
<script src="js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/dataTables.buttons.min.js"></script>
<script src="js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.flash.min.js"></script>
<script src="js/lib/datatables/cdnjs.cloudflare.com/ajax/libs/jszip/2.5.0/jszip.min.js"></script>
<script src="js/lib/datatables/cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/pdfmake.min.js"></script>
<script src="js/lib/datatables/cdn.rawgit.com/bpampuch/pdfmake/0.1.18/build/vfs_fonts.js"></script>
<script src="js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.html5.min.js"></script>
<script src="js/lib/datatables/cdn.datatables.net/buttons/1.2.2/js/buttons.print.min.js"></script>
</body>
</html>
Order_updates.php
<?php
include("../connection/connect.php");
error_reporting(0);
session_start();
if(strlen($_SESSION['user_id'])==0)
{
header('location:../login.php');
}
else
{
if(isset($_POST['update']))
{
$form_id=$_GET['form_id'];
$status=$_POST['status'];
$remark=$_POST['remark'];
$query=mysqli_query($db,"insert into remark(frm_id,status,remark) values('$form_id','$status','$remark')");
$sql=mysqli_query($db,"update users_orders set status='$status' where o_id='$form_id'");
?>
<script language="javascript" type="text/javascript">
function f2()
{
window.close();
}ser
function f3()
{
window.print();
}
</script>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon.png">
<title>Order Update</title>
<link href="css/lib/bootstrap/bootstrap.min.css" rel="stylesheet">
<link href="css/helper.css" rel="stylesheet">
.
<td><input type="submit" name="update" class="btn btn-primary" value="Submit">
<input name="Submit2" type="submit" class="btn btn-danger" value="Close this window " onClick="return
f2();" style="cursor: pointer;" /></td>
</tr>
</table>
</form>
</div>
</body>
</html>
<?php } ?>
USER SIDE
Index.php
<!DOCTYPE html>
<html lang="en">
<?php
include("connection/connect.php");
error_reporting(0);
session_start();
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="#">
<title>Home</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animsition.min.css" rel="stylesheet">
<body class="home">
</div>
</div>
</div>
</div>
</div>';
}
?>
</div>
</div>
</div>
</section>
<footer class="footer">
<div class="container">
<div class="bottom-footer">
</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/animsition.min.js"></script>
<script src="js/bootstrap-slider.min.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/headroom.js"></script>
<script src="js/foodpicky.min.js"></script>
</body>
</html>
registration.php
<!DOCTYPE html>
<html lang="en">
<?php
session_start();
error_reporting(0);
include("connection/connect.php");
if(isset($_POST['submit'] ))
{
if(empty($_POST['firstname']) ||
empty($_POST['lastname'])||
empty($_POST['email']) ||
empty($_POST['phone'])||
empty($_POST['password'])||
empty($_POST['cpassword']) ||
empty($_POST['cpassword']))
{
$message = "All fields must be Required!";
}
else
{
$check_username= mysqli_query($db, "SELECT username FROM users where username =
'".$_POST['username']."' ");
$check_email = mysqli_query($db, "SELECT email FROM users where email = '".$_POST['email']."' ");
if($_POST['password'] != $_POST['cpassword']){
header("refresh:0.1;url=login.php");
}
}
}
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="#">
<title>Registration</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
</div>
<script src="js/jquery.min.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/animsition.min.js"></script>
<script src="js/bootstrap-slider.min.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/headroom.js"></script>
<script src="js/foodpicky.min.js"></script>
</body>
</html>
restaurants. php
<!DOCTYPE html>
<html lang="en">
<?php
include("connection/connect.php");
error_reporting(0);
session_start();
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="#">
<title>Restaurants</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animsition.min.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet"> </head>
<body>
<?php
if(empty($_SESSION["user_id"]))
{
echo '<li class="nav-item"><a href="login.php" class="nav-link active">Login</a> </li>
<li class="nav-item"><a href="registration.php" class="nav-link active">Register</a> </li>';
}
<div class="container">
<div class="bottom-footer">
<div class="row">
<div class="col-xs-12 col-sm-4 address color-gray">
<h5>Contact</h5>
<p>Babu P</p>
<h5>Address</h5>
<p>2/127,convent road, fairlans,mittapudur,salem</p>
<h5>Phone: 6382873828</a></h5> </div>
<div class="col-xs-12 col-sm-5 additional-info color-gray">
<h5>Addition informations</h5>
<p>Join thousands of other restaurants who benefit from having partnered with us.</p>
</div>
</div>
</div>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/animsition.min.js"></script>
<script src="js/bootstrap-slider.min.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/headroom.js"></script>
<script src="js/foodpicky.min.js"></script>
</body>
</html>
dishes.php
<!DOCTYPE html>
<html lang="en">
<?php
include("connection/connect.php");
error_reporting(0);
session_start();
include_once 'product-action.php';
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="#">
<title>Dishes</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animsition.min.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet"> </head>
<body>
<header id="header" class="header-scroll top-header headrom">
<nav class="navbar navbar-dark">
<div class="container">
<button class="navbar-toggler hidden-lg-up" type="button" data-toggle="collapse" data-
target="#mainNavbarCollapse">☰</button>
<a class="navbar-brand" href="index.php"> <img class="img-rounded" src="images/icn.png" alt="">
</a>
<div class="collapse navbar-toggleable-md float-lg-right" id="mainNavbarCollapse">
<ul class="nav navbar-nav">
<li class="nav-item"> <a class="nav-link active" href="index.php">Home <span class="sr-
only">(current)</span></a> </li>
<li class="nav-item"> <a class="nav-link active" href="restaurants.php">Restaurants <span
class="sr-only"></span></a> </li>
<?php
if(empty($_SESSION["user_id"]))
{
echo '<li class="nav-item"><a href="login.php" class="nav-link active">Login</a> </li>
<li class="nav-item"><a href="registration.php" class="nav-link active">Register</a> </li>';
}
else
{
?>
<div class="col-xs-5">
<input class="form-control" type="number" value="0" id="quant-input-4"> </div>
</div>
</div>
</div>
</div>
<div class="food-item">
<div class="row">
<div class="col-xs-12 col-sm-6 col-lg-6">
<div class="item-img pull-left">
<a class="restaurant-logo pull-left" href="#"><img src="http://placehold.it/70x70" alt="Food
logo"></a>
</div>
<div class="rest-descr">
<h6><a href="#">Sandwich de Alegranza Grande Menü (28 - 30 cm.)</a></h6> </div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<button type="button" class="btn theme-btn">Add To Cart</button>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/animsition.min.js"></script>
<script src="js/bootstrap-slider.min.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/headroom.js"></script>
<script src="js/foodpicky.min.js"></script>
</body>
</html>
checkout.php
<!DOCTYPE html>
<html lang="en">
<?php
include("connection/connect.php");
include_once 'product-action.php';
error_reporting(0);
session_start();
function function_alert() {
if(empty($_SESSION["user_id"]))
{
header('location:login.php');
}
else{
$item_total += ($item["price"]*$item["quantity"]);
if($_POST['submit'])
mysqli_query($db,$SQL);
unset($_SESSION["cart_item"]);
unset($item["title"]);
unset($item["quantity"]);
unset($item["price"]);
$success = "Thank you. Your order has been placed!";
function_alert();
}
}
?>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" href="#">
<title>Checkout</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/animsition.min.css" rel="stylesheet">
<link href="css/animate.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet"> </head>
<body>
<div class="site-wrapper">
<header id="header" class="header-scroll top-header headrom">
<nav class="navbar navbar-dark">
<p>Join thousands of other restaurants who benefit from having partnered with us.</p>
</div>
</div>
</div>
</div>
</footer>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/animsition.min.js"></script>
<script src="js/bootstrap-slider.min.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/headroom.js"></script>
<script src="js/foodpicky.min.js"></script>
</body>
</html>
<?php
}
?>
your_orders.php
<!DOCTYPE html>
<html lang="en">
<?php
include("connection/connect.php");
error_reporting(0);
session_start();
if(empty($_SESSION['user_id']))
{
header('location:login.php');
}
else
{
?>
<head>
<meta charset="utf-8">
<p>Babu P</p>
<h5>Address</h5>
<p>2/127,convent road, fairlans,mittapudur,salem</p>
<h5>Phone: 6382873828</a></h5> </div>
<div class="col-xs-12 col-sm-5 additional-info color-gray">
<h5>Addition informations</h5>
<p>Join thousands of other restaurants who benefit from having partnered with us.</p>
</div>
</div>
</div>
</div>
</footer>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/tether.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/animsition.min.js"></script>
<script src="js/bootstrap-slider.min.js"></script>
<script src="js/jquery.isotope.min.js"></script>
<script src="js/headroom.js"></script>
<script src="js/foodpicky.min.js"></script>
</body>
</html>
<?php
}
?>
logout.php
<?php
session_start();
session_destroy();
$url = 'login.php';
header('Location: ' . $url);
?>
TESTING AND IMPLEMENTATION
4.TESTING AND IMPLEMENTATION
System testing is the state of implementation, which is aimed at ensuring that the System
Works accurate and efficient as expect before, live operation, commences. It certifies that the
whole set of programs hang together system testing requires a test plan, That consist f several key
activities and step for run program, string, system and user acceptance testing. the implementation
newly design package is important in adapting a successful new system
Testing phase development phase that validates the code against the functional
specification. testing is a vital the achievement the system goals the objective testing is to discover
errors, to fulfill this objective a series of test step such as the unit test , integration , validation and
system test where planned and executed.
UNIT TESTING
Unit testing are called module testing. The following modules have been tested
Following modules have been integrated for evaluating the efficiency of interface
The acceptance is the final stage of the user the various possibilities of the data are entered and
the result are tested.
VAILIDATION TESTING
Implementation is the final and important phase,the most critical stage in achieving a
successful new system and giving the user confidence. That the new system will work be effective
. The system can be implemented only after through testing is done and if it found to working
according to the specification
CONCLUSION
5. CONCLUSION
The project is an attempt to develop a system that can be used computerization of activities in the
company . Since these activities are tedious process lot of effort, more care has taken for the system
development the requirements a suitable database is created maximum effort were taken to avoid
duplication in data entry and data storage various report generated by this system
The major advantage of the system is fast accurate information retrieval minimization of clerical
work, easy and efficient data storage and report generation
A features that is required for the ONLINE FOOD ORDERING SYSTEM has beenfinished
successfully.
6. FUTURE ENHANCEMENTS
7.BIBLIOGRAPHY
• https://www.tutorialspoint.com
• https://www.w3schools.coM
• https://www.youtube.com
• www.visuastudio.com