Sie sind auf Seite 1von 93

Tourism Management System

Project Name : Tourism Management System -TMS


Technology Implemented : Apache Server
Language Used : PHP
Database : My SQL
User Interface Design : HTML, AJAX,JQUERY,JAVASCRIPT
Web Browser : Mozilla, Google Chrome, IE8,OPERA
Software : XAMPP Server
Modules of Tourism Management System in php
 Admin
 Users
 Guest users
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 users—
 Visit the Website
 Guest user can enquiry
Database Configuration
Open phpmyadmin
Create Database tms
Import database tms.sql (available inside zip package)
Open Your browser put inside browser “http://localhost/tms”
Login Details for admin :
Open Your browser put inside browser “http://localhost/tms/admin”

Username : admin
Password : Test@123
Login Details for user:
Open Your browser put inside browser “http://localhost/tms/”

Username : shrikant@gmail.com
Password : Test@123

Introduction
The Tours and Travel Management System is a web based application. The main purpose of “Tours and
travels management system ” is to provide a convenient way for a customer to book hotels, flight, train
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. In this project, We will make an easier task of searching
places and for booking train, flight 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 ‘Tours and Travels 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.

Objectives
This application is develop to provide best travelling services to the customers and travel agents. We
have developed tours and travel 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 favorable 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 get the Map and navigation system and temperature and weather
information. Tourist can also book tours through our tours and travels management system. This system
also keeps a history of visited places of its users.

Below are the modules of this application

Modules of travel and tour management system


User Management

a. Login.

b. User profile.

c. Update information.

d. Role based rights.

Administrator module :

This module provides administrator related functionality like from this module use can add route
information, bus information, train information, flight information, tour packages, travel packages, bus
seat details, etc. From this module Admin can view daily, weekly and monthly report. This module is
develop for admin of the website and admin can add, delete, edit and view the data related to places,
travels, routes, bookings from this module.

a. Manage user information.

b. Update information.

c. Manage Trips.

d. Manage Transportation.
e. Manage hotel, Bookings.

Hotel Module

Details of the hotels in which the accommodation of the customer will be done during the tours. Details
like availability of meals, station-pickup and drop facility and
contact no. of the hotels are also provided to the customers on special request.

a. Registration (as user)

b. Registration (as Hotel)

c. Search

Transportation Module

a. Flight

b. Train

c. Bus

Package Modules

User can view different tour packages available for tourist. User can select any packages from this
module he can also check the details of various travel agencies. A user can select any travel agency from
this module.

Testimonials module :

This is testimonials module where passenger can post feedback after the journey and they can share
their experience. Users of this application can post their opinions, complaints and suggestions regarding

a. Photos

b. Videos
Payment Module

a. pay payment through PayPal

b. pay payment through Draft

Search Module

a. search City wise hotels, flights, packages, bus, rails and events.

Routes module:

This will display the route information of Source location and destination location. Use can also check
bust routes for his destination. User can check bust rout train tout and car rout for his journey and can
select any rout packages from the available tour packages. From this module use can also get
information related to various routes connecting sources and destinations. For each route, information
such as source, destination, fare, reservation details, pick up points etc are provides.

Reservations module:

This module is for passengers where passenger can reserve the seats by making payment. Using this
module user can book bus ticket or train ticket. From this module user can also book tickets or cancel
previously booked tickets. The module maintains the details of all reservations made so far and allows
administrator to either confirm or reject the bookings.
this portal and services to the administrator. Accordingly, the administrator can take various steps to act
on the complaints and suggestions.

Tour Details :

Details of different types of tours which includes tours like family tours, couple tours, general tours, date
and time of departure and the fair of the tours etc are maintained. As the customer ask for the details of
a particular tour, the tours and travel management system gives the details of the related place where
tourist wants to go and the date and time of the tour, no. of seats available of that particular tour, fair of
the tour, details of discount on a particular tour package if any. Details of the pick-up facilities and the
drop facilities are also maintained if any.

