Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 121

Online Restaurant System

A
Project Report
On

“Online Restaurant System”


www.gammat-jammat.in

Submitted To

Rashtrasant Tukadoji Maharaj Nagpur University, Nagpur


In partial fulfillment of the requirement of
B.Com (Computer Application)-III

Developed & Submitted by


Miss. Swamini D .Dongre
Miss. Naziya H.Pathan

Under the Guidance of


Prof. Ratana biswas

Department of Computer Management


N.M.D. College, Gondia
Academic Year
2015-2016

BCCA Final Year Students 1


Online Restaurant System

CERTIFICATE

This is to certify that the project work title “Restaurant Online Site” has been submitted
by Miss and Miss in partial fulfillment for the requirement of the degree of B. Com (Computer
Application) for the academic Session 2015 – 2016.
This is an original software project work carried out under the supervision and guidance
of prof. R.N.BISWAS Assistant Professor at N. M. D. College, Gondia and they have
undergone the requisite duration for project work as prescribed by R.T.M Nagpur University,
Nagpur.

Project Guided & Co-Ordinator

Prof.R.N.Biswas
Assistant Professor
Dept. of Computer Management
N. M. D. College, Gondia

Internal Examiner External Examiner

BCCA Final Year Students 2


Online Restaurant System

DECLARATION

We are the undersigned students, hereby, declare that this project report entitled
“Online Restaurant System” submitted and developed by us and it is our original work.
The system presented herein is our own work done independently and has not been copied or
duplicated from any source.
We understand that such copying is liable to be punished in any way the University
Authorities deem fit.
Thanking you!

Date: Yours Sincerely


Place: Gondia

Miss. Swamini D.Dongre

Miss. Naziya H.Pathan

BCCA Final Year Students 3


Online Restaurant System

ACKNOWLEDGEMENT
We, after all the hard work, find that the part which we thought was amongst the most
easy ones, lies in front of us as the most difficult one We find it the most difficult part of the
entire exercise to record our gratefulness to various persons, who extended us more than the
necessary, quantum of co-operation and help in this venture. We find our self unable to search
words that would express our feelings. The words that follow are nearly formal expression of our
deep sense of indebtedness that is better treasured in thought than said in words.
We from the core of our hearts, extend our sincere and affectionate thanks to our
Principal Prof. Shri. Y.M. Nasre, who provide us a well-equipped computer lab with modern
technology and networking supports. Who also provide the well qualified staff or faculty
members those support us time to time when we ask them for our difficulties.
We also wants to extend our sincere and affectionate thanks to our Coordinator Prof. R. N.
Biswas, who provide us the opportunity to developed our project under the supervision of an
experienced faculty member into the four wall of Department of Computer Management, N.M.D.
College, Gondia.
We also extent our sincere thanks to our project guide Prof. R. N. Biswas who inspire
of being busy round the clock helped and inspired us, motivated us, many a times by guiding us
and quite a few times by criticizing us.
We cannot ignore to express our thanks for all the teaching, non-teaching and
classmates of N.M.D. College, Gondia for their core cooperation.

Yours sincerely,
Miss . Swamini D.Dongre
Miss. Naziya H.Pathan

BCCA Final Year Students 4


Online Restaurant System

TABLE OF CONTENTS
Topics:
 Introduction
o Preface
o Purpose of our Software
 Documentation
o Preliminary System Analysis
o Identification of Need
 Feasibility Study
o Technical Feasibility
o Economical Feasibility
o Operational Feasibility
o Need of New System
o Flow in Present System
 Hardware and Software Specification
 System Analysis
 Software Engineering Paradigm Applied
 System Design
o Dataflow Diagram
o E-R Diagram
 Development Phase
o Database Design
o Coding
o Reports
o Forms

 Validation Checks
 Implementation & Maintenance
 Cost Estimation Of Project
o Future Scope

BCCA Final Year Students 5


Online Restaurant System

 Bibliography

INTRODUCTION

BCCA Final Year Students 6


Online Restaurant System

PREFACE

The growth of computer software during the last few years has been phenomenal.
Emerged as the need of every next door, due to the speed, probability, and compactness of ideas.
It has now been implemented on virtually every short of activity. From micro to mainframe. In
one sense the software is construction manual. It describes the tools the user need for the success
of his action, and offers blue print help to built and manage successful database and to fulfill his
other demands. In second sense, it is a cook book, it lists the ingredients- the principal you need
to follow to become a good software user. It gives the recipe for mixing them in correct
proportion.

BCCA Final Year Students 7


Online Restaurant System

PURPOSE OF OUR PROJECT

I can always take a quick taste of what I'm making. If I'm cooking something that takes some
time, I can turn on the television or the radio for some background noise. (If I lived with other people, I'd
probably talk to them.) But I know how long it will take me to cook dinner.

But occasionally I go out to eat with friends or family. In a restaurant, I am not afforded all of these
luxuries. If I smell food from the kitchen or see it being served to the table next to me, I am powerless...
unless I have been served bread! Crisis averted! And if conversation turns to "Hey, where's the food? We
ordered X minutes ago!", look! There's some tasty bread to get my nom on.

As a customer, this keeps me happy, and can help me keep from becoming impatient (even at normal
service times). The fast food restaurants don't need bread because they put out their food* so quickly. And
we want all this facility online.

BCCA Final Year Students 8


Online Restaurant System

INTRODUCTION
Online fast-food Shop System
Continue to develop coverage plans and facility plans to meet customer needs and accommodate
volume growth. Expand the roll out the clinical trials patient registration tools to two additional high
volume departments/ divisions. Develop and implement Customer safety initiatives in the simulation and
skills center including training in the placement of center venous lines and in triggers/ crisis management.
Achieve higher rate of donor conversion and organs/ donors the national goals for organ donation

Ensure outstanding Customer, physician and employee satisfaction and


loyalty
Complete the roll of out of customer satisfaction training and job reclassification in all patient
care area. Implement key reformation formal referring physician survey including formal outreach to first
time refers an identifying selected enhancement to discharge fax for referring physician. Develop and
implement a plan for assessment of core residency program performance in attraction and training

resident. Continue foster open communication between employee management through town halls .
Support growth to achieve budgeted inpatient and ambulated volumes. Completing the facility
master plan and developing list of recommended multi –year facility action required to ensure adequate
capacity for ambulatory visits, surgical cases, and New Customer admission continuing to indentify a
carry out projects to reduce energy utilization. Mall organizations are currently faced with verity of
decisions regarding computer system and information.

Other New Feature


 Support for web service (Professional and Enterprise Edition only)
 Impact web page generation from web module (Professional and Enterprise Edition only) –
“Web Server Programming With Web Snap.”
 a non-BDE database component set called db Express, database application (Interface, DB2,
Oracle, MYSQL, Informix) – “Data access with db Express.”
 Enhancement to the IDE – “Visual Basic Project And more on the IDE.”

BCCA Final Year Students 9


Online Restaurant System

DOCUMENTATION

BCCA Final Year Students 10


Online Restaurant System

PRELIMINARY SYSTEM ANALYSIS

The analysis involves a detailed analysis of the different function to be carried out by the system
and identification of data flow among the different function. each function required by the user is studied
carefully and then recursively decomposed into the various sub function (i.e. processing activity). the
addition to identify dataflow diagrams techniques (DFD) is used. Structure analysis usually sticks itself at
need to be done care fully avoided functional requirement specifies in the document are decomposed into
sub function and the dataflow between these sub function are analyses.
After structure analysis architectural design (or the high level design) and detailed design are
carried out. the various detailed steps are to be taken for the design of the system, out of them some are
as:-
 identification of need
 preliminary investigation
 feasibility study
 need of new system
 flaws in present system

IDENTIFICATION OF NEED
In this phase the determination of requirement need by the system are analyzed. at the end of the
system a set of requirement and their priorities are evaluated. in this phase we draw understandable plan
of what the system will provide as output. we also determine the need and priorities of the task needed by
the end use. Detailed specification of the information needed by the end user are planned.

BCCA Final Year Students 11


Online Restaurant System

FEASIBILITY
STUDY

BCCA Final Year Students 12


Online Restaurant System

FEASIBLITY STUDY
The feasibility study is a general examination of the potential of an idea to be converted into a
business. This study focused largely on the ability of the entrepreneur to convert the idea into business
enterprise. The feasibility study differs from the viability study as the viability of the idea.
To be converted into a business enterprise.
A feasibility study is a preliminary study undertaken to determine and document a project’s
viability or the discipline of planning organizing, All or apart also known as feasibility analysis. the term
is also used to refer to the resulting document. The result of the study are used to make a decision whether
or not to proceed with the project. If it is indeed leads to a project being approved, it will – before the real
work of the proposed start and be used to ascertain the likelihood of the project’s success. It is an analysis
of possible alternative solution to the problem and a recommendation on the best alternative.
Types of Feasibility Studies
The following sections describe various types of feasibility studies.
1. Marketing And Real Estimation Feasibility
Market feasibility study typical involves testing geographic location for a real estate development
project, and usually involves parcels of real estate land. Developers often conduct market studies to
determine the best location within jurisdictions, and to test alternative land users for given parcels.
2. Technology And System Feasibility
This involves question such as whether the technology need for the system exists, how difficult it
will be to build, and whether the firm has enough experience using the technology. The assessment is
based on outline design of system requirements in terms of input, processes, output, fields, programs,
and procedure.
3. Resources Feasibility
This involves question such as how much time is available to build the new system, when it can be
build, whether it interface with normal business operations, type and amount of resources required,
dependencies, etc.
4. Operational Feasibility
Do the current word practices and procedures support a new system. Also social factor i.e. how the
organization changes with affect the working lives of those affected by the system.
5. Legal Feasibility

BCCA Final Year Students 13


Online Restaurant System

Determines whether the proposed system conflicts with legal requirements, e.g. a data processing
system must comply with the local data protections acts. when an organizations has either internal or

external legal counsel, such reviews are typically standard .

6. Schedule Feasibility
Project will fail if it takes to long to be completed before it is useful. typically this means estimates
how long the system will take to develop and if it can be completed in a given time period using some

method like payback period.

7. Economic Feasibility
Economic analysis is the most frequently method for evaluating the effectiveness of a candidate
system. More commonly known as cost/Benefit analysis, the procedure is to determine the benefit
and saving that are excepted from a candidate system and them with costs. If benefit outweighs costs,
them the decision is made to design and implement the system.
NEED OF NEW SYSTEM
In stage the salesperson takes qualified prospects through a series of question and answer session
in order to identify requirements of the prospect. During this step, the salesperson will attempt to help the
buyer identify and quantify a business need or a “gap” between where the client is that gap, does can be
clarified to determine if the solution will fill all, part of the overall gap. From this procedure the
salesperson is able to come up with a proposal suggest in various products/services that will suffice the

need as presented by the prospect.

FLAWS IN PRESENT SYSTEM


We found the following flaws in present system:-
1) They were much tougher to operators. As well to understand for others.
2) They were not able to maintain proper records customer’s transactions employee
information’s in a structure manner. The biggest flaws were that they couldn’t avoid data
redundancy.
3) They were much slower to bring out the needed information.
If a new person wanted to learn the functioning and operating those programs, it took long
time to learn them hence they got tired of it and sometimes abandoned the idea of learning.

BCCA Final Year Students 14


Online Restaurant System

HARDWARE
AND
SOFTWARE SPECIFICATON

BCCA Final Year Students 15


Online Restaurant System

SOFTWARE AND HARDWARE


REQUIREMENTS SPECIFICATION
Hardware
1. A machine (P4), which has at least 80 GB hard disk with 256 MB RAM.

2. Printer

3. WampSever, Editor (Dreamweaver)

4. Ms-Office for documentation

Platform & Tools used


The system is developed to run under Windows platform. It also uses various tools, Compile
and libraries, which are available with Windows for the development and implementation of this project.
A brief description about the platform and tools used are given below.

Platform Windows
Windows is a fast developing, free, multi-user, multitasking and multi processing operating
system. Since it is free software anyone can work on it, make changes and enhance it. The window
command controls the display window. You can use this command to change the display characteristics
of the window or provide a destination window for the driver to use in place of the default display
window. Digital-video and video-overlay devices recognized the command. Some of the features, which
justify the selection of windows as a platform for my project, are given below.
 Open source

 Free

 Availability of wide range of compiler and utilities

