Online Food Ordering System2
Online Food Ordering System2
CONTENTS
Sr.
No.
Description
Pg.
No.
Acknowledgeme
nt
Project
Objective
Project Scope
Requirement
Specification
Database
Design
Application
Work Flow
Screenshots
Future Scope of
Improvements
Code
10
Certificate
PROJECT OBJECTIVE
The main aim of the project was to develop a Human Resource Module for the
Automation of HR Software in which all the information regarding the
employees in the company will be present. This has to be developed with
good Interaction/ communication facilities between the employees and HR
Administrator in such a manner that a level of hierarchy was maintained
between the various employees.
The whole project is web based and designed using Apache server, a window
based platform for PHP web application development.
PROJECT SCOPE
The project is confined to be run on any web server either on internet or
intranet. The application makes sure that the proper user interface is provided to
the communicating parties to work easily on the application
REQUIREMENT
SPECIFICATIONS
Domain Description
The success of a company is about managing people not paper. The proposed
HR system is not only easy to manage but also employee friendly.Each
employee had an username and password through which he can log in.
Depending on the type of employee, either as user or admin, the employee is
logged in or accordingly various privileges are granted to him to carry out
various task through the application. The application makes sure of the
security services and other privacy policies.
The web pages about an employee are created dynamically based on the user
id and password and links are provided to web pages containing information
about Employee General Profile, Leave Records, Salary and other static links
to various other pages. An Information Hierarchy is maintained i.e. the
information regarding a particular employee is accessed by the same or any
person above him in the information hierarchy. There was also a provision for
updating the details. User Controls are provided for Navigating through the
web Pages.
HR Admin page is created with HR Admin Tasks. HR Administrator is provided
with facility of Adding Employee in to the company. He adds the new
employees General details and can also enter his Contact details. He also has
the facility of Viewing / Updating details of all Employees and approve/reject
leave requests. Automated emails are sent to the registered email address of
the employee upon approval/rejection.
Problem Definition
HR professionals make decisions regarding employees. Without the right
information available to decision makers at the right time, their decisions can be
erroneous leading to job dissatisfaction and poor employee performance,
gradually affecting the performance and reputation of the organization.
Currently, most of the companies use desktop application to maintain employee
information for each department and manually enter data into databases which
is both time consuming and error prone. Due to absence of a centralized
information system, separate copies of data are required to be stored for
different departments. In case of manual HR management system, there is
possibility of loss of important data and security of information is also not
guaranteed. Manual leave management also requires a lot of tedious
paperworks.
The project has been developed keeping in the view the current requirement of
Human Resource Management at any organization keeping in view these
objectives:
To develop an application that deals with the day to day requirement of any
organization.
To enable the end-users as well as the organization come out with an easy way
to handle the application of the Human Resource Management
Functional
Requirements
Hardware/Software
Requirements
HARDWARE:
Installed Memory(RAM):4 GB
Hard Disk Drive Memory:
500 GB
SOFTWARE:
Operating System :Windows 7 Home Basic SP1
System Type:64-bit OS
Tools:
Front End: PHP5 with HTML5 and CSS3
Back End:Apache Server and MySQL Server
Process
Transform of incoming data flow(s) to outgoing flow(s).
Data Flow
Movement of data in the system.
Data Store
Data repositories for data that are not moving. It may be as simple as a
buffer or a queue or a s sophisticated as a relational database.
External Entity
Sources of destinations outside the specified system boundary.
ONLINE
FOOD
DELIVERY
SYSTEM
Order
details
ORDERS
LEVEL 0 DFD
1.0
Place
Order
Customer
informati
on
CUSTOMER
2.0
Pay
Order
details
ORDERS
1.2
Compute
Grand
Total
Amount
2.1
Register
2.2
Payment
Method
2.3
Transaction
2.4
Order
Complete
DATABASE DESIGN
Entity Relationship
Diagram(ERD)
Entity Relationship Diagram consists of:
Entity
Attributes
Relationship
Table description
TABLE 1:
TABLE NAME:emp_info
Sr.No
.
1
Fields
Size
emp_id
Data
Type
int
11
Constraint
s
Primary Key
fname
varchar
50
Not Null
mname
varchar
50
None
lname
varchar
50
Not Null
dob
date
Not Null
sex
char
Not Null
join
date
Not Null
dept
varchar
20
Not Null
designation
varchar
15
Not Null
10
sal
int
11
Not Null
11
addr
varchar
255
Not Null
12
mobile
int
11
Not Null
13
varchar
255
Not Null
Description
Employee
Identification No.
Employees First
Name
Employees
Middle Name
Employees Last
Name
Employees Date
of Birth
Employees
gender
Employees date
of joining
Employees
Department
Employees
Designation
Employees
Monthly Salary
Employees
Residential
Address
Employees Mobile
No.
Employees email
ID
Sr.No
.
1
Fields
Size
Constraints
Description
11
Primary Key
int
Not null
Employee Identification
No.
Balance of Casual Leaves
CL
PL
int
Not null
SL
int
50
Not null
emp_id
Data
Type
int
TABLE 2:
TABLE NAME:leaves
SOURCE CODE:
Private Sub Form_KeyPress(KeyAscii As Integer)
Unload Me
End Sub
frmWelcome
SOURCE CODE:
Private Sub Cmdorder_Click()
frmWelcome.Visible = False
frmMenu.Visible = True
End Sub
Private Sub Cmdwork_Click()
frmWelcome.Visible = False
frmProcess.Visible = True
End Sub
Private Sub Cmdabt_Click()
frmWelcome.Visible = False
frmAbout.Visible = True
2. frmProcess
SOURCE CODE:
Private Sub PicBack_Click()
frmProcess.Visible = False
frmWelcome.Visible = True
End Sub
SOURCE CODE:
Private Sub PicBack_Click()
frmProcess.Visible = False
frmWelcome.Visible = True
End Sub
frmMenu
SOURCE CODE:
Private Sub cmdPizza_Click()
frmMenu.Visible = False
frmPizza.Visible = True
End Sub
Private Sub cmdPasta_Click()
frmMenu.Visible = False
frmPasta.Visible = True
End Sub
SOURCE
CODE:
Option Explicit
Dim PizzaCost(5) As Single
Dim TaxRate As Single
Dim PizzaSize As Integer
Public temptop As Single
Dim TotalCost As Single
Dim SizeCost(2) As Single
Dim total As Single
Private Const NumberPizza = 6
Public temp As Single
Public costSize As Single
Public choice As Single
Cost = costSize
For I = 0 To NumberPizza - 1
If Check1(I).Value = vbChecked Then
PizzaString = PizzaString + "1"
Cost = Cost + PizzaCost(I) * Val(Combo1(I).Text)
Else
PizzaString = PizzaString + "0"
End If
Next I
TotalCost = (((Cost * TaxRate) / 100) + Cost)
total = TotalCost + temptop
Lblpay.Caption = "You have to pay Rs. "
LBLCOST1.Caption = Format(total, "0.00")
lblcurrency.Caption = "INR (including tax)"
optSize(0).Value = 0
optSize(1).Value = 0
optSize(2).Value = 0
temp = total
End Sub
Public Function getval() As Single
getval = temp
End Function
=
=
=
=
=
=
0
40
85
40
80
85
'Size cost
SizeCost(0) = 100
SizeCost(1) = 200
SizeCost(2) = 300
'Tax rate
TaxRate = 13.5
PictContinue.Visible = False
fraSize.Visible = False
cmdTop.Visible = False
Cmdorder.Visible = False
End Sub
temp = 0#
SOURCE CODE:
Option Explicit
Dim ToppingCost(11) As Single
Dim Cost As Integer
Private Const NumberToppings = 12
Public temp As Single
Public Function getval() As Single
getval = temp
End Function
Private Sub chkTop_Click(Index As Integer)
If chkTop(Index) = vbChecked Then
picOK.Visible = True
Else
picOK.Visible = False
End If
End Sub
Private Sub Form_Load()
PictContinue.Visible = False
picOK.Visible = False
ToppingCost(0)
ToppingCost(1)
ToppingCost(2)
ToppingCost(3)
ToppingCost(4)
=
=
=
=
=
30
30
30
30
30
7. frmPasta
SOURCE CODE:
Option Explicit
Dim PastaCost(5) As Single
8. frmSoup
SOURCE CODE:
Option Explicit
Dim SBCost(5) As Single
Dim TaxRate As Single
Dim TotalCost As Single
Private Const NumberSB = 6
Public temp As Single
Dim choice As Single
Public Function meal() As Single
meal = choice
End Function
9. frmDessert
SOURCE CODE:
Option Explicit
Dim DessertCost(5) As Single
Dim TaxRate As Single
Dim TotalCost As Single
Private Const NumberDessert = 6
Public temp As Single
Dim choice As Single
Public Function meal() As Single
meal = choice
End Function
End If
Next I
=
=
=
=
=
=
55
65
85
115
125
135
'Tax rate
TaxRate = 13.5
Cmdorder.Visible = False
PictContinue.Visible = False
End Sub
10. frmDrink
SOURCE CODE:
Option Explicit
Dim DrinkCost(5) As Single
Dim TaxRate As Single
Dim TotalCost As Single
Private Const NumberDrink = 6
Public temp As Single
Dim choice As Single
Public Function meal() As Single
meal = choice
End Function
choice = DrinkString
=
=
=
=
=
=
129
45
99
40
35
55
'Tax rate
TaxRate = 13.5
Cmdorder.Visible = False
PictContinue.Visible = False
End Sub
11. frmCheckout
SOURCE CODE:
Option Explicit
Public total As Single
Dim tempCost As Single
Public a As Single
SOURCE
CODE:
Private Sub cmdCancel_Click()
'Cancel new customer addition and return to order form
denPizza.rscomCustomers.CancelUpdate
denPizza.rscomOrders.CancelUpdate
Unload frmNewCustomer
End Sub
SOURCE CODE:
Option Explicit
Dim OrderNumber As Integer
Dim temporder As Integer
If L <> 10 Then
MsgBox "Phone number requires 10 digits.",
vbExclamation + vbOKOnly, "Phone Number Error"
medPhone.SetFocus
Exit Sub
End If
denPizza.rscomCustomers.MoveFirst
denPizza.rscomCustomers.Find "PhoneNumber = '" +
medPhone.Text + "'", 0, adSearchForward
If Not (denPizza.rscomCustomers.EOF) Then
cmdFind.Enabled = False
medPhone.Enabled = False
txtFirstName.Visible = True
txtLastName.Visible = True
txtAddress.Visible = True
txtCity.Visible = True
txtState.Visible = True
txtZip.Visible = True
End If
Dim pay As String
pay = "https://www.paypal.com/"
Call Shell("explorer.exe " & pay, vbNormalFocus)
cmdComplete.Enabled = True
End Sub
Private Sub cmdNB_Click()
Select Case Combobank.ListIndex
Case 0
Dim Web0 As String
Web0 =
"https://www.axisbiconnect.co.in/BankAway/web/L00
1/retail/jsp/ebpp/RetShoppingMallSignOn.aspx?
RequestId=43388401"
Call Shell("explorer.exe " & Web0, vbNormalFocus)
Case 1
Dim Web1 As String
Web1 =
"https://starconnectcbs.bankofindia.com/BankAway
Retail/
Case 3
Dim Web3 As String
Web3 =
"https://netbanking.hdfcbank.com/netbanking/"
Call Shell("explorer.exe " & Web3, vbNormalFocus)
Case 4
Dim Web4 As String
Web4 = "https://infinity.icicibank.co.in/BANKAWAY?
Action.RetUser.Init.001=Y&AppSignonBankId=ICI&A
ppType=corporate&abrdPrf=N"
Call Shell("explorer.exe " & Web4, vbNormalFocus)
Case 5
Dim Web5 As String
Web5 =
"https://ibank.standardchartered.co.in/nfs/ddpaym
ents_redirection_login.htm"
Call Shell("explorer.exe " & Web5, vbNormalFocus)
Case 6
Dim Web6 As String
Web6 = "https://www.onlinesbi.com/retail/login.htm#"
fraCC.Enabled = False
fraDC.Enabled = True
fraNB.Enabled = False
End Sub
Private Sub optNB_Click()
fraCOD.Enabled = False
fraCC.Enabled = False
fraDC.Enabled = False
fraNB.Enabled = True
End Sub
Private Sub NewOrder()
denPizza.rscomOrders.AddNew
lblDate.Caption = Format(Now, "dd/mm/yy")
lblTime.Caption = Format(Now, "hh:mm:ss")
medPhone.SetFocus
End If
End Sub
Private Sub medPhone_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then
cmdFind_Click
End If
End Sub
Private Sub TxtCno_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then TxtCname.SetFocus
End Sub
Private Sub TxtCname_KeyPress(KeyAscii As Integer)
If KeyAscii = vbKeyReturn Then ComboCmonth.SetFocus
End Sub
Private Sub ComboCmonth_KeyPress(KeyAscii As Integer)
14. frmPrivacy
SOURCE CODE:
Private Sub PicBack_Click()
frmPrivacy.Visible = False
frmPayment.Visible = True
End Sub
SOURCE CODE:
Private Sub picExit_Click()
Open App.Path + "\pizza.ini" For Output As #1
Write #1, frmPayment.thank
Close 1
Unload Me
End Sub
CONCLUSION
After reviewing our work, the conclusion is that after many adjustments the
systemworks. As good as it is now, there can still be ground for more improvements.
However in the time was given that four persons can work on this project, the overall
results are satisfactory in our opinion. The report covers the entire course of the
project and results are there were needed. This conclusion chapter is more a
description of the process rather than a summary to give all results and facts. In
introduction, the problem description is given along with a brief outline of our
proposed system. Our main goal is to give a clear understanding what we are doing,
together with the given problems. The approach in the following pages gives the
explanation how we are going to work with the problems that have arisenand future
planning. In snapshots and coding the full design of the system is discussed and
specified. Various specifications of the system but also the users are specified. We
evaluated the system by testing the application and making people work with the
system other than us. We did not perform interviews or step by step evaluation with
the people other than us, we just showed the system and asked for feedback.
Basically we treated people who we asked to give feedback as customers. Finally
comesour conclusion, as said before the conclusion in this report is not a summary of
results and facts. In the report all aspects are given clear explanation, hence the
conclusion would just be a simple summary. The conclusion as it is nowhopefully
gives a understanding in the steps taken to make the report.
FUTURE SCOPE
The present system is developed as a food ordering system with online access.
It can be integrated into various websites. In future, we would like to develop it
as web applications for PCs and portable devices like cell phones with wap, gprs
or 3g connections for various platforms and get it connected to Google Analytics
to monitor website traffic. We would also like to incorporate voice recognition
technology in this system so that it responds to voice commands accurately.
REFERENCES
WEBSITES:
www.dominos.co.in
www.pizzahut.com
www.scribd.com
en.wikipedia.org
msdn.microsoft.com
www.smartdraw.com
www.pixlr.com
BOOKS: