0% found this document useful (0 votes)
56 views57 pages

TMS Project Report

Uploaded by

Abhishek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views57 pages

TMS Project Report

Uploaded by

Abhishek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 57

A project report on OSOU/Formats/01

INTELLIGENT TOURIST
SYSTEM
SUBMITTED IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE

“Diploma in Computer Application|”

Submitted By:
ABHISHEK KUMAR MISHRA
ENROLLMENT NO: DCA2210091

Under the Guidance of


KHURSI DARA BEGUM
LECTURER IN I.T.
MCA

Kuchinda College/2803
Kuchinda, Sambalpur

Odisha State Open University


Sambalpur, Odisha
OSOU/Formats/02

DECLARATION

I Mr. ABHISHEK KUMAR MISHRA, hereby declare that the dissertation entitled “Intelligent
Tourist System” submitted by me in partial fulfillment of the requirement of Diploma in Cyber
Security is a record of my bonafide work being carried out by me under the guidance of
Lect. KHURSI DARA BEGUM, Department of CSE., Kuchinda College, Kuchinda, Sambalpr,
Odisha

The work included in this dissertation has not been submitted to any other University /
Institution for award of any degree/diploma.

Date:

Mr. ABHISHEK KUMAR MISHRA

Enrollment No. DCA2210091


OSOU/Formats/03

ORIGINALITY CERTIFICATE

This is to certify that the results embodied in the dissertation entitled “Intelligent Tourist
System” submitted by “Abhishek Kumar Mishra” bearing Enrollment number DCA-221-0091
under Odisha State Open University is a record of bonafide work carried out by the candidate
under my direct supervision and guidance.

This dissertation has reached the standards fulfilling the requirements of the regulations
relating to the “Diploma in Computer Application”, and has not been submitted previously in
this University or in any other University / Institute for award of any degree/diploma, to the best of
my knowledge.

Date: (Name and Signature of the Supervisor with seal)


OSOU/Formats/04

ACKNOWLEDMENT

I take great pleasure & privilege in devoting my heartiest and sincere gratitude to my
supervisor Lect. Khursi Dara Begum for his immense support & motivation during the course
of the Project Work without which this work would not have seen the light of the day.

I am very grateful to Lect. Khursi Dara Begum for helping me in completing my work.

I offer my sincere gratitude to my Counselor Lect. Khursi Dara Begum who has
helped & encouraged me in each step for successful completion of my work.

I extend my special gratitude to my family for their co-operation and love all through.

Abhishek Kumar Mishra


Enrollment No.DCA2210091
ABSTRACT

This website is revealed to provide the best traveling assistance to customers and travel
agencies. We have developed travel and tour management systems to render a found stage
where tourist can find their tour places according to their likes. This system also helps to
promote liable and pleasant tourism so that people can enjoy their vacations at their favorite
places. This way also benefits develop tourism with different cultures so that they enrich the
tourism experience and build variety. We develop this system to create and improve forms of
tourism that provide better cooperation opportunities for tourists and locals and increase a
better opinion of different cultures, customs, lifestyles, traditional knowledge, and beliefs.

This system also gives tours-related data like which bus can go to certain places and which are
tourist attractions, cities, and provinces. Tourists can also get the Map and exploration system
and can also see other tourist reviews. Tourists can also book tours through our tours with
packages and a travels management system.
TABLE OF CONTENTS

CONTENTS PAGE

Board of examiners i
Declaration iii
Acknowledgements v
Abstract v

CHAPTER

CHAPTER 1: INTRODUCTION 1-2

1.1 Introduction 1

1.2 Motivation 1

1.3 Project Initiation Planning 1

1.4 Objective of This Project 1-2

1.5 Expected Outcomes 2

CHAPTER 2: BACKGROUND 3-4

2.1 Introduction 3

2.2 Related to Works 3

2.3 Comparative Analysis 3-4

2.4 Scope of the Problem 4

2.5 Challenges 4
CHAPTER 3: REQUIREMENT SPECIFICATION 5-13

Business Process Modeling 5

Use Case Model and Discussion 6-7

Entity Relationship Diagram 7

User Use Case Diagram 8

Admin Use Case Diagram 9

Modules 10

Login Module 10

Packages Booking Module 11

Management of User 12

Administrator Module 12

Package Module 12

Creation of Package 12

Booking of Package 12

Confirmation/Cancel of Booking 13

Design Requirements 13

CHAPTER 4: DESIGN SPECIFICATION 14-21

Front-end Design 14-15

Home Page 15-16

Back-end Design 16-17

Interaction Design and User Experience (UX) 18

Database Design 18-21

CHAPTER 5: IMPLEMENTATION AND TESTING 22-29


Implementation of Database 22-24

Implementation of Front-end Design 24

Testing Implementation 25-29

CHAPTER 6: Result and Discussion 30

Impact on Society 30

Impact on Environment 30

Ethical Aspects 30