DFD - DATA FLOW DIAGRAM OF TOURS AND TRAVEL MANAGEMENT SYSTEM


CONTEXT LEVEL DFD

ADMIN LEVEL 1 DFD


USER LEVEL 1 DED
LEVEL 2 DFD
TRANSPORTATION
HOTEL

Completed project Travel Management System. Primary UITS The next phase of the Travel
Management System project is to distribute the travel request and Tours and Travels Management
System Project ( in Asp.Net ) is a Website which is developed based on real life. It is very helpful in
business applications. TRAVEL MANAGEMENT SYSTEM, Ask Latest information, Abstract, Report,
Presentation (pdf,doc,ppt) tours and travels management project report, Tours and Travels Project or
hotel and travel management system project is designed in asp.net programming language. Main
objective of this project is to Project Report on Travel and Tourism in Travel Agency travel agents and
tour operators in foreign exchange are exempt − from Online Tourism Management System Project
Report.
PACKAGES
ER DIAGRAM OF TOURS AND TRAVELS MANAGEMENT SYSTEM
ER DIAGRAM USER

System Project .Net Project Source code, Tourist Information System Project with Source Code » Travel
Management System Project in introduction, objective of tour & travel management system tours and
travels management system project report, objectives of tour and travel management system. Travel
project report Project Report on Travel and Tourism in Travel Agency. Tours & Travels Management
System. The Travel Management System (TMS™) Optimize travel and accommodation logistics to
remote sites, reducing risks and costs. Healthcare Travel. Employee training project management
utility Proficient learning management system software For searches similar to pdf project report tour
and travel.

HOTEL BOOKING
SOFTWARE REQUIREMENTS:

Operating System : Windows


FRONT END - PHP

BACK END - MS SQL SERVER


HOME PAGE OF TOURISM MANAGEMENT SYSTEM:-

Source code:-

<?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,3
00' 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>
Login page of admin:-

After entering login details click on sign in.


Source code of admin login:-

<?php

session_start();

include('includes/config.php');

if(isset($_POST['login']))

$uname=$_POST['username'];

$password=md5($_POST['password']);

$sql ="SELECT UserName,Password FROM admin WHERE


UserName=:uname and Password=:password";

$query= $dbh -> prepare($sql);

$query-> bindParam(':uname', $uname, PDO::PARAM_STR);

$query-> bindParam(':password', $password, PDO::PARAM_STR);

$query-> execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

if($query->rowCount() > 0)

$_SESSION['alogin']=$_POST['username'];

echo "<script type='text/javascript'> document.location =