BCCA Final Year Students 16


Online Restaurant System

 Database server support

 GUI supports and Designers, tools and libraries to build GUI

 Support for a variety of hardware

 Worldwide user group support

 Highly reliable and secure

Choice of the Tools


For efficient implementation of the plan I have choose two tools. Dreamweaver front end tool
& MySql back end tool for handling the data.

Software Requirements
For efficient implementation of the plan we have choose two tools. HTML Language as a front

end tool & MYSQL back end tool for handling the data and wampserver for processing php .

PHP
During 2014 and 2015, a new major PHP version was developed, which was numbered PHP 7.
The numbering of this version involved some debate. While the PHP 6 Unicode experiment had never
been released, several articles and book titles referenced the PHP 6 name, which might have caused
confusion if a new release were to reuse the name. After a vote, the name PHP 7 was chosen.

The foundation of PHP 7 is a PHP branch that was originally dubbed PHP next generation
(phpng). It was authored by Dmitry Stogov, Xinchen Hui and Nikita Popov, and aimed to optimize PHP
performance by refactoring the Zend Engine while retaining near-complete language compatibility. As of
14 July 2014, WordPress-based benchmarks, which served as the main benchmark suite for the phpng
project, showed an almost 100% increase in performance. Changes from phpng are also expected to make
it easier to improve performance in the future, as more compact data structures and other changes are seen
as better suited for a successful migration to a just-in-time (JIT) compiler.[43] Because of the significant
changes, the reworked Zend Engine is called Zend Engine 3, succeeding Zend Engine 2 used in PHP 5.

Because of major internal changes in phpng, it must receive a new major version number of
PHP, rather than a minor PHP 5 release, according to PHP's release process. Major versions of PHP are
allowed to break backward-compatibility of code and therefore PHP 7 presented an opportunity for other
improvements beyond phpng that require backward-compatibility breaks. In particular, it involved the

BCCA Final Year Students 17


Online Restaurant System

following changes:

Many fatal- or recoverable-level legacy PHP error mechanisms were replaced with modern
object-oriented exceptions

The syntax for variable dereferencing was reworked to be internally more consistent and
complete, allowing the use of the operators ->, [], (), {}, and :: with arbitrary meaningful left-hand-side
expressions Support for legacy PHP 4-style constructor methods was removed

The behavior of the foreach statement was changed to be more predictable

Constructors for the few classes built-in to PHP which returned null upon failure were changed
to throw an exception instead, for consistency[

Several unmaintained or deprecated server application programming interfaces (SAPIs) and


extensions were removed from the PHP core, most notably the legacy mysql extension

The behavior of the list() operator was changed to remove support for strings

Support for legacy ASP-style PHP code delimiters (<% and %>, <script language=php> and
</script>) was removed

An oversight allowing a switch statement to have multiple default clauses was fixed

Support for hexadecimal number support in some implicit conversions from strings to number
types was removed

The left-shift and right-shift operators were changed to behave more consistently across
platforms[56]

Conversions between integers and floating point numbers were tightened and implemented
more consistently across platforms

PHP 7 also included new language features. Most notably, it introduces return type declarations
for functions, which complement the existing parameter type declarations, and support for the scalar types
(integer, float, string, and boolean) in parameter and return type declarations.

PHP Project Structure


1 Each application is single Project.

BCCA Final Year Students 18


Online Restaurant System

1 Projects consist of forms and/or Modules.

1 Pages contain Controls, Subroutines and Functions.

1 Modules contain global variable Declaration, Subroutines and function.

1 Subroutines and function are handled in a similar manner to other languages.

1 Forms and Modules (and Classes) may be included in other Pages.

1 Variables have scope that is global or within a form or within a Subroutines Function.

HTML Controls:
1 Events (e.g. click) {passed to the control by document. These are located in a combo box in the code
document.

2 Methods (e.g. Set Focus) {actions that the control can initiates. There are typically generated by
programmer writing code.

3 Properties (e.g. Font Italic) {values associated with a control by applying css that can effect its
operations. These are accessed in the Properties windows (press the f4 key) or from the tool bar when
a object is selected.

Set Data Source Command


After a connection to a database is set up, you can set up commands. Each Command specifies
a record set to be used for a report. A Command can be a:
1 Table

1 Query saved in the database.

1 SQL Command

MySql
MySQL is written in C and C++. Its SQL parser is written in yacc, but it uses a home-brewed
lexical analyzer. MySQL works on many system platforms, including AIX, BSDi, FreeBSD, HP-UX,
eComStation, i5/OS, IRIX, Linux, OS X, Microsoft Windows, NetBSD, Novell NetWare, OpenBSD,
OpenSolaris, OS/2 Warp, QNX, Oracle Solaris, Symbian, SunOS, SCO OpenServer, SCO UnixWare,
Sanos and Tru64. A port of MySQL to OpenVMS also exists.
The MySQL server software itself and the client libraries use dual-licensing distribution. They

BCCA Final Year Students 19


Online Restaurant System

are offered under GPL version 2, beginning from 28 June 2000 (which in 2009 has been extended with a
FLOSS License Exception)[26] or to use a proprietary license.

Support can be obtained from the official manual. Free support additionally is available in
different IRC channels and forums. Oracle offers paid support via its MySQL Enterprise products. They
differ in the scope of services and in price. Additionally, a number of third party organisations exist to
provide support and services, including MariaDB and Percona.

MySQL has received positive reviews, and reviewers noticed it "performs extremely well in the
average case". and that the "developer interfaces are there, and the documentation (not to mention
feedback in the real world via Web sites and the like) is very, very good". It has also been tested to be a
"fast, stable and true multi-user, multi-threaded sql database server"

Features of MySql
MySQL is offered under two different editions: the open source MySQL Community Server
and the proprietary Enterprise Server. MySQL Enterprise Server is differentiated by a series of
proprietary extensions which install as server plugins, but otherwise shares the version numbering system
and is built from the same code base.

Major features as available in MySQL 5.6:

A broad subset of ANSI SQL 99, as well as extensions

Cross-platform support

Stored procedures, using a procedural language that closely adheres to SQL/PSM[73]

Triggers

Cursors

Updatable views

Online DDL when using the InnoDB Storage Engine.

Information schema

Performance Schema that collects and aggregates statistics about server execution and query

BCCA Final Year Students 20


Online Restaurant System

performance for monitoring purposes.[74]

A set of SQL Mode options to control runtime behavior, including a strict mode to better
adhere to SQL standards.

X/Open XA distributed transaction processing (DTP) support; two phase commit as part of this,
using the default InnoDB storage engine

Transactions with savepoints when using the default InnoDB Storage Engine. The NDB Cluster
Storage Engine also supports transactions.

ACID compliance when using InnoDB and NDB Cluster Storage Engines[75]

SSL support

Query caching

Sub-SELECTs (i.e. nested SELECTs)

Built-in Replication support (i.e. Master-Master Replication & Master-Slave Replication) with
one master per slave, many slaves per master. Multi-master replication is provided in MySQL Cluster,
and multi-master support can be added to unclustered configurations using Galera Cluster.

Full-text indexing and searching

Embedded database library

Unicode support

Partitioned tables with pruning of partitions in optimizer

Shared-nothing clustering through MySQL Cluster

Multiple storage engines, allowing one to choose the one that is most effective for each table in
the application.

Native storage engines InnoDB, MyISAM, Merge, Memory (heap), Federated, Archive, CSV,
Blackhole, NDB Cluster.

Commit grouping, gathering multiple transactions from multiple connections together to


increase the number of commits per second.

The developers release minor updates of the MySQL Server approximately every two months.

BCCA Final Year Students 21


Online Restaurant System

The sources can be obtained from MySQL's website or from MySQL's GitHub repository, both under the
GPL license.

SYSTEM ANALYSIS

BCCA Final Year Students 22


Online Restaurant System

SYSTEM ANALYSIS
Objectives of Project Work:
We are familiar that today computers how popular in every field. Whether the application may be
small scale organization or large scale organization. Computers also have significant role in Sales
Management due to the reason of number of maintain the customer details, disbursement details.
Installment details. Mention all these details are a very complex work. Therefore computerization is
possible to make this task simple and easy. It also increases the speed and accuracy of all these activities
and at the same time reduces the error and improves the service to customers.

Why computerization is needed:


Nowadays competitions increase in every field of life. In the same way, In business field also
competitions increases. Number of customer goes for purchasing to different shops. Because of
privatization for different types of selling there are different shops & it’s too much difficult for a
customer. So in this competition world “Time” plays an important role. If any business does not use t\its
time properly it may be looses some profits. So for earning more profit in accuracy of business
transactions one must adapting computerization to their organizations. The customer detail and the
transaction process including disbursement and installment easily. So all these activities should be done
carefully with attention of mind. For fulfilling all these objectives by shop and giving the best service to
customers computerization is the best option for shopping mall. Computerization increases the speed and
accuracy of processing and mentioning the information and records very carefully and correctly.

Initial Investigation:
When I stepped into the mobile shop with my friend for Purchase & Selling Goods. I observed
that one person gives all the information about the Selling to the customer and other is busy in
maintaining the installment detail and the disbursement details are maintain by other.
While the shops has limited number of staff members, they had not handling these tasks perfectly and
efficiently, in my primary investigation by directly interaction with staff members; I knew that they are
facing some problem in their work. The staff members are very friendly and supported us to gathering the
required data about shops. The main thing is that, the shops are different for different Selling .So it’s too

BCCA Final Year Students 23


Online Restaurant System

much difficult for customer as well as shop staff although all the types of Selling are sanctioned from
same stores.

Problem Solution
For doing all jobs efficiently and perfectly computerization is needed. This software package
solved the maximum requirement of shops with the help of this package. One person can handle the entire
Shopping Mall efficiently and at the minimum time. With the help of this package the shops give the best
service to the customer and increasing their business with the help of this package Shopping Mall
generate very type of reports in a few second.

BCCA Final Year Students 24


Online Restaurant System

SOFTWARE ENGINEERING
PARADIGM

BCCA Final Year Students 25


Online Restaurant System

SOFTWARE ENGINEERING PARADIGM APPLIED


Throughout the life cycle of the project, We adopted structured
system analysis and design, structured analysis is a set of techniques and graphical tools that allow the
analyst to develop a new kind of the system specification that are easily understandable to the user. We
used the following structured tools in the analysis phase of the project.
 Data Flow Diagram (DFD)
 Data Dictionary
 Decision Tree
Structured design is a data flow based methodology. The
approach begins with a system specification that identifies input and output of the system. General
features such as reports and inputs are identified first and are studied individually in detail. Structure
design is an attempt to minimize the complexity and make a problem manageable by subdividing into
small modules.
Software engineers have been trying various tools, methods and procedures to control the process of
software development in order to build high-quality software with improved productivity. The methods
provide “how to‘s” for building the software while the tools provide automated or semi- automated
support for the methods. They are used in all the stages of software development process, namely,
planning, analysis, design development and maintenance. The software development procedurals
integrate the methods and tools together and enable relational and timely development of software
system. The activities include problem definition, requirement analysis, design; coding, testing and
maintenance, further refinements to this model include iteration back to the previous stages in order to
incorporate any changes or missing links.

PROBLEM DEFINITION
This activity requires a precious definition of the problem in user terms. A clear statement of the problem
is crucial to the success of the software. It helps not only the developer but also the user to understand the
problem better.
Analysis
This covers a detailed study of the requirements of both the user and the software. This activity is
basically concerned with what of the system such as:
 What are the inputs to the system?

BCCA Final Year Students 26


Online Restaurant System

 What are the processes required?


 What are the outputs expected?
 What are the constraints?

Design
The design phase deals with various concepts of system design such as data structure, software
architecture and algorithms. This phase translates the requirements into a representation of the software.
This stage answers the questions of how.

Coding
Coding refers to the translation of the design into machine readable form. The more details the design,
the easier is the coding, and better it is reliability.

Testing
Once the code is written, it should be tested rigorously for correctness of the code and results. Testing
may involve the individual units and the whole system, It requires a detailed plan as to what, when and
how to test.

Maintenance
After the software has been installed, it may undergo some changes. This may occur due to a change in
the user’s requirement, a change in the operating environment, or an error in the software that has not
been fixed during the testing, Maintenance ensures that these changes are incorporated wherever
necessary.

BCCA Final Year Students 27


Online Restaurant System

SYSTEM DESIGN

BCCA Final Year Students 28


Online Restaurant System

System Design
The most creative and challenging phase of the system life cycle is system design. The term design
describes a final system and the process by which it is developed. It refers the technical specifications that
will be applied in implementing the candidate system. It also includes the construction of program and
program testing.
The primary objectives of system design are to deliver the requirement specification in feasibility report.
The main design objective give significances are:-

Practicality :- This system will be user friendly so user with averages skilled can easily operate.
Efficiency :-This system will produce output in time with accuracy.
Cost:-The system is to design with a minimum cost to satisfy the requirements.
Flexibility: -The system will be a modifiable one depending on future needs.
Security: -The system should reliable, secure one.
Mainly following parts have been included in the system design process:
i. Output Design: The starting point of design process is the proper knowledge of system,
requirements, which will normally be converted into terms of output.

ii. Input Design: Once the output requirements have been finalized, the next step is to find out what
data to be made available to the system to produce the desired outputs. The basic documents in which
these data are available need to be identified.

i. Database Design: Once the data is captured in the system these have to be preserved for long
period. The data is generally stored in files in a logical manner.

ii. Procedure Design: This step involves specifications of how processing will be performed.

iii. Control Design: It indicates necessary procedure which will ensure correctness of processing,
accuracy of data, timely output etc.

BCCA Final Year Students 29


Online Restaurant System

Input Design
The goals of designing make data entry easy and error free. The input screens of the system clearly give
the length of data fields. It allows the same field sequence of the sources documents/ forms of the
origination. The system follows the same date formats as the user follows. Example: mm/dd/yyyy for date
values.
Every input screen is designed for this system requires only limited amount of input data. So it avoids
delay and improves the data entry speed as well as the overall speed of the system. Necessary input
validation checks are provided at every data entry screens, so it reduces the possibility of erroneous input.
The input screens are made as simple as possible by avoiding extra steps to make it comfortable to the
users.
This system uses the menu convention to display the options the user can choose form, All input screen
are provided with help to retrieve previous records of key fields.

Output Design
The output design should be in an attractive and useful from because success made acceptable of a system
to some extent depends on good presentation. There are main reasons, why outputs from computer are
required. They are:-
1) For communicating to the persons concerned.

2) For re-input to the computer for being connected with other data and further processing.

3) For permanent storage.

4) In this system, there are reports, display in screen and printed forms comes as outputs. Outputs device
used in this system are monitor and printer. The main design considering this system are:

