Professional Documents
Culture Documents
Ppoonngg
Ppoonngg
Ppoonngg
In Partial Fulfillment
of the Requirements for the degree
Bachelor of Science in Information Technology
By:
Belostrino, Cayetano
Pariñas, Amica Riane R.
Manato, Mayryle Joy
Miralpes, Kim Christian
Peñaranda, Kyle
Wael Boksmati
Submitted to:
Mr. Mark Fermill
October 2017
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite I
COMPUTER STUDIES DEPARTMENT
APPROVAL SHEET
ACKNOWLEDGEMENT
This study is the result of the hard work, time and effort of the respondents.
However, this study wouldn’t be a success without the help of these individuals
who gave their knowledge, time and effort to help us made this study a success.
The respondents would like to acknowledge their SAD instructor Mr. Mark
Fermill for his time and effort in helping the researchers to finish this study. To Mrs.
Feliciana Genido owner of Patty’s Catering Services for allowing the respondents
to conduct and create a system for their business and providing information about
Thanks to our parents for their moral and financial support. For their prayers
and undying support which motivate us to finish this study. To relatives, friends
And most of all we give thanks to our almighty lord god for giving us
study.
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite III
COMPUTER STUDIES DEPARTMENT
DEDICATION
The researchers would like to dedicate this study to their families for their moral
The researchers also dedicated this to their friends and classmates for their moral
support.
And most of all the researchers would like to dedicate this project to their System
Analysis and Design Instructor, Mr. Mark Fermill for sharing his knowledge and
giving his effort to teach the researchers in every phase of the study.
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite IV
COMPUTER STUDIES DEPARTMENT
Table of Contents
APPROVAL SHEET………………………………………………………………………. I
ACKNOWLEDGEMENT ………………………………………………………………… II
DEDICATION……………………………………………………………………………... III
TABLE OF CONTENT……………………………………………………………………. IV
LIST OF FIGURE ………………………………………………………………………... VII
LIST OF TABLE…………………………………………………………………………...VIII
Introduction 1
Decision Tree 22
IPO Chart 23
Login Form 24
Registration Form 24
Reservation Packages 25
Reservation List 25
Pilot Run 26
Maintenance Procedures 27
Summary 28
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite VI
COMPUTER STUDIES DEPARTMENT
Conclusions 28
Recommendations 29
Bibliography 30
APPENDICES
LIST OF FIGURES
LIST OF TABLES
CHAPTER 1
SYSTEM PROPOSAL
Introduction
that in last couple of decade’s attempts has been made to develop systems which
make information more precise, readily available and easily accessible throughout
Information system is a defined software that can analyze, capture, transmit, store,
Catering started as a small business, patty’s catering starts to improve its business
after being successful in their first business year. Before they only accept one
catering a day now they can accept 3 catering’s a day, with more meals to offer to
their customers. Mrs. Feliciana Genido started this business with her sister who is
her business partner, they are the ones who cook their meals. To lessen the work,
they hired two other workers which is their driver who delivers the packages and
You get a discount on every package you avail during early reservation. But
what if the day the customer wants to reserve is already occupied by another
customer? These days, reserving a date for the catering services takes a long time
to process. The purpose of this system is to help the customer reserve fast so they
can focus on preparing for the event, not on the reservation. So we, the
proponents, came up with Online Reservation System that can greatly help assist
our customer.
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
IDE version8.2 is intended for development in Java, but also supports other
and runs on Microsoft Windows, Mac OS X, Linux, Solaris and other platforms
Topology
INTERNET
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
4
Figure #1: Client-Server Model
called servers, and service requesters, called clients. Often clients and servers
communicate over a computer network on separate hardware, but both client and
server may reside in the same system. A server host runs one or more server
programs, which share their resources with clients. A client does not share any of
its resources, but request a server’s content service or function. Clients therefore
phase must be completed fully before the next phase can begin. This type
of software development model is basically used for the project which is small and
there are no uncertain requirements. At the end of each phase, a review takes
place to determine if the project is on the right path and whether or not to continue
development is complete.
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
Information
Modeling
Requirements
Analysis
Design
Code
Generation
Testing
Delivery &
Support
Information Modeling
costumers is gathered. How the process is done, once the user is done creating
an account it will be pass to the admin’s database. The user now can update info
Requirements Analysis
notice the time and cost of manual availing catering reservations. To be able to
avail service one must be patient for those registration forms and hassle on
Design
All information that the user will input will be directly recorded in the admins
database. The user will be informed for the confirmation of service. Databases
easily. PHP and JavaScript will be used in creating the systems GUI.
Code Generation
PHP and JavaScript is used to create the GUI, and for generating codes.
Since it is web-based we are also designing its website we will be using notepad+
7
+/notepad for the HTML. We are also using MySQL for generating its database.
Testing
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
The buyer can search through online and register in the system so that they
can start creating their own account, then they can start looking for their desired
meal packages, they can choose the amount of food they want, the dishes they
want to be cook, and the time of the delivery of the food. They’ll have to fill up the
form including their name, contact number, and address for the supplier to know
their information. The admin will now confirm the details of the costumer’s request.
The business owner will be testing the finished system. After testing it if there’s
an error, checking of the codes must be done after it applies on the system.
System malfunction is reported by the owner and if there is any difficulty in the
program.
System that can serve and accommodate clients. It will help to lessen the effort
and stress caused by reserving dates, this user-friendly system is very reliable and
trustworthy.
To give customers a reliable and convenient system that can serve them all
the time.
To help clients find their desired date that they want to reserve, since it’s
To save time and lessen the effort of going to that specific place just to have
reservations.
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY 9
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
The reservation and scheduling of the catering includes Admin and User View.
The Admin View can update and change the data’s inside the database, accept
The User View contains all the list of available packages or menus; they
can also include the specific type of food they want if it’s not included in the
package or menu.
They can choose the date of their event, set the time of the delivery of the
foods. They can choose on the payment options they can choose credit
card or they can just pay at the day of the event, regarding payment options
One of the problems encountered of this system is that if the date you
chose is already occupied by others, you are not allowed to set this date as
Customer
Costumers are really the expected Beneficiaries of this proposed system. They
don’t need to think whether their reservation is granted because this system is
quick to respond, user will know instantly whether the reservation was granted
or not.
With this system, customers can send their reservations online 24/7.
Client
The admin work will be easier because they don’t need to meet up with the
clients just to input the customer’s food packages with the help of the system the
In terms of payment the money will be directly transfer to the clients’ bank
account.
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite 11
COMPUTER STUDIES DEPARTMENT 13
This chapter shows the Cost and benefit analysis that evaluates the cost-
system which states the total of all cost benefit in the implementation of the
project. Operating cost shows the total expenses that are needed in the project
implementation.
Manpower Expenses
Description Quantity Amount Total Amount
Programmer 1 P 25,000 P 25,000
System Analyst 2 P 20,000 P 20,000
Operators 3 P 10,000 P 10,000
Materials & Machine Expenses
Description Quantity Amount Total Amount
Computer 2 P 15,000 P 30,000
Printer 1 P 2,500 P 2,500
Ink 5 P 200 P 1,000
Bond Paper 2 rim P 200 P 400
Overhead Expenses
Time Period
Electricity 1 Month P 1,000
Transportation Allowance 1 Month P 1,000
Internet Connection 1 Month P 1,200
Total P 92,100
Manpower Expenses
by the researchers is P 17,600. It shows the total income for staff, materials and
machines used , and overhead expenses that is used while implementing the
proposed system.
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite 12
COMPUTER STUDIES DEPARTMENT
CHAPTER 2
A. Existing System
Going to Caterer’s Place
Filling up Requirements
Granting Reservation
The figure above shows the block diagram of existing system. The diagram
shows the simple and manual process of the Online Catering System. The first
process shows that the client needs to visit the caterer’s place and appear
physically before they can check the availability of dates. Customers filled up
After that, they will personally pass the requirements to the caterer and wait until
13
their reservation is granted
START
Signing in to
Date Available the System
NO
YES
Fill-up Requirements
Reservation
Granted
END
The figure above is the Flowchart of existing system which has six different
processes. Since it is an Online Catering System, the client should fill up forms
including their name, age, address etc. After finishing filling up requirements, your
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
reservation will be processed and granted as soon as you send your information to
14
13
the admin.
Client Caterer
Choosing
0
Inquiry Caterin Client Info
g System
Dates Dates Available
The figure above is the Context Diagram of Existing System; it shows the
process of manual reservation of dates from filling up forms to paying the services
offered by the catering. After passing the filled up forms to the caterer, they will
look for available dates that the client may reserve. After that, the client has the
obligation to pay the services offered to them. If they failed to comply, there will be
Confirmation
Customer
Down Payment 4 3
Info Reservation of Form Choosing of
Package Packages
The Figures shown above is the Top Level Data Flow Diagram of Existing
inquiring, check the availability and choose the package on the said service. In the
process of inquiring the customer will be able to see the data’s that are included
inside the website. Then, the steps will proceed until the process of receiving the
payment reached.
16
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
B. Proposed System
Log in
Find Available
Slots for
Packages
Reservation
Full Payment
The Figure above shows the Block Diagram of this proposed system by the
researchers. At first, the customer must login on user account before he/she can
access the said catering service. And the customer can search on which available
package’s he/she wants by reserving or adding it to cart. And the third will be the
17
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
SYSTEM FLOWCHART
Admin Customer
Start Start
Availabity Cash or
of Dates Credit Card
Log In
(User
Reservation Transaction Payment Account)
Checking
Checking Yes Available Slots
Availability Installment
No Installment
Charge
Cash Payment
End
Admin
The figure above shows the Flowchart of the Proposed System it will be
having 2 types of log in which are for admin and for the customer. The admin’s
account will be the one who can access and see the customer’s choice and
update the databases under the said system. While the Customer can only access
Admin
The figure above is the context diagram of proposed system, it shows the
user account to be able to reserve date for your event. After registering an
account, you can now proceed in choosing your meal packages, check the
reservation dates if the date is occupied you will have to choose another date,
choose the time of your event and choose the type of payment you desire. The
admin will confirm your reservation dates and check all the information’s you input.
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY 19
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
6.0
2.0
Update
Meal Updating
Choosing Meal confirmation
Packages Database
Packages
3.0
4.0
Cash or
Installment Payment confirmation
Confirmation
5.0
Reservation
Confirmation
The figure above shows how the system works, starting with user creating
their user account after that logging in and starting the reservation process.
Reservation process starts with choosing the desired meal packages, date and
time of the event and lastly the type of the payment. The admin will now check the
user accounts, confirm all the reservation dates and check all the payments. The
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
database of the user and dates will now be updated right after the admin confirms
20
all the user’s reservation and account registration.
1.1 1.2
Choosing Wait for
create
User User meal Choosing Meal Confirmation Admin
Account Packages
Cash or 2.2
Credit Card
Wait for Confirmation
Payment
3.1
The figure shows that the User will create their user account, choose the meal
packages and reserve their desired date and choose the type of the payment the
user desired. The admin will confirm the reservation date of the user.
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite 21
COMPUTER STUDIES DEPARTMENT Q
User
Inquire
Admin
The figure shows the User and its attributes, the user will inquire. The
packages and its attributes contain drinks, dessert and dishes and the type of
payment you want to choose. Then the admin will now process the transaction and
Reservation
Payment
10% Charge
Meal 10% discount
Choose
Packages
another date
Reservation
Granted
System decision tree, if the user acquire reservation the user will see if the
reservation dates are available or not available if the reservation date is available
the user will now proceed in choosing their desired meal packages and time of the
event, the user will wait until the admin confirms their reservation date. After the
admin confirms the reservation date they will now choose the type of payment they
desire either cash or installment basis. If they choose cash they will be granted
with 10% discount on meal packages, if they choose installment they will be a 10%
CHAPTER 3
SYSTEM DESIGN
This chapter shows the design of the proposed system. In this section login form
and menu list are included.
This is a functional graph that identifies the inputs, outputs, and required
processing tasks to transform inputs into outputs.
important for an online catering system because it is the one that can make you
access the said system freely so that you can order anything you want from the
menu.
This figure shows the Registration form of our GUI from the system. This
part is for the registration of the customer who wants to reserve an order from our
website.
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
25
the suggestion box you can suggest any kind of food that you want to add to your
cart.
26
Figure 19. Reservation List
The figure shown above is the list of the customer who reserved a
packaged meal from the said event. The admin will be the one to accept the
pending orders.
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
CHAPTER 4
This chapter shall give on the validating phase which is done by the
researchers to contend that the system is fully functional and can be used from the
Test of systems and programs are done to be able to determine whether there
considered based on the scope of the project development. This is the final test to
assure that the proposed system passed the specification and purpose of the
whole system to be used by Patty’s Catering for their online reservation system.
Test Log
The Online Reservation and Billing System for Patty’s Catering was tested
Science and Technology (NCST): Mayryle Joy Manato, Amica Riane Parinas,
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
Cayetano Belostrino III, Kim Christian Miralpes, Kyle Penaranda and Wael
Database backup is a copy of data from your database that can be used to
reconstruct that data. Backups can be divided into physical backups and logical
backups. Physical backups are backups of the physical files used in storing and
recovering your database, such as data files, control files, and archived redo logs,
while Archiving is the process of moving data that is no longer actively used to
separate storage device for long-term retention. Archive data consists of older
data that is still important to the organization and may be needed for future
reference, as well as data that must be retained for regulatory compliance. Data
archives are indexed and have search capabilities so files and parts of files can be
The new system implementation is the release of the proposed system into
production. Hardware and software are formed, developed and installed at this
stage; the staffs are practiced to operate the system to replace their manual
28
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
CHAPTER 5
The summary of the study is all about developing an Online Reservation System for
Patty’s Catering to start serving customers in easy way. At first, it was just a simple
catering, but because of the owner’s perseverance and will to serve customers as reliable
as possible, they came up with the idea to have an online reservation system for their
catering. There are so many events, celebrations and holidays that they are the one to
cover the catering section. Because of the Online Reservation System, they were able to
accept more reservations compared to last time when they have no online reservation
system. The customers like the idea of having that system because it is more efficient,
time-saving and less hustle way of reserving dates. And as the time goes by, more and
more customers prefer Patty’s catering to be their caterer during their events and
celebrations. And as a promise to their loyal customers, they will improve the service they
29
Conclusion
Since it’s the first time that the Catering will have an Reservation System, they may
be having a hard time to learn the functions and behaviors of the system. So the
researchers make the system more user-friendly, it will help especially those who are
literate enough to computers to adopt with its environment and communicate with it easily.
Recommendation
The researchers recommend the use of proposed system, Online Reservation and
Billing System; for it provides ease and hustle free way of date reservation. If you think
how much time will waste just to reserve dates that you want, it would took much and eat
almost all of your time. It is solved because it is turned into an online based reservation
system to avoid delay that the customers hate the most. Not only will the customers
benefit to this proposed system, but also the owner of the catering business. Because it is
organized, it will help the admin to lessen his/her work, and on the customer’s side, it will
help them to find what they want easily because it is user-friendly. It is a give and take
30
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
BIBLIOGRAPHY
https://www.google.com.ph/search?
dcr=0&source=hp&ei=v4jwWaHRLIa50gTU5IHIBQ&q=clientserver+model&oq=client-
server+model&gs_=mobile-
gws.hp.3...15976.223634.0.23014.2.1.17.1.0.0.0.0.0.......00.....0....1.14.64.mobile-gws-
hp.20.1.41.3....35j39k.1.5970.Ye5HFT9i5y8#imgrc=6r_XOUgnV_8jtM
https://netbeans.org/community/releases/81/
31
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
APPENDIX A
(Letter of Request)
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
32
Greetings of Peace!
We, 3rd year students of National College of Science and Technology (NCST)
taking up BS in Information Technology would like to ask permission from your
good office to please allow us conduct an interview regarding some of your
company procedures which will be used in our software development project in
the subject “SYSTEM ANALYSIS AND DESIGN” (SAD 001). We will conduct
an interview for us to gather relevant information requirements as basis for the
project.
The interview will be confidential, and will require no more than one hour. You
will not be solicited for funds, nor will you be asked for a commitment of any kind
during the interview. We will only seek your opinions and perspectives on the
issues important to the success of our project.
We are hoping for your positive response. Thank you and more power.
Noted by:
Approved:
APPENDIX B
(System Codes)
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
34
<html> <p><a
<head> href="#" class="links">Read More</a> </p>
<meta name="keywords" content="" /> </div>
<meta name="description" content="" /> </div>
<meta http-equiv="content-type" <div style="clear:
content="text/html; charset=utf-8" /> both;"> </div>
<title>Patty's Catering Service</title> </div>
<link href="stylemain.css" rel="stylesheet" <!-- end #content -->
type="text/css" media="screen" /> <div id="sidebar">
</head> <ul>
<body background="images/images.jpg">
<div id="page" > <li><h2>Introduction</h2></li>
<div id="page-bgtop">
<div id="page-bgbtm"> <li><h2>Categories</h2>li>
<div id="content">
<div class="post"> <li><h2>Blogroll</h2></li>
<h2 class="title"><a
href="#">Welcome to Patty's Catering <li><h2>Archives</h2></li>
</a></h2> </ul>
<div </div>
class="entry"> <!-- end #sidebar -->
<p><a <div style="clear:
href="#" class="links">Read More</a> </p> both;"> </div>
</div> </div></div></div>
</div> <!-- end #page -->
<div class="post"> </div>
<h2 <div id="footer"></div>
class="title"><a href="#"></a></h2> <!-- end #footer -->
<div </body>
class="entry"> </html>
<p><a
href="#" class="links">Read More</a> </p> <html >
</div> <head>
<h2 <meta name="keywords" content="" />
class="title"><a href="#"></a></h2> <meta name="description" content="" />
<div <meta http-equiv="content-type"
class="entry"> content="text/html; charset=utf-8" />
<p><a <title>Patty's Catering Service</title>
href="#" class="links">Read More</a> </p> <link href="stylemain.css" rel="stylesheet"
</div> type="text/css" media="screen" />
</div> <style>
<div class="post"> table {}
<h2 table, th, td {
class="title"><a href="#"> </a></h2> border: 1px solid black;
<div
class="entry">
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
31
COMPUTER STUDIES DEPARTMENT
height: 100%; 36
margin: 0;}
and broccoli combined with different sauces for .bg {
that delightful Asian flavor. /* The image used */
</td><td><img src="images/v.jpg" background-image:
style="height:150px;width:150px;"></td> url("images/images1.png");
<td><strong>Spaghetti /* Full height */
</strong>is my Pinoy version of spaghetti. It is height: 100%;
yummy, easy to cook, and /* Center and scale the image nicely */
just right for the Filipino taste.</td></tr> background-position: center;
<tr><td><img src="images/u.jpg" background-repeat: no-repeat;
style="height:150px;width:150px;"></td> background-size: cover;}
<td><strong>Chicken Pastel </style>
</strong>is a yummy dish that is usually served </head>
with pie crust on top. The <body >
crust of this Chicken Pastel Recipe is very <div class="bg"><br><br><br><br>
similar to that of <br><br><br><br> <br><br><br><br>
buko pie and empanada.</td></tr> <div class="header"><h2><font
</table> color="black">Login</font></h2>div>
</div> <form method="post"
<div id="footer"> action="login.php">
</div> <?php echo display_error(); ?>
<!-- end #footer --> <div class="input-group">
</body>
</html> <label>Username</label>
<input type="text"
name="username" >
</div>
<div class="input-group">
<label>Password</label>
<input type="password"
name="password">
</div>
<div class="input-group">
<button type="submit"
<?php include('functions.php'); ?> class="btn" name="login_btn">Login</button>
<html > </div>
<head> <p>Not yet a member? <a
<meta name="keywords" content="" /> href="register.php">Sign up</a></p>
<meta name="description" content="" /> </form></div>
<meta http-equiv="content-type" </body>
content="text/html; charset=utf-8" /> </html>32
<title>Patty's Catering Service</title> <?php include('functions.php') ?>
<link rel="stylesheet" type="text/css" <!DOCTYPE html>
href="style.css"> <html >
<link href="stylemain.css" rel="stylesheet" <head>
type="text/css" media="screen" /> <meta name="keywords" content="" />
<style> <meta name="description" content="" />
body, html {
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT 33
var output =
<table id="t01"> document.getElementById("demo");
total.innerHTML = slider.value*270; 38
<tr><th>Dessert</th></tr> output.innerHTML = slider.value;
<tr><td>Buko slider.oninput = function() { 5
Pandan & Drinks</td></tr> output.innerHTML = this.value;
</table> total.innerHTML = this.value*270;
<?php echo display_error(); ?> }
<br><strong>Contact </script>
Number</strong><br> </div>
<input type="number" </div>
name="commenta" <div style="clear:
required=""></textarea><br><br> both;"> </div>
<strong>Address:</strong><br><input </div>
type="text" name="address" <!-- end #content -->
required=""><br><br> <div id="sidebar">
<?php $d=strtotime("+7 Days"); <ul>
$ma=strtotime("+3 Months");?> <li><h2><Font color="black"><a
<strong>Select href=index_1.php>Package
Date:</strong><br><input type="date" 1</a></Font></h2></li>
name="reserved" required min="<?php echo <li><h2><Font color="black"><a
date("Y-m-d", $d)?>" max="<?php echo href=Menu2.php>Package
date("Y-m-d", $ma)?>" ><br><br> 2</a></Font></h2></li>
<strong>Select No. of <li>h2><Font color="black"><a
Guest:</strong><br> href=Menu3.php>Package
<input type="number" min="30" 3</a></Font></h2></li>
max="100" value="30" id="myRange" <li><h2><Font color="black"><a
name="Guest" required=""> href=Menu4.php>Package
<p>Guests: <span 4</a></Font></h2></li>
id="demo"></span></p><br> <li><h2><Font color="black"><a
<strong>Estimated Payment: href=Menu5.php>Package 5</a></Font></h2>
<span id="total" </li>
name="total"></span></strong> </ul>
<input type="text" name="res" value="<? </div>
php echo $_SESSION['user']['email']; ?>" <!-- end #sidebar -->
hidden> <div style="clear:
<input type="checkbox" both;"> </div>
name="Package" value="Package 1" checked </div>
hidden> </div>
<input type="checkbox" </div>
name="status" value="Pending" checked </body>
hidden><br><br> </html>
<input type="submit" class="btn"
value="Reserved" name="check_box">
</form>
<script> <?php
var total = document.getElementById("total"); include('functions.php');
var slider = if (!isLoggedIn()) {
document.getElementById("myRange");
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
<li><a <tr><td>Sapin-
href="index_1.php?logout='1'" >logout</a></li> Sapin & Drinks</td></tr>
<li><?php if </table>
(isset($_SESSION['user'])) : ?> <?php echo 46
<h1><strong><?php display_error(); ?>
echo $_SESSION['user']['fname'];
?></strong>  <br><strong>Contact Number</strong><br>
<?php echo <input type="number"
$_SESSION['user']['lname']; ?> name="commenta"
<small><i style="color: #888;">(<?php echo required=""></textarea><br><br>
ucfirst($_SESSION['user']['user_type']); ?>)</i> <strong>Address:</strong><br><input
type="text" name="address"
</small> required=""><br><br>
</h1><?php endif ? <?php $d=strtotime("+7 Days");
></li> $ma=strtotime("+1 Year");?>
</ul> <strong>Select Date:</strong><br><input
</div> type="date" name="reserved" required min="<?
<!-- end #menu --> php echo date("Y-m-d", $d)?>" max="<?php
<div class="bg"> echo date("Y-m-d", $ma)?>" ><br><br>
<div id="page"> <strong>Select No. of
<div id="page-bgtop"> Guest:</strong><br>
<div id="page-bgbtm"> <input type="number" min="30"
<div id="content"> max="100" value="30" id="myRange"
<div class="post"> name="Guest" required="">
<h2 class="title">PACKAGE 2 <p>Guests: <span
"250/Pax"</h2> id="demo"></span></p><br>
<form Estimated Payment: <span
action="index_1.php" method="post" id="total" name="total"></span></input>
style="width:600px"> <div class="input-group">
<div <input type="text" name="res" value="<?
class="entry"> php echo $_SESSION['user']['email']; ?>"
<br><br><table hidden>
id="t01"> <input type="checkbox"
name="Package" value="Package 2" checked
<tr><th>Menu</th></tr> hidden>
<td>Fried <input type="checkbox"
Chicken</td></tr> name="status" value="Pending" checked
<tr><td>Shanghai hidden>
Rolls</td></tr> <input type="submit" class="btn"
<tr><td>Spaghetti value="Reserved" name="check_box">
Pasta</td></tr> </div>
<tr><td>Steamed </form>
Rice</td></tr> <script>
</table> var total = document.getElementById("total");
var slider =
document.getElementById("myRange");
<table id="t01"> var output =
document.getElementById("demo");
<tr><th>Dessert</th></tr> total.innerHTML = slider.value*250;
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
} </div>
.button1:hover {background-color: yellow} </div> 49
.button2:hover {background-color: yellow} <?php
.button1:active { // Check connection
background-color: #3e8e41; if ($db->connect_error) {
box-shadow: 0 5px #666; die("Connection failed: " . $conn-
transform: translateY(4px); >connect_error);
}.button2:active { }
background-color: #3e8e41; $sql = "SELECT * FROM orders where
box-shadow: 0 5px #666; status='Pending'";
transform: translateY(4px); $result = $db->query($sql);
} ?><div id="menu" >
</style> <ul>
</head> <li class="current_page_item"
</body> ><a href="home.php">Pending Orders</a></li>
</html> <li><a
<html > href="home2.php">Accepted Orders</a></li>
<head> <li><a
<meta name="keywords" content="" /> href="home3.php">Declined Orders</a></li>
<meta name="description" content="" /> <li><a
<meta http-equiv="content-type" href="POS.php">Monthly Sales</a></li>
content="text/html; charset=utf-8" /> </ul>
<title>Patty's Catering Service</title> </div>
<link href="stylemain.css" rel="stylesheet" <!-- end #menu -->
type="text/css" media="screen" /> <div class="bg"><?php
</head> if ($result->num_rows > 0) {
<body> echo
<div class=""> "<h1><table><tr><th>ID</th><th>Package
<!-- logged in user information -- No.</th><th>No. of Guest</th><th>Reserved
> By</th><th>Reserved
<div class="profile_info"> Date</th><th>Address</th><th>Contact</th><t
<div> h>Status</th><th></th></tr></h1>";
<?php if // output data of each row
(isset($_SESSION['user'])) : ?> while($row = $result->fetch_assoc()) {
<h1><strong><?php echo "<tr><td>" . $row["order_no"].
echo $_SESSION['user']['fname']; "</td><td>" . $row["package_no"]. "</td><td> " .
?></strong>  $row["guest_no"]. "</td><td> " .
<strong><?php echo $row["reserved_by"]. "</td><td> " .
$_SESSION['user']['lname']; ?></strong> $row["reserved_date"]. "</td><td> " .
<small><i style="color: #888;">(<?php echo $row["address"]. "</td><td> " .
ucfirst($_SESSION['user']['user_type']); ?>)</i> $row["comment"]. "</td><td> " . $row["status"].
<button><a href="home.php?logout='1'" "</td><td> "?>
style="color: black;">logout</a></button><br> <form method="post" action="home.php"
<button><a href="create_user.php" style="height:60px;width:50px;padding:5px" >
style="color: black;"> + add <input type="text" name="id"value="<?
user</a></button></small> php echo $row["order_no"] ?>" hidden >
</h1> <button class="button1" type="submit"
<?php endif ?> name="Update" >Accept</button>
</div>
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
<button><a href="home.php?logout='1'" }
style="color: black;">logout</a></button><br> echo "</table>";
<button><a href="create_user.php" } else {
style="color: black;"> + add echo
52
user</a></button></small> "<h1><table><tr><th>ID</th><th>Package
</h1> No.</th><th>No. of Guest</th><th>Reserved
<?php endif ?> By</th><th>Reserved
</div> Date</th><th>Address</th><th>Status</th><th
</div> ></th></tr></h1>";
</div> }
<?php $db->close();?>
// Check connection </div>
if ($db->connect_error) { </body>
die("Connection failed: " . $conn- </html>
>connect_error); <?php include('functions.php') ?>
} <!DOCTYPE html>
$sql = "SELECT * FROM orders where <html>
status='Declined'"; <head>
$result = $db->query($sql); <link rel="stylesheet" type="text/css"
?><div id="menu" > href="style.css">
<ul> <style>
<li class="current_page_item" ><a .header {
href="home.php">Pending Orders</a></li> background: #003366;
<li><a }
href="home2.php">Accepted Orders</a></li> button[name=register_btn] {
<li><a background: #003366;
href="home3.php">Declined Orders</a></li> }button[name=back_btn] {
<li><a background: #003366;
href="POS.php">Monthly Sales</a></li> }
</ul> </style>
</div> </head>
<!-- end #menu --> </html>
<div class="bg"><?php <html >
if ($result->num_rows > 0) { <head>
echo <meta name="keywords" content="" />
"<h1><table><tr><th>ID</th><th>Package <meta name="description" content="" />
No.</th><th>No. of Guest</th><th>Reserved <meta http-equiv="content-type"
By</th><th>Reserved content="text/html; charset=utf-8" />
Date</th><th>Address</th><th>Contact</th></ <title>Patty's Catering Service</title>
tr></h1>"; <link href="stylemain.css" rel="stylesheet"
// output data of each row type="text/css" media="screen" />
while($row = $result->fetch_assoc()) { </head>
echo "<tr><td>" . $row["order_no"]. <body>
"</td><td>" . $row["package_no"]. "</td><td> " . <div class="header">
$row["guest_no"]. "</td><td> " . <h2>Admin - create user</h2>
$row["reserved_by"]. "</td><td> " . </div>
$row["reserved_date"]. "</td><td> " . <form method="post"
$row["address"]. "</td><td> " . action="create_user.php">
$row["comment"]. "</td><tr>"; <?php echo display_error(); ?>
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
<label>Username</label>
<input type="text" name="username"
value="<?php echo $username; ?>">
</div>
<div class="input-group">
<label>Email</label> <!DOCTYPE html>
<input type="email" <html>
name="email" value="<?php echo $email; ?>"> <head>
</div> <meta name="viewport"
<div class="input-group"> content="width=device-width, initial-scale=1">
<label>User type</label> <link rel="stylesheet" href="Carousel.css">
<select <style>
name="user_type" id="user_type" > .mySlides {display:none;}
<option a:link, a:visited {
value=""></option> background-color: rgba(233, 201, 245, 0.14);
<option color: black;
value="admin">Admin</option> text-align: center;
<option text-decoration: none;
value="user">User</option> display: inline-block;
</select> color: white;
</div> padding: 14px 25px;
<div class="input-group"> text-align: left;
<label>Password</label> text-decoration: none;
<input type="password" display: inline-block;
name="password_1"> }
</div> .dropbtn {
<div class="input-group"> background-color: rgba(233, 201, 245, 0.14);
<label>Confirm color: violet;
password</label> padding: 2px;
<input type="password" font-size:16px;
name="password_2"> border: none;
</div> cursor: pointer;
<div class="input-group"> }
.dropdown {
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
if (isset($_POST['back_btn'])) {
header('location: home.php');
}
<html> // call the register() function if
<head> register_btn is clicked
<link REL="StyleSheet" TYPE="text/css" if (isset($_POST['register_btn'])) {
HREF="Background.css"> register();
</head> }
<body> // call the login() function if register_btn 55
<p><strong><font size='1000'color='pink' is clicked
face='Curlz MT' > PATTY'S if (isset($_POST['login_btn'])) {
CATERING</font></strong></p> login();
</body> }
</html> if (isset($_GET['logout'])) {
session_destroy();
<frameset rows="5%, *" frameborder="0"> unset($_SESSION['user']);
<frame src="Logo.php" scrolling="no" header("location: login.php");
name="A"> }
// REGISTER USER
<frameset rows="30%, *" frameborder="0"> function register(){
<frame src="Carousel.php" scrolling="no" global $db, $errors;
name="B">
// receive all input values from
<frameset rows="1%, *" frameborder="0"> the form
<frame src="Sub2.php" scrolling="no" $fname = e($_POST['fname']);
name="B"> $lname = e($_POST['lname']);
$username =
<frameset cols="10%, 80%, 10%" e($_POST['username']);
frameborder="0"> $email =
<frame src="Sub1.php" scrolling="no" e($_POST['email']);
name="D"> $user =
<frame src="MainHome.php" scrolling="no" e($_POST['User_Type']);
name="E""> $password_1 =
<frame src="Sub1.php" scrolling="no" e($_POST['password_1']);
name="F"> $password_2 =
e($_POST['password_2']);
</frameset> // form validation: ensure that the
</frameset> form is correctly filled
</frameset> if (empty($fname)) {
</frameset> array_push($errors,
<?php "Name is required");
session_start(); }
// connect to database if (empty($lname)) {
$db = mysqli_connect('localhost', 'root', array_push($errors,
'', 'multi_login'); "Namae is required");
// variable declaration }
$username = ""; if (empty($username)) {
$email = ""; array_push($errors,
$errors = array(); "Username is required");
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
} $logged_in_user_id =
if (empty($email)) { mysqli_insert_id($db);
$_SESSION['user'] =
array_push($errors, getUserById($logged_in_user_id); // put logged
"Email is required"); in user in session
}
if (empty($password_1)) { $_SESSION['success'] = "You are now
array_push($errors, logged in";
"Password is required"); header('location:
} index_1.php');
if ($password_1 !=
56
}
$password_2) { }
array_push($errors, "The }
two passwords do not match"); // return user array from their id
} function getUserById($id){
// register user if there are no global $db;
errors in the form $query = "SELECT * FROM
if (count($errors) == 0) { users WHERE id=" . $id;
$password = $result = mysqli_query($db,
md5($password_1);//encrypt the password $query);
before saving in the database
if $user =
(isset($_POST['user_type'])) { mysqli_fetch_assoc($result);
$user_type = return $user;
e($_POST['user_type']); }
$query = "INSERT INTO users // LOGIN USER
(username, email, user_type, function login(){
password,fname,lname) global $db, $username, $errors;
VALUES('$username', '$email', // grap form values
'$user_type', '$password','$fname','$lname')"; $username =
e($_POST['username']);
mysqli_query($db, $query); $password =
e($_POST['password']);
$_SESSION['success'] = "New user // make sure form is filled
successfully created!!"; properly
header('location: if (empty($username)) {
home.php'); array_push($errors,
}else{ "Username is required");
$query = "INSERT INTO users }
(username, email, user_type, if (empty($password)) {
password,fname,lname) array_push($errors,
VALUES('$username', '$email', '$user', "Password is required");
'$password','$fname','$lname')"; }
// attempt login if no errors on
mysqli_query($db, $query); form
// get id of the if (count($errors) == 0) {
created user $password =
md5($password);
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
$query = "SELECT *
FROM users WHERE username='$username' $res_date=e($_POST['reserved']);
AND password='$password' LIMIT 1"; $query =
$results = "INSERT INTO orders (package_no, guest_no,
mysqli_query($db, $query); reserved_by,
if reserved_date,address,comment,status)
(mysqli_num_rows($results) == 1) { // user
found
// check if user is VALUES('$pack_no','$guest_no','$res_by','$res
admin or user _date',
$logged_in_user '$res_address','$res_com
= mysqli_fetch_assoc($results); ment','$res_status')";
57
if
($logged_in_user['user_type'] == 'admin') { mysqli_query($db, $query);
header('location:
$_SESSION['user'] = $logged_in_user; OrderHistory.php');
}
$_SESSION['success'] = "You are now
logged in";
if(isset($_POST['Update'])){
header('location: home.php'); global $db;
}else{ $vals=e($_POST['id']);
$query="UPDATE orders SET
$_SESSION['user'] = $logged_in_user; status='Accepted' where order_no=$vals";
mysqli_query($db, $query);
$_SESSION['success'] = "You are now header('location:
logged in"; home.php');
}
header('location: index_1.php'); if(isset($_POST['Updates'])){
} global $db;
}else { $vals=e($_POST['id']);
$query="UPDATE orders SET
array_push($errors, "Wrong status='Declined' where order_no=$vals";
username/password combination"); mysqli_query($db, $query);
} header('location:
} home.php');
} }
if (isset($_POST['check_box'])) { function isLoggedIn()
{
$pack_no=e($_POST['Package']); if (isset($_SESSION['user'])) {
$guest_no=e($_POST['Guest']); return true;
$res_by=e($_POST['res']); }else{
return false;
$res_address=e($_POST['address']); }
}
function isAdmin()
$res_comment=e($_POST['commenta']);
{
if (isset($_SESSION['user']) &&
$res_status=e($_POST['status']);
$_SESSION['user']['user_type'] == 'admin' ) {
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
/* Sidebar */ }
#sidebar { #sidebar a {
float: left; text-decoration: underline;
width: 240px; color: #FFFFFF;
padding: 20px 0px 0px 0px; }
color: #787878;
background: #FFFFFF; /* Calendar */
} #calendar {
#sidebar ul { }
margin: 0; #calendar_wrap {
padding: 0; padding: 20px; 61
list-style: none; }
} #calendar table {
#sidebar li { width: 100%;
margin: 0; }
padding: 0; #calendar tbody td {
} text-align: center;
#sidebar li ul { }
margin: 0px 15px; #calendar #next {
padding-bottom: 30px; text-align: right;
} }
#sidebar li li { /* Footer */
line-height: 35px; #footer {
border-bottom: 1px dashed #D1D1D1; width: 960px;
padding-left: 10px; height: 50px;
} margin: 0 auto;
padding: 0px 0 15px 0;
#sidebar li li span { border-top: 1px solid #DEDEDE;
display: block; font-family: Arial, Helvetica, sans-serif;
margin-top: -20px; }
padding: 0; #footer p {
font-size: 11px; margin: 0;
font-style: italic; padding-top: 20px;
} line-height: normal;
#sidebar h2 { font-size: 9px;
height: 38px; text-transform: uppercase;
padding: 12px 0 0 20px; text-align: center;
background: #01BBEC; color: #A0A0A0;
letter-spacing: -.5px; }
color: #FFFFFF; #footer a {
} color: #8A8A8A;
#sidebar p { }
margin: 0 0px; *{
padding: 0px 20px 20px 20px; box-sizing: border-box;
text-align: justify; }
} .columnsa {
#sidebar a { float: left;
border: none; width: 33.3%;
color: #FFFFFF; padding: 8px;
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
} }
.pricea { }
list-style-type: none; body{background-image:
border: 1px solid #eee; url("Images/abcd.gif");color:white;} 62
margin: 0;
padding: 0; .link {
-webkit-transition: 0.3s; margin-top: 0px;
transition: 0.3s; margin-bottom: 100px;
} margin-right: 150px;
.pricea:hover { margin-left: 80px;
box-shadow: 0 8px 12px 0 rgba(0,0,0,0.2) }
}
hr{
.pricea .headera { display: block;
background-color: #111; width: 3000px;
color: white; size: 50px;
font-size: 25px; border-style: solid;
} margin-top: -10px;
.pricea li { margin-bottom: -10px;
border-bottom: 1px solid #eee; margin-right: 100px;
padding: 20px; margin-left: 0px
text-align: center; }
}
.pricea .greya {
background-color: #eee; body{background-image:
font-size: 20px; url("Images/bg.jpg");color:white;}
}
.buttona {
background-color: #4CAF50;
border: none;
color: white;
padding: 10px 25px;
text-align: center;
text-decoration: none;
font-size: 18px;
}
@media only screen and (max-width: 600px)
{.columnsa {
width: 100%;
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
63
APPENDIX C
(Gantt Chart)
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
64
The table shows the time consumed by the respondents in every step the
respondents made. The design phase has the longest time consumed in
developing the system. While the presentation is the shortest time consumed in
65
APPENDIX D
(Curriculum Vitae)
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
66
manatojoy@gmail.com
PERSONAL INFORMATION
Age: 18
Gender: Female
Citizenship: Filipino
SPECIAL SKILLS
kimmiralpes@gmail.com
PERSONAL INFORMATION
Age: 19
Gender: Male
Citizenship: Filipino
SPECIAL SKILLS
amicaramos45@gmail.com
Cellphone: 09098566207
451 Anabu 1C
PERSONAL INFORMATION
Age: 18
Gender: Female
Citizenship: Filipino
SPECIAL SKILLS:
Fluent in Hangul
Proficient with MS Word, Excel and PowerPoint
Knowledgeable in using HTML, CSS and JavaScript
Database (Oracle, MySQL)
1. NATIONAL COLLEGE OF SCIENCE AND TECHNOLOGY
Amafel Bldg., Aguinaldo Highway, Dasmariñas City, Cavite
COMPUTER STUDIES DEPARTMENT
69
Ohnie217@gmail.com
Cellphone: 09464638656
PERSONAL INFORMATION
Age: 19
Gender: Male
Citizenship: Filipino
SPECIAL SKILLS
70
Peñaranda, Kyle E.
iblayne60@gmail.com
Garden Grove
Salitran IV
PERSONAL INFORMATION
Age: 20
Gender: Male
Citizenship: Filipino
SPECIAL SKILLS:
Ethical Hacking
71
Boksmati, Wael A.
wael_boksmati@hotmail.com
PERSONAL INFORMATION
Age: 23
Gender: Male
Citizenship: Lebanese
SPECIAL SKILLS
Troubleshooting Skills