Professional Documents
Culture Documents
CSUSB ScholarWorks
2006
Recommended Citation
Wang, Junxian, "Online hotel booking system" (2006). Theses Digitization Project. 3083.
https://scholarworks.lib.csusb.edu/etd-project/3083
This Project is brought to you for free and open access by the John M. Pfau Library at CSUSB ScholarWorks. It
has been accepted for inclusion in Theses Digitization Project by an authorized administrator of CSUSB
ScholarWorks. For more information, please contact scholarworks@csusb.edu.
ONLINE HOTEL BOOKING SYSTEM
A Project
Presented to
the Faculty of
San Bernardino.
In Partial Fulfillment
Master of Science
in
. Computer Scien
by -
Chun-Hsien
Wang March
2006
ONLINE HOTEL BOOKING SYSTEM
.. ... . .. A Project .
... Faculty of -.
: San Bernardino .; ;
by-"'-'
Chun-Hsien Wang
March 2006
.Approved by:
■■ c;4’. ABStract
i.ii
? " ACKNOWLEDGMENTS .
my master project.
v
TABLE OF CONTENTS
ABSTRACT...................................... iii
ACKNOWLEDGMENTS............. iv
LIST OF TABLES....................................................................................................ix
3.1 Introduction............ 11
vi
5.2.1 Home of ChunHsien Wang's Project....................28
vii
5.2.27 Admin Login Page..........................................................71
6.1 Conclusion........................................................................................85
REFERENCES................................... 88
viii
LIST OF TABLES
CLIENTS...............................................................................................................................2
Table 1. Structure of Table 0
BOOKINGS................................................................................................................21
Table 2 . Structure of Table
ix
LIST OF FIGURES
■ . ■ x ■. ■ . .
Figure 23. Confirm Booking Page (Users)...... 48
xi
Figure 48. View Users' Profiles Page (Admin) .......... 75
xii
CHAPTER ONE
INTRODUCTION
Internet. The records are shared with not only Web users
users' files and maintain the Web site on it. The Web
1
1.2 The Scope and Limitations of Project
functionality:
GoodLuck Hotel.
details.
2
11. Besides the basic booking relative functions,
limitations: .
which
is 3 .
3
. 1.3 Significance of the Project . ' "
keyboard.
. on the''screen. ... ; \ :: .
HTML.
future directions.
6
' V :I / ' CHAPTER TWO I
protocol. • •
8
specific operating system and hence are easily portable
plugged in easily.
range of databases.
9
control. That is why I choose the MySQL as the application
of database.
10
’ CHAPTER THREE \
details and view the hotel Web site. They can do these
browser. . / . . • . . ■ ■ ■ ■ .
(Admin)
12
Figure 3. Online Hotel Booking System Use Case Diagram
, (User)
database.
access.
Database Server
MySQL
Database
■A
«Communication»
Apache Server ! *
■I
PHP Pages illi s.............PHP
l
HTTPS «Communication»
ir
Client
Web Browser
System
14
CHAPTER FOUR
DATABASE DESIGN
15
For tables used by administrator only, the first one
information pages.
Card.
to Figure 6 and 7. .
16
Figure 5. Entity Relationship Diagram
17
Field Names of Table CLIENTS
ID STATE
18
Field Names of Table 20050CT - 20G6DEC
NUMBER DESC .
19
Table 1. Structure of Table CLIENTS
TITLE VARCHAR(IO)
FIRSTNAME VARCHAR(30)
LASTNAME VARCHAR(30)
ADDRESS1 VARCHAR(50)
CITY VARCHAR(50)
PROVINCE VARCHAR(50)
COUNTRY VARCHAR(40)
POSTCODE CHAR (2 0)
TEL CHAR (2 0)
EMAIL CHAR(50)
PASSWORD VARCHAR(20)
STATUS VARCHAR(5)
20
Table 2. Structure of Table BOOKINGS
CLIENTID INT(ll)
BOOKING_ID INT(15)
STARTYEAR VARCHAR(4)
STARTMONTH VARCHAR(9)
STARTDAY CHAR(2)
ENDYEAR VARCHAR(4)
ENDMONTH VARCHAR(9)
ENDDAY CHAR(2)
ROOMQUANT CHAR(2)
ADULT CHAR(2) 1
CHILDREN CHAR(2)
ROOMTYPE VARCHAR(30)
ROOMOPTIONS INT(8)
NETWORK INT(8)
PC INT(8)
CARDTYPE VARCHAR(15)
CARDNO VARCHAR(20)
EXPIREMONTH VARCHAR(4)
21
Table 3. Structure of Table USER
USERNAME VARCHAR(15)
PASSWORD VARCHAR(12)
FIRSTNAME VARCHAR(30)
LASTNAME VARCHAR(30)
STATUS VARCHAR(10)
ID INT(2)
22
Table 5. Structure of Table 20050CT - 2006DEC
QUANTITYA CHAR(2)
PRICEA VARCHAR(5)
QUANTITYB CHAR(2)
PRICEB VARCHAR(5)
QUANTITYC CHAR(2)
PRICEC VARCHAR(5)
QUANTITYD CHAR(2)
PRICED VARCHAR(5)
DESC VARCHAR(255)
23
Table 7. Structure of Table ROOMINFO
TYPE CHAR(2)
DESC VARCHAR(5)
QUANTITY VARCHAR(255)
ANSWER LONGTEXT
ANSWER2 LONGTEXT
24
Table 9. Structure of Table TRAVELSHOPPING
NUMBER INT(2) PR
I
NAME VARCHAR(50)
LINK VARCHAR
(250)
ADDRESS VARCHAR(50)
CITY VARCHAR(50)
STATE VARCHAR(20)
ZIPCODE VARCHAR(9)
PHONE VARCHAR(15)
25
CHAPTER FIVE ...
PROJECT IMPLEMENTATION
26
HTML
UserPages AdminPages
aboutus.php 2005dec.php
add_user_reco.rd. php 2005nov.php
booking_cancelled.php 2005oct.php
booking_completed. php 2006apr.php
booking_dtails.php 2006aug.php
booking_updated.php 2006dec.php
cancel_booking.php 2006feb.php
cancel_booking_details.php 2006jan.php
cancel_booking_determine.php 2006jun.php
change_booking.php 2 0 0 6mar.php
change_booking_details.php 2006may.php
change_user_record.php 2006nov.php
check_abailability.php 2006oct.php
conf irm_booking,. php 2006sep.php
customercare.php admin_login.php
customerservice.php admin_menu.php
footer.php cancelbooking.php
index.php changeaboutus.php
index_login.php. changebooking.php
options.php changecontactus.php
payment.php changecustomercare.php
price_details.php Changedaymodify.php
privacypolicy.php changeprivacypolicy.php
promotion.php changeprofile.php
pesult_availability.php changeroominfo.php 1
roominfo.php changetravelshopping.php
roominfo_popup.php Create_user.php
roomquant_popup.php editbookingcancelled.php
travelshopping.php editbookingcompleted.php
user_login.php editbookingupdated.php
user_record_updated.php editcancelbooking.php
view_booking.php editchangebooking.php
view_booking_details.php editcontactus.php
editcustomercare.php
Editdaymodify.php
editpayment.php
editprivacypolicy.php
editprofile.php
editroominfo.php
editroominfo2.php
editroominfo3.php
edittravelshopping.php
27
5.2 Graphical User Interface Website
both Web page and PDF formats; third one "Source Files" is
other three are on the right hand side. First one "CSUSB
next one. They can retry and accept it, then the page
more confident
28
such as personal profile or credit card information and
Topic,
System
1‘71’
29
i
' 8
S
^ i<w W/Ww/^ <■<& O WV V n**i «
|h sA*/« l&3', t'yiSJr' "WU i'^'i
* i<&,nr*S ^f(
& ^'y Vi
'W ii 41% '}<&
Layer
following links:
30
personal account; If users are first time in
start to book. ?
31
deleted forever and the confirmed information
a new user.
the profile.
32
"About Us", "Travel & Shopping", and "Privacy
page of my project.
without logon. L
33
Figure 11. Main Page of GoodLuck Hotel
34
In the field "County/State", if users choose "United
Figure 14.
15.
35
% , >Z-z^4 i"<"iyxit'^ /,> '<
*ssz jW, ,$
BcmB 4i Room
, View Booking
jChango Booking &i| A** (ssm * &«*bk
-«sM n*w4 m«« «»*« x>
CheSS AvaihS^
Room lnfgw
■•*< *
^Register
'Z
<z
< ......... . ■»
sfM»<
36
Figure 13. Error Message in State (Users)
U!'*x - * * z-
" 4-?-#4?'x ♦/*
V4ew' «wwa4oy
Ch^ng^ Baking
&II m W®# *s$t$ -41 x f^t4«
^SQiiiy
TS&cK Av 4®^"
Room Info
<s?1<
Log in >
r -? ?f w>-''r;< >
' 'V<'*‘^/‘S s
^i
' ? I
>v,r
38
$«* 6A *■»> ‘‘■jb ''t
'* *
-;■
<4^ x>
*■$£>*/<.'w/ss* >„'
^S?PIU h^SL -
SSZ I ZILJ ■
^RegSwr^
..My Proifile '';b ||ISa ^^
:?;4^.: ? ■
. j<>9 >n
£ <'Z « 2A '
* ?/^7
ililRaf ~ ;" "
■. :s ■
s w(/.,/* K AAA^'h AZ
— . ■ /-if-
lilM iiiiiiiiiiiiiiti
^^
39
Figure 16. Error Message in Password (Users)
4 0
Figure 17. User Login Page (Users)
41
Figure 18. Error Message in Login Page (Users)
42
£& * %&*<& *'<&
X
s- c* 'J <5ii ;S
•j;s,'14^ </Uj l%fi< tA?>A A*Z*h^
’MVUUUUVk' 11JLUl
H
Home ^i',''-'<^' ?c\ »7' &',*<<<
.J®4* a Room
"WewfisSsins”
'ChwgJ"&Sing
'CanS Booking
'jSScffe^ibbii^
j E?^L
’^CogToMt"
v
>
........
43
departure year, departure month, or departure day, the
page will not skip to next one until these fields are
This page will not skip to next one until all fields
"Booking" button and all fields are correct, the page will
44
#> f& ■*
^WwlSXi^F
jCtay tetog
km
^STiSSEnJ^ * A?6? bziVK^r^/b ;/- ^V/d4bi
k<ki£ 'jru s v
<r k
F. s ¥%"<<<
- iki ,k„i b*<>
Page (Users)
45
Figure 21. Error Message in Wrong Date (Users)
46
Figure 22. Error Message in Room Types (Users)
23 .
47
The personal profile cannot be modified here.
Figure 24.
date, the page will display error message and users need
48
If users choose a specific date which there is no
This page will not skip to next one until all fields
50
5.2.10 Price Details Page
51
After users click the "Next" button, the page will be
52
When users input card number, the length of card
This page will not skip to next one until all fields
^4'«\ y } fW rsti* «■& '*£# ?% '< $*'*!■ < V» Jz- ,'< <«■ -4, ^y^'i 3 '4'#* *< *z<^,^ 5, •*/» Mti# yy^
GoodLuck Hot
44'o ^u 2
yW'i ' (
3 $
A1 ' >?<
Figure 27 Payment Page
ir:* *&<'<*#&< vs£i *^k
V“- ■ x'
*^' iZ i
' 4 ii'\'-> V^*> "» <>?$-« '', *'*' '"nj^t (*%t V Vt' '
GoodLuck Hot^B^ $
UHHIilll
*&xk 'z',< W'^ *<;?X',v <s; 7"^ ft; M ;4t 5 ^A A
<C's
I;
'1U */.
?'
55
Figure 29. Error Message in Card Date (Users)
56
Figure 30. Booking Completed Page (Users)
they will see this page. In this page, users can view all
57
can change or cancel this specific booking. Please refer
ii --A
Home
& Room
1x4
Change zx> ' rz
1&A
?s54
K< :</C< - llll 1'W^ *
t
l
m%
^■lll I IBlII ’4
US Out
I S >>•
58
5.2.14 Cancel Booking Determined
this page user can review both arrival and departure date
59
5.2.15 Booking Cancelled Page
60
Figure 34. Change my Profile Page (Users)
page, the page will be linked to this one and shown all
61
Figure 35. User Profile Updated Page (Users)
62
,4 %
/ 3 f>v.* *
-W
' Homo
a Boom
View Booking
Changa Booking a
jCincti’BoSiir^’
/«
j SSaJSS^’
> d
Room Infom
r
Register
, i^y Profile
1F^ ,r.
~O
Figure 36. Check Availability Page (Users)
63
Vsr'x l'S'4
i « e?,,
^■t.?^'»<^44i <#% «?<<<■1- r>/ ?t v 'w"’,4,t'^ i/v
frV'W f4f4
~J
Change Sookihg
4' V
Cancel BooMmg y *'/, ?> U:
Checfc A*aMasnhiy f'f ■> i¥s ;>
G J & ' is
Room Info 4> £4 ■t.
«■"<
2 > « 14<
4> £<x x i
ft ) <4 X is ?/
Page (Users)
64
*'sh
. 4*^i <-
<r. f‘ •5
g*}**"* <;V 9X vf<i '„<U<
< M t^ijff i Jj'. ''^ $ V> ??/ W*■>.- z/<\v «<x ;><.■., *<Mw >.?v sn r-^x<> ’V* *4*%, l-x*i *%*'t&w
*y/«
AJBLW
• Hooie
JBoM 0 Room,
Ww Boo&rng
^SSilKSSJ
Ctrni
^Reom Info ,
Register
_Log in
&
Figure 38. Room Information Page (Users)
65
7; '4
»
'$*/* «
'Z
’,Wa
View Baokiwg
<;^dlw;k ^gwfeM urdtal jjutstoneh Ir&m ttei %$ t<* CM W,
jOtoge Seek^g
h«<> «& vtfa&te Wtffc.
mU% itF*
Room Wo
Register
My Profile
XSgTn”
4; H***
L^Wr'
Figure 39. Special Promotion Page (Users)
users still cannot get the answer on the page, they can
figure 41.
67
Figure 41. Customer Care Page (Users)
68
Figure 42. Contact us Page (Users)
69
Figure 43. Travel and Shopping Page (Users)
70
■A ’
Privacy Policy
CaS'SkinZ '? y :u rrzr: zr a -v " rr:e C/'<; -rrA'A r-l &ez zr^w-
d t Y,A res r <?t * rzAr / v: j‘ O Z4 <Z: <? |z
CytoSgf :tk^t Ur V?i Z« // £ "? A- '>-%>; <«< < *V mAAAa
or visitors.
71
Figure 45. Admin Login Page (Admin)
72
It is very useful for administrators to manage the system
A; '
<vyz <
itew'
■ Figure 46. Admin Menu Page (Admin)
47.
73
Figure 47. Room Price and Quantity Page (Admin)
48.
74
Mi
w* w* w '
Uh^ * , ■£ ■$: 1' z v'^ f'4' <« ,
j kx£' $
>
75
■&% ' ?.
W
/ >/r^ "' '"?»t**tes, /'*;
•-.s
*£ * <*',?<< * x^X*W& "
Hotel |
IM
terms',
5 SJS'/iWK
B4a
ro io
p"' U 0X6
Illi
1 III II
tv it 13 III!II Bllillilfl
k BlilDI l X
felted 1 I lli II I
Sill 0X7 Bil tz 4
'< «* llillli V<>
and view the change immediately from the Web page. Please
78
Figure 52. Change About us Page (Admin)
part. After modifying, they can check and view the change
53.
79
I
80
$•' / ,' •£? \.
w ;
Mwther
£dh
•>
Bc*x.nx< w Qn^We*' rmm £c t
4
5 ta t&, fe;
CW <r
4<W
siiiii
Figure 54. Change Contact us Page (Admin)
81
Figure 55. Change Shopping Page (Admin)
part. After modifying, they can check and view the change
56.
82
Figure 56. Change Privacy Policy Page (Admin)
the Room Information page. For each room type and its
83
.*4£
-a
Oi<
daA
1 roxu 4 ' X‘ ¥^xJe <s«.f Qx?~r a tMX. Wdjd
f'X Xi iff "4 ', 4 f«fX <' WA * m U 'i Q^'t f2& l>XhX ZW hill ^4 &'<& JtK
rwe Ol
>.
3
<WJ / C< & k&r
*4 C:^
WUvXA'
l'>4^ 1 - / 'W&4W< *<.T,Q,^' \ &* 14C hit « >«h^"< U fC<7m
4 h,u r* *<c«;^
?t/V , hx I; Ji 'W?% % h^hh ’ &M &< / O^'d #v 4jd <*> 4/^,-nA
luuv ^'X^ *&.&& tody <*X1U$ &',%*< hrv’ bX?'X Qx^T In
f'WA
*xm<< '':& &y ^'<X^< &':.tfZ), /K’^TrAYd
xX<U ' Wxt 'MMwter' *:<:$
L j|Jl||||M||gilli|j||jBil|ii|||™
L'X^d & fW4rx wtA £<«Vjk $w< X?X^ % th;t UhXJ <tMhh C</
ij r<u;jh 4 v/kk £X< t^cdW n&> 4 %t£y HHd Ah ht'x xd
a u
k£t/ vwh xc ^xxrxxk 'th* bhxxv c/t>$ 3 &$$&$
'4 &<< $<xA %4< (i M*'* {txth <^i't vx<<n^'dxAri wl
w h ^w;.< wrtfh xc ,
-A <3 ><< xh£< 4 x&$&* *4^ 44 UxM </d b»^X* bx CVz t< v i/>v v <fIww, t 1 k ^(/"
6;>W^< kxxm rx.Ul </'d cc^aex <rd rc^y wv<^) US p^4 ^er te ?<'4<d
AX7y 2 ^'^}, CtfVY f^r^ <r^t ^1 ;h Ur hrih^r^^'^ /A
<«; ?‘ / < *; rt 'h tx^'i ^>v
•'^ — ■ - •« «« =
b s s- M M lK
Figure 57. Change Room Information Page (Admin)
84
- CHAPTER SIX
6.1 Conclusion .
knows how to use a Web browser can register and then ""
85
6.2 Future Enhancements > ,
inappropriate input. -
the future.
. 86 ' . ■
services on their online systems. In this way, people
87
REFERENCES
September 2001.
[5] Larry Ullman. "PHP and MySQL for Dynamic Web Sites:
March 2003.
2002. .
88
[9] Shelly Cashman Woods. "HTML Complete Concepts and
Technology, 2002. ,
[11] Tim Converse and Joyce Park, "PHP 4 Bible", IDG Books
89