'dashboard.php'; </script>";

} else{
echo "<script>alert('Invalid Details');</script>";

?>

<!DOCTYPE HTML>

<html>

<head>

<title>TMS | Admin Sign in</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">

<link rel="stylesheet" href="css/jquery-ui.css">

<!-- jQuery -->

<script src="js/jquery-2.1.4.min.js"></script>

<!-- //jQuery -->

<link
href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,1
00,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="main-wthree">

<div class="container">
<div class="sin-w3-agile">

<h2>Sign In</h2>

<form method="post">

<div class="username">

<span class="username">Username:</span>

<input type="text" name="username"


class="name" placeholder="" required="">

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

</div>

<div class="password-agileits">

<span class="username">Password:</span>

<input type="password" name="password"


class="password" placeholder="" required="">

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

</div>

<div class="login-w3">

<input type="submit" class="login"


name="login" value="Sign In">

</div>

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

<div class="back">

<a href="../index.php">Back to home</a>

</div>

</div>

</div>

</div>

</body>

</html>

In home page of admin panel here you can see various options.

Manage user:-
Source code:-

<?php

session_start();

error_reporting(0);

include('includes/config.php');

if(strlen($_SESSION['alogin'])==0)

header('location:index.php');

else{

?>
<!DOCTYPE HTML>

<html>

<head>

<title>TMS | Admin manage Users</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">

<!-- jQuery -->

<script src="js/jquery-2.1.4.min.js"></script>

<!-- //jQuery -->

<!-- tables -->


<link rel="stylesheet" type="text/css" href="css/table-style.css" />

<link rel="stylesheet" type="text/css" href="css/basictable.css" />

<script type="text/javascript"
src="js/jquery.basictable.min.js"></script>

<script type="text/javascript">

$(document).ready(function() {

$('#table').basictable();

$('#table-breakpoint').basictable({

breakpoint: 768

});

$('#table-swap-axis').basictable({

swapAxis: true

});

$('#table-force-off').basictable({

forceResponsive: false

});
$('#table-no-resize').basictable({

noResize: true

});

$('#table-two-axis').basictable();

$('#table-max-height').basictable({

tableWrapper: true

});

});

</script>

<!-- //tables -->

<link
href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,1
00,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');?>

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

</div>

<!--heder end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a
href="index.html">Home</a><i class="fa fa-angle-right"></i>Manage
Users</li>

</ol>

<div class="agile-grids">

<!-- tables -->

<div class="agile-tables">

<div class="w3l-table-info">

<h2>Manage Users</h2>
<table id="table">

<thead>

<tr>

<th>#</th>

<th>Name</th>

<th>Mobile No.</th>

<th>Email Id</th>

<th>RegDate </th>

<th>Updation Date</th>

</tr>

</thead>

<tbody>

<?php $sql = "SELECT * from tblusers";

$query = $dbh -> prepare($sql);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;

if($query->rowCount() > 0)

foreach($results as $result)
{ ?>

<tr>

<td><?php echo
htmlentities($cnt);?></td>

<td><?php echo
htmlentities($result->FullName);?></td>

<td><?php echo
htmlentities($result->MobileNumber);?></td>

<td><?php echo
htmlentities($result->EmailId);?></td>

<td><?php echo
htmlentities($result->RegDate);?></td>

<td><?php echo
htmlentities($result->UpdationDate);?></td>

</tr>

<?php $cnt=$cnt+1;} }?>

</tbody>

</table>

</div>

</table>
</div>

<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">
</div>

<!--inner block end here-->

<!--copy rights start here-->

<?php include('includes/footer.php');?>

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->

<!--/sidebar-menu-->

<?php
include('includes/sidebarmenu.php');?>

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

</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function()
{

if (toggle)

{
$(".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 -->

</body>

</html>

<?php } ?>

Manage user:-
Source code:-

<?php

session_start();

error_reporting(0);

include('includes/config.php');

if(strlen($_SESSION['alogin'])==0)

header('location:index.php');

else{

// code for cancel

if(isset($_REQUEST['bkid']))

$bid=intval($_GET['bkid']);

$status=2;

$cancelby='a';

$sql = "UPDATE tblbooking SET status=:status,CancelledBy=:cancelby


WHERE BookingId=:bid";

$query = $dbh->prepare($sql);

$query -> bindParam(':status',$status, PDO::PARAM_STR);


$query -> bindParam(':cancelby',$cancelby , PDO::PARAM_STR);

$query-> bindParam(':bid',$bid, PDO::PARAM_STR);

$query -> execute();

$msg="Booking Cancelled successfully";

if(isset($_REQUEST['bckid']))

$bcid=intval($_GET['bckid']);

$status=1;

$cancelby='a';

$sql = "UPDATE tblbooking SET status=:status WHERE


BookingId=:bcid";

$query = $dbh->prepare($sql);

$query -> bindParam(':status',$status, PDO::PARAM_STR);

$query-> bindParam(':bcid',$bcid, PDO::PARAM_STR);

$query -> execute();

$msg="Booking Confirm successfully";


}

?>

<!DOCTYPE HTML>

<html>

<head>

<title>TMS | Admin manage Bookings</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>

<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />

<link href="css/style.css" rel='stylesheet' type='text/css' />

<link rel="stylesheet" href="css/morris.css" type="text/css"/>

<link href="css/font-awesome.css" rel="stylesheet">

<script src="js/jquery-2.1.4.min.js"></script>
<link rel="stylesheet" type="text/css" href="css/table-style.css" />

<link rel="stylesheet" type="text/css" href="css/basictable.css" />

<script type="text/javascript"
src="js/jquery.basictable.min.js"></script>

<script type="text/javascript">

$(document).ready(function() {

$('#table').basictable();

$('#table-breakpoint').basictable({

breakpoint: 768

});

$('#table-swap-axis').basictable({

swapAxis: true

});

$('#table-force-off').basictable({

forceResponsive: false

});
$('#table-no-resize').basictable({

noResize: true

});

$('#table-two-axis').basictable();

$('#table-max-height').basictable({

tableWrapper: true

});

});

</script>

<link
href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,1
00,400' rel='stylesheet' type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700'
rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<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>

<div class="page-container">

<!--/content-inner-->

<div class="left-content">

<div class="mother-grid-inner">
<!--header start here-->

<?php include('includes/header.php');?>

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

</div>

<!--heder end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a
href="index.html">Home</a><i class="fa fa-angle-right"></i>Manage
Bookings</li>

</ol>

<div class="agile-grids">

<!-- tables -->

<?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 }?>

<div class="agile-tables">

<div class="w3l-table-info">

<h2>Manage Bookings</h2>

<table id="table">
<thead>

<tr>

<th>Booikn id</th>

<th>Name</th>

<th>Mobile No.</th>

<th>Email Id</th>

<th>RegDate </th>

<th>From /To </th>

<th>Comment </th>

<th>Status </th>

<th>Action </th>

</tr>

</thead>

<tbody>

<?php $sql = "SELECT tblbooking.BookingId as bookid,tblusers.FullName


as fname,tblusers.MobileNumber as mnumber,tblusers.EmailId as
email,tbltourpackages.PackageName as pckname,tblbooking.PackageId
as pid,tblbooking.FromDate as fdate,tblbooking.ToDate as
tdate,tblbooking.Comment as comment,tblbooking.status as
status,tblbooking.CancelledBy as cancelby,tblbooking.UpdationDate as
upddate from tblusers join tblbooking on
tblbooking.UserEmail=tblusers.EmailId join tbltourpackages on
tbltourpackages.PackageId=tblbooking.PackageId";
$query = $dbh -> prepare($sql);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

$cnt=1;

if($query->rowCount() > 0)

foreach($results as $result)

{ ?>

<tr>

<td>#BK-<?php echo
htmlentities($result->bookid);?></td>

<td><?php echo
htmlentities($result->fname);?></td>

<td><?php echo
htmlentities($result->mnumber);?></td>

<td><?php echo
htmlentities($result->email);?></td>

<td><a href="update-
package.php?pid=<?php echo htmlentities($result->pid);?>"><?php
echo htmlentities($result->pckname);?></a></td>

<td><?php echo
htmlentities($result->fdate);?> To <?php echo htmlentities($result-
>tdate);?></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=='a')

echo "Canceled by you at " .$result->upddate;

if($result->status==2 and $result->cancelby=='u')

echo "Canceled by User at " .$result->upddate;

?></td>
<?php if($result->status==2)

?><td>Cancelled</td>

<?php } else {?>

<td><a href="manage-bookings.php?bkid=<?php echo


htmlentities($result->bookid);?>" onclick="return confirm('Do you really
want to cancel booking')" >Cancel</a> / <a href="manage-
bookings.php?bckid=<?php echo htmlentities($result->bookid);?>"
onclick="return confirm('Do you really want to cancel booking')"
>Confirm</a></td>

<?php }?>

</tr>

<?php $cnt=$cnt+1;} }?>

