You are on page 1of 46

MARWAR

BUSINESS SCHOOL
A PG COLLEGE AFFILIATED TO DDU GORAKHPUR UNIVERCITY
( Naseerabad, Gorakhpur )

Synopsis
On
ONLINE TIFFIN SERVICE SYSTEM
(FOODIEZ GORAKHPUR TIFFIN SERVICES)

Submitted By: Submitted To:


SATYAM KUMAR(Team Leader)
MANDAVI GUPTA MISS Tarunnum Nisha
UDIT KUMAR
KRISHNA SINGH
ANURAGH CHAUHAN
NEHA MAURYA (Computer Department)

BCA(DEPARTMENT OF COMPUTER SCIENCE) 1


BCA(DEPARTMENT OF COMPUTER SCIENCE) 2
MARWAR BUSINESS
SCHOOL
NASEERABAD,GORAKHPUR

CERTIFICATE
This certify that the project work entitle
" “ONLINE TIFFIN SERVICE SYSTEM ” that will be submitted by
" “Satyam Kumar , Udit kumar , Krishna Singh , Anuragh
Chauhan, Mandavi Gupta and Neha Maurya
will the record of their own work and admitted in the partial
fulfillment of the requirement for the award of Bachelor of
Computer Application(BCA) from “Marwar Business School”,
affiliated to “Deen Dayal Upadhyay Gorakhpur University”.

The information presented here is true and correct to the best of


our knowledge and belief.

Head of Dr. Santosh Kumar Tripathi


Computer Department (Principal)

BCA(DEPARTMENT OF COMPUTER SCIENCE) 3


ABSTRACT

Online Tiffin Service System (OTSS) is an established concept


which is used to manage online Tiffin services lifecycle
through various technologies and process oriented tools. This
study identifies how web application can be utilized to
provide food services to the customers and to understand the
potential of web application in the business environment.
Online Tiffin Service System is a web based application which
allows the administrator to handle all the activities online
quickly and safely. Using Interactive GUI anyone can quickly
learn to use the complete system. This system will give power
and flexibility to administrator to manage the entire system from
a single online portal.

BCA(DEPARTMENT OF COMPUTER SCIENCE) 4


ACKNOWLEDGMENT
I would like to express my deep sense of gratitude and convey thanks to
everyone who helped me and supported during the completion of this
project and my research paper. First, I would like to express a deep sense
of gratitude to Miss Tarnnum nisha for helping, guiding, and supporting
me throughout my master’s degree and research completion. I also
convey thanks to my all-committee members for helping me from time to
time and for being on my committee. I acknowledge my department for
providing the courses and a great atmosphere that helped completely
different chapters of this paper. I especially thank my supervisor,
Mohmd. Ahmed Ansari sir, for supporting me and my concepts and for
allowing me to do something the way I liked, as well as my company,
Miss Sangeeta Maurya mam, for helping me develop the skills
necessary to design this application as part of my master’s research. Last
but not least, I would like to thank my family members for their constant
and unrelenting support towards my education and for their impartial love
for me. I would also like to thank my friends, without whom this project
would have been impossible.

BCA(DEPARTMENT OF COMPUTER SCIENCE) 5


Table Of Content

Chapter:1 Introduction
1.1 Background
1.2 Purpose, Scope ,Applicability
1.2.1 purpose
1.2.2 Scope
1.2.3 Applicability

Chapter :2 System Analysis


2.1 Problem Definition
2.2 Requirement Specification
2.3 Planning and Scheduling
2.4 Software and Hardware Requirement
2.5 Premlinary Product Description
2.6 Conceptual Models

Chapter :3 System Design


3.1 Basic Modules
3.2 Data Design
3.2.1 Schema Design
3.2.2 Data integrity and constraints
3.3 procedural design
3.4 Logic diagram
3.5 User Interface design
3.6 security issues
3.7 Test case design

Chapter 4: Implementation and testing

BCA(DEPARTMENT OF COMPUTER SCIENCE) 6