5) No data excluded in output.

6) The format of output is similar to the presently existing one.

7) The sequence of reports printed is in a useful way which is similar to that of present system.

8) The outputs generating are having good quality in appearance, contents and accuracy.

9) The outputs sources are provided with necessary screen heading and labels for various fields. Buttons
are provided for actions like displaying, printing, etc.

BCCA Final Year Students 30


Online Restaurant System

Menu Design
The menu of this system is designed in a hierarchical manner. Activity of similar nature is grouped under
one menu. Like all entry forms of server side has under “Entry forms” menu and all reports under “Report
Menu “. Menus are designed in the form that the user can work with more than one form at a time.

Form Design
Form is a tool with message; it is the physical carrier of data. It provides information for making decision
and improving operations. The size of this form is convenient for easy handling and easy to identify and
filing up. The software covers the basic processes starting from the registration of new customer and also
providing facility that already registered.

BCCA Final Year Students 31


Online Restaurant System

DATA FLOW DIAGRAM


A Data Flow Diagram (DFD) is a graphical techniques that depict information flow and transformations
that are applied as data moves from input to output. The DFD is also known as a data flow graph or a
bubble chart.
The data flow diagram may be used to represent a system or software at any level of abstraction. In fact
DFDs may be partitioned into levels that represent increasing information flow and details. Therefore the
DFD provides a mechanism for functional modeling as well as information flow modeling.

DATA FLOW DIAGRAM


1. Customer Details:-
Customer Detail

Customer
Details Registratio
Customer Code,Customer n
Name,Date Of
Birth,Address1,Address2,City,Sta
te,Phone No,

2. Supplier Details:-

Supplier Details

Details Supplier
Supplier code,Supplier Registration
Name,Date,Address1,Address2,Cit
y,State,Phone No.

BCCA Final Year Students 32


Online Restaurant System

3. Item Master

Item Master

Product
Details Entry
ItemCode,ItemName,Category,Rat
e,Quantity,Total

Category Master

4. Stock
Purchase

Stock
Maintenance

Details
Transcation No.,Item
Name,item Code,Opening
Stock,Closing Stock,Rate,Date

Sale

BCCA Final Year Students 33


Online Restaurant System

5. Sales
Stock Master
Sale Master

Sale
Transactions

Details
Date,Bill No.,Customer Code,Grand
Total,Discount Amount,Net Amount

Sale Transaction

Details
Bill No.,Sr.No.,Item
Code,Quantity,Rate,Amount

6. Purchase

Supplier Master
Purchase Master

Purchase
Transactions

Details
Date,Bill No.,Customer Code,Grand
Total,Discount Amount,Net Amount

Purchase Transaction

BCCA Final Year Students Details 34


Bill No.,Sr.No.,Item
Code,Quantity,Rate,Amount
Online Restaurant System

E-R DIAGRAMS

scode dam
t
ddate gtota namt
l

Purchase

bno

Return
Stock

sno
icode
cstoc
k qty
ostock
kkk
bno Return

Stock rat
icode
e

amt

BCCA Final Year Students 35


Online Restaurant System

Stock

ostock cstoc icode


k

sale

ddate bno
ccode

bg gtotal
Sale

gen

Return

srno icode
bno
rate
qty

amt Return

BCCA Final Year Students 36


Online Restaurant System

DATABASE DESIGN
Data Base
1 User Master

2 Order Master

3.Order Master

4. Product Master

5. User Detail Master

BCCA Final Year Students 37


Online Restaurant System

6. User Group Master

BCCA Final Year Students 38


Online Restaurant System

1.HOME PAGE

BCCA Final Year Students 39


Online Restaurant System

2.ABOUT US

BCCA Final Year Students 40


Online Restaurant System

3. SPECIALITY PAGE

4.SERVICE PAGE

BCCA Final Year Students 41


Online Restaurant System

5.TESTIMONIALS

6. NEWS

BCCA Final Year Students 42


Online Restaurant System

7. CONTACT US

8. ALL THE PAGE IN MOBILE VIEW

BCCA Final Year Students 43


Online Restaurant System

BCCA Final Year Students 44


Online Restaurant System

BCCA Final Year Students 45


Online Restaurant System

BCCA Final Year Students 46


Online Restaurant System

BCCA Final Year Students 47


Online Restaurant System

BCCA Final Year Students 48


Online Restaurant System

BCCA Final Year Students 49


Online Restaurant System

BCCA Final Year Students 50


Online Restaurant System

BCCA Final Year Students 51


Online Restaurant System

BCCA Final Year Students 52


Online Restaurant System

BCCA Final Year Students 53


Online Restaurant System

BCCA Final Year Students 54


Online Restaurant System

BCCA Final Year Students 55


Online Restaurant System

BCCA Final Year Students 56


Online Restaurant System

9. ALL IN TABLET VIEW

BCCA Final Year Students 57


Online Restaurant System

BCCA Final Year Students 58


Online Restaurant System

BCCA Final Year Students 59


Online Restaurant System

BCCA Final Year Students 60


Online Restaurant System

BCCA Final Year Students 61


Online Restaurant System

CODING

1.HOME PAGE
<?php
session_start();

require_once('./site/lib/req.php');

$tablePages = new Fw_Db_Table('users');


//db($tablePages->getRow()); exit;

require_once('./header.php');
require_once('./futter.php');

echo getHeader();

BCCA Final Year Students 62


Online Restaurant System