CHAPTER 7: CONCLUSION AND FUTURE SCOPE 31

Conclusion 31

Scope for Further Developments 31

Limitation 31

REFERENCES 32
LIST OF FIGURES

FIGURES PAGE NO
Figure 3.1: Processing Modeling 5
Figure 3.2: Use Case Diagram 6
Figure 3.2.1: Entity Relationship Diagram 7
Figure 3.2.2: User Use Case Diagram 8
Figure 3.2.3: Admin Use Case Diagram 9
Figure 3.3.1: Login Module 10
Figure 3.3.2: Packages Booking Module 11
Figure 4.1.1: Home Page 16
Figure 4.2.1: Admin Panel Page 17
Figure 4.3: Basic Structure of User Experience 18
Figure 5.1.1 User Data Set 22
Figure 5.1.2: Booking Data Set 22
Figure 5.1.3: Tour Package Data Set 23
Figure 5.1.4 Admin Data Set 23
Figure 5.1.5: Issues Data Set 23
Figure 5.1.6: Page Data Set 23
Figure 5.2.1: Home page 24
Figure 5.3.1: Tour Packages page 25
Figure (5.3.2 -- 5.3.4): Packages Details page 26-27
Figure 5.3.5: Online Bus Services page 27
Figure 5.3.6: Enquiry page 28
Figure 5.3.7: Create Account page 28
Figure 5.3.8: Admin Login page 29
Figure 5.3.9: Admin Panel page 29-30
LIST OF TABLES

TABLES PAGE NO
Table 4.4: Database of the whole project 18
Table 4.4.1: Admin Table 19
Table 4.4.2: Users Table 19
Table 4.4.3: Tour Packages Table 20
Table 4.4.2: Booking Table 20
Table 4.4.5: Enquiry Table 21
Table 4.4.6: Issues Table 21
Table 4.4.7: Pages Table 21
CHAPTER 1 INTRODUCTION

Introduction

The Travel and Tourism Management System is a web-based application. The principal
goal of the “Travel and Tours Management System” to provide a suitable way for a client
to book hotels and buses for tour purposes. The objective of this venture is to build up a
system that automates the methods and actions of a travel firm.

Motivation

We are inspired and motivated to see various sort of tour websites like TripAdvisor,
trip.com, TripBD.com, and expedia.com, etc. And so, on This application upkeep is
getting more costly. To make it's easy to understand and simple with less expense.

Project Initiation Planning

This project is a consequence of our musings and difficult work. At the absolute starting
point, we had a few thoughts for our final project. From those few thoughts, we pick the
travel industry area for our project. We had some past data voyaging organizations.
Subsequent to talking with the authority and our supervisor we chose to do this specific
project. At that point, we began our task. Our supervisor had given appropriate guidance.
Objective of this project

This project has a few goals. The main destinations are given underneath:

1. To build up a system that gives information identifying specific places.

2.To generally helpful for the travelers having no arrangement concerning the spots they
need to go to.

3.To efficiently access the proper information and make essential travel adaptations.

4.To give client's mastery of the visit, which can work with the new clients to go to the
places.

Expected Outcomes

This System will present to connect directly client and agents within the internet.It provides
facilities to change and delete traveler data as well as client data. It implements a feedback
tool for travelers. It stores some social media sections. It gives knowledge about the
inbound and outbound tour packages. It provides maintains & controls the database of
tourists’ information. It provides displays beautiful vacationer places. It gives a kind of
travel co-operations that will sure to match all tourist advantages.
CHAPTER 2 BACKGROUND

Introduction

The Travel and Tourism Management System is a web-based application for travel industry
organizations. It's very useful who goes on a trip for this 'Travel and Tourism Management’
would act an immediate role in preparing the proper tour. It provides the client with the
system to access all the features such as events, places, packages, etc. The goal of the
system is to help travelers to go to their favorite places and manage hotels easily. It can be
utilized for also used for professional tours also a business. The recommended way sustains
a centralized container to regain data efficiently and to make assured travel transcriptions.
Travelers are more attracted to the social heterogeneity of the world. In South Asia,
Bangladesh is quite possibly the most excellent nation and there are numerous celebrated
traveler places.

Related to Works

There are some development projects which are associated with the tour and travel sector
like Travel Agency, Hotel Management, Tourism Management, etc.

Users register, admin login, hotel details, place details, google map, etc. are related to our
projects from those tour and travel sectors.

Packages details, online bus booking, nearby places, etc. are the unique and main attraction
of our project
Comparative Analysis
Collecting information is a big challenge. Because through this project people will get
information of nearby beautiful places, hotels, bus service, all over the country. Data must
be authentic.

Scope of the Problem

The screen size of different smart devices is a big issue to develop this project. Sometimes
we face this problem that for different screen size applications cannot run properly. Some
part of the application is unavailable to the user for different screen size.

Challenges