4.1 Implementation Approches
4.2 Coding details and code efficiency
4.2.1 code efficiency
4.3 Testing Approches
4.3.2.1 white box testing
4.3.2.2 black box testing
4.3.2.3 unit testing
4.3.2.4 integrated testing
4.4 Modification and Improvments
4.5 Test Cases
Chapter 5: Result and documentation
5.1 Test Reports
5.2 User Documentation
Chapter 6: Conclusion and Future Work
6.1 Conclusion
6.2 Significance of the system
6.3 Limitation of the system
6.4 Future Scope of the Work
Chapter 7 :Refrences
Chapter 8 Glossary

BCA(DEPARTMENT OF COMPUTER SCIENCE) 7


Chapter1
Introduction

1.1 Background
 Food processing and industry value’s is growing
by huge number each day .With everything going
digital and global practices making everything fall
into in one place , money making tiff between the
businesses get very bad.

 Today if you want your food business to stand the


competition, it needs a significant opening. No
matter how well you made version of your food
unit, the customer want your word to be
delivered right in the way they need .

 An online food ordering is the process of food


ordering from local restaurant or a food
cooperative through a web page or app.

 A customer will search for favourite restaurant


usually filtered by the cuisine and choose from
available items and also chooses delivery or
pickups.

 But the current aspect which the customers are


concerned about is time as well as the taste ,
quality and with how much cleanly they prepare
the food .
BCA(DEPARTMENT OF COMPUTER SCIENCE) 8
 Now in the hustle and bustle of life , people tend
to compromise majorly on the kind ,quality and
the amount of they eat which in turn causes the
number of health issues such as obesity ,
hypertension, diabetes etc. Most of the time
people away from home tend to skip their meals
and eat any kind of junk food that they can find
easily around them .

 This is what tiffin service provider realize that


there is a growing need for “Online Tiffin Service
System” and thus we decided to build this
system. Our System enables the customer to
choose any of the meal and send the location
through email or contact us and we will deliver it
safely and in the given time .

1.2 Objectives
 To study the process and operational efficiency
services provided to the customer through better
application of technology of Online Tiffin Service
system.

 To make homemade tiffin easily available and deliver


the tasty , healthy and delicious food to the customer
safely.

BCA(DEPARTMENT OF COMPUTER SCIENCE) 9


1.3 Purpose ,Scope and Applicability

1.3.1 Purpose
In today’s world most of the people live away from
their homes for work, and food is the basic necessity
for everybody. People working away from their
home always complaint about missing their home-
food. So the main purpose of this project is to
provide home -made food especially to one working
away from their homes through fastest delivery
service and delicious food.

1.3.2 Scope
This project has wide scope in the field of online food
ordering system. Online food supports free and cheap
marketing attracting people towards it. This project has
higher scope as we not only deliver the food in short time
but also prepare them with all safety measures .

1.3.3 Applicability
It is mainly applicable for college students ,hostel
residents and employees. As a system will provide a
platform for ordering home- made meal on the go.

BCA(DEPARTMENT OF COMPUTER SCIENCE) 10


Chapter 2
System Analysis

2.1 Problem definition


The current food applications doesn’t through a
customized meal option which will be now available with the
application system .

2.2 Requirements and specifications


For making food ordering system it is important to select a
platform that provide innovative user interface and provide many
built-in features that can make coding easier.
For making our system attractive and more interactive we have used
scripting languages like HTML and CSS.

2.3 Planning and scheduling


2.3.1 Software and hardware Requirement
Software requirement

BCA(DEPARTMENT OF COMPUTER SCIENCE) 11


Hardware Requirement

2.5 Preliminary product description


The main feature is that user can even order the customized meal
according to their taste and choices .
The customer can order the tiffin which they need there are five
different tiffin meals available including veg and non-veg ,but for
ordering they have to register them self .
Once they have registered they have to login and then they can
order the meal.
Even users can detailed information on the takeaway, get directions,
refer to the menu, order and pay online using dynamic features.

BCA(DEPARTMENT OF COMPUTER SCIENCE) 12


2.6 Conceptual Models

ER -Diagram

BCA(DEPARTMENT OF COMPUTER SCIENCE) 13


BCA(DEPARTMENT OF COMPUTER SCIENCE) 14
Chapter 3
System Design

3.1 Basic module