</tbody>

</table>

</div>

</table>

</div>
<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>
<!--inner block end here-->

<!--copy rights start here-->

<?php include('includes/footer.php');?>

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->

<!--/sidebar-menu-->

<?php
include('includes/sidebarmenu.php');?>

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

</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function()
{

if (toggle)

{
$(".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 -->

</body>

</html>

<?php } ?>

Manage issues:-
Source code:-

<?php

session_start();

error_reporting(0);

include('includes/config.php');

if(strlen($_SESSION['alogin'])==0)

header('location:index.php');

else{

// code for cancel

if(isset($_REQUEST['eid']))

$eid=intval($_GET['eid']);

$status=1;

$sql = "UPDATE tblenquiry SET Status=:status WHERE id=:eid";

$query = $dbh->prepare($sql);

$query -> bindParam(':status',$status, PDO::PARAM_STR);

$query-> bindParam(':eid',$eid, PDO::PARAM_STR);


$query -> execute();

$msg="Enquiry successfully read";

?>

<!DOCTYPE HTML>

<html>

<head>

<title>TMS | Admin manage Issues</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>

<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />


<link href="css/style.css" rel='stylesheet' type='text/css' />

<link rel="stylesheet" href="css/morris.css" type="text/css"/>

<link href="css/font-awesome.css" rel="stylesheet">

<script src="js/jquery-2.1.4.min.js"></script>

<link rel="stylesheet" type="text/css" href="css/table-style.css" />

<link rel="stylesheet" type="text/css" href="css/basictable.css" />

<script type="text/javascript"
src="js/jquery.basictable.min.js"></script>

<script type="text/javascript">

$(document).ready(function() {

$('#table').basictable();

$('#table-breakpoint').basictable({

breakpoint: 768

});

$('#table-swap-axis').basictable({

swapAxis: true

});
$('#table-force-off').basictable({

forceResponsive: false

});

$('#table-no-resize').basictable({

noResize: true

});

$('#table-two-axis').basictable();

$('#table-max-height').basictable({

tableWrapper: true

});

});

</script>

<link
href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,1
00,400' rel='stylesheet' type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700'
rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />


<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>

<script language="javascript" type="text/javascript">

var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)

if(popUpWin)

if(!popUpWin.closed) popUpWin.close();

popUpWin = open(URLStr,'popUpWin',
'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar
s=yes,resizable=no,copyhistory=yes,width='+600+',height='+600+',left
='+left+', top='+top+',screenX='+left+',screenY='+top+'');

</script>

</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');?>
<div class="clearfix"> </div>

</div>

<!--heder end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a
href="index.html">Home</a><i class="fa fa-angle-right"></i>Manage
Issues</li>

</ol>

<div class="agile-grids">

<!-- tables -->

<?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 }?>

<div class="agile-tables">

<div class="w3l-table-info">

<h2>Manage Issues</h2>

<table id="table">

<thead>

<tr>
<th>#</th>

<th>Name</th>

<th>Mobile No.</th>

<th>Email Id</th>

<th>Issues </th>

<th>Description </th>

<th>Posting date </th>

<th>Action </th>

</tr>

</thead>

<tbody>

<?php $sql = "SELECT tblissues.id as id,tblusers.FullName as


fname,tblusers.MobileNumber as mnumber,tblusers.EmailId as
email,tblissues.Issue as issue,tblissues.Description as
Description,tblissues.PostingDate as PostingDate from tblissues join
tblusers on tblusers.EmailId=tblissues.UserEmail";

$query = $dbh -> prepare($sql);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)

foreach($results as $result)

{ ?>

<tr>

<td width="120">#00<?php
echo htmlentities($result->id);?></td>

<td width="50"><?php echo


htmlentities($result->fname);?></td>

<td width="50"><?php
echo htmlentities($result->mnumber);?></td>

<td width="50"><?php echo


htmlentities($result->email);?></td>

<td width="200"><?php echo


htmlentities($result->issue);?></a></td>

<td width="400"><?php echo


htmlentities($result->Description);?></td>

<td width="50"><?php
echo htmlentities($result->PostingDate);?></td>
<td><a href="javascript:void(0);"
onClick="popUpWindow('http://localhost/tms/admin/updateissue.php?iid
=<?php echo ($result->id);?>');">View </a>

</td>

</tr>

<?php } }?>