Data collection of hotels, places, bus service, e-mail etc. is a big issue. Data of hotel and
place like price, proper name, history, etc. and primary health tips like tour packages,
security level, etc. The authentication of data is a big factor.
CHAPTER 3

REQUIREMENT SPECIFICATION

Business Process Modeling

‘Business Process Modeling’ is design graphical work process and BPM analyzed the
current process, and improve efficiency, activity. Business Process Model (BPM) is
analysis by business analysts. Figure 3.1 show the BPM. Given below:

Figure 3.1: Process Modeling

Figure 3.1 is the Process Modelling of the system. It is the graphical design of the system
methods or workflows, as a means of recognizing potential developments.
Use-Case Model and Discussion

To clarify the way better see and functionalities of the system, everybody choose use case
diagram. The use case chart is fundamental to chronicle the need of the system fair as to
demonstrate functionalities of the system. Use case diagram help to clarify the way the
client connects with the system

Figure 3.2: Use Case diagram of the system.

Figure 3.2 is the Use Case diagram of the system. In this diagram, we can see that user can
create an account to booking a hotel where they want go for a tour, and the admin can
confirm the booking with valid information of the user.
Entity Relationship Diagram

Figure 3.2.1: Entity Relationship Diagram


Figure 3.2.1 is the Entity Relationship Diagram. This model describes interrelated things
of interest in a specific domain of knowledge.
User Use Case Diagram

Figure 3.2.2: User Use Case Diagram.

Figure 3.2.2 is the User Use Case Diagram. This diagram is a graphical depiction of a user's
possible relationship with a system.
3.2.3. Admin Use Case Diagram

Figure 3.2.3: Admin Use Case Diagram.

Figure 3.2.3 is the Admin Use Case Diagram. This diagram is a graphical depiction of an
admin's possible relationship with a system
Modules

Login Module

Figure 3.3.1: Login Module.

Figure 3.3.1 is the Login Module. It is a portal module that allows users to type a user
name and password to log in. We can add this module on any module tab to allow users
to log in to the system. More on creating module tabs.
Packages Booking Module

Figure 3.3.2: Packages Booking Module.

Figure 3.3.2 is the Packages Booking Module. It is a portal module that allows users to
booking package and also cancel the booking any time.
Management of User

a. Account Create.
b. Login.
c. Booking or cancel booking.
d. Feedback rights

Administrator Module

It gives administrator-related functionality. By this module, the client can add path
knowledge, bus data, travel packs, places features, etc. Of that module, Admin can survey
every day, week after week, and month to month reports. The module remains improved
for the admin of the website and the administrator can alter, add, erase and see the
information identified with places, ventures, courses, appointments from this module.

Package Module

Clients can see diverse visit bundles subtleties accessible for sightseers. Clients can peruse
any bundles subtleties and select any bundles from this module.

Creation of Package

The administrator can make packages for client including tour details, price, bus services
etc.

Booking of Package

The clients can book the tour packages by selected their favourite places with price and
date.
Confirmation/Cancel of Booking

The admin can confirm or cancel the client's tour packages booking.

Design Requirements

Our whole system was designed based on user requirements analysis. It is one of the most
critical phases of a development project.

• We build a login page because in our system there is an authentication for the user.

• We have three types of users, Admin, User, and Guest. Admin and registered users can
use all features but Guests can view only.

• Registered users can book an ambulance and place an order for medicine after logged in.
they can also update their profile.

• Guest can view selected sections and also can create a new profile.

In detail planning phase we went through these:

 Analyzed the System

 System creation started

 Oracle Database

 SQL

 Planned which tools and Forms to be used


CHAPTER 4

DESIGN SPECIFICATION

Front-end Design

Basically, the front-end design represents the UI. On other hand it also the combination of
the web design part and the web development part. To make this visible we used HTML,
CSS, JavaScript, and Php.

We always tried to keep it more flexible, scalable, and extensible. We also tried to maintain
its robustness.
Home page

Figure 4.1.1: Home page

Figure 4.1.1 is the home page of our project. We can see that menu bar where home, we
can see that menu bar where Home, About, Package Details, Contact Us, etc. exists
Back-end Design

Figure 4.2.1: Admin Panel page

Figure 4.2.1: is the Admin Panel page of our project. Here admin can update, add, delete
any packages.
Interaction Design and User Experience (UX)

The following figure 4.3 shows the Basic Structure of User Experience.

Figure 4.3: Basic Structure of User Experience

Database Design

The following table 4.4 shows the Database of the whole project.

Table 4.4: Database of the whole project.


The following table 4.4.1 shows the Database Table of Admin Information.

Figure 4.4.1 Admin Table.

The following table 4.4.2 shows the Database Table of Users

Table 4.4.2: Users Table.


The following table 4.4.3 shows the Database Table of Tour Packages

Table 4.4.3: Tour Packages Table.

The following table 4.4.4 shows the Database Table of Booking.

Figure 4.4.2: Booking Table.


The following table 4.4.5 shows the Database Table of Enquiry.

Table 4.4.5: Enquiry Table.

The following table 4.4.6 shows the Database Table of Issues.

Table 4.4.6: Issues Table.

The following table 4.4.7 shows the Database Table of Pages.

Table 4.4.7: Pages Table.


CHAPTER 5

IMPLEMENTATION AND

TESTING

Implementation of Database

There are so many database management systems that are being used. As it is an open
source and one of the most popular database management systems, we choose MySQL for
our project. it is secured and easy to use.

Figure 5.1.1 User Data Set.

Figure 5.1.2: Booking Data Set.


Figure 5.1.3: Tour Package Data Set.

Figure 5.1.4 Admin Data Set.

Figure 5.1.5: Issues Data Set.

Figure 5.1.6: Page Data Set.


Implementation of Front-end Design

The following Figure 5.2.1 shows the Implementation of Front-end Design

Figure 5.2.1: Home page.


Testing Implementation

The following Figure 5.3.1 shows the Testing Implementation of Tour Packages
Information

Figure 5.3.1: Tour Packages page.


The following Figures 5.3.2, 5.3.3 and 5.3.4 shows the Testing Implementation of Tour
Packages Details
Figure (5.3.2 --5.3.4): Packages Details page.

The following Figure 5.3.5 shows the Testing Implementation of Online Bus Service
Information

Figure 5.3.5: Online Bus Services page.


The following Figure 5.3.6 shows the Testing Implementation of Enquiry Information

Figure 5.3.6: Enquiry page.

The following Figure 5.3.7 shows the Testing Implementation of Create Account
Information

. Figure 5.3.7: Create Account page.


The following Figure 5.3.8 shows the Testing Implementation of Admin Login Information

Figure 5.3.8: Admin Login page.

The following Figure 5.3.9 shows the Testing Implementation of Admin Panel

. Figure 5.3.9: Admin Panel page


CHAPTER 6
Result and Discussion

Impact on Society

Nowadays everything around us is upgrading. Day by day the use of technology is


increasing rapidly. People want to handle their problems and work with the help of
technology. This web application will help peoples, to get information about places, hotels,
bus services, feedback from others, and save their valuable time and make an important
impact on society. People's lives will be easier.

Impact on Environment

The impact of this project on the environment will be good because this project will reduce
the use of paper. Normally, we use paper to write down information. Through this
application, we can store information in the database and people get information through
smart devices. As a result pressure on paper will reduce. We know that paper made from
trees. If the use of paper will be decreased then the deforestation rate will below.

Ethical Aspects

In old days people use pen and paper to write down information. With the help of modern
technology information collecting system is updating day by day. The outcome of this
project, people get information in an efficient and technological way.
CHAPTER 7

CONCLUSION AND FUTURE SCOPE

Conclusion

Day by day travel is known as a global trade which is extremely increasing at a great flow
like other trade. There are many various activities are occurring in tour functions. Our
‘Travel and Tour Management System’ is a web-based application that benefits in the
online order of travel packages, hotels, transfers, etc. The ‘Travel and Tour Management
System’ can be completely modified with the coordination of various APIs. It has a well-
disposed climate that interfaces with clients readily. At long last, we can say that this Web-
Based Application will help the travel administrators to manage and control tour-related
initiates successfully and productively. It provides an easy route to automate all the
functionalities of expense. If this system is executed in a few tuberculosis, it will be
effective. It is presumed that the application functions admirably and fulfills the
requirements. It additionally goes about as the sharing of documents too significant assets.
Along these lines, we built up our application popularity of the upcoming scene.

Extent for Further Improvements

In the future, we are going to develop this project on a web page. Also, we will try to add
more features to this application according to demand. In future development, we will
provide location-based service.

Limitation

Everything has its own limitation and we are not exceptional we have some limitation too.
We tried as much as we can to avoid limitations. It could be more dynamic and user
friendly. Fake user or anyone can make misuse of this platform with fake documentation.
REFFERENCES

[1] Onuiri, E., Omoroje, H., Ntima, C. and Omotunde, A., 2021. Intelligent Tourism Management
System. [online] Asrjetsjournal.org. Available at:
<https://asrjetsjournal.org/index.php/American_Scientific_Journal/article/view/1577>

[2] Weaver, D. and Oppermann, M., 2021. Tourism Management.. [online] Cabdirect.org. Available
at: <https://www.cabdirect.org/cabdirect/abstract/20013080795>

Introduction with PHP.


[3] W3schools.com. 2021. PHP Introduction. [online] Available at:
<https://www.w3schools.com/php/php_intro.asp>

Hypertext Mark-up Language


[4] W3schools.com. 2021. Introduction to HTML. [online] Available at:
<http://www.w3schools.com/html/html_intro.asp>
JavaScript programming language,
[5] W3schools.com. 2021. Introduction to HTML. [online] Available at:
<http://www.w3schools.com/html/html_intro.asp>

MySQL, Opensource database.


[6] Dev.mysql.com. 2021. MySQL :: MySQL 5.7 Reference Manual :: 1.2.1 What is MySQL?. [online]
Available at: <https://dev.mysql.com/doc/refman/5.7/en/what-is-mysql.html>

Introduction with CSS


[7] W3schools.com. 2021. CSS Introduction. [online] Available at:
<https://www.w3schools.com/css/css_intro.asp>
Index.php

<?php
session_start();
error_reporting(0);
include('includes/config.php');
?>
<!DOCTYPE HTML>
<html>
<head>
<title>TMS | Tourism Management System</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<script type="applijewelleryion/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,


0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,700,600' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link href="css/font-awesome.css" rel="stylesheet">
<!-- Custom Theme files -->
<script src="js/jquery-1.12.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!--animate-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--//end-animate-->
</head>
<body>
<?php include('includes/header.php');?>
<div class="banner">
<div class="container">
<h1 class="wow zoomIn animated animated" data-wow-delay=".5s" style="visibility: visible;
animation-delay: 0.5s; animation-name: zoomIn;"> TMS - Tourism Management System</h1>
</div>
</div>

<!--- rupes ---->


<div class="container">
<div class="rupes">
<div class="col-md-4 rupes-left wow fadeInDown animated animated" data-wow-delay=".5s"
style="visibility: visible; animation-delay: 0.5s; animation-name: fadeInDown;">
<div class="rup-left">
<a href="offers.html"><i class="fa fa-usd"></i></a>
</div>
<div class="rup-rgt">
<h3>UP TO USD. 50 OFF</h3>
<h4><a href="offers.html">TRAVEL SMART</a></h4>

</div>
<div class="clearfix"></div>
</div>
<div class="col-md-4 rupes-left wow fadeInDown animated animated" data-wow-delay=".5s"
style="visibility: visible; animation-delay: 0.5s; animation-name: fadeInDown;">
<div class="rup-left">
<a href="offers.html"><i class="fa fa-h-square"></i></a>
</div>
<div class="rup-rgt">
<h3>UP TO 70% OFF</h3>
<h4><a href="offers.html">ON HOTELS ACROSS WORLD</a></h4>

</div>
<div class="clearfix"></div>
</div>
<div class="col-md-4 rupes-left wow fadeInDown animated animated" data-wow-delay=".5s"
style="visibility: visible; animation-delay: 0.5s; animation-name: fadeInDown;">
<div class="rup-left">
<a href="offers.html"><i class="fa fa-mobile"></i></a>
</div>
<div class="rup-rgt">
<h3>FLAT USD. 50 OFF</h3>
<h4><a href="offers.html">US APP OFFER</a></h4>

</div>
<div class="clearfix"></div>
</div>

</div>
</div>
<!--- /rupes ---->

<!---holiday---->
<div class="container">
<div class="holiday">

<h3>Package List</h3>
<?php $sql = "SELECT * from tbltourpackages order by rand() limit 4";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<div class="rom-btm">
<div class="col-md-3 room-left wow fadeInLeft animated" data-wow-
delay=".5s">
<img src="admin/pacakgeimages/<?php echo htmlentities($result-
>PackageImage);?>" class="img-responsive" alt="">
</div>
<div class="col-md-6 room-midle wow fadeInUp animated" data-wow-
delay=".5s">
<h4>Package Name: <?php echo htmlentities($result-
>PackageName);?></h4>
<h6>Package Type : <?php echo htmlentities($result-
>PackageType);?></h6>
<p><b>Package Location :</b> <?php echo htmlentities($result-
>PackageLocation);?></p>
<p><b>Features</b> <?php echo htmlentities($result-
>PackageFetures);?></p>
</div>
<div class="col-md-3 room-right wow fadeInRight animated" data-wow-
delay=".5s">
<h5>USD <?php echo htmlentities($result->PackagePrice);?></h5>
<a href="package-details.php?pkgid=<?php echo htmlentities($result-
>PackageId);?>" class="view">Details</a>
</div>
<div class="clearfix"></div>
</div>

<?php }} ?>

<div><a href="package-list.php" class="view">View More Packages</a></div>


</div>
<div class="clearfix"></div>
</div>

<!--- routes ---->


<div class="routes">
<div class="container">
<div class="col-md-4 routes-left wow fadeInRight animated" data-wow-delay=".5s">
<div class="rou-left">
<a href="#"><i class="glyphicon glyphicon-list-alt"></i></a>
</div>
<div class="rou-rgt wow fadeInDown animated" data-wow-delay=".5s">
<h3>80000</h3>
<p>Enquiries</p>
</div>
<div class="clearfix"></div>
</div>
<div class="col-md-4 routes-left">
<div class="rou-left">
<a href="#"><i class="fa fa-user"></i></a>
</div>
<div class="rou-rgt">
<h3>1900</h3>
<p>Regestered users</p>
</div>
<div class="clearfix"></div>
</div>
<div class="col-md-4 routes-left wow fadeInRight animated" data-wow-delay=".5s">
<div class="rou-left">
<a href="#"><i class="fa fa-ticket"></i></a>
</div>
<div class="rou-rgt">
<h3>7,00,00,000+</h3>
<p>Booking</p>
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
</div>