Sign-up button : It is used by customer to login themselves as who
are previously registered.

Create new account button : It is used by customer to register if


they are not.

Submit button: It is used by customer to submit the login details .

Place Order: It is used by customer place their order and move to


another step.

3.2 Data design


3.2.1 schema design
Register/login table

BCA(DEPARTMENT OF COMPUTER SCIENCE) 15


3.2.2 Data Integrity and Constraints
3.2.2.1 Table for register and login

3.2.2.2 Product table for cart

BCA(DEPARTMENT OF COMPUTER SCIENCE) 16


3.3 Procedure design

3.3.1 logic design

Use case diagram

BCA(DEPARTMENT OF COMPUTER SCIENCE) 17


User Interface Design

Home page

Register/Sign-up page

BCA(DEPARTMENT OF COMPUTER SCIENCE) 18


Login page

BCA(DEPARTMENT OF COMPUTER SCIENCE) 19


About us page

Contact us page

BCA(DEPARTMENT OF COMPUTER SCIENCE) 20


Order now page

BCA(DEPARTMENT OF COMPUTER SCIENCE) 21


Chapter 4
Implementation and Testing

4.1 Implementation Approches

Since the project is dynamic it needs


iterartive approach for making features and
we use iterative modeling approaches .In
iterative approaches we divide the creation
process of application into small categories .

Here in our project we have decided to


divide application into small categories.

Phase 1: creating basic layout.


Phase 2: concerntrating on user
interface/layout.
Phase 3 working on Client side
Phase 4 :working on Security
Phase 5:Testing
The project is implemented in visual code
and xampp with the help of some scripting
languages such as
PHP,DATABASE,HTML,CSS,JAVASCRIPT.

4.2 Coding details and code effieciency


4.2.1 code efficiency

BCA(DEPARTMENT OF COMPUTER SCIENCE) 22


For register page –
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if(isset($_POST['submit']))
{
$fname=$_POST['fname'];
$mobno=$_POST['mobno'];
$email=$_POST['email'];
$password=md5($_POST['password']);
$ret="select Email from tbluser where Email=:email";
$query= $dbh -> prepare($ret);
$query-> bindParam(':email', $email, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);
if($query -> rowCount() == 0)
{
$sql="Insert Into
tbluser(FullName,MobileNumber,Email,Password)Values(:fname,:mobno,:email,:pass
word)";
$query = $dbh->prepare($sql);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':mobno',$mobno,PDO::PARAM_INT);
$query->bindParam(':password',$password,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{

echo "<script>alert('You have successfully registered with us');</script>";


}
else
{

echo "<script>alert('Something went wrong.Please try again');</script>";


}
}
else
{

echo "<script>alert('Email-id already exist. Please try again');</script>";


}
}
?>
<!DOCTYPE html>

BCA(DEPARTMENT OF COMPUTER SCIENCE) 23


<html>
<head>
<title>Foodies Tiffin Service Gorakhpur | Register page</title>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Custom Theme files -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- Custom Theme files -->

<script type="application/x-javascript"> addEventListener("load", function() {


setTimeout(hideURLbar, 0); }, false); function hideURLbar()
{ window.scrollTo(0,1); } </script>
<!--webfont-->
<link href='//fonts.googleapis.com/css?
family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,6
00italic,700italic,900italic' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?
family=Lobster+Two:400,400italic,700,700italic' rel='stylesheet'
type='text/css'>
<!--Animation-->
<script src="js/wow.min.js"></script>
<link href="css/animate.css" rel='stylesheet' type='text/css' />
<script>
new WOW().init();
</script>
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".scroll").click(function(event){
event.preventDefault();
$('html,body').animate({scrollTop:$
(this.hash).offset().top},1200);
});
});
</script>
<script src="js/simpleCart.min.js"> </script>
</head>
<body>
<!-- header-section-starts -->
<div class="header">
<?php include_once('includes/header.php');?>
</div>
<!-- header-section-ends -->
<!-- content-section-starts -->
<div class="content">
<div class="container">

BCA(DEPARTMENT OF COMPUTER SCIENCE) 24


