Professional Documents
Culture Documents
User Module:
The customer table consists of below details
Employee Module:
Employee table is used to save user login information.
FUTURE SCOPES
System analysis is a necessary activity that takes place when we are building a new
informations system or changing existing ones. Analysis is used to understand the
existing system and what is required of it. At the end of analysis, there is system
description and a set of requirements for a new system. If there is no existing system,
the analysis define only the requirements.
Needs
1. High Employee Productivity. Think about all the time your employees spend
taking order from the user over the phone and making sure that the order is correct.
When taking orders over the phone, there is a higher likelihood of miscommunication,
in turn, compelling employees to stay on the phone longer to ensure that they have
gotten the correct order before hanging up. By implementing an online ordering
service, employees will spend less time taking phone orders and can spend more time
actually preparing those orders for pick-up or delivery to the customer. Another great
benefit of online ordering is the ability for the customer to pre-place large orders and
set a specific pick-up or delivery time. This allows the restaurant employees time to
properly prep large orders in advance.
3. Grow your Business. Sometimes people don’t want to be bothered with calling and
placing their take-out or delivery order over the phone, and opt for a restaurant that
provides an online ordering service or application instead. Convenience is key when it
comes to customer service. Providing a seamless and easy-to-use online ordering
system will create a better experience for customers, resulting in an increase in sales.
5. Powerful Analytics. Once you’ve built your database of customers, you can then
use analytics offered with online ordering services to track the ordering patterns of
your customers. This will allow you to offer tailored promotions to customers based on
what they frequently order or how frequently they order. You can also use this
information to adjust, add, or remove menu items based on what your customers are
ordering.
Implementing an online ordering system can bring endless benefits to your restaurant
business. You may consider using your own, or partnering with an existing online
ordering app. Whichever you choose, Star Micronics is there to help you seamlessly
integrate online ordering into your restaurant by providing cloud-based point of sale
technology to help that order go straight from the cloud, to your restaurant, and then
out the door.
Feasibility study
All projects are feasible if unlimited resources and infinite time is given!
Unfortunately, the development of computer-based system or product is more likely
plagued by a shortage of resources and difficult delivery dates. It is both necessary and
judicious to evaluate the feasibility of a project at the earliest possible time. Generally,
the feasibility study is used for determining the cost of required resources, benefits and
whether the proposed system is feasible with respect to the organization. There are
three types of feasibility which are equally important. They are: -
1. Economic feasibility
2. Technical feasibility
3. Operational feasibility
1. Economical feasibility
Economic feasibility is concerned with cost savings, increased profits & reductions in
efforts. It shows how much beneficial is the new developed
system than the existing system.
System startup cost: -
As this project is related to security service which aims at providing better services to
users and viewers and does not yield any income. Providing better services is the basic
requirement of any organization either services sector or financial sector. So, the
proposed system is economically feasible as it also reduces manpower utilization.
2. Technical feasibility: -
Technical feasibility deals with the existing technology, software and hardware
requirement of the proposed system. The proposed system
“Online Food Ordering System” needs the following: -
3.Operational feasibility: -
Operational feasibility is the willingness & ability of the management, employees, users
and others to use & support a proposed system. There is no difficulty in handling the
system. There is full support from management.
This system can give good support and makes the services easy.
System Requirements
Software Requirements :
Text Editor : A text editor is a type of computer program that edits plain
text. Such programs are sometimes known as "notepad" software,
following the naming of Microsoft Notepad. Text editors are provided
with operating systems and software development packages, and can be
used to change files such as configuration files, documentation files
and programming language source code.
Hardware Requirements :
Front-End :
HTML : HTML stands for Hyper Text Markup Language, which is the most
widely used language on Web to develop web pages. HTML was created by
Berners-Lee in late 1991 but "HTML 2.0" was the first standard HTML
specification which was published in 1995. HTML 4.01 was a major version of
HTML and it was published in late 1999. Though HTML 4.01 version is widely
used but currently we are having HTML-5 version which is an extension to
HTML 4.01, and this version was published in 2012.
Originally, HTML was developed with the intent of defining the structure of
documents like headings, paragraphs, lists, and so forth to facilitate the sharing
of scientific information between researchers. Now, HTML is being widely used
to format web pages with the help of different tags available in HTML language.
HTML is a MUST for students and working professionals to become a great
Software Engineer specially when they are working in Web Development
Domain. I will list down some of the key advantages of learning HTML:
Create Web site - You can create a website or customize an existing web
template if you know HTML well.
Easy Maintainence : To make a global change simply change the style, and all
Back-End :
Data flows are data structures in motion, while data stores are structure of data. Data
flows are paths or ‘pipe lines’, along which data structures travel, where as the data
stores are place where data structures are kept until needed.
Data flows are structure of data in motion, while data stores are data structures at rest.
Hence it is possible that the data flow and the data store would be made up of the same
data structure.
Data flow diagrams is a very easy tool for the system analyst because it gives the analyst
the overall picture of the system, it is a diagrammatic approach.
Food Order
Management Management
Online
Food
Ordering
System
Admin
Management
2) Level-1 DFD: This shows the separation of all external, relationship between those
modules and the application.
Customer
Management Login
Management
Online
Order management
Food
Generate Order
Ordering Report
Delivery Address System
management
Generate System
Food Management User Report
3) Level – 2 DFD : This differentiates the modules frontend and backend.
Manage Coupon
Details
Forgot
password Check
Credential Manage
s Modules Manage Customer
Details
Send
Email to Manage Cash Details
User
Every restaurateur, owner and manager knows they need an effective and efficient
online ordering system in order to ensure their long-term success as a business. What
most of them don’t know, however, is how or where to get started. It can seem like
there are a million possibilities, and every single one of them can seem like a stroke of
genius.
The problem is that most people who are unfamiliar with web design, online
purchasing systems and point of sale integration don’t always understand how much an
online food ordering system design impacts its overall functionality. What looks
amazing on a website may be a complete pain in the posterior for your customers to
use or your house manager to administrate without four calls a day to technical support
or numerous hours of training.
So, just how do you design a proper online food ordering system, anyway? Here are
some tips to get you started on your system design journey. Even if you decide to bring
in outside help, you will at least be familiar with what is out there and how it could
potentially affect your customers and staff.
Over the last century, people’s eating habits have changed a lot. Technology has also
contributed to the changes in consumer preference as their dependence on technology
has moved them to do everything online including getting cooked meals delivered to
their doorstep.
Probably, this is the one of the reason why the mobile applications for ordering food
online are so popular nowadays and became great source of ideas for UI/UX designers.
Challenge
I found that factors contributing to the popularity of online food ordering were: lack of
time to prepare food, availability of variety, rewards and cash-backs. It led me to think
of convenient and more attractive app for users in order to meet their expectations more
precisely while ordering food online.
Task
Create UI/UX design of website for ordering food online.
Problem Definition
The mobile aggregator is an application that combines various thematic platforms in
order to increase their level of sales and ensure the convenience of the choice of dishes
and drinks by users. A distinctive feature of the website is a single design, user-friendly
interface.
Process
I’ve started the process with competitive research and I identified top three competitors.
Analyzing and comparing the content of their websites helped me to determine the
direction of development for my website.
CODE
INDEX.PHP
<HTML>
<HEAD>
<TITLE>Welcome to 24X7 Foodies.com!</TITLE>
<style type="text/css">
@import url(style.css);
a:link {color: #ffffff} // color of links set to white
a:visited {color: #ffffff}
a:hover {color: #ffffff}
a:active {color: #ffffff}
</style>
</HEAD>
<BODY background="background.jpg">
<?php include("header.php"); ?>
<FONT size="5" color="white">
<SECTION align="center"><A HREF="index.php"><IMG SRC="logo.png"
alt="Home" id="logo" width="40" height="35"
align="rights"></IMG></A></SECTION>
<SECTION><MAIN>
<B><P>We are available only at the following regions.<BR> Please select any
one:</P></B></FONT>
<SECTION align="center"><IMG src="burger.jpg" width="250" height="200"
align="rights"></IMG></SECTION>
<TABLE >
<TR><TD><FONT size="6" color="black">
<A HREF="order.php" style="text-decoration: none">1)Kandivali
West</A></FONT></TD></TR>
<TR><TD><FONT size="6" color="ffb6c1">
<A HREF="order.php" style="text-decoration: none">2)Kandivali
East</A></FONT></TD></TR>
<TR><TD><FONT size="6" color="ffb6c1">
<A HREF="order.php" style="text-decoration: none">3)Borivali
West</A></FONT></TD></TR>
<TR><TD><FONT size="6" color="ffb6c1">
<A HREF="order.php" style="text-decoration: none">4)Borivali
East</A></FONT></TD></TR>
</TABLE></SECTION></MAIN><BR><HR width="1000">
<FOOTER>
<FONT size="2" color="white">
By continuing past this page, you agree to our Terms of Service, Cookie Policy,
Privacy Policy and Content Policies. © 2015-2016 - 24x7 Foodies Media Pvt Ltd.
All rights reserved.</FONT>
</FOOTER>
</BODY>
</HTML>
HELP.PHP
<HTML>
<HEAD>
<TITLE>Help & FAQ</TITLE>
<style type="text/css">
*{font-family: 'Roboto', sans-serif;}
a:link {color: #ffffff}
a:visited {color: #ffffff}
a:hover {color: #ffffff}
a:active {color: #ffffff}
#grad {background: linear-gradient(to right, aqua , white);}
#panel, #flip { padding: 2px; text-align: left}
#panel1,#panel2,#panel3,#panel4,#panel5,#panel6,#voucher{ display:none; } //hide
this content
.ptr { text-decoration: none; cursor: pointer;}
</style>
<script
src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js"></script>
<script>
$(document).ready(function(){ $("#flip1").click(function(){
$("#panel1").slideToggle("slow"); });});
</script>
<script>
$(document).ready(function(){ $("#flip2").click(function(){
$("#panel2").slideToggle("slow"); });});
</script>
<script>
$(document).ready(function(){ $("#flip3").click(function(){
$("#panel3").slideToggle("slow"); });});
</script>
<script>
$(document).ready(function(){ $("#flip4").click(function(){
$("#panel4").slideToggle("slow"); });});
</script>
<script>
$(document).ready(function(){ $("#flip5").click(function(){
$("#panel5").slideToggle("slow"); });});
</script>
<script>
$(document).ready(function(){ $("#flip6").click(function(){
$("#panel6").slideToggle("slow"); });});
$(document).mouseup(function (e)
{ var container = $(".panel");
if (!container.is(e.target) // if the target of the click isn't the container...
&& container.has(e.target).length === 0)
{ container.hide("slow"); }});
$(document).ready(function(){
$("#banner").mouseenter(function()
{
$("#voucher").show();
$("#voucher").animate({left: '500px'});
});
});
</script>
<script>
$(document).ready(function(){ $("#banner").dblclick(function(){
alert("Error!!! You have double clicked. Please retry.");
});
});
$(document).ready(function(){
$("#voucher").mousedown(function(){
var $temp = $("<input>");
$("body").append($temp);
$temp.val($("#voucher").text()).select();
document.execCommand("copy");
$temp.remove();
});
});
</script>
</HEAD>
<BODY background="dark.jpg">
<?php include("header.php"); ?>
<TABLE width="1200" height="440" style="border-width:4px; border-
style:dashed;border-color:#0000CC;border-radius: 25px;" align="center" id="grad">
<CAPTION><FONT color="white" size="5">Help & FAQ</FONT></CAPTION>
<TR><TD><FONT size="4" face="Tahoma"><UL>
<LI><SECTION id="flip1" class="ptr">Where do you deliver?</SECTION>
<div id="panel1" class="panel">
We deliver across the following regions:<BR>
1)Kandivali West<BR>
2)Kandivali East<BR>
3)Borivali West<BR>
4)Borivali East<BR></div></LI><HR>
<LI><SECTION id="flip2" class="ptr">When do you deliver?</SECTION>
<div id="panel2" class="panel">
We deliver Wednesday, Thursday and Friday for all customers, as well as Saturdays,
Mondays, Tuesdays and Sundays in specific areas.<BR>
You can order during any time of the day. The delivery will be done between 30-60
mins after placement of order.</div></LI><HR>
<LI><SECTION id="flip3" class="ptr">What if I am not at home to accept the
delivery?</SECTION>
<div id="panel3" class="panel">Not to worry! If you are not home during delivery,
our courier will drop the box off at your front door (or wherever you specify in your
Delivery Instructions).
If you live in an area where a box could not easily be left, we suggest one of the
following solutions:<BR>
✔Provide the address of a helpful neighbor that will be home during the delivery
window and can accept your package for you.<BR>
✔Have the box delivered to your work place.</div></LI><HR>
<LI><SECTION id="flip4" class="ptr">How does the food stay fresh in
transit?</SECTION>
<div id="panel4" class="panel">We have specially designed boxes that we pack with a
nice, thick liner and ice packs to ensure that everything arrives to you perfectly
cold!</DIV></LI><HR>
<LI><SECTION id="flip5" class="ptr">How much does delivery cost?</SECTION>
<div id="panel5" class="panel">It’s free, silly! You subscribe and delivery is on
us!</DIV></LI><HR>
<LI><SECTION id="flip6" class="ptr">How many calories do your meals
have?</SECTION>
<div id="panel6" class="panel">Roughly speaking our meals contain anywhere from
500-800 calories each.</DIV></LI></UL></FONT></TR></TD></TABLE>
<DIV id="voucher" style="color:white;position:absolute;font-size: 25">Your Voucher
ID is :6457HT5467 (Click to copy)</DIV><BR>
<IMG SRC="voucher.jpg" width="300" height="150" border="2" id="banner"
align="right"></IMG>
</BODY>
</HTML>
HEADER.PHP
<!DOCTYPE html>
<html>
<head>
<title><?php echo "$title" ?></title>
<style type="text/css">
@import url(style.css);
a:link {color: #ffffff} // color of links set to white
a:visited {color: #ffffff}
a:hover {color: #ffffff}
a:active {color: #ffffff}
</style>
</head>
<body>
<FONT size="4" color="white">
<NAV align="right" color="white">
<A HREF="index.php">Home</A>   
<A HREF="help.php">Help</A>   
<?php
session_start();
if(isset($_SESSION['user_info']))
echo 'Welcome <A HREF="login.php"> '.$_SESSION['user_info'].'</a>';
else
echo '<A HREF="register.php">Login/Register</A>';
?>
</FONT></NAV>
</body>
</html>
REGISTER.PHP
<?php
$conn = mysqli_connect("localhost","root","","foodies");
if(!$conn){
die('Could not connect: '.mysqli_connect_error());
}
if (isset($_POST['submit']))
{
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$location=$_POST['location'];
$mob=$_POST['mob'];
$addr=$_POST['addr'];
$email=$_POST['email'];
$pw=$_POST['pw'];
$cpw=$_POST['cpw'];
$sql = "INSERT INTO user VALUES ('$fname', '$lname', '$location', '$mob', '$addr',
'$email', '$pw', '$cpw');";
if(mysqli_query($conn, $sql))
{
$message = "You have been successfully registered";
}
else
{
$message = "Could not insert record";
}
echo "<script type='text/javascript'>alert('$message');</script>";
$sql1 = "INSERT INTO php_users_login(`email`, `password`) VALUES ('$email',
'$pw');";
if(mysqli_query($conn, $sql1))
{
}
else
{
echo "<script type='text/javascript'>alert('Could not insert record');</script>";
}
}
?>
<HTML>
<HEAD>
<TITLE>Register-24X7 Foodies.com</TITLE>
<LINK REL="STYLESHEET" HREF="STYLE.CSS">
<SCRIPT type="text/javascript">
function validate()
{
var fname=document.getElementById("fname");
var lname=document.getElementById("lname");
var mob=document.getElementById("mob");
var location=document.getElementById("location");
var EmailId=document.getElementById("email");
var addr=document.getElementById("addr");
var pw=document.getElementById("pw");
var cpw=document.getElementById("cpw");
var alphaExp = /^[a-zA-Z]+$/;
var atpos = EmailId.value.indexOf("@");
var dotpos = EmailId.value.lastIndexOf(".");
if(fname.value==null || fname.value=="")
{
fname.focus();
alert("Enter valid first name");
return false;
}
if(fname.value.match(alphaExp)){}
else{
alert("First name can have only letters");
fname.focus();
return false;
}
if(lname.value==null || lname.value=="")
{
lname.focus();
alert("Enter valid last name");
return false;
}
if(lname.value.match(alphaExp)){}
else{
alert("Last name can have only letters");
lname.focus();
return false;
}
if(location.selectedIndex==0)
{
alert("Please select location");
location.focus();
return false;
}
if(mob.value==null || mob.value==" ")
{
alert("Please Enter Mobile Number");
mob.focus();
return false;
}
if (isNaN(mob.value))
{
alert(" Your Mobile Number must be Integers");
mob.focus();
return false;
}
if((mob.value.length!= 10))
{
alert("Enter the valid Mobile Number(Like : 9669666999)");
mob.focus();
return false;
}
if(addr.value==" " || addr.value=="")
{
alert("Please Enter Your Address");
addr.focus();
return false;
}
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=EmailId.value.length)
{
alert("Enter valid email-ID");
EmailId.focus();
return false;
}
if(pw.value.length< 8 || cpw.value.length< 8)
{
alert("Please enter a password of atleast 8 characters");
pw.focus();
return false;
}
else if (pw.value.length != cpw.value.length)
{
alert("Passwords do not match.");
pw.focus();
return false;
}
else if (pw.value != cpw.value)
{
alert("Passwords do not match.");
pw.focus();
return false;
}
if (confirm("Do you want to submit your details?") == true) {}
else
{
return false;
}
var survey=prompt("How did you hear about us? (Used only for survey)");
return true;
}
</SCRIPT>
</HEAD>
<BODY background="background.jpg" style="background-position: center;
background-repeat: no-repeat;
background-size: cover"link="white" alink="white" vlink="white">
<?php include("header.php"); ?>
<FORM name="register" method="post" action="register.php" onsubmit="return
validate()">
<TABLE border="1" bordercolor="white">
<CAPTION><FONT size="6" color="WHITE">Enter your
details:</FONT></CAPTION>
<TR class="left"><TD><FONT size="5" color="WHITE">First
name:</FONT></TD>
<TD><INPUT name="fname" type="TEXT" placeholder="Enter your first name"
size="30" maxlength="30" align="center" id="fname"></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">Last
name:</FONT></TD>
<TD><INPUT type="TEXT" name="lname" align="center" size="30"
maxlength="30" placeholder="Enter your last name" id="lname"></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">Location:</FONT></TD>
<TD><SELECT name="location" id="location" style="color:#d3d3d3;"
onchange="document.postElementById('location').style.color='black';">
<OPTION VALUE="none" disabled selected>-------SELECT YOUR LOCATION-----
--</OPTION>
<OPTION VALUE="Kandivali West" style="color:black;">Kandivali
West</OPTION>
<OPTION VALUE="Kandivali East" style="color:black;">Kandivali
East</OPTION>
<OPTION VALUE="Borivali East" style="color:black;">Borivali East</OPTION>
<OPTION VALUE="Borivali West" style="color:black;">Borivali West</OPTION>
</SELECT></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">Mobile
Number:</FONT></TD>
<TD><INPUT type="TEXT" name="mob" size="30" maxlength="10"
placeholder="Enter your mobile number" id="mob"></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">Address:</FONT></TD>
<TD class="left"><TEXTAREA rows="7" cols="33" wrap="physical"
placeholder="Enter your address" id="addr"
name="addr"></TEXTAREA></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">E-Mail
ID:</FONT></TD>
<TD><INPUT name="email" type="TEXT" id="email" placeholder="Enter your E-
Mail ID" size="30" maxlength="30"></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">Password:</FONT></TD>
<TD><INPUT type="PASSWORD" name="pw" size="30" id="pw"></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">Confirm
Password:</FONT></TD>
<TD><INPUT type="PASSWORD" name="cpw" size="30" id="cpw"></TD></TR>
<TR class="left"><TD colspan="2"><FONT size="4" color="WHITE">
<INPUT type="checkbox" name="tc" value="tc">
I have read and accepted the Terms and Conditions and
<BR>     Privacy Policy</FONT></TD></TR>
</TABLE>
<P><INPUT TYPE="Submit" value="Submit" name="submit" id="submit"
class="button" onclick="if(!this.form.tc.checked){alert('You must agree to the terms
first.');return false}">      
<INPUT TYPE="Reset" value="Reset" id="reset" class="button"></P></FORM>
<HR width="1000">
<FORM action="login.php">
<P align="CENTER"><FONT size="6" color="white" face="Arial">
Already have an account with us?<BR></FONT>
<INPUT TYPE="submit" value="Login" id="login" class="button"></P>
</FORM>
</BODY>
</HTML>
LOGIN.PHP
<?php
$conn = mysqli_connect("localhost","root","","foodies");
if(!$conn){
die('Could not connect: '.mysqli_connect_error());
}
if (isset($_POST['submit']))
{
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$location=$_POST['location'];
$mob=$_POST['mob'];
$addr=$_POST['addr'];
$email=$_POST['email'];
$pw=$_POST['pw'];
$cpw=$_POST['cpw'];
$sql = "INSERT INTO user VALUES ('$fname', '$lname', '$location', '$mob', '$addr',
'$email', '$pw', '$cpw');";
if(mysqli_query($conn, $sql))
{
$message = "You have been successfully registered";
}
else
{
$message = "Could not insert record";
}
echo "<script type='text/javascript'>alert('$message');</script>";
$sql1 = "INSERT INTO php_users_login(`email`, `password`) VALUES ('$email',
'$pw');";
if(mysqli_query($conn, $sql1))
{
}
else
{
echo "<script type='text/javascript'>alert('Could not insert record');</script>";
}
}
?>
<HTML>
<HEAD>
<TITLE>Register-24X7 Foodies.com</TITLE>
<LINK REL="STYLESHEET" HREF="STYLE.CSS">
<SCRIPT type="text/javascript">
function validate()
{
var fname=document.getElementById("fname");
var lname=document.getElementById("lname");
var mob=document.getElementById("mob");
var location=document.getElementById("location");
var EmailId=document.getElementById("email");
var addr=document.getElementById("addr");
var pw=document.getElementById("pw");
var cpw=document.getElementById("cpw");
var alphaExp = /^[a-zA-Z]+$/;
var atpos = EmailId.value.indexOf("@");
var dotpos = EmailId.value.lastIndexOf(".");
if(fname.value==null || fname.value=="")
{
fname.focus();
alert("Enter valid first name");
return false;
}
if(fname.value.match(alphaExp)){}
else{
alert("First name can have only letters");
fname.focus();
return false;
}
if(lname.value==null || lname.value=="")
{
lname.focus();
alert("Enter valid last name");
return false;
}
if(lname.value.match(alphaExp)){}
else{
alert("Last name can have only letters");
lname.focus();
return false;
}
if(location.selectedIndex==0)
{
alert("Please select location");
location.focus();
return false;
}
if(mob.value==null || mob.value==" ")
{
alert("Please Enter Mobile Number");
mob.focus();
return false;
}
if (isNaN(mob.value))
{
alert(" Your Mobile Number must be Integers");
mob.focus();
return false;
}
if((mob.value.length!= 10))
{
alert("Enter the valid Mobile Number(Like : 9669666999)");
mob.focus();
return false;
}
if(addr.value==" " || addr.value=="")
{
alert("Please Enter Your Address");
addr.focus();
return false;
}
if (atpos<1 || dotpos<atpos+2 || dotpos+2>=EmailId.value.length)
{
alert("Enter valid email-ID");
EmailId.focus();
return false;
}
if(pw.value.length< 8 || cpw.value.length< 8)
{
alert("Please enter a password of atleast 8 characters");
pw.focus();
return false;
}
else if (pw.value.length != cpw.value.length)
{
alert("Passwords do not match.");
pw.focus();
return false;
}
else if (pw.value != cpw.value)
{
alert("Passwords do not match.");
pw.focus();
return false;
}
if (confirm("Do you want to submit your details?") == true) {}
else
{
return false;
}
var survey=prompt("How did you hear about us? (Used only for survey)");
return true;
}
</SCRIPT>
</HEAD>
<BODY background="background.jpg" style="background-position: center;
background-repeat: no-repeat;
background-size: cover"link="white" alink="white" vlink="white">
<?php include("header.php"); ?>
<FORM name="register" method="post" action="register.php" onsubmit="return
validate()">
<TABLE border="1" bordercolor="white">
<CAPTION><FONT size="6" color="WHITE">Enter your
details:</FONT></CAPTION>
<TR class="left"><TD><FONT size="5" color="WHITE">First
name:</FONT></TD>
<TD><INPUT name="fname" type="TEXT" placeholder="Enter your first name"
size="30" maxlength="30" align="center" id="fname"></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">Last
name:</FONT></TD>
<TD><INPUT type="TEXT" name="lname" align="center" size="30"
maxlength="30" placeholder="Enter your last name" id="lname"></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">Location:</FONT></TD>
<TD><SELECT name="location" id="location" style="color:#d3d3d3;"
onchange="document.postElementById('location').style.color='black';">
<OPTION VALUE="none" disabled selected>-------SELECT YOUR LOCATION-----
--</OPTION>
<OPTION VALUE="Kandivali West" style="color:black;">Kandivali
West</OPTION>
<OPTION VALUE="Kandivali East" style="color:black;">Kandivali
East</OPTION>
<OPTION VALUE="Borivali East" style="color:black;">Borivali East</OPTION>
<OPTION VALUE="Borivali West" style="color:black;">Borivali West</OPTION>
</SELECT></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">Mobile
Number:</FONT></TD>
<TD><INPUT type="TEXT" name="mob" size="30" maxlength="10"
placeholder="Enter your mobile number" id="mob"></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">Address:</FONT></TD>
<TD class="left"><TEXTAREA rows="7" cols="33" wrap="physical"
placeholder="Enter your address" id="addr"
name="addr"></TEXTAREA></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">E-Mail
ID:</FONT></TD>
<TD><INPUT name="email" type="TEXT" id="email" placeholder="Enter your E-
Mail ID" size="30" maxlength="30"></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">Password:</FONT></TD>
<TD><INPUT type="PASSWORD" name="pw" size="30" id="pw"></TD></TR>
<TR class="left"><TD><FONT size="5" color="WHITE">Confirm
Password:</FONT></TD>
<TD><INPUT type="PASSWORD" name="cpw" size="30" id="cpw"></TD></TR>
<TR class="left"><TD colspan="2"><FONT size="4" color="WHITE">
<INPUT type="checkbox" name="tc" value="tc">
I have read and accepted the Terms and Conditions and
<BR>     Privacy Policy</FONT></TD></TR>
</TABLE>
<P><INPUT TYPE="Submit" value="Submit" name="submit" id="submit"
class="button" onclick="if(!this.form.tc.checked){alert('You must agree to the terms
first.');return false}">      
<INPUT TYPE="Reset" value="Reset" id="reset" class="button"></P></FORM>
<HR width="1000">
<FORM action="login.php">
<P align="CENTER"><FONT size="6" color="white" face="Arial">
Already have an account with us?<BR></FONT>
<INPUT TYPE="submit" value="Login" id="login" class="button"></P>
</FORM>
</BODY>
</HTML>
STYLE.CSS
DEACT.PHP
<html>
<head>
<title>Deactivate account</title>
<link rel="stylesheet" href="css/main.css">
<link href='http://fonts.googleapis.com/css?family=Roboto:400,300,500'
rel='stylesheet' type='text/css'>
<link href="//netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css"
rel="stylesheet">
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/main.js"></script>
<style type="text/css">
a:link {color: #ffffff}
a:visited {color: #ffffff}
a:hover {color: #ffffff}
a:active {color: #ffffff}
</style>
</head>
<body>
<?php include("header.php"); ?>
<form id="login-form" class="login-form" name="form1" method="post"
action="deact.php">
<div id="form-content"> <div class="welcome">Do you sure you wish to deactivate
your account?<br />
Email ID: <input type="text" name="email"><br/>
Password: <input type="password" name="password"><br/><br/><br/>
<center><input type="submit" name="submit" value="Deactivate
account"></center></div> </div>
</form>
</body>
</html>
<?php
if (isset($_POST['submit']))
{
$email=$_POST['email'];
$password=$_POST['password'];
$connect = mysql_connect("localhost","root","");
mysql_select_db("foodies") or die("couldn't find database");
$query = mysql_query("select * from php_users_login where email='$email'");
$numrows = mysql_num_rows($query);
if($numrows!=0)
{
while($row = mysql_fetch_assoc($query))
{
$dbemail = $row['email'];
$dbpassword = $row['password'];
}
if($email==$dbemail&&$password==$dbpassword)
{
$sql1 ="DELETE FROM `php_users_login` WHERE email='$dbemail';";
if(mysql_query($sql1))
{
echo "<script type='text/javascript'>alert('User deleted successfully');</script>";
}
else
{
echo "<script type='text/javascript'>alert('Could not delete user');</script>";
}
}
else
echo "<script type='text/javascript'>alert('Incorrect password');</script>";
}
else
echo "<script type='text/javascript'>alert('User does not exist');</script>";
}
?>
ORDER.PHP
<?php
session_start();
include('config.php');
if (isset($_POST['submit'])){
if(!empty($_SESSION['user_info'])) {
$qty1=$_POST['qty1'];
$qty2=$_POST['qty2'];
$qty3=$_POST['qty3'];
$qty4=$_POST['qty4'];
$qty5=$_POST['qty5'];
$qty6=$_POST['qty6'];
$qty7=$_POST['qty7'];
$qty8=$_POST['qty8'];
$qty9=$_POST['qty9'];
$user_info=$_SESSION['user_info'];
$sum=30* (int)$qty1+60* (int)$qty2+30* (int)$qty3+180* (int)$qty4+350*
(int)$qty5+200* (int)$qty6+300* (int)$qty7+250* (int)$qty8+270* (int)$qty9;
value='-'/>
<font size="4">Rs. 350</font></td>
<td><img src="bhurji.jpg" width="300" height="200" border="2"><br/>
<font size="4">Paneer Bhurji</font> <input type='text'
name='qty6' id='qty6' size="1" maxlength="2" class="qty" style="width:
25px;"/>
<input type='button' name='add' onclick='javascript:
document.getElementById("qty6").value++;' value='+'/>
<input type='button' name='subtract' onclick='javascript: subtractQty(qty6);'
value='-'/>
</table></form>
</body>
</html>
DATABASE
TESTING
SOFTWARE TESTING
Testing is vital to the success of the software. Testing of the s/w leads to uncovering of
errors in the s/w functional and requirements are met. Testing also provide a good
indication of s/w reliability as software quality as a whole. The result of the different
phases of testing are evaluated and then compared with the expected results. If the errors
are uncovered they are debugged and corrected.
A strategy for the software testing may also be viewed in the context of the spiral.
(1).Unit Testing:
Unit test begins at the vortex of the spiral and concentrates on each unit of the software
as implemented in source code. Unit testing focuses verification effort on the smallest
unit of software design- the software component or module using the component level
design description as a guide, important control paths are tested to uncover errors within
the boundary of the module. The unit testing is white-box oriented, and the steps can be
conducted in parallel for multiple components.
The modules in the project allocated to each of the individuals were tested individually
for errors and a list of all the errors were compiled and the code was reworked to remove
the errors encountered. Thus as a first step, the modules was first individually made error
free.
(2).Integration Testing:
Integration Testing is a systematic technique for constructing the program structures
while at the same time conducting tests to uncover errors associated with interfacing.
The objective is to take unique tested components and build a program structure that has
been dictated by design.
A number of different incremental integration strategies are discussed below:
(3).Regression Testing:
Each time a new module is added as a part of integration testing, the software changes,
new data flow part are established, new i/o may occur and new control logic is invoked.
Regression is the re execution of some subsets of tests that have already been conducted
to ensure that changes have not propagate unintended side effects.
(4).Validation Testing:
At the culmination of integration testing, software is completely assembled as a
package, interfacing errors have been uncovered and corrected, and a final series of
software tests-validation testing- may begin. Validation succeeds when software
functions in a manner that can be reasonably expected by the customer.
Validation Test Criteria: Software validation is achieved through a series of black box
tests that demonstrate conformity with requirements.
After each validation test case has been conducted, one of two possible conditions exists:
Configuration Review
The intent of the review is to ensure that all elements of the software configuration have
been properly developed, are cataloged and have the necessary detail to bolster the
support phase of the software life cycle.
Alpha Testing: The customer conducts the alpha test at the developer site. The software
is used in a nature setting with the developer “looking over the shoulder” of the user and
recording errors and usage problem. Alpha test is conducted in a controlled environment.
The developer of the software creates this environment. The most important advantage
of this type of test is that during this test the user can work on the software in a guidance
of the developer of the software. This can be a medium so that the user can get the better
training for the use of the software and developer can get the real reason of the generation
of error or defect.
(b).Beta Testing: The Beta test is conducted at one or more customer site by the end
users of the software. Beta test is a live application of the software in an environment
that cannot be controlled by the developer. The customer records all problems that are
encountered during beta testing and reports these to the developer at regular intervals.
At a result of problems during beta test, the software developer makes modification and
then prepares for releases of the software product to the entire customer based.
(6).System Testing:
System testing is actually a series of different tests whose primary purpose is to fully
exercise the computer based system. Although each test has a different purpose, all work
to verify that system elements have been properly integrated and perform allocated
functions.
(7).Recovery Testing:
Recovery testing is a system test that forces the software to fail in a variety of ways and
verifies that recovery is properly performed. If recovery is
automatic data recovery and restart and are evaluated for correctness. If recovery
requires human intervention, the mean-time–to –repair (MTTR) is evaluated to
determine whether it is with in acceptable limits.
(8).Security Testing :
Security testing attempts to verify that protection mechanism built into a system will, in
fact, protect it from improper penetration.
(9).Stress Testing:
Stress testing executes a system in a manner that demands resources in an abnormal
quantity, frequency or volume. For example
•Special test may be designed that generate 10 interrupts per second when one or two is
the average rate.
•Test cases that may excessive hunting for disk-resident data are created.
(10)Performance testing:
Performance testing is designed to test the run time performance of software within the
context of the integrated system. Performance testing occurs throughout all steps in the
testing process.
SCOPE OF TESTING
software, a tester must think like an attacker. Third, to perform testing effectively, testers
need to know the different tools and techniques available for white box testing. The three
requirements do not work in isolation, but together.
Test Strategy
testing, cause-effect graphing, boundary testing, and white box testing to test this product
against its specification."
The test strategy is a formal description of how a software product will be tested. A test
strategy is developed for all levels of testing, as required. The test team analyzes the
requirements, writes the test strategy and reviews the plan with the project team. The
test plan may include test cases, conditions, the test environment, a list of related tasks,
pass/fail criteria and risk assessment.
Inputs for this process:
• A description of the required hardware and software components, including test
tools. This information comes from the test environment, including test tool data.
• A description of roles and responsibilities of the resources required for the test
and schedule constraints. This information comes from man-hours and schedules.
• Testing methodology. This is based on known standards.
• Functional and technical requirements of the application. This information comes
from requirements, change request, technical and functional design documents.
• Requirements that the system can not provide, e.g. system
limitations.
Test Planning
http://www.google.com
http://www.w3schools.com
http://www.tutorial.com
https://www.dofactory.com
https://www.csstutorial.net
http://www.afg.com