</tbody>

</table>

</div>

</table>

</div>

<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();
if(scrollpos >=navoffeset){

$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

<?php include('includes/footer.php');?>

<!--COPY rights end here-->

</div>

</div>
<!--//content-inner-->

<!--/sidebar-menu-->

<?php
include('includes/sidebarmenu.php');?>

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

</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function()
{

if (toggle)

$(".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 -->

</body>
</html>

<?php } ?>

Manage enquries:-

Source code:-

<?php

session_start();

error_reporting(0);

include('includes/config.php');

if(strlen($_SESSION['alogin'])==0)

header('location:index.php');
}

else{

// code for cancel

if(isset($_REQUEST['eid']))

$eid=intval($_GET['eid']);

$status=1;

$sql = "UPDATE tblenquiry SET Status=:status WHERE id=:eid";

$query = $dbh->prepare($sql);

$query -> bindParam(':status',$status, PDO::PARAM_STR);

$query-> bindParam(':eid',$eid, PDO::PARAM_STR);

$query -> execute();

$msg="Enquiry successfully read";

}
?>

<!DOCTYPE HTML>

<html>

<head>

<title>TMS | Admin manage Bookings</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>

<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />

<link href="css/style.css" rel='stylesheet' type='text/css' />

<link rel="stylesheet" href="css/morris.css" type="text/css"/>

<link href="css/font-awesome.css" rel="stylesheet">

<script src="js/jquery-2.1.4.min.js"></script>

<link rel="stylesheet" type="text/css" href="css/table-style.css" />

<link rel="stylesheet" type="text/css" href="css/basictable.css" />

<script type="text/javascript"
src="js/jquery.basictable.min.js"></script>
<script type="text/javascript">

$(document).ready(function() {

$('#table').basictable();

$('#table-breakpoint').basictable({

breakpoint: 768

});

$('#table-swap-axis').basictable({

swapAxis: true

});

$('#table-force-off').basictable({

forceResponsive: false

});

$('#table-no-resize').basictable({

noResize: true

});
$('#table-two-axis').basictable();

$('#table-max-height').basictable({

tableWrapper: true

});

});

</script>

<link
href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,1
00,400' rel='stylesheet' type='text/css'/>

<link href='//fonts.googleapis.com/css?family=Montserrat:400,700'
rel='stylesheet' type='text/css'>

<link rel="stylesheet" href="css/icon-font.min.css" type='text/css' />

<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>

<div class="page-container">

<!--/content-inner-->

<div class="left-content">

<div class="mother-grid-inner">

<!--header start here-->

<?php include('includes/header.php');?>

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

</div>
<!--heder end here-->

<ol class="breadcrumb">

<li class="breadcrumb-item"><a
href="index.html">Home</a><i class="fa fa-angle-right"></i>Manage
Enquiries</li>

</ol>

<div class="agile-grids">

<!-- tables -->

<?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 }?>