<div class="login-page">
<div class="dreamcrub">
<ul class="breadcrumbs">
<li class="home">
<a href="index.php" title="Go to Home
Page">Home</a>&nbsp;
<span>&gt;</span>
</li>
<li class="women">
Sign Up
</li>
</ul>
<ul class="previous">
<li><a href="index.php">Back to Previous Page</a></li>
</ul>
<div class="clearfix"></div>
</div>
<div class="account_grid">
<div class="col-md-6 login-left wow fadeInLeft" data-wow-
delay="0.4s">
<h3>Existing CUSTOMERS</h3>
<p>By creating an account with our store, you will be able to
move through the checkout process faster, view and track your orders in your
account and more.</p>
<a class="acount-btn" href="login.php">Already Have an
Account</a>
</div>
<div class="col-md-6 login-right wow fadeInRight" data-wow-
delay="0.4s">
<h3>REGISTERED With Us</h3>
<p>If you have not an account with us, please Sign Up.</p>
<form method="post">

<div>
<span>Full Name<label>*</label></span>
<input type="text" placeholder="Full Name" name="fname"
required="true">
</div>
<div>
<span>Mobile Number<label>*</label></span>
<input type="text" placeholder="Mobile" name="mobno"
maxlength="10" pattern="[0-9]+" required="true">
</div>
<div>
<span>Email Address<label>*</label></span>
<input type="email" placeholder="Email" name="email"
id="email" required="true" onBlur="userAvailability()">

BCA(DEPARTMENT OF COMPUTER SCIENCE) 25


<span id="user-availability-status1" style="font-
size:12px;"></span>
</div>
<div>
<span>Password<label>*</label></span>
<input type="password" placeholder="Password"
name="password" required="true">
</div>

<input type="submit" value="Sign Up" name="submit"


id="submit" style="cursor:pointer">
</form>
</div>
<div class="clearfix"> </div>
</div>
</div>
</div>

<div class="clearfix"></div>

</div>
<!-- content-section-ends -->
<!-- footer-section-starts -->
<?php include_once('includes/footer.php');?>
<!-- footer-section-ends -->
<script type="text/javascript">
$(document).ready(function() {
/*
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading
element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
*/

$().UItoTop({ easingType: 'easeOutQuart' });

});
</script>
<a href="#" id="toTop" style="display: block;"> <span
id="toTopHover" style="opacity: 1;"> </span></a>
<script>
function userAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_emailavailability.php",

BCA(DEPARTMENT OF COMPUTER SCIENCE) 26


data:'email='+$("#email").val(),
type: "POST",
success:function(data){
$("#user-availability-status1").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script>
</body>
</html>
<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if(isset($_POST['submit']))
{
$fname=$_POST['fname'];
$mobno=$_POST['mobno'];
$email=$_POST['email'];
$password=md5($_POST['password']);
$ret="select Email from tbluser where Email=:email";
$query= $dbh -> prepare($ret);
$query-> bindParam(':email', $email, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);
if($query -> rowCount() == 0)
{
$sql="Insert Into
tbluser(FullName,MobileNumber,Email,Password)Values(:fname,:mobno,:email,:pass
word)";
$query = $dbh->prepare($sql);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':mobno',$mobno,PDO::PARAM_INT);
$query->bindParam(':password',$password,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{

echo "<script>alert('You have successfully registered with us');</script>";


}
else
{

echo "<script>alert('Something went wrong.Please try again');</script>";

BCA(DEPARTMENT OF COMPUTER SCIENCE) 27


}
}
else
{

echo "<script>alert('Email-id already exist. Please try again');</script>";


}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Foodies Tiffin Service Gorakhpur | Register page</title>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Custom Theme files -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- Custom Theme files -->

<script type="application/x-javascript"> addEventListener("load", function() {


setTimeout(hideURLbar, 0); }, false); function hideURLbar()
{ window.scrollTo(0,1); } </script>
<!--webfont-->
<link href='//fonts.googleapis.com/css?
family=Source+Sans+Pro:200,300,400,600,700,900,200italic,300italic,400italic,6
00italic,700italic,900italic' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?
family=Lobster+Two:400,400italic,700,700italic' rel='stylesheet'
type='text/css'>
<!--Animation-->
<script src="js/wow.min.js"></script>
<link href="css/animate.css" rel='stylesheet' type='text/css' />
<script>
new WOW().init();
</script>
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".scroll").click(function(event){
event.preventDefault();
$('html,body').animate({scrollTop:$
(this.hash).offset().top},1200);
});
});
</script>
<script src="js/simpleCart.min.js"> </script>