<?php include('includes/footer.php');?>
<!-- signup -->
<?php include('includes/signup.php');?>
<!-- //signu -->
<!-- signin -->
<?php include('includes/signin.php');?>
<!-- //signin -->
<!-- write us -->
<?php include('includes/write-us.php');?>
<!-- //write us -->
</body>
</html>
Pacakage-List.php

<?php
session_start();
error_reporting(0);
include('includes/config.php');
?>
<!DOCTYPE HTML>
<html>
<head>
<title>TMS | Package List</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="applijewelleryion/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,
0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,700,600' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link href="css/font-awesome.css" rel="stylesheet">
<!-- Custom Theme files -->
<script src="js/jquery-1.12.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!--animate-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--//end-animate-->
</head>
<body>
<?php include('includes/header.php');?>
<!--- banner ---->
<div class="banner-3">
<div class="container">
<h1 class="wow zoomIn animated animated" data-wow-delay=".5s" style="visibility: visible;
animation-delay: 0.5s; animation-name: zoomIn;"> TMS- Package List</h1>
</div>
</div>
<!--- /banner ---->
<!--- rooms ---->
<div class="rooms">
<div class="container">

<div class="room-bottom">
<h3>Package List</h3>
<?php $sql = "SELECT * from tbltourpackages";
$query = $dbh->prepare($sql);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<div class="rom-btm">
<div class="col-md-3 room-left wow fadeInLeft animated" data-wow-
delay=".5s">
<img src="admin/pacakgeimages/<?php echo htmlentities($result-
>PackageImage);?>" class="img-responsive" alt="">
</div>
<div class="col-md-6 room-midle wow fadeInUp animated" data-wow-
delay=".5s">
<h4>Package Name: <?php echo htmlentities($result-
>PackageName);?></h4>
<h6>Package Type : <?php echo htmlentities($result-
>PackageType);?></h6>
<p><b>Package Location :</b> <?php echo htmlentities($result-
>PackageLocation);?></p>
<p><b>Features</b> <?php echo htmlentities($result-
>PackageFetures);?></p>
</div>
<div class="col-md-3 room-right wow fadeInRight animated" data-wow-
delay=".5s">
<h5>USD <?php echo htmlentities($result->PackagePrice);?></h5>
<a href="package-details.php?pkgid=<?php echo htmlentities($result-
>PackageId);?>" class="view">Details</a>
</div>
<div class="clearfix"></div>
</div>

<?php }} ?>

</div>
</div>
</div>
<!--- /rooms ---->

<!--- /footer-top ---->


<?php include('includes/footer.php');?>
<!-- signup -->
<?php include('includes/signup.php');?>
<!-- //signu -->
<!-- signin -->
<?php include('includes/signin.php');?>
<!-- //signin -->
<!-- write us -->
<?php include('includes/write-us.php');?>
<!-- //write us -->
</body>
</html>