?>
<body class="cbp-spmenu-push">
<!--header-->
<div id="home" class="header-section">
<div class="container">
<div class="header-top">
<div class="top-nav">
<nav class="cbp-spmenu cbp-spmenu-vertical cbp-spmenu-
left" id="cbp-spmenu-s2">
<h3>Menu</h3>
<ul>
<li><a href="#home"
class="scroll">Home</a></li>
<li><a href="#about"
class="scroll">About</a></li>
<li><a href="#services"
class="scroll">Services</a></li>
<li><a href="#Speciality"
class="scroll">Speciality</a></li>
<li><a href="#testimonials"
class="scroll">Testimonials</a></li>
<li><a href="#news"
class="scroll">News</a></li>
<li><a href="#mail" class="scroll">Mail
Us</a></li>
<li><a href="login.php">Log In</a></li>
</ul>
</nav>
<div class="main buttonset">
<!-- Class "cbp-spmenu-open" gets applied
to menu and "cbp-spmenu-push-toleft" or "cbp-spmenu-push-toright" to the body -->
<button id="showRightPush"><img
src="web/images/menu.png" alt=""/></button>
<!--<span class="menu"></span>-->
</div>
<!-- Classie - class helper functions by @desandro
https://github.com/desandro/classie -->
<script src="web/js/classie.js"></script>
<script>
var menuRight = document.getElementById( "cbp-spmenu-
s2" ),
showRightPush =
document.getElementById( "showRightPush" ),
body = document.body;

showRightPush.onclick = function() {
classie.toggle( this, "active" );
classie.toggle( body, "cbp-spmenu-push-toleft" );
classie.toggle( menuRight, "cbp-spmenu-open" );
disableOther( "showRightPush" );
};

function disableOther( button ) {


if( button !== "showRightPush" ) {
classie.toggle( showRightPush, "disabled" );

BCCA Final Year Students 63


Online Restaurant System

}
}
</script>
</div>
<div class="header-logo">
<h1><a href="web/index.html"></a></h1>
</div>
<div class="header-search">
<form>
<input type="text" value="" placeholder="Search...">
<input type="submit" value="">
</form>
</div>
<div class="social">
<ul>
<li><a href="web/#" class="facebook"> </a></li>
<li><a href="web/#" class="facebook twitter">
</a></li>
<li><a href="web/#" class="facebook chrome">
</a></li>
<li><a href="web/#" class="facebook dribbble">
</a></li>
</ul>
</div>
<div class="clearfix"> </div>

</div>
<div class="banner-grids">
<div class="banner-img">
<img src="web/images/4.jpg" alt="" />
</div>
<div class="banner-left">
<div class="logo">
<h1><a
href="index.html">Gammat-Jammat</a></h1>
</div>
<div class="banner-info">
<h5>If you have good food,people will
come to your restourant..</h5>
<p>So come an enjoyed the food of our restourant..
</p>
<div class="banner-buttons">
<div class="banner-button white-button">
<!-- <a href="#">Click</a> -->
</div>
</div>
</div>
</div>
<div class="clearfix"> </div>
</div>
</div>
</div>
<!-- welcome -->
<div class="welcome">
<!-- container -->
<div class="container">
<div class="col-md-6 welcome-right">

BCCA Final Year Students 64


Online Restaurant System

<h2>Welcome</h2>
<h5>Praesent Best Food of Gondia</h5>
<p>High Quality Basics.Fair Prices......!
Enjoy the comforts of our resturent, our chef will prepare
excellent home cooked food for you;
as per your need we are here to serve you and make you feel at home......</p>
</div>
<div class="col-md-6 welcome-right">
<img src="web/images/aloo-paratha.jpg" alt="" />
</div>
<div class="clearfix"> </div>
</div>
<!-- //container -->
</div>
<!-- //welcome -->
<!-- about -->
<div id="about" class="about">
<div class="col-md-6 about-left">

</div>
<div class="col-md-6 about-right">
<h3>About Us</h3>
<p>I self swamini and my partner is naziya
we thought do something differnt with little one.
Gammat-Jammat is popular resturent of Gondia city..
as i have said resturent was good location and easy to find...
staff was good and everthing is conveniently available....
location was excellent.....services were quick and on time......
Gammat-Jammat is popular for youngster,the small resturent made a mark for big
hotels.....</p><br /><br />
</div>
<div class="clearfix"> </div>
</div>
<!-- //about -->
<!-- services -->
<div id="services" class="services">
<!-- container -->
<div class="container">
<div class="services-info">
<h3>Services</h3>
</div>
<div class="services-top-grids">
<div class="col-md-4 services-grid" style="visibility: visible; -webkit-animation-delay:
0.4s;">
<div class="chrty">
<figure class="icon">
<span class="glyphicon-icon glyphicon-cog" aria-
hidden="true"></span>
</figure>
<h3>Setting</h3>
<p>all the funtion related setting are available</p>
</div>
</div>
<div class="col-md-4 services-grid" style="visibility: visible; -webkit-animation-delay:
0.4s;">
<div class="chrty">
<figure class="icon">

BCCA Final Year Students 65


Online Restaurant System

<span class="glyphicon-icon glyphicon-time" aria-


hidden="true"></span>
</figure>

<h3>Time</h3>
<p>Standerd time
Morning 11 a.m.
to
Night 11 p.m.</p>
</div>
</div>
<div class="col-md-4 services-grid" style="visibility: visible; -webkit-animation-delay:
0.4s;">
<div class="chrty">
<figure class="icon">
<span class="glyphicon-icon glyphicon-edit" aria-
hidden="true"></span>
</figure>
<h3>Messages for order </h3>
<p> At Standerd time Morning 11 a.m. to Night 11 p.m.
On</p>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
<!-- //container -->
</div>
<!-- //services -->
<!-- gallery -->
<div id="Speciality" class="gallery">
<!-- container -->
<div class="container">
<div class="gallery-info">
<h3>Our Speciality</h3>
</div>
<div class="gallery-grids-top">
<div class="gallery-grids gallery-grids-middle">
<div class="col-md-4 gallery-grid middle-gallery-grid">
<a class="example-image-link"
href="images/french_fries_and_steak_detail_193269.jpg" data-lightbox="example-set" data-title=""><img
class="example-image" src="web/images/6.jpg" alt=""/></a>
</div>
<div class="col-md-4 gallery-grid middle-gallery-grid">
<a class="example-image-link" href="images/10.jpg"
data-lightbox="example-set" data-title=""><img class="example-image" src="web/images/10.jpg" alt=""/></a>
</div>
<div class="col-md-4 gallery-grid middle-gallery-grid">
<a class="example-image-link" href="images/11.jpg"
data-lightbox="example-set" data-title=""><img class="example-image" src="web/images/11.jpg" alt=""/></a>
</div>
<div class="clearfix"> </div>
</div>
<div class="gallery-grids">
<div class="col-md-3 gallery-grid">
<a class="example-image-link" href="images/8.jpg"
data-lightbox="example-set" data-title=""><img class="example-image" src="web/images/8.jpg" alt=""/></a>

BCCA Final Year Students 66


Online Restaurant System

</div>
<div class="col-md-3 gallery-grid">
<a class="example-image-link" href="images/5.jpg"
data-lightbox="example-set" data-title=""><img class="example-image" src="web/images/5.jpg" alt=""/></a>
</div>
<div class="col-md-3 gallery-grid">
<a class="example-image-link" href="images/6.jpg"
data-lightbox="example-set" data-title=""><img class="example-image" src="web/images/6.jpg" alt=""/></a>
</div>
<div class="col-md-3 gallery-grid">
<a class="example-image-link" href="images/7.jpg"
data-lightbox="example-set" data-title=""><img class="example-image" src="web/images/7.jpg" alt=""/></a>
</div>
<div class="clearfix"> </div>
</div>
<div class="gallery-grids">
<div class="col-md-6 gallery-grid-top">
<div class="gallery-grid-top-img">
<a class="example-image-link"
href="images/4.jpg" data-lightbox="example-set" data-title=""><img class="example-image"
src="web/images/4.jpg" alt=""/></a>
</div>
</div>
<div class="col-md-6 gallery-right">
<div class="gallery-right-grid">
<div class="col-md-6 gallery-grid-img">
<a class="example-image-link"
href="images/5.jpg" data-lightbox="example-set" data-title=""><img class="example-image"
src="web/images/5.jpg" alt=""/></a>
</div>
<div class="col-md-6 gallery-grid-img">
<a class="example-image-link"
href="images/6.jpg" data-lightbox="example-set" data-title=""><img class="example-image"
src="web/images/6.jpg" alt=""/></a>
</div>
<div class="clearfix"> </div>
</div>
<div class="gallery-right-grid gallery-right-top-
grid">
<div class="col-md-6 gallery-grid-img">
<a class="example-image-link"
href="images7.jpg" data-lightbox="example-set" data-title=""><img class="example-image"
src="web/images/7.jpg" alt=""/></a>
</div>
<div class="col-md-6 gallery-grid-img">
<a class="example-image-link"
href="images/8.jpg" data-lightbox="example-set" data-title=""><img class="example-image"
src="web/images/8.jpg" alt=""/></a>
</div>
<div class="clearfix"> </div>
</div>
</div>
<div class="clearfix"> </div>
</div>
<script src="js/lightbox-plus-jquery.min.js"></script>
</div>
</div>

BCCA Final Year Students 67


Online Restaurant System

<!-- //container -->


</div>
<!-- //gallery -->
<!-- testimonials -->
<div id="testimonials" class="testimonials">
<!-- container -->
<div class="container">
<div class="testimonials-info">
<h3>Testimonials</h3>
</div>
<div class="testimonials-grids">
<script src="web/js/responsiveslides.min.js"></script>
<script>
// You can also use "$(window).load(function() {"
$(function () {
// Slideshow 4
$("#slider3").responsiveSlides({
auto: true,
pager: true,
nav: false,
speed: 500,
namespace: "callbacks",
before: function () {
$(".events").append("<li>before event fired.</li>");
},
after: function () {
$(".events").append("<li>after event fired.</li>");
}
});

});
</script>
<div id="top" class="callbacks_container">
<ul class="rslides" id="slider3">
<li>
<div class="testimonials-grid">
<img
src="web/images/12346319_555250137984904_4694758162614194247_n.jpg" alt="" width="100px"
height="100px" />
<p><span>"</span>Thank you for
the good times,
The days you filled with pleasure,
Thank you for fond memories,
And for feeling i'll always treasure....<span>"</span></p>
</div>
</li>
<li>
<div class="testimonials-grid">
<img src="web/images/IMG-
20160222-WA0002.jpg" alt="" width="100px" height="100px" />
<p><span>"</span>As we express
our gratitude,
We must never forget that the highest appreciation is not toutter word but
to live by them..<span>"</span></p>
</div>
</li>
</ul>

BCCA Final Year Students 68


Online Restaurant System

</div>
</div>
</div>
<!-- //container -->
</div>
<!-- //testimonials -->
<!-- news -->
<div id="news" class="news">
<!-- container -->
<div class="container">
<div class="news-info">
<h3>News &amp; Events</h3>
</div>
<div class="news-grids">
<div class="col-md-6 news-grid">
<img src="web/images/12.jpg" alt="">
<div class="news-grid-info">
<a href="web/#">Donec cursus felis a enim egestas</a>
<p class="date">19th June | 10:00 - 12:00</p>
<p class="text">Etiam ex lorem cursus vitae placerat suscipit
dapibus tortor sed nec augue vitae placerat suscipit dapibus tortor sed nec augue enim rhoncus ultricies eros
interdum aliquam eros iaculis id.</p>
</div>
</div>
<div class="col-md-6 news-grid">
<img src="web/images/13.jpg" alt="">
<div class="news-grid-info">
<a href="web/#">Donec cursus felis a enim egestas</a>
<p class="date">24th May | 09:00 - 11:00</p>
<p class="text">Etiam ex lorem cursus vitae placerat suscipit
dapibus tortor sed nec augue vitae placerat suscipit dapibus tortor sed nec augue enim rhoncus ultricies eros
interdum aliquam eros iaculis id.</p>
</div>
</div>
<div class="clearfix"> </div>
</div>
</div>
<!-- //container -->
</div>
<!-- //news -->

<?php

echo getfutter();

?>

2.HEADER PAGE

<?php

function getHeader(){
return '
<!DOCTYPE HTML>
<html>
<head>
<title>Gammat Jammat</title>

BCCA Final Year Students 69


Online Restaurant System

<meta name="viewport" content="width=device-width, initial-scale=1">


<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Auberge Responsive web template, Bootstrap Web Templates, Flat Web
Templates, Android Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola
web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,
0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!-- bootstrap -->
<link href="web/css/bootstrap.css" rel="stylesheet" type="text/css" media="all" />
<!-- //bootstrap -->
<!-- Custom Theme files -->
<link href="web/css/style.css" rel="stylesheet" type="text/css" media="all" />
<link rel="stylesheet" href="web/css/lightbox.css">
<script src="web/js/jquery-1.8.3.min.js"></script>
<!--start-smoth-scrolling-->
<!--webfonts-->
<link href="web///fonts.googleapis.com/css?
family=Open+Sans:400italic,600italic,700italic,400,300,600,700,800" rel="stylesheet" type="text/css">
<link href="web///fonts.googleapis.com/css?family=Philosopher:400,400italic,700,700italic" rel="stylesheet"
type="text/css">
<!--webfonts-->
<link href="web/css/component.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".scroll").click(function(event){
event.preventDefault();
$("html,body").animate({scrollTop:$(this.hash).offset().top},1000);
});
});
</script>
<!-- start-smoth-scrolling -->
</head>
';
}

function getMenu(){

return '<style>
ul.topmenu {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}

ul.topmenu li {
float: left;
}

ul.topmenu li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;

BCCA Final Year Students 70


Online Restaurant System

/* Change the link color to #111 (black) on hover */


ul.topmenu li a:hover {
background-color: #111;
}
</style>

<div class="container">
<ul class="topmenu">
<li><a href="product.php">Product</a></li>
<li><a href="order.php">Orders</a></li>
<li><a href="user.php">Users</a></li>
<li><a href="logout.php">Logout</a></li>
</ul><br /><br />';

}
3.FUTTER PAGE

<?php

