Department of Computer Application Project Report On: "Travel Record Management System"
Department of Computer Application Project Report On: "Travel Record Management System"
Project Report
On
“TRAVEL RECORD MANAGEMENT SYSTEM”
CERTIFICATE
This is to certify that the project work entitled
“TRAVEL RECORD MANAGEMENT SYSTEM”
Was succesfully carried out by in partial fulfilment for the
award of the Master degree of Computer
Application(MCA) in 5 semester prescribed by the
Bangalore University during the academic year 2019-
2020.
1.
2. Signature of HOD
1
CONTENTS
1. Introduction 5
1.1.Synopsis
1.2.Objectives
1.3.Tools
2. Requirement analysis 7
2.1.System environment
2.2.Preliminary investigation
2.3.Functional Requirement
2.4.System Requirement Specification
2.5.Design
3. Project overview 10
3.1.System Designing
3.2.Code Designing
3.3.Input Designing
4. ER diagram 11
5. Data flow diagram(DFD) 14
6. PHP 17
7. HTML 20
8. CSS 22
9. JavaScript 23
10.MySQL 24
11.Testing 27
12.Database and tables 28
13.Coding 31
14.Pages (output) 49
15.Conclusion 54
16.Bibiliography 54
2
Introduction
1.1 Synopsis:
Title: Travel Destination
The Tourism Management System is a web based application. The main purpose of “Tourism
management system” is to provide a convenient way for a customer to book hotels, and bus
for tour purposes. The objective of this project is to develop a system that automates the
processes and activities of a travel agency.
Reason for the Project:
In this project, we will make an easier task of searching places and for booking hotels or bus.
In the present system a customer has to approach various agencies to find details of places
and to book tickets. This often requires a lot of time and effort. We provide approach skills to
critically examine how a tourist visits and its ability to operate in an appropriate way when
dealing with the consequences of tourism, locally, regionally, and nationally including visitor
security and ecological influences. It is tedious for a customer to plan a particular journey and
have it executed properly. The project ‘Tourism Management System’ is developed to
replace the currently existing system, which helps in keeping records of the customer details
of destination as well as payment received.
Aims & Objectives
This application is develop to provide best travelling services to the customers and travel
agents. We have developed tourism management system to provide a search platform where a
tourist can find their tour places according to their choices. This system also helps to promote
responsible and interesting tourism so that people can enjoy their holidays at their favourable
places. This system also helps to develop tourism with different cultures so that they enrich
the tourism experience and build pride. We develop this system to create and promote forms
of tourism that provide healthy interaction opportunities for tourists and locals and increase
better understanding of different cultures, customs, lifestyles, traditional knowledge and
believes. This system also provide a better way to connect with various events.
This system also gives tours related information like which places are tourist attractions,
cities, and provinces. Tourist can also book tours through our tourism management system.
This system also keeps a history of visited places of its users.
Project Modules:
Users
Admin
Guest
3
Users
User can register yourself.
User can login with valid email and password.
Forgot Password(user Can recover own password)
Tour Booking
Manage Booking
Generate Ticket(Regarding Complaint)
Change Password
Admin
Admin can create Package
Manage packages(Create,Update)
Manage Users
Manage Inquiries
Manage issues
Manage Booking
Manage Pages
Change Password
Admin Dashboard
Guest User
1.2 Objectives:
The Tourism Management System is a web based application and maintains a centralized
repository of all related information. The Objective of this project is to develop a system that
automates the process and activities a travel agency and customer details. The purpose is to
design a system using which one can perform all operations related to travelling and sight
seeing
4
1.3 Tools:
PHP
HTML
Java script
Xampp server for database
500 MB RAM
1GB hard disk.
Requirement Analysis
Problem Analysis:
Problem analysis involves the client and the user. One of the major activities during the
problem analysis is how to organize the information obtained, so that the information can be
effectively evaluated for the completeness and consistency.
The Tourism Management which is used to organize or book the hotels and places are wants
by customers and people. Why it is used only for this project, is because to get better idea
and information about the all types of places and function from minimum requirement to
make this project user or customers friendly.
Taking bookings
Giving better satisfaction.
Feasibility Study:
A feasibility analysis involves a details assessment the need, value and practically of
proposed enterprises such as systems development. The process of designing and
implementing record keeping system has significant accountability and resources
implications for an organization.
5
Feasibility analysis will help you to make informed and transparent decision crucial
points during the development process to determine whether it is operationally, economically
and technically realistic to proceed with the particular course of action.
Most feasibility studies are distinguished for both user and analysis. First, the study often
presupposes that when the feasibility documents are prepared, the analyst is in a position to
evaluate solutions. Second, more studies tend to overlook the confusion inherent in the
system development, the constraints and the assumed attitudes to determine whether a project
is worth doing, feasibility study is done. Three important tests of the feasibility are studied-
Technical feasibility:
This system requires server having fast data transfer speed and strong capacity, so that
staff can get the information quickly from the terminals connected to the server. This high
quality server is not available in the Tourism Management System and it is to be proposed.
Economic feasibility:
System is economically feasible to the organization, to run enquiry and boutique
management system maintains lot of software are being developed and lot of money are not
spend every month on their salary and other allowances.
Operating feasibility:
Proposed projects are beneficial, as it will meet the requirement of the both user as
well as admin.
6
A detailed description of all the range of valid input must be specified, this place deals with
requirement of user for this system.
The user is willing to participating in conferring the system also requires user-friendly
interfacing.
2.5 Design:
System design is the bridge between requirements specification and the final
solution. Design mythology is a semantic approach to satisfy the requirements.
7
PROJECT OVERVIEW
Code Designing:
First place of implementation is coding. Coding can be done in two ways one by
automatic program code and other by programmers manually.
Written code. A code generator is a suite of programs that matches the input to an appropriate
code template and from these produces modules of code, the code is made simple in such a
way that another programmer can easily understand and work on that in future. The crucial
phases in the system development life cycle are the successful implementation good the new
system design.
In this output id the coding phase. It is primarily intend for detecting errors introduced in this
phase. The goal is to see how consistent the code is with the design. Code verification falls
under the categories dynamic and static.
Input Designing:
In the input design, user oriented inputs are converted in to a computer based
format. It also includes determine the record media, method of inputs, speed of capture and
entry on to the screen. Data entry accepts commands and data through a keyboard.
The major approach to input design is the menu and the prompt design. In each alternative,
the users are predefined. The dataflow diagram indicates logical data flow, data stores,
sources and destination. Input data are collected and organized in to a group of similar data.
8
ER DIAGRAM
An entity relationship(ER) diagram is a specialized graphics that illustrations the inter
relationship between entities in a diagram often use symbols to represent different types of
information.
SYMBOL DESCRIPTION
Entity
Weak Entity
Attribute
Key Attribute
Multi Valued
Attribute
Relationship
Identification
Relationship
Set to
Relationship
9
Username Password
Admin_login
has
Admin_panel
Home
Booking Packages
Dashboard
Manage
Booking
Manage Pages
10
User_name Password
User-login
has
My_Profile
Signout
User-panel
Issue_Booking
Change-password
My_Application_History
11
The data flow diagram is graphical representation of the “flow” of data through an
information system. DFD’s can be used as the visualisation of data processing (structured
design).
On a DFD, data item flow an external data source or an internal data store to an internal data
source or an internal data sink, via an internal process
A DFD provides no information about the timing of process, or about whether processes will
operate in sequence or in parallel.it is therefore quote different from a flowchart, which
shows the flow of contro0l through an algorithm, allowing a reader to determine what
circumstance, but not what kind of data will be input to an output from the system, where the
data will come from and go to, nor where the data will be (all of which are shown on an
DFD).
12
ADMIN LEVEL 1 DFD
13
USER LEVEL 1 DED
14
PHP:-
Introduction
PHP’s support for Apache and MySQL further increases its popularity. Apache is now the
most-used web-server in the world, and PHP can be compiled as an Apache module. MySQL
is a powerful free SQL database, and PHP provides a comprehensive set of functions for
working with it. The combination of Apache, MySQL and PHP is all but unbeatable.
That doesn’t mean that PHP cannot work in other environments or with other tools. In
fact, PHP supports an extensive list of databases and web-servers. While in the mid-1990s it
was ok to build sites, even relatively large sites, with hundreds of individual hard-coded
HTML pages, today’s webmasters are making the most of the power of databases to manage
their content more effectively and to personalize their sites according to individual user
preferences.
15
Reasons for using PHP
There are some indisputable great reasons to work with PHP. As an open source product,
PHP is well supported by a talented production team and a committed user community.
Furthermore, PHP can be run on all the major operating systems with most servers.
Basic is easy any interpreted language should be easy to learn. Since you are isolated from
the system (no pointers to use, no memory to allocate). The other advantage that all modern
interpreted languages share is good associative array constructs.
It’s Performance
While we can build an application that serves millions of pages a day on a server, when we
really look at the performance of the language it sucks. We are still orders of magnitude from
real performance. Not only that, but since PHP is designed around a single process model our
ability to share data structures or connection pool resources is left to native code libraries.
a. PHP
b. C
c. C++
We can modify it if you need a hole in your head! Technically the point is that it’s an open
source project and they release patches often. You’re point is that the community is actively
working out the bugs. So, what any active language is doing this...
Unfortunately, C, C++ and Perl have all “died” at this point and will pretty much remain
static at their current functionality.
16
It’s Portability
C is portable; it’s just the OS bits that aren’t. A lot PHP isn’t portable to Windows since
people don’t use the OS abstractions to avoid some problems.
PHP Syntax
You cannot view the PHP source code by selecting “View source” in the browser – you will
only see the output from the PHP file, which is plain HTML. This is because the scripts are
executed on the server before the result is sent back to the browser.
A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block
can be placed anywhere in the document.
On servers with shorthand support enabled you can start a
scripting block with <? And end with ?>.However, for maximum compatibility, we
recommend that you use the standard form (<?php) rather than the shorthand form.
A PHP file normally contains HTML tags, just like an HTML file, and some PHP scripting
code.
17
HTML
HTML or Hyper Text Markup Language is the standard markup language used to create
web pages.
HTML was created in 1991 by Tim Berners-Lee at CERN in Switzerland. It was designed to
allow scientists to display and share their research.
HTML is written in the form of HTML elements consisting of tags enclosed in angle brackets
(like <html>). HTML tags most commonly come in pairs like <h1> and </h1>, although
some tags represent empty elements and so are unpaired, for example <img>. The first tag in
a pair is the start tag, and the second tag is the end tag (they are also called opening tags and
closing tags).
The purpose of a web browser is to read HTML documents and compose them into visible or
audible web pages. The browser does not display the HTML tags, but uses the tags to
interpret the content of the page. HTML describes the structure of a website semantically
along with cues for presentation, making it a markup language rather than a programming
language.
HTML elements form the building blocks of all websites. HTML allows images and objects
to be embedded and can be used to create interactive forms. It provides a means to create
structured documents by denoting structural semantics for text such as headings, paragraphs,
lists, links, quotes and other items. It can embed scripts written in languages such as Java
Script which affect the behavior of HTML web pages.
18
HTML 5
HTML5 will be the new standard for HTML. The previous version of HTML, HTML 4.01,
came in 1999. The web has changed a lot since then. HTML5 is still a work in progress.
However, the major browsers support many of the new HTML5 elements and APIs.
HTML5 is cooperation between the World Wide Web Consortium (W3C) and the Web
Hypertext Application Technology Working Group (WHATWG).
WHATWG was working with web forms and applications, and W3C was working with
XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML.
Some rules for HTML5 were established:
a) New features should be based on HTML, CSS, DOM, and JavaScript
b) Reduce the need for external plug-ins (like Flash)
c) Better error handling
d) More markup to replace scripting
e) HTML5 should be device independent
f) The development process should be visible to the public
19
CSS
CSS tutorial or CSS 3 tutorial provides basic and advanced concepts of CSS technology.
Our CSS tutorial is developed for beginners and professionals. The major points of CSS are
given below:
Cascading Style Sheets (CSS) is a style sheet language used for describing the look and
formatting of a document written in a markup language. While most often used to style web
pages and user interfaces written in HTML and XHTML, the language can be applied to any
kind of XML document, including plain XML, SVG and XUL. CSS is a cornerstone
specification of the web and almost all web pages use CSS style sheets to describe their
presentation.
CSS can also allow the same markup page to be presented in different styles for different
rendering methods, such as on-screen, in print, by voice (when read out by a speech-based
browser or screen reader) and on Braille-based, tactile devices. It can also be used to allow
the web page to display differently depending on the screen size or device on which it is
being viewed. While the author of a document typically links that document to a CSS file,
readers can use a different style sheet, perhaps one on their own computer, to override the one
the author has specified.
With plain HTML you define the colors and sizes of text and tables throughout your pages. If
you want to change a certain element you will therefore have to work your way through the
document and change it. With CSS you define the colors and sizes in "styles". Then as you
write your documents you refer to the styles. Therefore: if you change a certain style it will
change the look of your entire site. Another big advantage is that CSS offers much more
detailed attributes than plain HTML for defining the look and feel of your site.
20
JAVASCRIPT
JavaScript is a prototype-based scripting language with dynamic typing and has first-class
functions. Its syntax was influenced by C. JavaScript copies many names and naming
conventions from Java, but the two languages are otherwise unrelated and have very different
semantics. The key design principles within JavaScript are taken from the Self and Scheme
programming languages. It is a multi-paradigm language, supporting object-oriented,
imperative, and functional programming styles.
The application of JavaScript in use outside of web pages—for example, in PDF documents,
site-specific browsers, and desktop widgets—is also significant. Newer and faster JavaScript
VMs and platforms built upon them (notably Node.js) have also increased the popularity of
JavaScript for server-side web applications. On the client side, JavaScript was traditionally
implemented as an interpreted language, but just-in-time compilation is now performed by
recent (post-2012) browsers.
JavaScript was formalized in the ECMA Script language standard and is primarily used as
part of a web browser (client-side JavaScript). This enables programmatic access to objects
within a host environment.
It is the language for HTML, for the Web, for computers, servers, laptops, tablets, smart
phones, and more.
21
MySQL:
Introduction:
The database has become an integral part of almost every human's life. Without it, many
things we do would become very tedious, perhaps impossible tasks. Banks, universities, and
libraries are three examples of organizations that depend heavily on some sort of database
system. On the Internet, search engines, online shopping, and even the website naming
convention would be impossible without the use of a database. A database that is
implemented and interfaced on a computer is often termed a database server.
One of the fastest SQL (Structured Query Language) database servers currently on
the market is the MySQL server, developed by T.c.X. DataKonsultAB. MySQL, available for
download at www.mysql.com, offers the database programmer with an array of options and
capabilities rarely seen in other database servers. MySQL is free of charge for those wishing
to use it for private and commercial use. Those wishing to develop applications specifically
using MySQL should consult MySQL's licensing section, as there is charge for licensing the
product.
22
Reasons to Use MySQL
The MySQL database server provides the ultimate in scalability, sporting the capacity to
handle deeply embedded applications with a footprint of only 1MB to running massive data
warehouses holding terabytes of information. Platform flexibility is a stalwart feature of
MySQL with all flavours of Linux, UNIX, and Windows being supported.
High Performance
High Availability
Rock-solid reliability and constant availability are hallmarks of MySQL, with customers
relying on MySQL to guarantee around-the-clock uptime. MySQL offers a variety of high-
availability options from high-speed master/slave replication configurations, to specialized
Cluster servers offering instant failover, to third party vendors offering unique high-
availability solutions for the MySQL database server.
MySQL offers one of the most powerful transactional database engines on the market.
Features include complete ACID (atomic, consistent, isolated, durable) transaction support,
unlimited row-level locking, distributed transaction capability, and multi-version transaction
support where readers never block writers and vice-versa.
MySQL is the de-facto standard for high-traffic web sites because of its high-performance
query engine, tremendously fast data inserts capability, and strong support for specialized
web functions like fast full text searches.
23
Strong Data Protection
Because guarding the data assets of corporations is the number one job of database
professionals, MySQL offers exceptional security features that ensure absolute data
protection. In terms of database authentication, MySQL provides powerful mechanisms for
ensuring only authorized users have entry to the database server, with the ability to block
users down to the client machine level being possible.
Management Ease
MySQL offers exceptional quick-start capability with the average time from software
download to installation completion being less than fifteen minutes. This rule holds true
whether the platform is Microsoft Windows, Linux, Macintosh, or UNIX.
b) Fully multi-threaded using kernel threads. It can easily use multiple CPUs if they are
available.
e) Relatively easy to add other storage engines. This is useful if you want to provide an SQL
interface for an in-house database.
24
Testing:
To understand testing technique that is geared to discover program faults and introduces
guidelines for interfaces testing and easy to understand specific approaches to object-oriented
testing.
Testing of individual program components is usually the responsibility of the component
developer.
Tests are derived from the developers experience and testing of groups of component
integrated to create a system or subsystem the responsibility of an independent testing team
and the tests are based on a system specification tests. Complete systems or sub systems
composed of integrated components.
Integration testing should be black-box testing with tests derived from the specifications.
Main difficulty is localizing errors and incremental, integration reduces this problem. Testing
is an expensive process phase. Testing workbenches provide a range of tools to reduce the
time required and the total testing costs.
Testing performs very critical role for quality assurance and for ensuring the reliability of the
software.
The success of testing for errors in progress depends critically on the tests.
The basic levels of testing are:
Unit testing
Integration testing
System testing
Acceptance testing
Testing Process:
The testing starts with a test plan. The plan specifies all the test cases required. Then
the test unit is executed with the test cases. The reports re produced and analysed when
testing of some units is complete, that unit can be combined with other untested modules to
from new testing units, testing of unit involves.
Select case cases
Execute test cases
Evaluate the result of testing
25
Database and Tables:
Booking:
26
Issues:
Users:
27
Packeges:
Enquiry:
28
CODING
CONNECTION
<?php
// DB credentials.
define('DB_HOST','localhost');
define('DB_USER','root');
define('DB_PASS','');
define('DB_NAME','carrental');
// Establish database connection.
try
{
$dbh = new PDO("mysql:host=".DB_HOST.";dbname=".DB_NAME,DB_USER,
DB_PASS,array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES 'utf8'"));
}
catch (PDOException $e)
{
exit("Error: " . $e->getMessage());
}
?>
HOMEPAGE
<?php
session_start();
error_reporting(0);
include('includes/config.php');
?>
<!DOCTYPE HTML>
<html>
<head>
<title>GC | Globe Consultancy </title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
29
<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;"> GC - Globe Consultacy</h1>
</div>
</div>
</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;">
30
<div class="rup-left">
<a href="offers.html"><i class="fa fa-mobile"></i></a>
</div>
<div class="rup-rgt">
<h3>FLAT Rs. 25% 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 }} ?>
31
<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');?>
32
<!-- //write us -->
</body>
</html>
LOGIN
<?php
session_start();
if(isset($_POST['signin']))
{
$email=$_POST['email'];
$password=md5($_POST['password']);
$sql ="SELECT EmailId,Password FROM tblusers WHERE EmailId=:email and
Password=:password";
$query= $dbh -> prepare($sql);
$query-> bindParam(':email', $email, PDO::PARAM_STR);
$query-> bindParam(':password', $password, PDO::PARAM_STR);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
$_SESSION['login']=$_POST['email'];
echo "<script type='text/javascript'> document.location = 'package-list.php'; </script>";
} else{
echo "<script>alert('Invalid Details');</script>";
}
}
?>
</ul>
</div>
<div class="login-right">
<form method="post">
<h3>Signin with your account </h3>
33
<input type="text" name="email" id="email" placeholder="Enter your Email" required="">
<input type="password" name="password" id="password" placeholder="Password" value=""
required="">
<h4><a href="forgot-password.php">Forgot password</a></h4>
<input type="submit" name="signin" value="SIGNIN">
</form>
</div>
<div class="clearfix"></div>
</div>
<p>By logging in you agree to our <a href="page.php?type=terms">Terms and
Conditions</a> and <a href="page.php?type=privacy">Privacy Policy</a></p>
</div>
</div>
</div>
</div>
</div>
SIGNUP
<?php
error_reporting(0);
if(isset($_POST['submit']))
{
$fname=$_POST['fname'];
$mnumber=$_POST['mobilenumber'];
$email=$_POST['email'];
$password=md5($_POST['password']);
$sql="INSERT INTO tblusers(FullName,MobileNumber,EmailId,Password)
VALUES(:fname,:mnumber,:email,:password)";
$query = $dbh->prepare($sql);
$query->bindParam(':fname',$fname,PDO::PARAM_STR);
$query->bindParam(':mnumber',$mnumber,PDO::PARAM_STR);
$query->bindParam(':email',$email,PDO::PARAM_STR);
$query->bindParam(':password',$password,PDO::PARAM_STR);
$query->execute();
$lastInsertId = $dbh->lastInsertId();
if($lastInsertId)
{
$_SESSION['msg']="You are Scuccessfully registered. Now you can login ";
header('location:thankyou.php');
}
else
{
$_SESSION['msg']="Something went wrong. Please try again.";
header('location:thankyou.php');
}
}
?>
<!--Javascript for check email availabilty-->
<script>
34
function checkAvailability() {
$("#loaderIcon").show();
jQuery.ajax({
url: "check_availability.php",
data:'emailid='+$("#email").val(),
type: "POST",
success:function(data){
$("#user-availability-status").html(data);
$("#loaderIcon").hide();
},
error:function (){}
});
}
</script>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-
labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-
hidden="true">×</span></button>
</div>
<section>
<div class="modal-body modal-spa">
<div class="login-grids">
<div class="login">
<div class="login-left">
<ul>
<li><a class="fb" href="#"><i></i>Facebook</a></li>
<li><a class="goog" href="#"><i></i>Google</a></li>
</ul>
</div>
<div class="login-right">
<form name="signup" method="post">
<h3>Create your account </h3>
<input type="text" value="" placeholder="Full Name" name="fname" autocomplete="off"
required="">
<input type="text" value="" placeholder="Mobile number" maxlength="10"
name="mobilenumber" autocomplete="off" required="">
<input type="text" value="" placeholder="Email id" name="email" id="email"
onBlur="checkAvailability()" autocomplete="off" required="">
<span id="user-availability-status" style="font-size:12px;"></span>
<input type="password" value="" placeholder="Password" name="password" required="">
<input type="submit" name="submit" id="submit" value="CREATE ACCOUNT">
</form>
</div>
<div class="clearfix"></div>
</div>
35
<p>By logging in you agree to our <a href="page.php?type=terms">Terms and
Conditions</a> and <a href="page.php?type=privacy">Privacy Policy</a></p>
</div>
</div>
</div>
PACKAGE-LIST
<?php
session_start();
error_reporting(0);
include('includes/config.php');
?>
<!DOCTYPE HTML>
<html>
<head>
<title>TMS | Booking 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;"> Global Consultancy- Booking List</h1>
</div>
</div>
<!--- /banner ---->
36
<!--- rooms ---->
<div class="rooms">
<div class="container">
<div class="room-bottom">
<h3>Booking List</h3>
</div>
</div>
</div>
<!--- /rooms ---->
37
<!-- write us -->
<?php include('includes/write-us.php');?>
<!-- //write us -->
</body>
</html>
LOGOUT
<?php
session_start();
$_SESSION = array();
if (ini_get("session.use_cookies")) {
$params = session_get_cookie_params();
setcookie(session_name(), '', time() - 60*60,
$params["path"], $params["domain"],
$params["secure"], $params["httponly"]
);
}
unset($_SESSION['login']);
session_destroy(); // destroy session
header("location:index.php");
?>
DASHBOARD
<?php
session_start();
include('includes/config.php');
if(strlen($_SESSION['alogin'])==0)
{
header('location:index.php');
}
else{
?>
<!DOCTYPE HTML>
<html>
<head>
<title>TMS | Admin Dashboard</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="application/x-javascript"> addEventListener("load", function()
{ setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link rel="stylesheet" href="css/morris.css" type="text/css"/>
<!-- Graph CSS -->
<link href="css/font-awesome.css" rel="stylesheet">
38
<!-- jQuery -->
<script src="js/jquery-2.1.4.min.js"></script>
<!-- //jQuery -->
<link href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,100,400'
rel='stylesheet' type='text/css'/>
<link href='//fonts.googleapis.com/css?family=Montserrat:400,700' rel='stylesheet'
type='text/css'>
<!-- lined-icons -->
<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />
<!-- //lined-icons -->
</head>
<body>
<div class="page-container">
<!--/content-inner-->
<div class="left-content">
<div class="mother-grid-inner">
<!--header start here-->
<?php include('includes/header.php');?>
<!--header end here-->
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.html">Home</a> <i class="fa fa-angle-
right"></i></li>
</ol>
<!--four-grids here-->
<div class="four-grids">
<div class="col-md-3 four-grid">
<div class="four-agileits">
<div class="icon">
<i class="glyphicon glyphicon-user" aria-hidden="true"></i>
</div>
<div class="four-text">
<h3>User</h3>
</div>
</div>
</div>
<div class="col-md-3 four-grid">
<div class="four-agileinfo">
<div class="icon">
<i class="glyphicon glyphicon-list-alt" aria-hidden="true"></i>
</div>
39
<div class="four-text">
<h3>Bookings</h3>
<?php $sql1 = "SELECT BookingId from tblbooking";
$query1 = $dbh -> prepare($sql1);
$query1->execute();
$results1=$query1->fetchAll(PDO::FETCH_OBJ);
$cnt1=$query1->rowCount();
?>
<h4><?php echo htmlentities($cnt1);?></h4>
</div>
</div>
</div>
<div class="col-md-3 four-grid">
<div class="four-w3ls">
<div class="icon">
<i class="glyphicon glyphicon-folder-open" aria-hidden="true"></i>
</div>
<div class="four-text">
<h3>Enquiries</h3>
<?php $sql2 = "SELECT id from tblenquiry";
$query2= $dbh -> prepare($sql2);
$query2->execute();
$results2=$query2->fetchAll(PDO::FETCH_OBJ);
$cnt2=$query2->rowCount();
?>
<h4><?php echo htmlentities($cnt2);?></h4>
</div>
</div>
</div>
<div class="col-md-3 four-grid">
<div class="four-wthree">
<div class="icon">
<i class="glyphicon glyphicon-briefcase" aria-hidden="true"></i>
</div>
<div class="four-text">
<h3>Toatal packages</h3>
<?php $sql3 = "SELECT PackageId from tbltourpackages";
$query3= $dbh -> prepare($sql3);
$query3->execute();
$results3=$query3->fetchAll(PDO::FETCH_OBJ);
$cnt3=$query3->rowCount();
?>
<h4><?php echo htmlentities($cnt3);?></h4>
</div>
40
</div>
</div>
<div class="clearfix"></div>
</div>
<div class="four-grids">
<div class="col-md-3 four-grid">
<div class="four-w3ls">
<div class="icon">
<i class="glyphicon glyphicon-folder-open" aria-hidden="true"></i>
</div>
<div class="four-text">
<h3>Issues Riaised</h3>
<?php $sql5 = "SELECT id from tblissues";
$query5= $dbh -> prepare($sql5);
$query5->execute();
$results5=$query5->fetchAll(PDO::FETCH_OBJ);
$cnt5=$query5->rowCount();
?>
<h4><?php echo htmlentities($cnt5);?></h4>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
<!--//four-grids here-->
<div class="inner-block">
</div>
<!--inner block end here-->
<!--copy rights start here-->
<?php include('includes/footer.php');?>
</div>
</div>
<!--/sidebar-menu-->
<?php include('includes/sidebarmenu.php');?>
<div class="clearfix"></div>
</div>
<script>
var toggle = true;
$(".sidebar-icon").click(function() {
if (toggle)
41
{
$(".page-container").addClass("sidebar-collapsed").removeClass("sidebar-collapsed-back");
$("#menu span").css({"position":"absolute"});
}
else
{
$(".page-container").removeClass("sidebar-collapsed").addClass("sidebar-collapsed-back");
setTimeout(function() {
$("#menu span").css({"position":"relative"});
}, 400);
}
toggle = !toggle;
});
</script>
<!--js -->
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<!-- Bootstrap Core JavaScript -->
<script src="js/bootstrap.min.js"></script>
<!-- /Bootstrap Core JavaScript -->
<!-- morris JavaScript -->
<script src="js/raphael-min.js"></script>
<script src="js/morris.js"></script>
<script>
$(document).ready(function() {
//BOX BUTTON SHOW AND CLOSE
jQuery('.small-graph-box').hover(function() {
jQuery(this).find('.box-button').fadeIn('fast');
}, function() {
jQuery(this).find('.box-button').fadeOut('fast');
});
jQuery('.small-graph-box .box-close').click(function() {
jQuery(this).closest('.small-graph-box').fadeOut(200);
return false;
});
//CHARTS
function gd(year, day, month) {
return new Date(year, month - 1, day).getTime();
}
graphArea2 = Morris.Area({
element: 'hero-area',
padding: 10,
behaveLikeLine: true,
gridEnabled: false,
gridLineColor: '#dddddd',
axes: true,
resize: true,
42
smooth:true,
pointSize: 0,
lineWidth: 0,
fillOpacity:0.85,
data: [
{period: '2014 Q1', iphone: 2668, ipad: null, itouch: 2649},
{period: '2014 Q2', iphone: 15780, ipad: 13799, itouch: 12051},
{period: '2014 Q3', iphone: 12920, ipad: 10975, itouch: 9910},
{period: '2014 Q4', iphone: 8770, ipad: 6600, itouch: 6695},
{period: '2015 Q1', iphone: 10820, ipad: 10924, itouch: 12300},
{period: '2015 Q2', iphone: 9680, ipad: 9010, itouch: 7891},
{period: '2015 Q3', iphone: 4830, ipad: 3805, itouch: 1598},
{period: '2015 Q4', iphone: 15083, ipad: 8977, itouch: 5185},
{period: '2016 Q1', iphone: 10697, ipad: 4470, itouch: 2038},
{period: '2016 Q2', iphone: 8442, ipad: 5723, itouch: 1801}
],
lineColors:['#ff4a43','#a2d200','#22beef'],
xkey: 'period',
redraw: true,
ykeys: ['iphone', 'ipad', 'itouch'],
labels: ['All Visitors', 'Returning Visitors', 'Unique Visitors'],
pointSize: 2,
hideHover: 'auto',
resize: true
});
});
</script>
</body>
</html>
<?php } ?>
CHECK_AVAILABILITY
<?php
require_once("includes/config.php");
// code admin email availablity
if(!empty($_POST["emailid"])) {
$email= $_POST["emailid"];
if (filter_var($email, FILTER_VALIDATE_EMAIL)===false) {
43
$results = $query -> fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query -> rowCount() > 0)
{
echo "<span style='color:red'> Email already exists .</span>";
echo "<script>$('#submit').prop('disabled',true);</script>";
} else{
echo "<span style='color:green'> Email available for Registration .</span>";
echo "<script>$('#submit').prop('disabled',false);</script>";
}
}
}
?>
PROFILE
<?php
session_start();
error_reporting(0);
include('includes/config.php');
if(strlen($_SESSION['login'])==0)
{
header('location:index.php');
}
else{
if(isset($_POST['submit6']))
{
$name=$_POST['name'];
$mobileno=$_POST['mobileno'];
$email=$_SESSION['login'];
?>
<!DOCTYPE HTML>
<html>
<head>
<title>GC | Globe Consultancy </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" />
44
<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>
45
</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;">Change
Password</h3>
<form name="chngpwd" method="post">
<?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
$useremail=$_SESSION['login'];
$sql = "SELECT * from tblusers where EmailId=:useremail";
$query = $dbh -> prepare($sql);
$query -> bindParam(':useremail',$useremail, PDO::PARAM_STR);
$query->execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
$cnt=1;
if($query->rowCount() > 0)
{
foreach($results as $result)
{ ?>
46
<p style="width: 350px;">
<b>Reg Date :</b>
<?php echo htmlentities($result->RegDate);?>
</p>
<?php }} ?>
OUTPUT-SCREEN
Homepage
47
Package-List
Admin-login
48
Dashboard
User-login
49
User-profile-setting
Booking
50
Package-Details
Manage Packages:
51
CONCLUSION
While developing the system a conscious effort has been made to create and develop a
software package, making use of available tools, techniques and resources-that would
generate a proper system.
While making the system, an eye has been kept on making it as user-friendly, as cost-
effective and as flexible as possible. As such one may hope that the system will be acceptable
to any user and will adequately meet his/her needs.
As in case of any system development processes where there are a number of shortcomings,
there have been some shortcoming in the development of this system also. The project is still
under modification.
BIBILIOGRAPHY
52
Website: www.xampp.com
www.google.com
www.youtube.com
53