BCA(DEPARTMENT OF COMPUTER SCIENCE) 28


</head>
<body>
<!-- header-section-starts -->
<div class="header">
<?php include_once('includes/header.php');?>
</div>
<!-- header-section-ends -->
<!-- content-section-starts -->
<div class="content">
<div class="container">
<div class="login-page">
<div class="dreamcrub">
<ul class="breadcrumbs">
<li class="home">
<a href="index.php" title="Go to Home
Page">Home</a>&nbsp;
<span>&gt;</span>
</li>
<li class="women">
Sign Up
</li>
</ul>
<ul class="previous">
<li><a href="index.php">Back to Previous Page</a></li>
</ul>
<div class="clearfix"></div>
</div>
<div class="account_grid">
<div class="col-md-6 login-left wow fadeInLeft" data-wow-
delay="0.4s">
<h3>Existing CUSTOMERS</h3>
<p>By creating an account with our store, you will be able to
move through the checkout process faster, view and track your orders in your
account and more.</p>
<a class="acount-btn" href="login.php">Already Have an
Account</a>
</div>
<div class="col-md-6 login-right wow fadeInRight" data-wow-
delay="0.4s">
<h3>REGISTERED With Us</h3>
<p>If you have not an account with us, please Sign Up.</p>
<form method="post">

<div>
<span>Full Name<label>*</label></span>
<input type="text" placeholder="Full Name" name="fname"
required="true">

BCA(DEPARTMENT OF COMPUTER SCIENCE) 29


</div>
<div>
<span>Mobile Number<label>*</label></span>
<input type="text" placeholder="Mobile" name="mobno"
maxlength="10" pattern="[0-9]+" required="true">
</div>
<div>
<span>Email Address<label>*</label></span>
<input type="email" placeholder="Email" name="email"
id="email" required="true" onBlur="userAvailability()">
<span id="user-availability-status1" style="font-
size:12px;"></span>
</div>
<div>
<span>Password<label>*</label></span>
<input type="password" placeholder="Password"
name="password" required="true">
</div>

<input type="submit" value="Sign Up" name="submit"


id="submit" style="cursor:pointer">
</form>
</div>
<div class="clearfix"> </div>
</div>
</div>
</div>

<div class="clearfix"></div>