function getfutter(){
return '
<!-- contact -->
<div id="mail" class="contact">
<!-- container -->
<div class="container">
<div class="contact-info">
<h3>Contact Us</h3>
</div>
<div class="contact-grids">
<div class="col-md-4 contact-grid">
<div class="contact-grid-info">
<h3>Popular</h3>
</div>
<div class="contact-grid-list">
<ul>
<li><a href="web/#">Proin placerat ipsum et
rutrum</a><li>
<li><a href="web/#">Vestibulum et ligula
lectus </a><li>
<li><a href="web/#">Praesent in augue ut
purus</a><li>
<li><a href="web/#">Proin semper ut ligula sit
amet</a><li>
<li><a href="web/#">Vestibulum hendrerit
lacus ut mi</a><li>
<li><a href="web/#">Fusce sollicitudin nunc
est</a><li>
</ul>
</div>
</div>

BCCA Final Year Students 71


Online Restaurant System

<div class="col-md-4 contact-grid">


<div class="contact-grid-info">
<h3>Address</h3>
</div>
<div class="contact-grid-list">
<h4>Headquarters</h4>
<p>123 T. Globel Place.
<span>CG 09-123</span>
Newyork, Ba. 4567
</p>
<h4>Get In Touch</h4>
<p>Telephone : +1 234 567 9871
<span>FAX : +1 234 567 9871</span>
E-mail : <a
href="web/mailto:info@example.com">mail@example.com</a>
</p>
</div>
</div>
<div class="col-md-4 contact-grid">
<div class="contact-grid-info">
<h3>Stay in touch</h3>
</div>
<div class="contact-grid-list">
<form action="touch.php">
<input type="text" placeholder="Name"
required="" name="name">
<input type="text" placeholder="Email"
required="" name="email">
<textarea placeholder="Message" required=""
name="message"></textarea>
<input type="submit" name="teach"
value="SEND">
</form>
</div>
</div>
<div class="clearfix"> </div>
</div>
</div>
<!-- //container -->
</div>
<!-- //contact -->
<!-- footer -->
<div class="footer">
<!-- container -->
<div class="container">
<p>Copyrights © 2015 Auberge . All rights reserved | Design by <a
href="web/http://w3layouts.com/">W3layouts</a></p>
</div>
<!-- //container -->
</div>
<!-- //footer -->
<script type="text/javascript">

BCCA Final Year Students 72


Online Restaurant System

$(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="web/#" id="toTop"
style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a>
<!-- content-Get-in-touch -->
<script type="text/javascript" src="web/js/move-top.js"></script>
<script type="text/javascript" src="web/js/easing.js"></script>
</body>
</html>
';
}
4.LOGIN PAGE

<?php
session_start();

require_once('./site/lib/req.php');

$tablePages = new Fw_Db_Table('users');


//db($tablePages->getRow()); exit;

require_once('./header.php');
require_once('./futter.php');

echo getHeader();

if(isset($_SESSION['user'])){
if($_SESSION['user']['user_name']=='Administrator'){
header('Location: order.php');
}else{
header('Location: makeOrder.php');
}
}

if(isset($_POST['login'])){

BCCA Final Year Students 73


Online Restaurant System

$tablePages->setWhere("user_username='".$_POST['user_username']."' and
user_password='".md5($_POST['user_password'])."'");
$_SESSION['user'] = $tablePages->getRow();
if($_SESSION['user']['user_name']=='Administrator'){
header('Location: order.php');
}else{
header('Location: makeOrder.php');
}

if(isset($_POST['create'])){
$_POST['user_email'] = $_POST['user_username'];
$_POST['user_name'] = $_POST['user_username'];
$_POST['user_password'] = md5($_POST['user_password']);
$i = $tablePages->insertRow($_POST);
$_SESSION['user'] = $tablePages->setWhere("user_id=".$i);
header('Location: makeOrder.php');
}

?>
<body class="cbp-spmenu-push">
<!--header-->

<!-- welcome -->


<div class="welcome">
<!-- container -->
<div class="container">
<div class="col-md-6 welcome-left">
<h2>Log In</h2>
<h5>Enter User Eamil and Password</h5>

<div class="contact-grid-list">
<form method="post">
<input type="text" placeholder="Email"
required="" name="user_username">
<input type="password"
placeholder="Password" required="" name="user_password">
<input type="submit" name="login"
value="Login">
</form>
</div>

</div>
<div class="col-md-6 welcome-left">
<h2>Registor</h2>
<h5>Create Account</h5>

<div class="contact-grid-list">
<form method="post">

BCCA Final Year Students 74


Online Restaurant System

<input type="text" placeholder="Email"


required="" name="user_username">
<input type="password"
placeholder="Password" required="" name="user_password">
<input type="password"
placeholder="Password" required="" name="user_password1">
<input type="submit" name="create"
value="Create">
</form>
</div>

</div>
<div class="clearfix"> </div>
</div>
<!-- //container -->
</div>
<!-- //welcome -->
<!-- about -->
<div id="about" class="about">
<div class="col-md-6 about-left">

</div>
<div class="col-md-6 about-right">
<h3>About Us</h3>
<p>Located in Pakur, Jharkhand, RK Palace reflects the town’s spirit in a
harmonious blend of tradition and contemporary sophistication. With the right blend of service,
luxury and amenities, RK Palace offer guests a great experience. RK Palace offers spacious rooms
with beautiful décor, impeccable personalized service, multi cuisine restaurant, whether you are on a
business trip or on a vacation, RK Palace provides you the relaxation, comfort and experience that
you are looking for. Exquisite interiors, impeccable service and fine cuisine combine to make this
Pakur’s most graceful and elegant hotel.</p>
</div>
<div class="clearfix"> </div>
</div>
<!-- //about -->
<?php

echo getfutter();
?>

5. LOGOUT PAGE
<?php
session_start();

unset($_SESSION['user']);

require_once('./site/lib/req.php');

BCCA Final Year Students 75


Online Restaurant System

$tablePages = new Fw_Db_Table('users');


//db($tablePages->getRow()); exit;

require_once('./header.php');
require_once('./futter.php');

echo getHeader();

if(isset($_SESSION['user'])){
if($_SESSION['user']['user_name']=='Administrator'){
header('Location: order.php');
}else{
header('Location: makeOrder.php');
}
}

if(isset($_POST['login'])){
$tablePages->setWhere("user_username='".$_POST['user_username']."' and
user_password='".md5($_POST['user_password'])."'");
$_SESSION['user'] = $tablePages->getRow();
if($_SESSION['user']['user_name']=='Administrator'){
header('Location: order.php');
}else{
header('Location: makeOrder.php');
}

if(isset($_POST['create'])){
$_POST['user_email'] = $_POST['user_username'];
$_POST['user_name'] = $_POST['user_username'];
$_POST['user_password'] = md5($_POST['user_password']);
$i = $tablePages->insertRow($_POST);
$_SESSION['user'] = $tablePages->setWhere("user_id=".$i);
header('Location: makeOrder.php');
}

?>
<body class="cbp-spmenu-push">
<!--header-->

<!-- welcome -->


<div class="welcome">
<!-- container -->
<div class="container">
<div class="col-md-6 welcome-left">
<h2>Log In</h2>
<h5>Enter User Eamil and Password</h5>

<div class="contact-grid-list">
<form method="post">

BCCA Final Year Students 76


Online Restaurant System

<input type="text" placeholder="Email"


required="" name="user_username">
<input type="password"
placeholder="Password" required="" name="user_password">
<input type="submit" name="login"
value="Login">
</form>
</div>

</div>
<div class="col-md-6 welcome-left">
<h2>Registor</h2>
<h5>Create Account</h5>

<div class="contact-grid-list">
<form method="post">
<input type="text" placeholder="Email"
required="" name="user_username">
<input type="password"
placeholder="Password" required="" name="user_password">
<input type="password"
placeholder="Password" required="" name="user_password1">
<input type="submit" name="create"
value="Create">
</form>
</div>

</div>
<div class="clearfix"> </div>
</div>
<!-- //container -->
</div>
<!-- //welcome -->
<!-- about -->
<div id="about" class="about">
<div class="col-md-6 about-left">

</div>
<div class="col-md-6 about-right">
<h3>About Us</h3>
<p>Located in Pakur, Jharkhand, RK Palace reflects the town’s spirit in a
harmonious blend of tradition and contemporary sophistication. With the right blend of service,
luxury and amenities, RK Palace offer guests a great experience. RK Palace offers spacious rooms
with beautiful décor, impeccable personalized service, multi cuisine restaurant, whether you are on a
business trip or on a vacation, RK Palace provides you the relaxation, comfort and experience that
you are looking for. Exquisite interiors, impeccable service and fine cuisine combine to make this
Pakur’s most graceful and elegant hotel.</p>
</div>
<div class="clearfix"> </div>
</div>
<!-- //about -->
<?php

BCCA Final Year Students 77


Online Restaurant System

echo getfutter();
?>

6.MAGE ORDER PAGE

<?php
session_start();

require_once('/site/lib/req.php');

$tablePages = new Fw_Db_Table('products');


$list = $tablePages->getAllRows();

require_once('/header.php');
require_once('/futter.php');

echo getHeader();
?>
<div class="container">
<form action="viewcart.php" method="post">
<table class="table">
<tr>
<th>Product Name</th>
<th>Aamout</th>
<th>QTY</th>
</tr>
<?php
$tpl='';

foreach ($list as $key => $value) {


$tpl.= '<tr><td>'.$value['product_name'].'</td><td>'.$value['product_rate'].'</
td><td><input type="number" name="'.$value['product_name'].'"></td></tr>';
}
echo $tpl;
?>

</table>
<button type="submit" value="Check Out" class="btn" > Check Out </button>
</form>
</div>
<br />
<?php

echo getfutter();
?>

7. ORDER PAGE

BCCA Final Year Students 78


Online Restaurant System

<?php
session_start();

require_once('/site/lib/req.php');

$tablePages = new Fw_Db_Table('orders');


$list = $tablePages->getAllRows();

require_once('/header.php');
require_once('/futter.php');

echo getHeader();

echo getMenu();
?>
<div class="container">
<table class="table">
<tr>
<th>Name Address</th>
<th>Amount</th>
<th>Mobile</th>
<th>Date</th>
<th>Action</th>
</tr>
<?php
$tpl='';
foreach ($list as $key => $value) {
$tpl.= '<tr><td>'.$value['order_address'].'</td><td>'.$value['order_amount'].'</
td><td>'.$value['order_mobile'].'</td><td>'.$value['order_date'].'</td><td><a class="btn"
href="orderDetail.php?order_id='.$value['order_id'].'">Edit</a></td></tr>';
}

?>
</table>
</div>
<br />
<?php

echo getfutter();
?>

8.ORDER DETAIL PAGE

<?php
session_start();

BCCA Final Year Students 79


Online Restaurant System

require_once('/site/lib/req.php');

$tablePages = new Fw_Db_Table('orders');


$list = $tablePages->getAllRows();

require_once('/header.php');
require_once('/futter.php');

echo getHeader();
?>
<div class="container">
<table class="table">
<tr>
<th>Name Address</th>
<th>Amount</th>
<th>Mobile</th>
<th>Date</th>
<th>Action</th>
</tr>
<?php
$tpl='';
foreach ($list as $key => $value) {
$tpl.= '<tr><td>'.$value['order_address'].'</td><td>'.$value['order_amount'].'</
td><td>'.$value['order_mobile'].'</td><td>'.$value['order_date'].'</td><td><a class="btn"
href="orderDetail.php?order_id='.$value['order_id'].'">Edit</a></td></tr>';
}

?>
</table>
</div>
<br />
<?php

echo getfutter();
?>

9. PRODUCT PAGE

<?php
session_start();

require_once('/site/lib/req.php');

$tablePages = new Fw_Db_Table('products');


$list = $tablePages->getAllRows();

require_once('/header.php');
require_once('/futter.php');

BCCA Final Year Students 80


Online Restaurant System

echo getHeader();

if(isset($_SESSION['user'])){
if($_SESSION['user']['user_name']=='Administrator'){
header('Location: order.php');
}else{
header('Location: makeOrder.php');
}
}
echo getMenu();

?>

<a href="productDetail.php">Add Product</a>


<table class="table">
<tr>
<th>Product Name</th>
<th>Detail</th>
<th>Rate</th>
<th>Action</th>
</tr>
<?php
$tpl='';

foreach ($list as $key => $value) {


$tpl.= '<tr><td>'.$value['product_name'].'</td><td>'.$value['product_rate'].'</
td><td>'.$value['product_detail'].'</td><td><a class="btn" href="productDetail.php?product_id='.
$value['product_id'].'">Edit</a></td></tr>';
}
echo $tpl;
?>
</table>
</div>
<br />
<?php

echo getfutter();
?>

10. PRODUCT DETAIL PAGE

<?php
session_start();

require_once('/site/lib/req.php');

$tablePages = new Fw_Db_Table('products');

BCCA Final Year Students 81


Online Restaurant System

//db($tablePages->getRow()); exit;

require_once('/header.php');
require_once('/futter.php');

echo getHeader();
if(!empty($_GET['product_id'])){
$tablePages->setWhere("product_id=".$_GET['product_id']);
$detail = $tablePages->getRow();
}

if(!empty($_POST['product_name']) && !empty($_POST['product_rate'])){


if(empty($_POST['product_id'])){
$tablePages->insertRow($_POST);
}else{
$tablePages->updateRow($_POST);
}

header("location: product.php");
}
if(!isset($detail)){
?>
<div class="container">
<form method="post">

<table class="table">
<tr>
<th>Product Name</th>
<td><input type="text" name="product_name" value="" /></td>

</tr>
<tr>
<th>Rate</th>
<td><input type="text" name="product_rate" value="" /></td>
</tr>
<tr>
<th>Detail</th>
<td><input type="text" name="product_detail" value="" /></td>
</tr>
</table>
<button class="btn">Save</button>
</form>
</div>
<br />
<?php
}else{
?>
<div class="container">
<form method="post">
<input type="hidden" name="product_id" value="<?php echo $detail['product_id'] ?>" />
<table class="table">

BCCA Final Year Students 82


Online Restaurant System

<tr>
<th>Product Name</th>
<td><input type="text" name="product_name" value="<?php echo
$detail['product_name'] ?>" /></td>

</tr>
<tr>
<th>Rate</th>
<td><input type="text" name="product_rate" value="<?php echo $detail['product_rate'] ?>"
/></td>
</tr>
<tr>
<th>Detail</th>
<td><input type="text" name="product_detail" value="<?php echo
$detail['product_detail'] ?>" /></td>
</tr>
</table>
<button class="btn">Save</button>
</form>
</div>
<br />
<?php
}

echo getfutter();
?>

11. USER PAGE

<?php
session_start();

require_once('/site/lib/req.php');

$tablePages = new Fw_Db_Table('users');


$list = $tablePages->getAllRows();

require_once('/header.php');
require_once('/futter.php');

echo getHeader();

if(isset($_SESSION['user'])){
if($_SESSION['user']['user_name']=='Administrator'){
header('Location: order.php');
}else{
header('Location: makeOrder.php');
}

BCCA Final Year Students 83


Online Restaurant System

?>
<style>
ul.topmenu {
list-style-type: none;
margin: 0;
padding: 0;
overflow: hidden;
background-color: #333;
}

ul.topmenu li {
float: left;
}

ul.topmenu li a {
display: block;
color: white;
text-align: center;
padding: 14px 16px;
text-decoration: none;
}

/* Change the link color to #111 (black) on hover */


ul.topmenu li a:hover {
background-color: #111;
}
</style>

<div class="container">
<ul class="topmenu">
<li><a href="product.php">Product</a></li>
<li><a href="order.php">Orders</a></li>
<li><a href="user.asp">Users</a></li>
<li><a href="about.asp">About</a></li>
</ul><br /><br />
<table class="table">
<tr>
<th>Name</th>
<th>Email</th>
</tr>
<?php
$tpl='';

foreach ($list as $key => $value) {


$tpl.= '<tr><td>'.$value['user_name'].'</td><td>'.$value['user_email'].'</td></
tr>';
}
echo $tpl;
?>

BCCA Final Year Students 84


Online Restaurant System

</table>
</div>
<br />
<?php

echo getfutter();
?>
12.STYPE PAGE (.CSS)

/*--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
--*/
body a {
transition: 0.5s all;
-webkit-transition: 0.5s all;
-o-transition: 0.5s all;
-moz-transition: 0.5s all;
-ms-transition: 0.5s all;
}
html, body{
font-family: 'Open Sans', sans-serif;
font-size: 100%;
background: #ffffff;
}
.menu {
display: block;
cursor: pointer;
color: #555555;
border-bottom: 1px dashed rgb(118, 118, 118);
font-size: 18px;
padding: 20px 25px;
font-weight: 400;
position: relative;
}
.menu:hover{
color: #A4C95E;
}
.top-nav {
float: right;
margin-top: 0;
}
button#showRightPush {
border: none;
padding: 3px 0 0;
outline: none;
position: fixed;

BCCA Final Year Students 85


Online Restaurant System

z-index: 1;
background: none;
}
nav#cbp-spmenu-s2 {
background: #EFEFEF;
text-align: center;
}
nav#cbp-spmenu-s2 a {
color: #333;
display: block;
padding: 1em 0;
font-size: 1em;
font-weight: 400;
border: none;
margin: 0;
transition: .5s all;
border-bottom: 1px dashed rgb(179, 179, 179);
text-decoration: none;
}
nav#cbp-spmenu-s2 a:hover {
text-decoration: none;
background: none;
}
nav#cbp-spmenu-s2 a.active,nav#cbp-spmenu-s2 a:hover {
color: #A4C95E;
}
nav#cbp-spmenu-s2 h3 {
background: #333;
color: #ffffff;
text-transform: uppercase;
font-weight: 600;
}
.top-nav ul {
padding: 0;
margin: 0;
}
.top-nav ul li{
display:block;
}
.header-top {
padding-top:3em;
}
span.menu{
display:none;
}
.sub-header{
margin: 6em 0 0 0;
}
.logo.two {
text-align: center;
margin: 1em 0 0 0;
}