<div class="agile-tables">

<div class="w3l-table-info">

<h2>Manage Enquiries</h2>

<table id="table">

<thead>

<tr>

<th>Ticket id</th>

<th>Name</th>
<th>Mobile No./ Email</th>

<th>Subject </th>

<th>Description </th>

<th>Posting date </th>

<th>Action </th>

</tr>

</thead>

<tbody>

<?php $sql = "SELECT * from tblenquiry";

$query = $dbh -> prepare($sql);

$query->execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

if($query->rowCount() > 0)

foreach($results as $result)

{ ?>

<tr>
<td width="120">#TCKT-<?php
echo htmlentities($result->id);?></td>

<td width="50"><?php echo


htmlentities($result->FullName);?></td>

<td width="50"><?php
echo htmlentities($result->MobileNumber);?> /<br />

<?php echo $result-


>EmailId;?></td>

<td width="200"><?php echo


htmlentities($result->Subject);?></a></td>

<td width="400"><?php echo


htmlentities($result->Description);?></td>

<td width="50"><?php
echo htmlentities($result->PostingDate);?></td>

<?php if($result-
>Status==1)

?><td>Read</td>

<?php } else {?>


<td><a href="manage-enquires.php?eid=<?php echo
htmlentities($result->id);?>" onclick="return confirm('Do you really want
to read')" >Pending</a>

</td>

<?php } ?>

</tr>

<?php } }?>