Package-Details. Php

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(isset($_POST['submit2']))
{
$pid=intval($_GET['pkgid']);
$useremail=$_SESSION['login'];
$fromdate=$_POST['fromdate'];
$todate=$_POST['todate'];
$comment=$_POST['comment'];
$status=0;
$sql="INSERT INTO tblbooking(PackageId,UserEmail,FromDate,ToDate,Comment,status)
VALUES(:pid,:useremail,:fromdate,:todate,:comment,:status)";
$query = $dbh->prepare($sql);
$query->bindParam(':pid',$pid,PDO::PARAM_STR);
$query->bindParam(':useremail',$useremail,PDO::PARAM_STR);
$query->bindParam(':fromdate',$fromdate,PDO::PARAM_STR);
$query->bindParam(':todate',$todate,PDO::PARAM_STR);
$query->bindParam(':comment',$comment,PDO::PARAM_STR);
$query->bindParam(':status',$status,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
$msg="Booked Successfully";
}
else
{
$error="Something went wrong. Please try again";
}

}
?>
<!DOCTYPE HTML>
<html>
<head>
<title>TMS | Package Details</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="applijewelleryion/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,
0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,700,600' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link href="css/font-awesome.css" rel="stylesheet">
<!-- Custom Theme files -->
<script src="js/jquery-1.12.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!--animate-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
<link rel="stylesheet" href="css/jquery-ui.css" />
<script>
new WOW().init();
</script>
<script src="js/jquery-ui.js"></script>
<script>
$(function() {
$( "#datepicker,#datepicker1" ).datepicker();
});
</script>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body>
<!-- top-header -->
<?php include('includes/header.php');?>
<div class="banner-3">
<div class="container">
<h1 class="wow zoomIn animated animated" data-wow-delay=".5s" style="visibility: visible;
animation-delay: 0.5s; animation-name: zoomIn;"> TMS -Package Details</h1>
</div>
</div>
<!--- /banner ---->
<!--- selectroom ---->
<div class="selectroom">
<div class="container">
<?php if($error){?><div class="errorWrap"><strong>ERROR</strong>:<?php echo
htmlentities($error); ?> </div><?php }
else if($msg){?><div class="succWrap"><strong>SUCCESS</strong>:<?php
echo htmlentities($msg); ?> </div><?php }?>
<?php
$pid=intval($_GET['pkgid']);
$sql = "SELECT * from tbltourpackages where PackageId=:pid";
$query = $dbh->prepare($sql);
$query -> bindParam(':pid', $pid, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>

<form name="book" method="post">


<div class="selectroom_top">
<div class="col-md-4 selectroom_left wow fadeInLeft animated" data-wow-
delay=".5s">
<img src="admin/pacakgeimages/<?php echo htmlentities($result-
>PackageImage);?>" class="img-responsive" alt="">
</div>
<div class="col-md-8 selectroom_right wow fadeInRight animated" data-wow-
delay=".5s">
<h2><?php echo htmlentities($result->PackageName);?></h2>
<p class="dow">#PKG-<?php echo htmlentities($result->PackageId);?></p>
<p><b>Package Type :</b> <?php echo htmlentities($result-
>PackageType);?></p>
<p><b>Package Location :</b> <?php echo htmlentities($result-
>PackageLocation);?></p>
<p><b>Features</b> <?php echo htmlentities($result-
>PackageFetures);?></p>
<div class="ban-bottom">
<div class="bnr-right">
<label class="inputLabel">From</label>
<input class="date" id="datepicker" type="text" placeholder="dd-mm-yyyy"
name="fromdate" required="">
</div>
<div class="bnr-right">
<label class="inputLabel">To</label>
<input class="date" id="datepicker1" type="text" placeholder="dd-mm-yyyy"
name="todate" required="">
</div>
</div>
<div class="clearfix"></div>
<div class="grand">
<p>Grand Total</p>
<h3>USD.800</h3>
</div>
</div>
<h3>Package Details</h3>
<p style="padding-top: 1%"><?php echo htmlentities($result-
>PackageDetails);?> </p>
<div class="clearfix"></div>
</div>
<div class="selectroom_top">
<h2>Travels</h2>
<div class="selectroom-info animated wow fadeInUp animated" data-wow-
duration="1200ms" data-wow-delay="500ms" style="visibility: visible; animation-duration: 1200ms;
animation-delay: 500ms; animation-name: fadeInUp; margin-top: -70px">
<ul>

<li class="spe">
<label class="inputLabel">Comment</label>
<input class="special" type="text" name="comment"
required="">
</li>
<?php if($_SESSION['login'])
{?>
<li class="spe" align="center">
<button type="submit" name="submit2" class="btn-primary
btn">Book</button>
</li>
<?php } else {?>
<li class="sigi" align="center" style="margin-top:
1%">
<a href="#" data-toggle="modal" data-
target="#myModal4" class="btn-primary btn" > Book</a></li>
<?php } ?>
<div class="clearfix"></div>
</ul>
</div>

</div>
</form>
<?php }} ?>

</div>
</div>
<!--- /selectroom ---->
<<!--- /footer-top ---->
<?php include('includes/footer.php');?>
<!-- signup -->
<?php include('includes/signup.php');?>
<!-- //signu -->
<!-- signin -->
<?php include('includes/signin.php');?>
<!-- //signin -->
<!-- write us -->
<?php include('includes/write-us.php');?>
</body>
</html>

Tour-History.php

<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['login'])==0)
{
header('location:index.php');
}
else{
if(isset($_REQUEST['bkid']))
{
$bid=intval($_GET['bkid']);
$email=$_SESSION['login'];
$sql ="SELECT FromDate FROM tblbooking WHERE UserEmail=:email and BookingId=:bid";
$query= $dbh -> prepare($sql);
$query-> bindParam(':email', $email, PDO::PARAM_STR);
$query-> bindParam(':bid', $bid, PDO::PARAM_STR);
$query-> execute();
$results = $query -> fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
foreach($results as $result)
{
$fdate=$result->FromDate;

$a=explode("/",$fdate);
$val=array_reverse($a);
$mydate =implode("/",$val);
$cdate=date('Y/m/d');
$date1=date_create("$cdate");
$date2=date_create("$fdate");
$diff=date_diff($date1,$date2);
echo $df=$diff->format("%a");
if($df>1)
{
$status=2;
$cancelby='u';
$sql = "UPDATE tblbooking SET status=:status,CancelledBy=:cancelby WHERE UserEmail=:email and
BookingId=:bid";
$query = $dbh->prepare($sql);
$query -> bindParam(':status',$status, PDO::PARAM_STR);
$query -> bindParam(':cancelby',$cancelby , PDO::PARAM_STR);
$query-> bindParam(':email',$email, PDO::PARAM_STR);
$query-> bindParam(':bid',$bid, PDO::PARAM_STR);
$query -> execute();

$msg="Booking Cancelled successfully";


}
else
{
$error="You can't cancel booking before 24 hours";
}
}
}
}