BCCA Final Year Students 86


Online Restaurant System

.top-nav{
float:left;
}
.header-logo{
float: left;
}
.search-form {
float: right;
}
.search-form input[type="text"] {
display: inline-block;
background: url(../images/search.png) no-repeat 18px 14px;
border: solid 1px #000;
margin: 0;
outline: none;
font-size: 14px;
color: #000;
padding: .7em .7em .7em 3em;
width: 100%;
}
.social {
float: left;
margin: .5em 0 0 17em;
}
.social ul{
padding:0;
margin:0;
}
.social ul li{
display: inline-block;
margin: 0;
}
.social ul li a.facebook{
background: url(../images/social.png) no-repeat 0px 0px;
width: 30px;
height: 30px;
display: block;
}
.social ul li a.twitter{
background: url(../images/social.png) no-repeat -30px 0px;
}
.social ul li a.chrome{
background: url(../images/social.png) no-repeat -60px 0px;
}
.social ul li a.dribbble{
background: url(../images/social.png) no-repeat -90px 0px;
}
.social ul li a.facebook:hover{
opacity:.5;
}
.header-grids {
margin-top: 12em;

BCCA Final Year Students 87


Online Restaurant System

}
.header-section{
background: url(../images/banner.jpg) no-repeat 0px 0px;
background-size: cover;
-webkit-background-size: cover;
-o-background-size: cover;
-moz-background-size: cover;
min-height: 770px;
position: relative;
}
.header-search {
position: relative;
border-radius: 30px;
width: 30%;
float: left;
margin-left: 23em;
background: #EFEFEF;
}
.header-search input[type="text"] {
margin: 0px 0;
padding: .8em 0 .8em .8em;
outline: none;
color: #8E8E8E;
background: none;
border: none;
width: 90%;
position: relative;
font-size: 1em;
-webkit-appearance: none;
}
.header-search input[type="submit"] {
background: url('../images/search.png') no-repeat 0px 1px;
border: none;
cursor: pointer;
width: 19px;
outline: none;
position: absolute;
height: 19px;
top: 12px;
right: 14px;
}
.banner-img{
text-align: center;
margin: 5em 0 0 0;
float: left;
width: 60%;
}
.banner-img img{
width:100%;
}
.banner-img img {
width: 100%;

BCCA Final Year Students 88


Online Restaurant System

}
.banner-left{
float: right;
width: 39%;
text-align: right;
margin: 16em 0 0 0;
}
.logo h1{
margin: 0;
}
.logo h1 a{
font-family: 'Philosopher', sans-serif;
font-size: 2em;
text-decoration: none;
color: #333;
}
.banner-info h5{
color: #333;
font-size: 1.2em;
font-weight: 600;
margin: 1em 0;
}
.banner-info p{
color: #FFF;
font-size: .9em;
margin: 0;
line-height: 1.8em;
}
.banner-buttons {
margin: 3em 0 1em;
}
.banner-button a {
color: #FFFFFF !important;
font-size: 1em;
padding: .5em 3em;
text-decoration: none;
border: solid 2px #FFFFFF !important;
letter-spacing: 1px;
}
.banner-button a:hover {
border: solid 2px #000 !important;
background: none !important;
color: #000 !important;
}
/*-- welcome --*/
.welcome{
padding: 6em 0;
}
.welcome-left h2{
color: #B1A992;
font-size: 4em;
margin: 0;

BCCA Final Year Students 89


Online Restaurant System

font-family: 'Philosopher', sans-serif;


}
.welcome-left h5{
color:#333;
font-weight:600;
font-size:1em;
margin:1em 0;
}
.welcome-left p{
color:#333;
font-size:.9em;
line-height:1.8em;
}
.welcome-right {
text-align:center;
}
.welcome-right img{
width: 75%;
}
/*-- about-left --*/
.about-left{
background: url(../images/6.jpg) no-repeat 0px -65px;
background-size: cover;
min-height: 444px;
}
.about-right{
padding: 5em 12em 5em 5em;
background: #A4C95E;
}
.about-right h3,.services-info h3,.gallery-info h3,.testimonials-info h3,.news-info h3,.contact-info
h3{
color:#FFF;
font-family: 'Philosopher', sans-serif;
font-size:4em;
margin:0;
}
.about-right p{
color:#FFF;
font-size:.9em;
line-height:1.8em;
margin:1em 0 0 0;
}
/*-- services --*/
.services{
padding:5em 0;
}
.services-info h3{
text-align: center;
color: #B1A992;
}
.services-top-grids{
margin-top: 5em;

BCCA Final Year Students 90


Online Restaurant System

}
.services-grid{
text-align:center;
}
.services-grid .icon {
width: 100px;
height: 100px;
border-radius: 50%;
background: #fff;
margin: 0 auto;
text-align: center;
position: relative;
border: 1px solid #ABABAB;
}
.services-grid .icon img {
position: relative;
z-index: 100;
transition: all 0.3s ease 0s;
}
.services-grid .icon:before {
content: '';
width: 102%;
height: 102%;
border-radius: 50%;
background: #333;
position: absolute;
top: -1px;
left: -1px;
z-index: 10;
-webkit-transform: scale(0);
-moz-transform: scale(0);
-ms-transform: scale(0);
-o-transform: scale(0);
transform: scale(0);
transition: all 0.3s ease 0s;
}
.services-grid:hover .icon img {
-webkit-transform: scale(0.9);
-moz-transform: scale(0.9);
-ms-transform: scale(0.9);
-o-transform: scale(0.9);
transform: scale(0.9);
}
.services-grid:hover .icon:before {
-webkit-transform: scale(1);
-moz-transform: scale(1);
-ms-transform: scale(1);
-o-transform: scale(1);
transform: scale(1);
}
.glyphicon-cog,.glyphicon-time,.glyphicon-glass,.glyphicon-thumbs-up,.glyphicon-edit,.glyphicon-
asterisk{

BCCA Final Year Students 91


Online Restaurant System

color:#C7C7C7;
font-size:35px;
}
.glyphicon-icon {
position: relative;
top: 33px;
display: block;
font-family: 'Glyphicons Halflings';
font-style: normal;
font-weight: normal;
text-align: center;
line-height: 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
z-index: 999;
}
.chrty h3 {
color: #333;
font-size: 1.2em;
margin: 1em 0;
font-weight: 600;
}
.chrty p {
font-size: .9em;
line-height: 1.8em;
color: #333;
}
/*-- gallery --*/
.gallery{
padding:5em 0;
background:#A4C95E;
}
.gallery-info h3{
text-align: center;
}
.gallery-info h2{
color: #5BD982;
}
.gallery-grids-top {
margin: 4em 0 0 0;
}
.gallery-info p {
color: #B2B2B2;
font-size: .9em;
margin: 1em auto 0;
line-height: 1.8em;
width: 70%;
}
.gallery-grid-img {
padding-left: 0;
}
.gallery-grid {

BCCA Final Year Students 92


Online Restaurant System

padding-left: 0;
}
.gallery-grid a {
display: block;
}
.gallery-grid img {
width: 100%;
}
.gallery-right {
padding: 0;
}
.gallery-grid-img img{
width:100%;
}
.gallery-grid-img:hover img{
-webkit-filter: grayscale(100%);
opacity: 8;
transition: all 300ms!important;
-webkit-transition: all 300ms!important;
-moz-transition: all 300ms!important;
}
.gallery-grid:hover img {
-webkit-filter: grayscale(100%);
opacity: 8;
transition: all 300ms!important;
-webkit-transition: all 300ms!important;
-moz-transition: all 300ms!important;
}
.gallery-grid-top-img:hover img{
-webkit-filter: grayscale(100%);
opacity: 8;
transition: all 300ms!important;
-webkit-transition: all 300ms!important;
-moz-transition: all 300ms!important;
}
.gallery-grids-middle{
margin: 1em 0;
}
.gallery-right-top-grid{
margin:1em 0 0 0;
}
.gallery-grid-top{
padding:0;
}
.gallery-grid-top-img{
margin-right:1em;
}
.gallery-grid-top-img img{
width:100%;
}
.gallery-grids {
margin-top: 1em;

BCCA Final Year Students 93


Online Restaurant System

}
/*-- testimonials --*/
.testimonials{
padding:5em 0;
}
.testimonials-info h3{
text-align: center;
color: #B1A992;
}
.testimonials-grid{
text-align: center;
width: 70%;
margin: 3em auto 0;
}
.testimonials-grid p{
font-size: .9em;
color: #333;
margin: 1em 0 0 0;
line-height: 1.8em;
}
.testimonials-grid p span{
font-size:2em;
}
.testimonials-grid img{
border-radius:50%;
}
/*------------------ Slider Part starts Here----------*/
#slider2,
#slider3 {
box-shadow: none;
-moz-box-shadow: none;
-webkit-box-shadow: none;
margin: 0 auto;
}
.rslides_tabs {
list-style: none;
padding: 0;
background: rgba(0,0,0,.25);
box-shadow: 0 0 1px rgba(255,255,255,.3), inset 0 0 5px rgba(0,0,0,1.0);
-moz-box-shadow: 0 0 1px rgba(255,255,255,.3), inset 0 0 5px rgba(0,0,0,1.0);
-webkit-box-shadow: 0 0 1px rgba(255,255,255,.3), inset 0 0 5px rgba(0,0,0,1.0);
font-size: 18px;
list-style: none;
margin: 0 auto 50px;
max-width: 540px;
padding: 10px 0;
text-align: center;
width: 100%;
}
.rslides_tabs li {
display: inline;
float: none;

BCCA Final Year Students 94


Online Restaurant System

margin-right: 1px;
}
.rslides_tabs a {
width: auto;
line-height: 20px;
padding: 9px 20px;
height: auto;
background: transparent;
display: inline;
}
.rslides_tabs li:first-child {
margin-left: 0;
}
.rslides_tabs .rslides_here a {
background: rgba(255,255,255,.1);
color: #fff;
font-weight: bold;
}
.events {
list-style: none;
}
.callbacks_container {
position: relative;
width: 100%;
}
.callbacks {
position: relative;
list-style: none;
overflow: hidden;
width: 100%;
padding: 0;
margin: 0;
}
.callbacks li {
position: absolute;
width: 100%;
left: 0;
top: 0;
}
.callbacks img {
position: relative;
z-index: 1;
height: auto;
border: 0;
}
.callbacks .caption {
display: block;
position: absolute;
z-index: 2;
font-size: 20px;
text-shadow: none;
color: #fff;

BCCA Final Year Students 95


Online Restaurant System

left: 0;
right: 0;
padding: 10px 20px;
margin: 0;
max-width: none;
top: 10%;
text-align: center;
}
.callbacks_nav {
position: absolute;
-webkit-tap-highlight-color: rgba(0,0,0,0);
top: 100%;
left: 0;
opacity: 0.7;
z-index: 3;
text-indent: -9999px;
overflow: hidden;
text-decoration: none;
height: 16px;
width: 15px;
background: transparent url("../images/themes.png") no-repeat left top;
margin-top: 0;
}
.callbacks_nav:active {
opacity: 1.0;
}
.callbacks_nav.next {
left: 7%;
background-position: right top;
}
#slider3-pager a {
display: inline-block;
}
#slider3-pager span{
float: left;
}
#slider3-pager span{
width:100px;
height:15px;
background:#fff;
display:inline-block;
border-radius:30em;
opacity:0.6;
}
#slider3-pager .rslides_here a {
background: #FFF;
border-radius:30em;
opacity:1;
}
#slider3-pager a {
padding: 0;
}