</tbody>

</table>

</div>

</table>

</div>

<!-- script-for sticky-nav -->

<script>

$(document).ready(function() {

var navoffeset=$(".header-main").offset().top;

$(window).scroll(function(){

var scrollpos=$(window).scrollTop();

if(scrollpos >=navoffeset){
$(".header-main").addClass("fixed");

}else{

$(".header-main").removeClass("fixed");

});

});

</script>

<!-- /script-for sticky-nav -->

<!--inner block start here-->

<div class="inner-block">

</div>

<!--inner block end here-->

<!--copy rights start here-->

<?php include('includes/footer.php');?>

<!--COPY rights end here-->

</div>

</div>

<!--//content-inner-->
<!--/sidebar-menu-->

<?php
include('includes/sidebarmenu.php');?>

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

</div>

<script>

var toggle = true;

$(".sidebar-icon").click(function()
{

if (toggle)

$(".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 -->

</body>
</html>

<?php } ?>

And in manage pages a user can update our facility.


Now we discuss about user login.

Here a option of log in or signup.

Fill the data in signup section.


Home page of log in page in user panel after signup.

Source code of login homepage:-

<?php

session_start();

include('includes/config.php');

if(isset($_POST['login']))

$uname=$_POST['username'];

$password=md5($_POST['password']);
$sql ="SELECT UserName,Password FROM admin WHERE
UserName=:uname and Password=:password";

$query= $dbh -> prepare($sql);

$query-> bindParam(':uname', $uname, PDO::PARAM_STR);

$query-> bindParam(':password', $password, PDO::PARAM_STR);

$query-> execute();

$results=$query->fetchAll(PDO::FETCH_OBJ);

if($query->rowCount() > 0)

$_SESSION['alogin']=$_POST['username'];

echo "<script type='text/javascript'> document.location =


'dashboard.php'; </script>";

} else{

echo "<script>alert('Invalid Details');</script>";

?>
<!DOCTYPE HTML>

<html>

<head>

<title>TMS | Admin Sign in</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">

<link rel="stylesheet" href="css/jquery-ui.css">

<!-- jQuery -->

<script src="js/jquery-2.1.4.min.js"></script>
<!-- //jQuery -->

<link
href='//fonts.googleapis.com/css?family=Roboto:700,500,300,100italic,1
00,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="main-wthree">

<div class="container">

<div class="sin-w3-agile">

<h2>Sign In</h2>

<form method="post">

<div class="username">

<span class="username">Username:</span>

<input type="text" name="username"


class="name" placeholder="" required="">

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

<div class="password-agileits">

<span class="username">Password:</span>

<input type="password" name="password"


class="password" placeholder="" required="">

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

</div>

<div class="login-w3">

<input type="submit" class="login"


name="login" value="Sign In">

</div>

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

</form>

<div class="back">

<a href="../index.php">Back to home</a>

</div>

</div>

</div>

</div>
</body>

</html>

Here following options are available.

Home

About

Tour packages

Privacy policy

Terms of use

Contact us

Enquiry

Now a user can log out in the top right corner of the screen.
Source code:-

<?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['alogin']);

session_destroy(); // destroy session

header("location:index.php");

?>

Das könnte Ihnen auch gefallen