Professional Documents
Culture Documents
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/admin”
put inside browser “
Username : admin
http://localhost/tms”
Password : Test@123
Login Details for
Login
admin :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.
a. Login.
b. User profile.
c. Update information.
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.
f. Update information.
g. Manage Trips.
h. 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.
c. Search
Transportation Module
d. Flight
e. Train
f. 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
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.
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:
Source code:-
<?php
session_start();
error_reporting(0);
include('includes/config.php');
?>
<!DOCTYPE HTML>
<html>
<head>
<title>TMS | Tourism Management System</title>
<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'>
<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">
</div>
</div>
<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">
</div>
<div class="rup-rgt">
<h4><a
href="offers.html">TRAVEL
SMART</a></h4>
</div>
<div class="clearfix"></div>
</div>
<div class="rup-left">
<div class="rup-rgt">
</div>
<div class="clearfix"></div>
</div>
<div class="rup-left">
</div>
<div class="rup-rgt">
</div>
<div
class="clearfix"></div>
</div>
</div>
</div>
<!---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>
<p><b>Features</b> <?php
echo htmlentities($result->PackageFetures);?></p>
</div>
<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
class="clearfix"></div>
</div>
<div class="routes">
<div class="container">
<div class="rou-left">
</div>
<h3>80000</h3>
<p>Enquiries</p>
</div>
<div class="clearfix"></div>
</div>
<div class="rou-left">
</div>
<div class="rou-rgt">
<h3>1900</h3>
<p>Regestered users</p>
</div>
<div class="clearfix"></div>
</div>
<div class="rou-left">
</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');?>
<?php include('includes/signup.php');?>
<?php include('includes/signin.php');?>
<?php include('includes/write-us.php');?>
</body>
</html>
Login page of
admin:-
<?php
session_start();
include('includ
es/
config.php');
if(isset($_POS
T['login']))
$uname=$_P
OST['usernam
e'];
$password=m
d5($_POST['p
assword']);
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
echo "<script>alert('Invalid Details');</script>";
?>
<!DOCTYPE HTML>
<html>
<head>
<script src="js/jquery-2.1.4.min.js"></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'>
</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
>
<div
class="clearfix"></div>
</div>
<div class="login-w3">
</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>
<script src="js/jquery-2.1.4.min.js"></script>
<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'>
</head>
<body>
<div class="page-container">
<!--/content-inner-->
<div class="left-content">
<div class="mother-grid-inner">
<?php include('includes/header.php');?>
</div>
<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">
<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>
$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).read
y(function() {
var
navoffeset
=$
(".header-
main").of
fset().top
;
$
(window).
scroll(func
tion(){
var scrollpos=$(window).scrollTop();
if(scrollpos >=navoffeset){
$(".header-
main").addClass("fixed");
}
e
l
s
e
{
$
</div>
<?php include('includes/footer.php');?>
</div>
</div>
<!--//content-inner-->
<!--/sidebar-menu-->
<?php
include('includes/sidebarmenu.php');?>
<
d
i
v
c
l
a
s
s
=
"
c
l
e
a
r
f
i
$(".page-
container").addClass("sidebar-collapsed").removeClass("sidebar-
collapsed-back");
("#menu
span").css({"positi
on":"absolute"});
lse
$(".page-
container").removeClass("sidebar-collapsed").addClass("sidebar-
collapsed-back");
etTimeout(function
() {
("#menu
span").css({"positi
on":"relative"});
, 400);
o
g
gl
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<script src="js/bootstrap.min.js"></script>
</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{
if(isset($_REQUEST['bkid']))
{
$bid=intval($_GET['b
kid']);
$status=2;
$cancelby='a';
$query = $dbh->prepare($sql);
if(isset($_REQUEST['bckid']))
$bcid=intval($_GET['bckid']);
$status=1;
$cancelby='a';
$query = $dbh->prepare($sql);
$query-> bindParam(':bcid',$bcid,
PDO::PARAM_STR);
?>
<!
DOCTYP
E
HTML>
<html
>
<head
>
<title>T
MS |
Admin
manage
Bookin
gs</titl
e>
<meta
name="
viewport
"
content
="width
=device
-width,
initial-
<link rel="stylesheet" type="text/css" href="css/table-style.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'>
<style>
.errorWrap {
padding: 10px;
margin: 0 0 20px
0;
background: #fff;
}
.succWrap{ pad
ding: 10px;
margin: 0 0 20px 0;
background: #fff;
-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-->
<!--header start here-->
<?php include('includes/header.php');?>
</div>
<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">
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>Man
age 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>Comment </th>
<th>Status </th>
<th>Action </th>
</tr>
</thead>
<tbody>
$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($resu
lt->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";
?></td>
<?php if($result->status==2)
?><td>Cancelled</td>
<?php }?>
</tr>
</tbody>
</table>
</div>
</table>
</div>
<!-- script-for sticky-nav --
>
<script>
$
(document).read
y(function() {
var
navoffeset
=$
(".header-
main").of
fset().top
;
$
(window).
scroll(func
tion(){
var scrollpos=$(window).scrollTop();
if(scrollpos >=navoffeset){
$(".header-
main").addClass("fixed");
}
e
l
s
e
{
$
(
"
.
<!--inner block end here-->
<?php include('includes/footer.php');?>
</div>
</div>
<!--//content-inner-->
<!--/sidebar-menu-->
<?php
include('includes/sidebarmenu.php');?>
<
d
i
v
c
l
a
s
s
=
"
c
l
e
a
r
f
i
x
"
$(".page-
container").addClass("sidebar-collapsed").removeClass("sidebar-
collapsed-back");
("#menu
span").css({"positi
on":"absolute"});
lse
$(".page-
container").removeClass("sidebar-collapsed").addClass("sidebar-
collapsed-back");
etTimeout(function
() {
("#menu
span").css({"positi
on":"relative"});
, 400);
o
g
gl
<script src="js/jquery.nicescroll.js"></script>
<script src="js/scripts.js"></script>
<script src="js/bootstrap.min.js"></script>
</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{
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,
$query -> execute();
$msg="Enquiry successfully
read";
?>
<!
DOCTYP
E
HTML>
<html
>
<head
>
<title>T
MS |
Admin
manage
Issues
</title>
<meta
name="
viewport
"
<link href="css/style.css" rel='stylesheet' type='text/css' />
<script src="js/jquery-2.1.4.min.js"></script>
<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'>
.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{ pad
ding: 10px;
margin: 0 0 20px 0;
background: #fff;
-webkit-box-shadow:
0 1px 1px 0
rgba(0,0,0,.1);
box-shadow: 0 1px
1px 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">
<?php include('includes/header.php');?>
<div class="clearfix"> </div>
</div>
<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">
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>Man
age Issues</h2>
<table
id="table">
<the
ad>
<th>#</th>
<th>Name</th>
<th>Mobile No.</th>
<th>Email Id</th>
<th>Issues </th>
<th>Description </th>
<th>Action </th>
</tr>
</thead>
<tbody>
$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->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>
$(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>
<div class="inner-block">
</div>
<?php include('includes/footer.php');?>
</div>
</div>
<!--//content-inner-->
<!--/sidebar-menu-->
<?php
include('includes/sidebarmenu.php');?>
<
d
i
v
c
l
a
s
s
=
"
c
l
e
a
r
f
i
x
"
>
<
/
d
i
v
>
<
$(".page-
container").removeClass("sidebar-collapsed").addClass("sidebar-
collapsed-back");
etTimeout(function
() {
("#menu
span").css({"positi
on":"relative"});
, 400);
o
g
gl
e
=
!toggle;
});
<
/script>
<!--js -->
<script
src="js/jquery.nicescroll.js"></script>
<script
src="js/scripts.js"></script>
</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{
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";
}
?>
<!
DOCTYP
E
HTML>
<html
>
<head
>
<title>T
MS |
Admin
manage
Bookin
gs</titl
e>
<meta
name="
viewport
"
content
="width
=device
-width,
initial-
scale=1
">
<meta
http-
equiv="
Content-
<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'>
<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-
}
.succWrap{ pad
ding: 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">
<!--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">
<?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>Man
age Enquiries</h2>
<table
id="table">
<the
ad>
<tr
>
<th
<th>Mobile No./
Email</th>
<th>Subject </th>
<th>Description </th>
<th>Action </th>
</tr>
</thead>
<tbody>
$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 />
<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>
</td>
<?php } ?>
</tr>
<?php } }?>
</tbody>
</table>
</div>
</table>
</div>
<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>
<div class="inner-block">
</div>
<?php include('includes/footer.php');?>
</div>
</div>
<!--//content-inner-->
<!--/sidebar-menu-->
<?php
include('includes/sidebarmenu.php');?>
<
d
i
v
c
l
a
s
s
=
"
c
l
e
a
r
f
i
x
"
>
<
/
d
i
v
>
<
/
d
$(".page-
container").removeClass("sidebar-collapsed").addClass("sidebar-
collapsed-back");
etTimeout(function
() {
("#menu
span").css({"positi
on":"relative"});
, 400);
o
g
gl
e
=
!toggle;
});
<
/script>
<!--js -->
<script
src="js/jquery.nicescroll.js"></script>
<script
src="js/scripts.js"></script>
</html>
<?php } ?>
<?php
session_start();
include('includ
es/
config.php');
if(isset($_POS
T['login']))
$uname=$_P
OST['usernam
e'];
$password=m
$sql ="SELECT UserName,Password FROM admin
WHERE UserName=:uname and
Password=:password";
$query-> execute();
$results=$query->fetchAll(PDO::FETCH_OBJ);
if($query->rowCount() > 0)
{
$_SESSION['alogin']=$_POST['username'];
} else{
?>
<!DOCTYPE HTML>
<html>
<head>
<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'>
</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>
<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">
</div>
<div
class="clearfix"></div>
</form>
<div
class="back">
<a
href="../index.php">Back to
home</a>
</div>
</div>
</body>
</html>
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("sessio
n.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");
?>