BCCA Final Year Students 96


Online Restaurant System

#slider3-pager li{
display:inline-block;
}
.rslides {
position: relative;
list-style: none;
overflow: hidden;
width: 100%;
padding: 0;
margin: 0;
}
.rslides li {
-webkit-backface-visibility: hidden;
position: absolute;
display: none;
width: 100%;
left: 0;
top: 0;
}
.rslides li{
position: relative;
display: block;
float: left;
}
.rslides img {
height: auto;
border: 0;
}
.callbacks_tabs{
list-style: none;
position: absolute;
top: 106%;
z-index: 999;
left: 48%;
padding: 0;
margin: 0;
}
.slider-top{
text-align: center;
padding:10em 0;
}
.slider-top h1{
font-weight:700;
font-size:48px;
color:#010101;
}
.slider-top p{
font-weight:400;
font-size:20px;
padding:1em 7em;
color:#010101;
}

BCCA Final Year Students 97


Online Restaurant System

.slider-top ul.social-slide{
display:inline-flex;
margin: 0px;
padding: 0px;
}
ul.social-slide li i{
width:70px;
height:74px;
background:url(../images/img-resources.png)no-repeat;
display: inline-block;
margin:0px 15px;
}
ul.social-slide li i.win{
background-position:-6px 0px;
}
ul.social-slide li i.android{
background-position:-110px 0px;
}
ul.social-slide li i.mac{
background-position:-215px 0px;
}
.callbacks_tabs li{
display: inline-block;
margin: 0 .2em;
}
@media screen and (max-width: 600px) {
.callbacks_nav {
top: 47%;
}
}
/*----*/
.callbacks_tabs a{
visibility: hidden;
}
.callbacks_tabs a:after {
content: "\f111";
font-size: 0;
font-family: FontAwesome;
visibility: visible;
display: block;
height: 12px;
width: 12px;
background: #A4C95E;
display: inline-block;
border: 2px solid #A4C95E;
border-radius: 30px;
-webkit-border-radius: 30px;
-moz-border-radius: 30px;
-o-border-radius: 30px;
-ms-border-radius: 30px;
}
.callbacks_here a:after{

BCCA Final Year Students 98


Online Restaurant System

border: 2px solid #FFFFFF;


background: #A4C95E;
}
/*-- news --*/
/*-- news --*/
.news {
padding: 5em 0;
background: #F7F7F7;
}
.news-info h3{
text-align: center;
color: #B1A992;
}
.news-grid img{
width:100%;
}
.news-grids {
margin: 5em 0 0 0;
}
.news-grid-info{
margin:2em 0 0 0;
}
.news-grid-info a{
color: #ABCD6B;
font-size: 1.3em;
font-weight: 600;
text-decoration: none;
}
.news-grid-info a:hover{
color:#333;
}
.news-grid-info p.date{
color: #BFBFBF;
font-size: 1em;
margin: .5em 0;
}
.news-grid-info p.text{
color: #333;
font-size: .9em;
margin: 0;
line-height: 1.8em;
}
/*-- contact --*/
.contact{
padding: 5em 0;
}
.contact-info {
text-align: center;
}
.contact-info h3 {
color: #B1A992;
}

BCCA Final Year Students 99


Online Restaurant System

.contact-grids {
margin: 4em 0 0 0;
}
.contact-grid-info h3{
font-size: 3em;
margin: 0;
color: #B1A992;
font-family: 'Philosopher', sans-serif;
}
.contact-grid-list {
margin-top: 2em;
}
.contact-grid-list ul{
padding:0;
margin:0;
}
.contact-grid-list ul li{
display:block;
margin:1em 0;
}
.contact-grid-list ul li a{
font-size: .9em;
color: #949494;
text-decoration:none;
}
.contact-grid-list ul li a:hover{
color: #A4C95E;
}
.contact-grid-list h4 {
color: #777;
font-size: 1em;
font-weight: 600;
margin: 0 0 .5em 0;
}
.contact-grid-list p {
color: #949494;
font-size: .9em;
margin: 1em 0;
line-height: 1.8em;
}
.contact-grid-list p span {
display: block;
}
.contact-grid-list p a {
color: #949494;
text-decoration: none;
}
.contact-grid-list p a:hover{
color: #A4C95E;
}
.contact-grid-list input[type="text"] {
width: 100%;

BCCA Final Year Students 100


Online Restaurant System

color: #949494;
background: none;
outline: none;
font-size: .9em;
padding: .5em;
margin-bottom: 1em;
border: solid 1px #949494;
-webkit-appearance: none;
}
.contact-grid-list textarea {
resize: none;
width: 100%;
background: none;
color: #949494;
font-size: .9em;
outline: none;
padding: .5em;
border: solid 1px #949494;
min-height: 80px;
-webkit-appearance: none;
}
.contact-grid-list input[type="submit"] {
border: none;
outline: none;
color: #FFFFFF;
padding: .5em 1.5em;
font-size: .9em;
font-weight: 600;
margin: 0.5em 0 0 0;
-webkit-appearance: none;
background: #A4C95E;
border-radius: 5px;
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
-o-border-radius: 5px;
-ms-border-radius: 5px;
}
.contact-grid-list input[type="submit"]:hover {
background: #4D4D4D;
color: #FFF;
transition: 0.5s all;
-webkit-transition: 0.5s all;
-o-transition: 0.5s all;
-moz-transition: 0.5s all;
-ms-transition: 0.5s all;
}
/*-- footer --*/
.footer{
padding: 1em 0;
text-align: center;
background: #B7B7B7;
}

BCCA Final Year Students 101


Online Restaurant System