?>
<!DOCTYPE HTML>
<html>
<head>
<title>TMS | Tourism Management System</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Tourism Management System In PHP" />
<script type="applijewelleryion/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar,
0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,700,600' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Roboto+Condensed:400,700,300' rel='stylesheet' type='text/css'>
<link href='//fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'>
<link href="css/font-awesome.css" rel="stylesheet">
<!-- Custom Theme files -->
<script src="js/jquery-1.12.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!--animate-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>

<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #dd3d36;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
.succWrap{
padding: 10px;
margin: 0 0 20px 0;
background: #fff;
border-left: 4px solid #5cb85c;
-webkit-box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}
</style>
</head>
<body>
<!-- top-header -->
<div class="top-header">
<?php include('includes/header.php');?>
<div class="banner-1 ">
<div class="container">
<h1 class="wow zoomIn animated animated" data-wow-delay=".5s" style="visibility: visible;
animation-delay: 0.5s; animation-name: zoomIn;">TMS-Tourism Management System</h1>
</div>
</div>
<!--- /banner-1 ---->
<!--- privacy ---->
<div class="privacy">
<div class="container">
<h3 class="wow fadeInDown animated animated" data-wow-delay=".5s" style="visibility:
visible; animation-delay: 0.5s; animation-name: fadeInDown;">My Tour History</h3>
<form name="chngpwd" method="post" onSubmit="return valid();">
<?php if($error){?><div class="errorWrap"><strong>ERROR</strong>:<?php echo
htmlentities($error); ?> </div><?php }
else if($msg){?><div class="succWrap"><strong>SUCCESS</strong>:<?php
echo htmlentities($msg); ?> </div><?php }?>
<p>
<table border="1" width="100%">
<tr align="center">
<th>#</th>
<th>Booking Id</th>
<th>Package Name</th>
<th>From</th>
<th>To</th>
<th>Comment</th>
<th>Status</th>
<th>Booking Date</th>
<th>Action</th>
</tr>
<?php

$uemail=$_SESSION['login'];;
$sql = "SELECT tblbooking.BookingId as bookid,tblbooking.PackageId as
pkgid,tbltourpackages.PackageName as packagename,tblbooking.FromDate as fromdate,tblbooking.ToDate as
todate,tblbooking.Comment as comment,tblbooking.status as status,tblbooking.RegDate as
regdate,tblbooking.CancelledBy as cancelby,tblbooking.UpdationDate as upddate from tblbooking join
tbltourpackages on tbltourpackages.PackageId=tblbooking.PackageId where UserEmail=:uemail";
$query = $dbh->prepare($sql);
$query -> bindParam(':uemail', $uemail, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
<tr align="center">
<td><?php echo htmlentities($cnt);?></td>
<td>#BK<?php echo htmlentities($result->bookid);?></td>
<td><a href="package-details.php?pkgid=<?php echo htmlentities($result->pkgid);?>"><?php echo
htmlentities($result->packagename);?></a></td>
<td><?php echo htmlentities($result->fromdate);?></td>
<td><?php echo htmlentities($result->todate);?></td>
<td><?php echo htmlentities($result->comment);?></td>
<td><?php if($result->status==0)
{
echo "Pending";
}
if($result->status==1)
{
echo "Confirmed";
}
if($result->status==2 and $result->cancelby=='u')
{
echo "Canceled by you at " .$result->upddate;
}
if($result->status==2 and $result->cancelby=='a')
{
echo "Canceled by admin at " .$result->upddate;

}
?></td>
<td><?php echo htmlentities($result->regdate);?></td>
<?php if($result->status==2)
{
?><td>Cancelled</td>
<?php } else {?>
<td><a href="tour-history.php?bkid=<?php echo htmlentities($result->bookid);?>" onclick="return
confirm('Do you really want to cancel booking')" >Cancel</a></td>
<?php }?>
</tr>
<?php $cnt=$cnt+1; }} ?>
</table>

</p>
</form>

</div>
</div>
<!--- /privacy ---->
<!--- footer-top ---->
<!--- /footer-top ---->
<?php include('includes/footer.php');?>
<!-- signup -->
<?php include('includes/signup.php');?>
<!-- //signu -->
<!-- signin -->
<?php include('includes/signin.php');?>
<!-- //signin -->
<!-- write us -->
<?php include('includes/write-us.php');?>
</body>
</html>
<?php } ?>

You might also like