1.1 Project Context (Framework/Basis) : Online Hotel Management System of Valley Hotel With Sms Notifications
1.1 Project Context (Framework/Basis) : Online Hotel Management System of Valley Hotel With Sms Notifications
1. INTRODUCTION
This system can be programmed to see the services offered of Valley Hotel
through online. It can provide accurate and reliable reports.
1.3 Objectives
This study aimed to improve the accuracy and effectiveness of the present
system that could benefit the staff of Valley Hotel.
The researchers hope that the study would be beneficial to the following:
Manager of the Hotel
The Manager of the company will have more organized and systematic
way of recording and accessing all the important records of the hotel.
Front Desk Officer
The proposed system could make the task of the front desk officer easier
and more convenient and in terms of generating reports, the officer could provide
accurate and efficient reports.
Researchers
They can enhance their potential in interacting with employees. Discover
their competence in the field of Information Technology and Systems Analysis
and Design and they can enhance and develop their skills as future programmers
and system analysts.
Company/Agency
The system gives high quality output with the least investment of time,
material and other resources. Efficient and organized operations make it possible
to reach goal faster and eliminate errors in data and information. An important
goal of the system is to increase the accuracy of data and information being
gathered.
Thus, this study supplements and complements the present generation and
the future generation.
The following operational and conceptual terms are hereby defined to have better
understanding of the study:
Data – is information that has been translated into a form that is more convenient
to move or process. Relative to today’s’ computers and transmission media, data
is information converted into binary digital form.
Delimited - determine the limits or boundaries of a system.
Entity – person, partnership, organization, or business unit which has a legal
existence, for which accounting records are kept, and about which financial
statements are prepared.
Identification Number – employee’s unique identification number carrying the
whole name, position, department, and the picture that serve as proof of the
employees’ identity.
Information – a data that can be stored retrieved and manipulated by a computer.
Manual System- is a process of computing the compensation of salaries of
employees involving their hands and physical source.
Output – is information resulting from computer processing, which is delivered
to user as printout or video display or transferred to a disk.
Password – a secret word or phrase that somebody must use to gain entry to a
place.
Process – is a conceptual scheme (an abstraction of the second level). It is an
action which we see as a sequence of constituting sub- actions. The states of the
world resulting from
Program – also known as software. A program is simply something that allows
you to work or play on the computer. Programs are used to create documents and
files for the user, or to just have fun. Programs are what actually put your
computer to good use. Without a program, your computer is impotent.
Reservation - the action of reserving something.
SMS – short message service.
Storage – the area of non-volatile memory in the computer such as in a hard disk
or an external device, as a diskette or tape were copies of program and data files
are kept for future use.
The chapter presents the gathered literatures and the studies that are believed to have
bearing on the present studies.
According to C.L. Adap, J.R. San Juan, P.B. Sillio, (2013) in their study
“Online Billing and Reservation System for Royal Palm Paradise Resort”, the system
contains two pages which are Administrator page and Customer page. The administrator
page has the authority to access the whole system and will be able to update all the
records of the customer for reservations made through phone call or walk-in customers,
change the status of the reservation of the customers, update the list of the facilities
available in the resort. Computation of bills of reservation and add-ons, and generating of
reports are also under the Administrator page. The proponent’s system also contains two
pages similar to the Online Billing and Reservation System of Royal Palm Paradise
Resort, wherein Administrator page will manage all the transaction made by the
customer/user. In Administrator page can all so see reports, update all records and the list
of the facilities in the resort.
In study conducted by Delizo, Et Al, (2013) in his study “Online Hotel
Reservation System (OHRS)”, is efficient and brilliant software, yet it is easy and
uncomplicated to use. OHRS grants complete authority and power on hotel or motel
room booking over the internet. This entails that one can accumulate all guest payments;
enter own room descriptions, facilities, rates and allocations into the Reservation System.
OHRS also allows to confirm accommodation in real-time at hotel’s web site and close
the sale without more ado. There are several benefits of OHRS. It makes the reservation
process computerized and thus helps one to undertake a large amount of transactions at a
low cost. It enables one to check available inventory and complete an online booking
from making the reservation process more efficient and less time consuming. OHRS
assist hotel’s guest and agents with different payment options such as credit/debit cards.
M.R. Condino, A.M. Cuevas, G. De Leon, (March 2013) in their study “Online
Billing and Reservation System Waterville Island Resort”, said that the mode of payment
of the system is through credit card where 50% deposit is required for every reservation
made. The information are stored in database that is why the system can be used to
retrieve data and display available rooms for reservations. The proposed system is similar
to the Online Billing and Reservation System Waterville Island Resort because it will
also have database where all information will be stored for security. The proposed system
will also use credit cards as the mode of payment and the hotel also requires 50% down
payment for any reservation.
David Wardell,(2012)in his study “Hotel Technology and Reservations
System”,discussed the nature of hotel reservations in the world nowadays. According to
the article, the lodging industry is the most under automated segment of the international
travel industry. Reservations are often still dealt with by hand. This lack of automation
represents a serious point of weakness concerning competition between hotel chains and
hotel industry as a whole. In addition, a successful reservation system requires a database
inventory system that when processed, a message is transmitted to the property in
question with information that the local guest info database should be updated. The study
of David Wardell helped the proponents to know the current trend in online reservations
system.
Meanwhile Constante, K., Estollose, E., San Jose, A(2011) conducted in their
stusy that “Online Billing and Reservation System of Viewfort Terrace Viewhill Resort”,
Viewfort Terrace Viewhill’s main problem is the lack of technology which leads to
conflict of schedules, data inconsistency, data redundancy, data loss, lack of security and
it is space consuming. Because all of the transactions are stored in one logbook, all of
these problems are encountered by the management. In order to avoid these problems, the
proponents proposed an online billing and reservation system for Viewfort Terrace
Viewhill Resort. The system has a database for the resort where all of the company’s
transactions are stored and it has also the ability to compute all the billings of the client.
Online Billing and Reservation System of Viewfort Terrace Viewhill Resort
Carmona,Cavite has similarities to the study of the proponents because of the following
problems.
J.A. Legaspi, M. Lamson, P.V. Gazme, (2011) ”Online Billing and reservation
System of Adams Beach Resort”, was developed in order for the company to have a
systematized form of operation and transaction in addition to a trouble-free work for the
officers-in-charge. The system has a user-friendly environment and includes reservation
packages, services and procedures. The similarities of Online Billing and Reservation
System of Adams Beach Resort to the study of the proponents is that it also aims to have
a systemized form of operation and transaction for the clients and to help the manager to
have a trouble-free work. The proponents’ system also have a user-friendly
environment/website where the clients can also see the different rates, amenities and
reservation packages offered by the resort.
According to Pantaleon, C.D.,( 2011) in his study “Online Reservation with
Billing System for Puerto Real Resort ”,the information system provides graphical and
textual information about the resort. This includes location, prices and other information
regarding the resort and what it can prefer. It is created with a user friendly environment
because the proponents are aware that not all persons who will view the website are
advanced users. The reservation with billing system included in the proposed system is
very competent. Through this, customers can make a reservation by just accessing the
website. Thus, this can be helpful to the customers in terms of cost and time. Cost and
time, because they do not have to go personally or call to the company to ask for
reservation. This feature will not just be favorable to the customers but to the company
too. Having an online reservation system will make an edge over the companies.
Bituin Abi, (August 2010) in her study “Apartelle Online Reservation System”,
said that short term base lodging is the main reason that a hotel has been established. In
the Philippines, wherein many foreign people go and have a vacation, hotel is always
their first destination to have relaxation after long hours of travel in an airplane. Because
of the rapid increase of foreigners visiting the Philippines for a vacation, a common sight
is the establishments ad sophisticated hotels for competitive advantage. As the result of
the competition between different hotels, various business strategies had been made to
attract customers, such as putting discounts, having beautiful and relaxing environment
and above all having a state of the art computer system and facilities. The current
problem observed is the manual guest list records, the manual reservation of guests, the
manual booking of rooms for the guests which takes a long time to accomplish.
Zapanta, B., Belardo, R., Flores, F., Sobrevilla, G( 2009) “Online Reservation
with Billing System for Villa Silvina Resort”, is a system that is mostly focused on
making reservations for the resort and the rooms in their resort. The system is also
capable of displaying the billing statement of a particular customer and can also produce
receipts of the transaction. It is also capable of generating management reports on a daily
or monthly basis.The proponent’s system will generate reports similar to Online
Reservation with Billing System for Villa Silvina Resort. The website created by the
proponents has the features of the resort, and the system can track all the amenities
available for the customers.
3. TECHNICAL BACKGROUND
The project works as a web system. The server side allows full access of the system
where an administrator manages all the major functions of the system. The client side
will be used for the reservation of rooms.
4. METHODOLOGY
A. Flowchart
The flowchart diagram shows the processes on how to use and how to
reserve a room and the process is approved by the admin.
The Context Level Diagram of the proposed Hotel Management System. The
main process is the system itself. The main entity is the Book a Room where
all necessary details are captured like Bookings, Time/Schedule, Guests
Rooms.
The data flow diagram shows the different level of processes of the proposed
system. The Diagram shows the seven processes saved as the registration
where clients register the necessary information needed by the system. The
system will automatically generate invoice or receipt when clients is checking
out. The clients will then register his/her account by inputting their username
and password. The system is capable of real-time availability of rooms and
system also can monitor status of rooms. Generation of reports such as the
receipt and Summary of sales shall be printed as an output of the overall
system.
NoOfDays int 4
RStatus varchar Reserved
NoOfGuests int 2
Notes varchar Good
TotalBill int 2500
ID int 2
RoomImages RoomNo int 209
Images blob
ID int 1
RoomNo int 101
Description varchar Good for travellers
Rooms FloorNo int 1
RoomRate int 2500
MaxHeads int 2
Category varchar Superior Single
Status varchar Available
Transactiondetail ID int 1
TransactionNo. int 00001
AmenityID int 3
Quantity int 2
SubTotal int 100
ID int 1
TransactionNo int 00001
GuestID int 21
RoomNo int 102
Transations CheckinDate date 2019-12-21
CheckinTime time 2:00PM
CheckoutDate date 2019-12-25
CheckoutTime time 12:00NN
NoOfDays int 4
TotalBill int 2500
AmenityTotal int 100
StatusT varchar Checkedin
Users ID int INT
Username varchar Llraull
Password varchar f657446aae807
AccesssLevel varchar Admin
Status varchar Active
and organized. List the database(s) or data storage items. For a small system,
there is normally only one database. It consists of all the tables.
Figure (4.3.3) is the Entity Relationship Diagram has two main Entities-Hotel
and Customer. The Customer entity includes a more detailed set of attributes
or fields such as customer Code, Last Name, First Name, Middle Name, and
Picture. The hotel entity includes hotel Code, Check in, check out, hotel room
Date, and Feedback. The relationship is one to one because an instance of an
Customer checking in or out is considered as one transaction. The cardinality
for the relationship is both mandatory because one transaction is a valid
instance at the time an customer check in and out.
USER
The purpose of the Development Phase is to convert the system design prototyped
in the Design Phase into a working information system that addresses all
documented system requirements. Testing is done during the development and
after the system development.
The Log-in form is used as a security feature to secure the records and the
system.
The Registration Form is used to register new clients for the reservation of
room.
The Dashboard (5.1.3) contains all main menus such as HOTEL FLOOR
PLAN, SET-UP, TRANSACTIONS, REPORTS, and FEEDBACKS. This page also
displays the color coded floor plan of the hotel.
Guests page displays the guests list and information. In this form, you can
search, add (fig 5.1.4.1), and edit (fig. 5.1.4.2).
Add Guest form (fig. 5.1) allows the user to add new guest record. ID
must be unique from each other. All fields must be filled-up.
The List of Rooms Form displays all the rooms available. This is where you
can add (fig 5.1.6.1), edit (fig. 5.1.6.2), and delete (fig. 5.1.6.3) list of rooms.
The reservation form stores all reservations from the clients. In this form you
can add walk in reservations (fig 5.1.7.2) list of rooms.
The add walk-in clients form allows the user to add check-in details for
walk-in guests.
The transaction form displays all the checked- in clients of the hotel.
This is where you can add amenities (fig 5.1.9.1), extend (fig. 5.1.9.2), and check-
out (fig. 5.1.9.3) list of rooms.
The amenities form displays all the amenities in the hotel. This form
allows the user to select one or more amenities in every transaction.
The Update Checked-in Form is use to extend the duration of the guests in
the hotel.
The Checked-out Form displays all the checked-out clients of the hotel.
Figure 5.2.1.3 The Cancelled Reservations Form
The Sales Form displays all the sales of the hotel for today, for the
month, for the year.
The Room History Form displays all the room that the clients already
occupied.
Figure 5.2.4.1 The Guests Feedback Form
The Guests Feedback Form displays all the comments of the clients in the
room.
The User Interface Form displays the main index of the hotel. This is
where you can see navigations such as Home (fig 5.2.5.1), Rooms (fig. 5.2.5.2),
and About (fig. 5.2.5.3) of the website.
The Rooms Form displays all the rooms of the hotel. This is where rooms
categorized into Superior Single (fig 5.2.6.1), Superior Twin (fig. 5.2.6.2), Junior
Executive (fig. 5.2.6.3), and Senior Executive (fig. 5.2.6.4) of rooms.
Figure 5.2.7 The About Form
The About Form displays the Story of the hotel the history, Vision, and
Mission of the hotel.
The profile page shows the details about the clients and their past and
present reservations and also cancelled reservations.
6. RECOMMENDATIONS
Based from the results and observations, the researchers recommend that the Online
Hotel Management system be implemented to the Valley Hotel to make the hotel
much well known to the entire region and to promote Valley hotel as well as to
improve their mode of keeping records of their clients and of the past, current and
upcoming reservations of rooms. Moreover, the system perform the following
features;
The registration and security module wherein it will allow clients to register, but the
administrator will validate it first and once it is been validated you will receive a
sms that you can use the account for reservation.
The user feedback or comments, wherein the administrator will filter the comments
if it is positive the feedback will be posted but if not it will delete.
Reservation Preview of the clients/customers to check their reservation.
The system has a google map so that it will easily be locate by the clients/users
The system also has a street viewer to view to structure of the Company.
REFERENCES
Adap, J.R. San Juan, P.B. Sillo, (2013) Online Billing and Reservation System for Royal
Palm Paradise Resort.
https://prezi.com/9tbrzn5p67hy/computerized-reservation-system-for-bella-cristina-
resort-and-travelers-inn/
Louw, Door Janne, (2013) Hotel Reservation System. Developed a hotel management
system. http://www.liacs.nl/assets/Bachelorscripties/2006-08JanneLouw.pdf
J.A. Legaspi, M. Lamson, P.V. Gazme, (2011) Online Billing and Reservation System of
Adams Beach Resort
https://dlscrib.com/online-billing-and-reservation-system-abr-
jarl_58c9f6b0ee34352a77621ff5_doc.html
Pantaleon, C.D.,( 2011) An Online Reservation with Billing System for Puerto Real
Resort https://www.coursehero.com/file/p5ljtk0q/8-The-Online-Reservation-with-
Billing-System-for-Puerto-Real-Resort-is-similar/
Zapanta, B., Belardo, R., Flores, F., Sobrevilla, G( 2009) Online Reservation with Billing
System for Villa Silvina Resort
https://www.scribd.com/doc /162735641/Online-Billing-and- Reservation-System-ABR-JARL
APPENDICES
A. Source Code
Log-in
<?php
if(isset($error)){
echo $error;
}?>
</div>
<!-- Change this to a button or input when using this as a form -->
<button type="submit" class="btn btn-lg btn-success btn-
block">Login</button>
<a href="register.php" class="btn btn-primary btn-block btn-
flat">Register</a>
Addregister
<?php
include('../includes/config.php');
if(isset($_POST['submit'])){
$LastName=$_POST['LastName'];
$FirstName=$_POST['FirstName'];
$MiddleName=$_POST['MiddleName'];
$ContactNo=$_POST['ContactNo'];
$Address=$_POST['Address'];
$EmailAddress=$_POST['EmailAddress'];
$UserName=$_POST['username'];
$Password=$_POST['password'];
$NewPassword=$_POST['password'];
// $Image=$_POST['Image'];
//saved record
$sql= mysqli_query($conn,"INSERT INTO
guests(LastName,FirstName,MiddleName,ContactNo,Address,EmailAddress,S
tatus,UserName)VALUES('$LastName','$FirstName','$MiddleName','$Contac
tNo','$Address','$EmailAddress','pending','$UserName')");
$sql1= mysqli_query($conn,"INSERT INTO users
(UserName,Password,AccessLevel,Status)VALUES('$UserName','$NewPasswor
d=md5($Password)','guests','pending')");
if($sql){
header("location: login.php");
}else{
echo "Error";
}}?>
Add account
<?php
include('../includes/config.php');
if(isset($_POST['submit'])){
$ID=$_POST['ID'];
$UserName=$_POST['UserName'];
$Password=$_POST['Password'];
$AccessLevel=$_POST['AccessLevel'];
//saved record
if(isset($_GET['id'])){
$id = $_GET['id'];
$sql = mysqli_query($conn,"UPDATE guests SET Status='Active' WHERE
ID='$id'");
if($sql){
$username = "[email protected]";
$hash =
"f912cd82126884f666031c8daa6cb887311dd1c02dca0a64dcb7724feb0535f3";
//get data
//$numbers = array($_POST['number']);
$number = '639068414656';
$from = 'VALLEY HOTEL';
$msg = "Your account has been Validated and you can use it now to
reserve your room to our hotel!Thank you!" ;
//$numbers = implode(',', $number);
$data=array('username' => $username, 'hash' => $hash, 'numbers' =>
$number, "sender" => $from, "message" => $msg, "test" => '0');
$ch = curl_init('http://api.txtlocal.com/send/');
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
header("location: guest.php");
}else{
echo "ERROR";
}}?>
Guestinfo
<?php
$id = $_GET['id'];
$sql = mysqli_query($conn,"SELECT * FROM reservations INNER JOIN guests
ON reservations.GuestID=guests.ID WHERE RStatus='pending' AND
RoomNo=$id");
?>
<?php
while($rows = mysqli_fetch_array($sql)){
?>
List of Reservation/s in room number <?php echo $rows['RoomNo'];?>
</div>
<!-- /.panel-heading -->
<div class="panel-body">
<table width="100%" id="example2" class="table table-bordered table-
hover">
<thead>
<tr>
<th>Reservation Date</th>
<th>Guest Name</th>
<th>Check-in Date</th>
<th>Check-out Date</th>
<th>Days</th>
<th>Guest</th>
</tr>
</thead>
Cagayan State University- COLLEGE of INFORMATION and COMPUTING SCIENCES 45
ONLINE HOTEL MANAGEMENT SYSTEM OF VALLEY HOTEL WITH SMS NOTIFICATIONS
<tbody>
<tr>
<td><?php echo date_format(date_create($rows['ReservationDate']),"F d,
Y g:i:A"); ?></td>
<td align="center"><?php echo $rows['FirstName'].', '.
$rows['LastName'].' '.$rows['MiddleName'];?></td>
<td> <?php echo date_format(date_create($rows['CheckinDate']),"F d, Y
"); ?></td>
<td><?php echo date_format(date_create($rows['CheckoutDate']),"F d,
Y"); ?></td>
<td align="center"><?php echo $rows['NoOfDays'];?></td>
<td align="center"><?php echo $rows['NoOfGuest'];?></td>
</p>
<?php }?>
decline
<?php
include('../includes/config.php');
if(isset($_GET['id'])){
$id = $_GET['id'];
$sql = mysqli_query($conn,"DELETE FROM guests WHERE ID='$id'");
if($sql){
header("location: guest.php");
}else{
echo "ERROR";
}}?>
Guest
<?php
$sql=mysqli_query($conn,"SELECT * FROM guests");
?>
<thead>
<tr>
<th>LastName</th>
<th>FirstName</th>
<th>MiddleName</th>
<th>Contact</th>
<th>Address</th>
<th>EmailAddress</th>
<th>Image</th>
<th></th>
<th></th>
</tr>
</thead>
<?php
$sql = mysqli_query($conn,"SELECT * FROM guests");
?>
<tbody>
<?php
while($rows = mysqli_fetch_array($sql)){
?>
<tr>
<td><?php echo $rows['LastName'];?></td>
<td><?php echo $rows['FirstName'];?></td>
Cagayan State University- COLLEGE of INFORMATION and COMPUTING SCIENCES 46
ONLINE HOTEL MANAGEMENT SYSTEM OF VALLEY HOTEL WITH SMS NOTIFICATIONS
}}?>
Reservation
<?php
$sql = mysqli_query($conn,"SELECT
reservations.ReservationDate,guests.FirstName,guests.LastName,guests.Mi
ddleName,reservations.RoomNo,reservations.CheckinDate,reservations.Chec
kinTime,reservations.CheckoutDate,reservations.CheckoutTime,reservation
s.NoOfDays,reservations.NoOfGuest,reservations.RStatus,reservations.Not
es,reservations.ID FROM reservations INNER JOIN guests ON
reservations.GuestID=guests.ID WHERE RStatus='pending'");
?>
<tbody>
<?php
while($rows = mysqli_fetch_array($sql)){
?>
<tr>
<td><?php echo date_format(date_create($rows['ReservationDate']),"F d, Y
g:i:A"); ?></td>
<td align="center"><?php echo $rows['FirstName'].', '.
$rows['LastName'].' '.$rows['MiddleName'];?></td>
<td align="center"><?php echo $rows['RoomNo'];?></td>
<td> <?php echo date_format(date_create($rows['CheckinDate']),"F d, Y
"); ?></td>
<td><?php echo $rows['CheckinTime'];?></td>
<td><?php echo date_format(date_create($rows['CheckoutDate']),"F d, Y");
?></td>
<td><?php echo $rows['CheckoutTime'];?></td>
<td align="center"><?php echo $rows['NoOfDays'];?></td>
<td align="center"><?php echo $rows['NoOfGuest'];?></td>
<td><?php echo $rows['Notes'];?></td>
<td align="center">
<a href="edittransaction.php?id=<?php echo $rows['ID']; ?>" class="btn
btn-success">Check In</a>
</td>
<td align="center">
<a href="deletereservation.php?id=<?php echo $rows['ID']; ?
>&RoomNumber=<?php echo $rows['RoomNo']?>" class="btn btn-
danger">Cancel</a>
</td>
</tr>
<?php }?>
Edittransaction
<?php
$id = $_GET['id'];
$sql = mysqli_query($conn,"SELECT * FROM reservations WHERE ID='$id'
AND RStatus='pending'");
$row = mysqli_fetch_array($sql);
//auto generate transaction number
$sqltrans = mysqli_query($conn,"SELECT * FROM transactions");
$counttrans = mysqli_num_rows($sqltrans);
if($counttrans==0){
$transno = sprintf("%'.09d\n",1);
}else{
Cagayan State University- COLLEGE of INFORMATION and COMPUTING SCIENCES 51
ONLINE HOTEL MANAGEMENT SYSTEM OF VALLEY HOTEL WITH SMS NOTIFICATIONS
<div class="controls">
<input type="text" class="form-control" readonly="true"
name="CheckoutTime" value="<?php echo $row['CheckoutTime']; ?>">
</div></div>
<div class="col-md-6 form-group">
<label>Number of Days</label>
<div class="controls">
<input type="number" id="noofdays" readonly="" class="form-control"
name="NoOfDays" value="<?php echo $row['NoOfDays']; ?>">
</div></div>
<div class="col-md-6 form-group">
<input type="hidden" id="rate" name="" value="<?php echo $rate; ?>">
<label>Total Bills</label>
<div class="form-group">
<?php
$total = $rate * $NoOfDays;
?>
<input type="number" readonly="true" class="form-control"
name="TotalBill" value="<?php echo $total;?>" id="total">
</div>
</center>
</div>
<?php } ?>
Deletereservation
<?php
include('../includes/config.php');
if(isset($_GET['id'])){
$id = $_GET['id'];
//save record
$RoomNo=$_GET['RoomNumber'];
$sql = mysqli_query($conn,"UPDATE reservations SET RStatus='cancelled
reservation' WHERE ID='$id'");
$sql1 = mysqli_query($conn,"UPDATE rooms SET Status='Available' WHERE
RoomNo='$RoomNo'");
if ($sql){
header("location: ../checkoutlist/Cancelledreserved.php");
}else{
echo "Error";
}}?>
Addrooms
<?php
include "../includes/config.php";
if(isset($_POST['submit'])){
$RoomNo=$_POST['RoomNo'];
$Description=$_POST['Description'];
$FloorNo=$_POST['FloorNo'];
$RoomRate=$_POST['RoomRate'];
$MaxHeads=$_POST['MaxHeads'];
$Category=$_POST['Category'];
$Status='Available';
$check =mysqli_query($conn,"SELECT * FROM rooms WHERE
RoomNo='$RoomNo'");
Cagayan State University- COLLEGE of INFORMATION and COMPUTING SCIENCES 53
ONLINE HOTEL MANAGEMENT SYSTEM OF VALLEY HOTEL WITH SMS NOTIFICATIONS
$rowcount= mysqli_num_rows($check);
if ($rowcount){
echo '<script>window.alert("Duplicate Room Number
detected!");</script>';
echo '<script>window.location.href="addformroom.php"</script>';
}
else{
// our sql query
$sql= mysqli_query($conn,"INSERT INTO
rooms(RoomNo,Description,FloorNo,RoomRate,MaxHeads,Category,Status)VALUE
S('$RoomNo','$Description','$FloorNo','$RoomRate','$MaxHeads','$Category
','$Status')");
$count=count($_FILES['userfile']['name']);
for($i=0; $i<$count; $i++){
$imgData =addslashes(file_get_contents($_FILES['userfile']
['tmp_name'][$i]));
$sql1 = mysqli_query($conn,"INSERT INTO roomimages(RoomNo,Images)
VALUES('$RoomNo','{$imgData}')");
}
// insert the image);
header("location: room.php");}}?>
Deleterooms
<?php
include('../includes/config.php');
if(isset($_GET['xid'])){
$id = $_GET['xid'];
$sql = mysqli_query ($conn," DELETE FROM rooms WHERE ID='$id'");
if ($sql){
header("location: room.php");
}else{
echo "Error";
}}?>
editroom
<?php
include('../includes/config.php');
if(isset($_POST['submit'])){
$RoomNo=$_POST['RoomNo'];
$Description =$_POST['Description'];
$FloorNo=$_POST['FloorNo'];
$RoomRate =$_POST['RoomRate'];
$MaxHeads =$_POST['MaxHeads'];
$Category=$_POST['Category'];
$Status='Available';
if(empty($_FILES['files']['tmp_name'])){
$sql = mysqli_query($conn,"UPDATE rooms SET
RoomNo='$RoomNo',Description='$Description',FloorNo='$FloorNo',RoomRa
te='$RoomRate',MaxHeads='$MaxHeads',Category=',$Category',Status=',
$Status' WHERE ID='$ID'");
header("location: room.php");
}else{
$count=count($_FILES['files']['name']);
for($i=0; $i<$count; $i++){
$imgData =addslashes(file_get_contents($_FILES['files']['tmp_name']
[$i]));
$sql1 = mysqli_query($conn,"INSERT INTO roomimages(RoomNo,Images)
VALUES('$RoomNo','{$imgData}')");
}}}?>
Amenities
<?php
$id=$_GET['id'];
$sql1=mysqli_query($conn,"SELECT * FROM transactions WHERE ID=$id");
$row1 = mysqli_fetch_array($sql1);
$TransactionNo = $row1['TransactionNo'];?>
<thead>
<tr>
<th></th>
<th><center>Description</center></th>
<th><center>Price</th>
<th><center>Quantity</th>
<th><center>SubTotal</th>
</tr>
</thead>
<?php
$sql = mysqli_query($conn,"SELECT * FROM amenities");?>
<tbody>
<?php
while($rows = mysqli_fetch_array($sql)){?>
<tr>
<input type="hidden" name="TransactionNo" value="<?php echo
$TransactionNo ?>">
<?php
$check = mysqli_query($conn, "SELECT * FROM transactiondetail WHERE
TransactionNo='$TransactionNo' AND AmenityID='".$rows['ID']."'");
$rowcheck = mysqli_num_rows($check);
$rowq = mysqli_fetch_array($check);?>
<td align="center"><input type="checkbox" <?php if($rowcheck){ ?>
checked <?php }?> onclick="test();" class="pid" name="pid[]"
value="<?php echo $rows['ID']-1; ?>"></td>
<input type="hidden" name="id[]" value="<?php echo $rows['ID'] ?>">
<td align="center"><?php echo $rows['Description'];?></td>
<td align="center"><?php echo $rows['Price'];?></td>
<input type="hidden" id="price[]" class="price" name="price[]"
value="<?php echo $rows['Price'];?>">
<input type="hidden" name="qtyx[]" id="qtyx[]" class="qtyx">
<td align="center"><input <?php if($rowcheck){ ?> enabled="true"
value="<?php echo $rowq['Quantity']; ?>" <?php } else { ?>
disabled="true" <?php }?> onchange="log();" type="number" id="qty[]"
class="qty" min="1" max="10" name="qty[]"></td>
<input type="hidden" name="subtotalx[]" class="subtotalx"
id="subtotalx[]">
<td align="center"><input <?php if($rowcheck){ ?> enabled="true"
value="<?php echo $rowq['SubTotal']; ?>" <?php } else { ?>
disabled="true" <?php }?> type="text" readonly="" name="subtotal[]"
id="subtotal[]" class="subtotal"></td>
</tr><?php }?>
Cagayan State University- COLLEGE of INFORMATION and COMPUTING SCIENCES 55
ONLINE HOTEL MANAGEMENT SYSTEM OF VALLEY HOTEL WITH SMS NOTIFICATIONS
Deleteamenities
<?php
include('../includes/config.php');
if(isset($_GET['xid'])){
$id = $_GET['xid'];
$sql = mysqli_query ($conn," DELETE FROM amenities WHERE ID='$id'");
if ($sql){
header("location: amenities.php");
}else{
echo "Error";
}}?>
Feedback
<?php
while($rows = mysqli_fetch_array($sql)){?>
<tr>
<td><?php echo $rows['Comments'];?></td>
<td><?php echo date_format(date_create($rows['DateTime']),"F d: Y g:i
A"); ?></td>
<td><?php echo $rows['FirstName'].', '.$rows['LastName'].' '.
$rows['MiddleName'];?></td>
<td><?php if($rows['StatusA']==1){ ?>
<center><label>Approved</label></center>
<?php } else { ?>
<center><a href="accept.php?id=<?php echo $rows['ID']; ?>" class="btn
btn-success"><i class="icon-save"></i> Accept</a></center>
<?php } ?>
<td align="center"><a onclick="deletexid(<?php echo $rows['ID']; ?>)"
data-toggle="modal" data-target="#delete" class="btn btn-danger"><i
class="fa fa-trash"></i></a></td>
</tr><?php } ?>
Checkout
<?php
$RoomNo=$_GET['RoomNo'];
$sql = mysqli_query($conn,"UPDATE transactions SET StatusT='checked
out' WHERE ID='$id'");
$sql1 = mysqli_query($conn,"UPDATE rooms SET Status='Available' WHERE
RoomNo='$RoomNo'");
if($sql){
//echo "ggg";
header("location: ../checkoutlist/checkoutlist.php");
}else{
echo "Error";?>
QUESTIONS YES NO
1. Do you have existing
website?
2. Do you like to have a
website?
3. If you have an online
hotel management
system, do you think
that your sales will be
increase?
4. Do you think the
website will be useful in
your business?
5. Is your business really
needs a website to
attract customers?
6. Do you like that you
will have a website like
reservation to invite
others to book in your
hotel?
7. Is it possible that a
website reservation will
become more useful to
the customers/client’s
needs?
8. Do you deal in selling
and marketing goods
online?
9. Do you have sufficient
stuff for promoting your
hotel online?
10. Is your business outlets
enough to have an
online website?
C. Sample input/output/reports
D. User’s Guide
USER’S MANUAL
Log-In
The Log-In form, the purpose of this part is to provide use authentication. The use will
enter two inputs(Username and Password). The system checks user‘s input to see if they
are valid, the appropriate error message will be displayed and the user needs to re-enter
the inputs.
Home Page
Google Map
The Google Map page allows user to check also the location of Valley Hotel in
embedded Google Map.
Rooms
The Rooms page, displays different types of Rooms such as Superior Single, Junior
Executive, Superior Twin.
The Reservation Page, before you can do a reservation you must LOG-IN first. After
Logging in click Rooms, you can now choose which room type you will reserve then
click RESERVE NOW.
The Profile Page shows the details about the clients and their past and present
reservations and also cancelled reservations.
E. Process/Data/Information Flow
Flowcharting Symbols
Indicates a continuation
from one part of the
On-Page Connector flowchart to another on the
same page.
A named property of
characteristics of an entity
Attributes that is of interest of the
organization.
Mandatory one
Mandatory many
Optional many
Optional One
The photos above shows how the researchers gathered the necessary
data that are needed in building their system through the following methods;
first is floating of questionnaires and by asking several questions such as their
system requirements and floor plans.
H. CURRICULUM VITAE
RAUL D. BANAN
Address: Centro Peñablanca, Cagayan
Contact number: 0906-841-4656
Email Address: [email protected]
BACCALAUREATE DEGREE
Bachelor of Science in Information Technology, 2019
Cagayan State University – Carig Campus
SKILLS:
LANGUAGE
Ytawes, Tagalog, English
SPECIAL SKILLS
Encoding, Editing, MS Office
EXTRA-CURRICULAR ACTIVITIES:
Intramurals 2018
Beach Volleyball Men – Champion
Beach Volleyball Men(University Meet, Regionals) 2017 – Champion
Beach Volleyball Men (Nationals) 2017 – 5th place.
JENIE L. REPALIAR
Address: Taguntungan,Baggao,Cagayan
Contact number: 0936-193-3939
Email Address: [email protected]
EDUCATION:
College
BACCALAUREATE DEGREE
Bachelor of Science in Information Technology, 2019
Cagayan State University – Carig Campus
SKILLS:
Computer Literate
LANGUAGE
Ilokano, Tagalog, English
EDUARDSON N. MAGUDDAYAO
Address: Carig Sur, Tuguegarao City
Contact number: 0975-308-9440
Email Address: [email protected]
EDUCATION:
BACCALAUREATE DEGREE
Bachelor of Science in Computer Science, 2016
Cagayan State University – Carig Campus
SKILLS:
LANGUAGE
Ilokano, Tagalog, Ybanag, Itawes, English
SPECIAL SKILLS
Encoding, Editing, MS Office, Computer Repairs
EXTRA-CURRICULAR ACTIVITIES:
SEMINARS/TRAININGS ATTENDED