</div>
<!-- content-section-ends -->
<!-- footer-section-starts -->
<?php include_once('includes/footer.php');?>
<!-- footer-section-ends -->
<script type="text/javascript">
$(document).ready(function() {
/*
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading
element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
*/

$().UItoTop({ easingType: 'easeOutQuart' });

BCA(DEPARTMENT OF COMPUTER SCIENCE) 30


});
</script>
<a href="#" id="toTop" style="display: block;"> <span
id="toTopHover" style="opacity: 1;"> </span></a>
<script>
function userAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_emailavailability.php",
data:'email='+$("#email").val(),
type: "POST",
success:function(data){
$("#user-availability-status1").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script>
</body>
</html>

for different tiffin select page-


<?php
session_start();
error_reporting(0);
include('includes/dbconnection.php');
if (strlen($_SESSION['otssaid']==0)) {
header('location:logout.php');
} else{
if(isset($_POST['submit']))
{
$adminid=$_SESSION['otssaid'];

$type=$_POST['type'];
$title=$_POST['title'];
$desc=$_POST['desc'];
$cost=$_POST['cost'];
$images=$_FILES["images"]["name"];
$extension = substr($images,strlen($images)-4,strlen($images));
$allowed_extensions = array(".jpg","jpeg",".png",".gif",".pdf");
if(!in_array($extension,$allowed_extensions))
{
echo "<script>alert('Food Image has Invalid format. Only jpg / jpeg/ png /gif
format allowed');</script>";

BCA(DEPARTMENT OF COMPUTER SCIENCE) 31


}
else
{
$images=md5($images).time().$extension;
move_uploaded_file($_FILES["images"]["tmp_name"],"images/".$images);
$sql="insert into
tbltiffin(Type,Title,Description,Cost,Image)values(:type,:title,:desc,:cost,:i
mages)";
$query = $dbh->prepare($sql);

$query->bindParam(':type',$type,PDO::PARAM_STR);
$query->bindParam(':title',$title,PDO::PARAM_STR);
$query->bindParam(':desc',$desc,PDO::PARAM_STR);
$query->bindParam(':cost',$cost,PDO::PARAM_STR);
$query->bindParam(':images',$images,PDO::PARAM_STR);
$query->execute();

$LastInsertId=$dbh->lastInsertId();
if ($LastInsertId>0) {
echo '<script>alert("Tiffin detail has been added.")</script>';
echo "<script>window.location.href ='add-tiffin.php'</script>";
}
else
{
echo '<script>alert("Something Went Wrong. Please try
again")</script>';
}

}
}

?>
<!DOCTYPE html>
<html dir="ltr" lang="en">

<head>

<title>Foodies Tiffin Service Gorakhpur - Add Tiffin</title>


<link href="dist/css/style.min.css" rel="stylesheet">
</head>

<body>

<div class="preloader">
<div class="lds-ripple">
<div class="lds-pos"></div>
<div class="lds-pos"></div>

BCA(DEPARTMENT OF COMPUTER SCIENCE) 32


</div>
</div>

<div id="main-wrapper" data-theme="light" data-layout="vertical" data-


navbarbg="skin6" data-sidebartype="full" data-sidebar-position="fixed" data-
header-position="fixed" data-boxed-layout="full">
<!-- ============================================================== --
>
<!-- Topbar header - style you can find in pages.scss -->
<!-- ============================================================== --
>
<?php include_once('includes/header.php');?>

<?php include_once('includes/sidebar.php');?>
<div class="page-wrapper">
<!--
============================================================== -->
<!-- Bread crumb and right sidebar toggle -->
<!--
============================================================== -->
<div class="page-breadcrumb">
<div class="row">
<div class="col-7 align-self-center">
<h4 class="page-title text-truncate text-dark font-
weight-medium mb-1">Add Tiffin</h4>
<div class="d-flex align-items-center">
<nav aria-label="breadcrumb">
<ol class="breadcrumb m-0 p-0">
<li class="breadcrumb-item"><a
href="dashboard.php" class="text-muted">Home</a></li>
<li class="breadcrumb-item text-muted
active" aria-current="page">Add Tiffin</li>
</ol>
</nav>
</div>
</div>

</div>
</div>

<div class="container-fluid">

<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<h4 class="card-title">Add Tiffin</h4>

BCA(DEPARTMENT OF COMPUTER SCIENCE) 33


<form action="" method="post"
enctype="multipart/form-data">

<div class="form-body">

<div class="form-group row">


<label class="col-md-2">Type:
</label>
<div class="col-md-10">
<div class="row">
<div class="col-md-10">
<div class="form-
group">
<select
type="text" class="form-control" id="" name="type" value="" required='true'>
<option
value="">Choose Type</option>
<option
value="Veg">Veg</option>
<option
value="Non Veg">Non Veg</option>

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

</div>

</div>
</div>
<div class="form-group row">
<label class="col-md-2">Title:
</label>
<div class="col-md-10">
<div class="row">
<div class="col-md-10">
<div class="form-
group">
<input type="text"
class="form-control" id="" name="title" value="" required='true'>
</div>
</div>

</div>

</div>
</div>
<div class="form-group row">

BCA(DEPARTMENT OF COMPUTER SCIENCE) 34


<label class="col-md-
2">Description: </label>
<div class="col-md-10">
<div class="row">
<div class="col-md-10">
<div class="form-
group">
<textarea
type="text" class="form-control" id="" name="desc" value=""
required='true'></textarea>
</div>
</div>

</div>

</div>
</div>
<div class="form-group row">
<label class="col-md-2">Cost:
</label>
<div class="col-md-10">
<div class="row">
<div class="col-md-10">
<div class="form-
group">
<input
type="text" class="form-control" id="" name="cost" value="" required='true'>
</div>
</div>

</div>

</div>
</div>
<div class="form-group row">
<label class="col-md-2">Image:
</label>
<div class="col-md-10">
<div class="row">
<div class="col-md-10">
<div class="form-
group">
<input
type="file" class="form-control" id="" name="images" value="" required="true">
</div>
</div>

</div>

BCA(DEPARTMENT OF COMPUTER SCIENCE) 35


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

<div class="form-actions">
<div class="text-center">
<button type="submit" class="btn
btn-info" name="submit">Submit</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>

</div>

<?php include_once('includes/footer.php');?>

</div>

</div>

<script src="assets/libs/jquery/dist/jquery.min.js"></script>
<!-- Bootstrap tether Core JavaScript -->
<script src="assets/libs/popper.js/dist/umd/popper.min.js"></script>
<script src="assets/libs/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- apps -->
<!-- apps -->
<script src="dist/js/app-style-switcher.js"></script>
<script src="dist/js/feather.min.js"></script>
<!-- slimscrollbar scrollbar JavaScript -->
<script src="assets/libs/perfect-scrollbar/dist/perfect-
scrollbar.jquery.min.js"></script>
<script src="assets/extra-libs/sparkline/sparkline.js"></script>
<!--Wave Effects -->
<!-- themejs -->
<!--Menu sidebar -->
<script src="dist/js/sidebarmenu.js"></script>
<!--Custom JavaScript -->
<script src="dist/js/custom.min.js"></script>
</body>

</html>
<?php } ?>

BCA(DEPARTMENT OF COMPUTER SCIENCE) 36


4.3 Testing Approch –

4.3.1 Unit testing

Unit testing is a type of software testing where individual


units or component of software are tested .The purpose is to
validate that each unit of software code perform as expected.
Unit testing is done during the development of the
application by the developers.

Following modules were tested under the unit testing-

Register page-
Register page was tested by entering valid or
invalid input from the user.
By clicking on sign-up button if it is registered successfully
then only the login page will be displayed.
Text button, checkbox, button were used to enter user
details.

Login page-

Login page was tested by entering valid as well as invalid


input for username and password.
After entering valid username and password the user will
directed to the main cart page from which customer have to

BCA(DEPARTMENT OF COMPUTER SCIENCE) 37


order. Button, Required-field, textbox were used to enter
username and password. If after clicking on submit button it
redirects you to cart page then the login is done successfully
and if a dialog box will appear indicating invalid username or
password then your login will failed.

Tiffin choose page –

Textbox is used to enter the number of quantity of


meals customer want to add to their Myorder.
Buttons, images used to make the cart look attractive .

4.3.2 Integrated Testing -


Integrated testing is the phase in software testing in which
individual software modules are combined and tested as a
group.
Home page is connected with various page such as register
page , login page, tiffin choosing page ,about us
page ,contact us .
Register page is connected to login page .After successful
registration ,the user will be directed to login page.
Login page and tiffin choose page is connected. After
successful login user will be directed to tiffin choose page.
After that they can place their order by clicking on order
button .

4.4 .3 Beta testing –

BCA(DEPARTMENT OF COMPUTER SCIENCE) 38


Beta testing is the final round of testing before a product is
finally released to finally audience.

4.4 Modifications and improvements-

Modification that can be done in the system is –

Precised payments options and the receipt for the order to


be generated.
Even their should be admin page where admin can manage
all the orders .

4.5 Test cases


Testing is the process of executing the program with the
intent of finding out errors. A good test case is one that high
probability of finding as an yet undiscovered error. A
successful test is one that uncovers as a yet undiscovered
error. Software testing is the critical element of software
quality assurance and represents the ultimate of
specification, design and code generation.

4.5.1 black box testing –


It is defining as testing technique in which functionality of
application under test is tested without looking at internal
code structure ,implementation details and knowledge of
internal path of software .This type of testing is based on the
software requirements and specifications. We just focus on
BCA(DEPARTMENT OF COMPUTER SCIENCE) 39
the output and input of the software system without
bothering internal knowledge of software program .

1 Equivalence Partitioning

2 Boundary Value Analysis

3 Cause – Effect graphing

4.5.2 White-box Testing


In this type of testing ,code is visible to the tester .It focuses
on verifying the flow of input and output through the
applications ,design ,usability , and strengthening security.
White box testing is also called clear box testing .Open
testing, structural testing ,code testing.

1 Statement coverage

2 Branch Coverage

BCA(DEPARTMENT OF COMPUTER SCIENCE) 40


Chapter 5
Results and Discussion

5.1 Test Reports –


For login –

S no case expected actual


description result result

valid Credentials direct to tiffin Same as


1 choose page expected

2 Invalid Invalid username Same as


Credentials expected
And password

For tiffin choose page-

S no case description expected results actual results

1 Entering char. in action restricted Same as


whole text box
expected

BCA(DEPARTMENT OF COMPUTER SCIENCE) 41


2

CONCLUSION/FUTURE WORK

This chapter includes the Conclusion reached after


creating the current version of the software to
meet the system objectives. The comparison is
done between the system that was built and
original requirements that were designed at the
beginning of the project. It also describes the
Future Work that is intended to be accomplished
with later versions of the software.
 Conclusion

The main objective of the application is to help


computer science students understand the basics
of Java, JavaScript, and HTML. By browsing
through the application and looking at the code
for each graphical interpretation, students should
be able to easily understand the implementation.
The following results have been achieved after the
completing the system and relate back to the
system’s objective.

BCA(DEPARTMENT OF COMPUTER SCIENCE) 42


1. Should allow computer science students to
browse through the code and application:
This is achieved when users, i.e., computer
science students, are able to run and install
the application. When they run the
application, they can browse through the
implementation of different objects.
2. Should allow users to browse through
different product categories:
This is achieved when the user first runs the
application and is directed to a home page
that has categories available for all the
different item types that can be purchased
with this online shopping-cart application.
The user can browse and click on any
category to view the items listed for that
particular category.
3. Should allow users to save items to the cart
and also to view detailed information about
a particular item:
The users can add any number of items to the
shopping cart from any of 67 the listed
categories by simply clicking the cart icon at
the right-hand corner of each item. Users can
view a detailed description of the item and

BCA(DEPARTMENT OF COMPUTER SCIENCE) 43


price by clicking on the more icon next to the
cart icon
4. Should allow users to check out the items:
This is achieved when users click the
checkout button in the shopping cart. The
checkout button disappears when there are
no items in the shopping cart. This implies
that users can only click the checkout button
when there are items in the shopping cart.
5. System users should be able to place the
order by filling out the order form:
This is achieved when a user clicks the
checkout button and an order form appears
on the same page, showing the detailed
order total with shipping charges and sales
tax, which requires the user to complete all
the information to successfully place an
order. The user is not able to place an order if
any information on the form is invalid or
empty.
6. The user should see a success message after
placing an order:
This is achieved when a user successfully
places an order by completely filling in all the
rows after which he or she can click the

BCA(DEPARTMENT OF COMPUTER SCIENCE) 44


place-order button. The user receives a
message that the order has been successfully
placed

 Future Work
The following section discusses the work that will
be implemented with future releases of the
software.
1. Detailed categories: Future work could involve
adding more categories which are more detailed
and have additional items.
2. Watch/Wish List: Work can add a watch list
or wish list so that users can add an item to a list to
watch for item prices to go down or to see when
there is a sale on any of those items. 68
3. Enhanced User Interface: Work on enhancing
the user interface by adding more userinteractive
features.
4. Recommended Items: Add a bar that would
display the most-recommended items which would
depend on the number of times an item has been
purchased by any users.
5. Payment Options: Add different payment
options, such as Visa, MasterCard, PayPal, etc.,

BCA(DEPARTMENT OF COMPUTER SCIENCE) 45


where a user can also save the card information for
later checkouts.
6. Shipping Options: Add different types of
shipping options: regular shipping, expedited
shipping, international shipping, etc.
7. Recent History: Display the user’s recently
browsed items in the recent-history tab.

BCA(DEPARTMENT OF COMPUTER SCIENCE) 46

You might also like