.footer p{
color: #FFF;
font-size: .9em;
margin: 0;
}
.footer p a{
color:#FFF;
}
/*-- to-top --*/
#toTop {
display: none;
text-decoration: none;
position: fixed;
bottom: 14px;
right: 2%;
overflow: hidden;
z-index: 999;
width: 24px;
height: 24px;
border: none;
text-indent: 100%;
background: url("../images/up-arrow.png") no-repeat 0px 0px;
}
#toTopHover {
width: 40px;
height: 40px;
display: block;
overflow: hidden;
float: right;
opacity: 0;
-moz-opacity: 0;
filter: alpha(opacity=0);
}
/*-- responsive-start --*/
@media (max-width:1440px){
.about-left {
background: url(../images/6.jpg) no-repeat 0px -55px;
background-size: cover;
min-height: 419px;
}
.about-right {
padding: 5em 6em 5em 5em;
}
}
@media (max-width:1366px){
.about-left {
background: url(../images/6.jpg) no-repeat 0px -30px;
background-size: cover;
}
.about-right {
padding: 5em 4em 5em 5em;
}

BCCA Final Year Students 102


Online Restaurant System

}
@media (max-width:1280px){
.about-left {
background: url(../images/6.jpg) no-repeat 0px 0px;
background-size: cover;
min-height: 412px;
}
.about-right {
padding: 4em 4em 4em 5em;
}
}
@media (max-width:1080px){
.header-search {
margin-left: 15em;
}
.about-left {
min-height: 414px;
}
.about-right {
padding: 2em 2em 3em 5em;
}
}
@media (max-width:1024px){
.banner-img {
text-align: center;
margin: 7em 0 0 0;
}
.banner-left {
margin: 7em 0 0 0;
}
.header-section {
min-height: 588px;
}
.social {
margin: .5em 0 0 8em;
}
.header-section {
background: url(../images/banner.jpg) no-repeat -263px 0px;
background-size: cover;
}
.welcome-right {
margin-top: 2em;
}
}
@media (max-width:991px){
.services-grid:nth-child(2){
margin:2em 0;
}
.gallery-grid {
float: left;
width: 50%;
margin-bottom: 1em;

BCCA Final Year Students 103


Online Restaurant System

}
.gallery-grid-top {
padding: 0;
float: left;
width: 50%;
}
.gallery-right {
padding: 0;
float: left;
width: 50%;
}
.gallery-grid-img {
padding-left: 0;
float: left;
width: 50%;
}
.middle-gallery-grid {
width: 33.33%;
margin-bottom: 0em;
}
.gallery-grids {
margin-top: 0em;
}
.news-grid-info {
margin: 2em 0;
}
.header-search input[type="text"] {
width: 83%;
}
}
@media (max-width:640px){
.header-search {
margin-left: 12em;
}
.social {
margin: .5em 0 0 5em;
}
.header-search input[type="text"] {
padding: .5em 0 .5em .8em;
}
.header-search input[type="submit"] {
top: 9px;
}
.banner-img {
width: 50%;
}
.banner-left {
width: 50%;
}
.header-section {
background: url(../images/banner.jpg) no-repeat -519px 0px;
background-size: cover;

BCCA Final Year Students 104


Online Restaurant System

}
.header-search input[type="text"] {
width: 80%;
}
}
@media (max-width:480px){
.header-search {
margin-left: 5em;
width: 42%;
}
.social {
margin: .5em 0 0 2em;
}
.banner-img {
width: 100%;
float: none;
}
.banner-left {
width: 100%;
float: none;
}
.banner-left {
margin: 0em 0 0 0;
}
.banner-img {
margin: 4em 0 0 0;
}
.banner-buttons {
margin: 3em 0 2em;
}
.welcome {
padding: 2em 0;
}
.welcome-left h2 {
font-size: 3em;
}
.about-right {
padding: 2em;
}
.about-right h3, .services-info h3, .gallery-info h3, .testimonials-info h3, .news-info
h3, .contact-info h3 {
font-size: 3em;
}
.services {
padding: 2em 0;
}
.services-top-grids {
margin-top: 2em;
}
.gallery {
padding: 2em 0;
}

BCCA Final Year Students 105


Online Restaurant System

.gallery-grids-top {
margin: 2em 0 0 0;
}
.testimonials {
padding: 2em 0;
}
.testimonials-grid {
width: 100%;
margin: 2em auto 0;
}
.testimonials {
padding: 2em 0 3em;
}
.callbacks_tabs {
top: 103%;
left: 42%;
}
.news {
padding: 2em 0;
}
.news-grids {
margin: 2em 0 0 0;
}
.contact {
padding: 2em 0;
}
.contact-grids {
margin: 2em 0 0 0;
}
.contact-grid-info h3 {
font-size: 2em;
}
.contact-grid-list {
margin-top: 1em;
}
}
@media (max-width:320px){
.header-top {
padding-top: 1em;
}
button#showRightPush img {
width: 70%;
}
.header-search input[type="text"] {
font-size: .9em;
width: 67%;
}
.header-search {
margin-left: 3em;
}
.social {
margin: .5em 0 0 0.5em;

BCCA Final Year Students 106


Online Restaurant System

}
.social ul li a.facebook {
background: url(../images/social.png) no-repeat 0px 0px;
width: 22px;
height: 22px;
display: block;
background-size: 500%;
}
.social ul li a.twitter {
background: url(../images/social.png) no-repeat -22px 0px !important;
background-size: 500% !important;
}
.social ul li a.chrome {
background: url(../images/social.png) no-repeat -44px 0px !important;
background-size: 500% !important;
}
.social ul li a.dribbble {
background: url(../images/social.png) no-repeat -66px 0px !important;
background-size: 500% !important;
}
.logo h1 a {
font-size: 1.2em;
}
.banner-img {
margin: 2em 0 0 0;
}
.header-section {
background: url(../images/banner.jpg) no-repeat -587px 0px;
background-size: cover;
}
.banner-info h5 {
font-size: 1em;
}
.banner-info p {
font-size: .8em;
}
.banner-button a {
font-size: .8em;
}
.banner-buttons {
margin: 1em 0 0em;
}
.header-section {
min-height: 570px;
}
.welcome {
padding: 1em 0;
}
.welcome-left h2 {
font-size: 2em;
}
.welcome-left h5 {

BCCA Final Year Students 107


Online Restaurant System

font-size: .9em;
}
.welcome-left p {
font-size: .8em;
}
.about-left {
min-height: 200px;
}
.about-right h3, .services-info h3, .gallery-info h3, .testimonials-info h3, .news-info
h3, .contact-info h3 {
font-size: 2em;
}
.about-right {
padding: 1em;
}
.about-right p {
font-size: .8em;
}
.services {
padding: 1em 0;
}
.chrty p {
font-size: .8em;
}
.gallery {
padding: 1em 0;
}
.gallery-grids-top {
margin: 1em 0 0 0;
}
.gallery-grid-top-img {
margin: 0;
}
.gallery-right {
float: none;
width: 100%;
}
.gallery-grid-img {
padding: 0;
float: none;
width: 100%;
margin: 1em 0;
}
.gallery-grid-top {
padding: 0;
float: none;
width: 100%;
}
.middle-gallery-grid {
width: 100%;
margin-bottom: 1em;
padding: 0;

BCCA Final Year Students 108


Online Restaurant System

}
.gallery-grids-middle {
margin: 0em 0;
}
.gallery-grid {
float: none;
width: 100%;
margin-bottom: 1em;
}
.gallery-grids-top {
margin: 1em 0 0 0;
}
.testimonials {
padding: 1em 0 3em;
}
.testimonials-grid p {
font-size: .8em;
}
.news {
padding: 1em 0;
}
.news-grids {
margin: 1em 0 0 0;
}
.news-grid-info a {
font-size: 1em;
}
.news-grid-info {
margin: 1em 0;
}
.news-grid-info p.date {
font-size: .9em;
}
.news-grid-info p.text {
font-size: .8em;
}
.contact {
padding: 1em 0;
}
.contact-grid-info h3 {
font-size: 1.6em;
}
.contact-grid-list ul li {
margin: .5em 0;
}
.contact-grid-list ul li a {
font-size: .8em;
}
.contact-grid-list p {
font-size: .8em;
}
.footer p {

BCCA Final Year Students 109


Online Restaurant System

font-size: .8em;
}
}

CODE EFFICIENCY

BCCA Final Year Students 110


Online Restaurant System

CODE EFFICIENCY
The overall performance of system to a grater extends depends on the coding procedures followed by the
programmer. So the efficiency of the code is so important in system development. A lot of factor like
programming language selection, memory allocation, memory management, programming style, use of
variable, reusability of code, etc determine the efficiency of code. The coding procedures followed in the
programmers of this system are as follows:
The software is a robust one as it is completely coded in a Visual Basic Language. All memory allocation
and de-allocation are done explicitly using Visual Basic program and methods. It is guarantees that no
memory space is wasted. I followed modular programming by dividing the whole system into sub
modules. Only database connection is made through ODBC driver for OLEDB. Memory management of
programs are handle through dynamic memory allocation.

BCCA Final Year Students 111


Online Restaurant System

OPTIMIZATION OF
CODE

BCCA Final Year Students 112


Online Restaurant System

OPTIMIZATION OF CODE
All the modules and functions in this project are optimized to get the intended result with less lines of
code.
CODE OPTIMIZATION:
In an ideal world, software would design itself to your specification, automatically reduce itself to the
smallest possible memory point, compile instantly, and always run as the fastest possible speed. In the real
word, develops still of programming language. To get the absolutely smallest, fastest code, a programmer
can work in assembly language, but that can be prohibitively labor-intensive for all but the most time-
critical code.
Most programmer do most of their coding in a high-level language, which is then compiled to an assemble
language and linked into an executable program image. During the development process, programmers are
quite sensitive to build speed and easy of debugging; when it comes times to release the code for
production, run time speed and size becomes a paramount importance. Throughout this project, we will be
concerning on production code runtime size and speed concerns.
There are many ways, to make code run quickly. Often, the controlling factor for the speed of a program
is the algorithms used, rather than any optimization done by the compiler. Sometime it is just not
important to make run quickly. For example , user interface code that responds to a keystroke in a tenth of
a second is indistinguishable from user interface code that respond to a keystroke in a milliseconds - the
throughput is still limited by the user typing speed.ASWATSS(All System Wait At The Same speed).

Speed Optimization:
A number of ways exist for optimizing code for speed. You can find in any book on writing compiler,
and it is worth while to go into some of them before we dive into the details of Visual C++. Some of these
speed optimizations also minimize the program’s size, and others trade size for speed. Often, global
compiler optimizations change the order of the execution of the generated instruction, making it difficult
to debug optimized complied programs at the source code level. Most likely the optimized code will be
smaller than the un-optimized code, as well as faster. Copy propagation and dead store elimination work
to remove unused intermediate variables from the calculation stream, improving both size and speed

BCCA Final Year Students 113


Online Restaurant System

Often, some code inside a loop, which is repeated many time, does not change values during the loops
execution. This loop invariants can be calculated once before the loop runs, Removing or hoisting loop
invariants generally improves speed without affecting size vary much. This saves 999 addition operations
at the cost of one temporary variable, which is likely to go into a register. On the modern pipelined
processors, instruction order can make a huge difference in execution speed because address can be
perfected if the order is right and cannot be if the order is unfavorable. Michael Abreact, in his Zen of
code optimization, discusses how a simple three instruction inner loop written in seemly language is
speed up by a factor of two on 80486 processor.
SIZE OPTIMIZATION
You may wonder why we keep emphasizing code size along with code speed. With 256 Megabyte (MB)
of RAM. A Common Configuration who cares? In fact, code size can make a huge difference in
execution speed, especially on a multitasking OS such as Windows. There are two events that can directly
slow code down because of size: a cache miss and a page fault. A cache miss causes a minor delay when
a memory location is not in the CPU cache. A page fault causes a major delay when a virtual memory
location is not physical memory and has to be fetched from disk. A large working set the sum of code and
data that has to be in memory for program to run-makes both cache miss and page faults more likely. On
an 80486 machine, reading a byte from primary CPU memory cache takes one cycle, while reading the
byte from RAM that is not the cache - a cache mines take more like 13 cycle. If a secondary cache is
present and has the request byte, the limiting will be intermediate between these two extremes.
The 80486 has one 8 kilobyte (KB) cache for both code and data. If the code and data for an inner loop all
fit into cache, the loop can run at his maximum speed, if they don't it can't. On the Pentium, Pentium with
MMX, Pentium Pro, Pentium II , Celeron, Xeon, Pentium III and Pentium IV, there are separate and data
cache on the CPU chip. If the code for loop can all into the CPU's instruction cache, it will run much
faster than if it cans not, because there will be no delay for fetching code. Likewise, if all the working
memory can fetch it into secondary cache. The program will run much faster, because there will no be
delay for fetching data.
In addition, the secondary cache, of while there is often 512 KB on a Pentium II motherboard, is usually
shared between code and data. Assuming the primary cache are not big enough, a situation develops
where if the total of the working code and data can if into secondary cache, the program runs much faster
than if they can not.
A page faults happens when a part of a program is not in RAM virtual memory page file on the head disk;
because disk is very much slower than RAM , one page fault can represent a huge slow down.

BCCA Final Year Students 114


Online Restaurant System

VALIDATION CHECKS

BCCA Final Year Students 115


Online Restaurant System

VALIDATION CHECKS

Validation check is needed at every phase of the system development. Improper validation of requests
will result in the development of useless system. The first validation check carried out in the design phase
of the system. Data validation checks are very important for the proper functioning of the system. Errors
can happen while user input data and usually result in malfunctioning or even termination of the software.
So it is very important to prevent erroneous or invalid data. Errors are generally comes while user try to
enter data that the system is not expecting. In order to prevent user from entering invalid data, necessary
validation checks are to be provided. Following are some of the validation checks in this system.
 Verification or data type: Input checks are provided to make sure that only right type of data is
entered in an input field.
 Verification of length of data: There is restriction in length of data that the user can enter depending
on the database field.
 Checking between ranges of values : Checking is provided to check the validity of input data. For
example ‘Goods Amount ‘must be a on negative value greater than zero.
 Validation check is also given to check violation of database constraints like primary key violation
etc.
 Visual Display of codes with its description, like member code is provided for helping the user in
easy data entry. This will help in reducing invalid entry of codes.

BCCA Final Year Students 116


Online Restaurant System

IMPLEMENTATON AND
MAINTENANCE

BCCA Final Year Students 117


Online Restaurant System

IMPLEMENTATION AND MAINTENANCE


A crucial phase in the system life cycle is the successful implementation of the new system design.
Implementation includes all those activities that take place to convert from the old system to the new one.
The implementation tasks can be summarized as follows
 Training Management
 Conversion
 Post Implementation Review

Training to Staff
Even well designed system can succeed or fail because of the way they are operated and used. Therefore I
adopted good training procedure in my system. Operators of the system are familiar with the computer
but not with window platform, I gave essential window training such as the basic usage of XP window
system. Using word processors and printers and some basic selections. When they are confident in
window platform I introduced the system. A printed copy of user manual is distributed to the system
training.

BCCA Final Year Students 118


Online Restaurant System

BIBLIOGRAPHY

BCCA Final Year Students 119


Online Restaurant System

BIBLIOGRAPHY
1) Mastering Visual Basic 6.0

By Evangels Petroutsos BPB Publications.

2) Visual Basic 6.0 Programming

By Steven Holzner Dreamtech Press.

3 ) Visual Basic

By Himalaya Publications.

Magazines

PC Quest
Chip
Computer Today

BCCA Final Year Students 120

You might also like