Sie sind auf Seite 1von 61

A

PROJECT REPORT
ON

Tours and Travels


System
UNDER THE PARTIAL FULFILMENT OF UNIVERSITY OF

MUMBAI REQUIREMENT FOR THE COURSE OF

TYBSC(COMPUTER SCIENCE) -:

-: SUBMITTED BY :-

MR. ASIF JABBAR KHAN

-:GUIDED BY:-

Prof. NISHA KHOTHAWADE

DEPARTMENT OF COMPUTER SCIENCE VPM’S R Z SHAH

COLLEGE OF ARTS,SCIENCE ,COMMERCE MULUND(EAST)-81

UNIVERSITY OF MUMBAI

2019-2020

1
Certificate

This is to certify that the project entitled STUDENT INFORMATION


SYSTEM Undertaken at the VPM’s R.Z. Shah College of Arts , Science and
Commerce by Mr.ASIF KHAN Seat no. 1952014 in partial fulfillment of
B.Sc. CS degree (Semester- V) Examination had not been submitted for any
other examination and does not form part of any other course undergone by the
candidate.
It is further certified that he has completed all required phases of the project.

Signature of Internal Guide Signature

HOD / In-charge / Coordinator

Signature of the External Signature of the Principal

College seal

2
INDEX
Sr.no. Topics Page No.

01 Acknowledgement 3

02 Overview

2.1 Abstract 4

2.2 Declaration 5

2.3 Objective 6

2.4 Introducation 7

2.5 Requirement Specification 9

2.6 Feasibility Study 10

3.0 SDLC Methodology 12

4.0 System Design

4.1 Data Flow Diagram(DFD) 17

4.2 UML- Use Case Diagram 20

4.3 ER Diagram 22

5.0 Gantt Chart 24

6.0 Class Diagram 25

6.1 Architecture Flow(N-Tier) 26

7.0 Results 29

8.0 Code Implementation 32

8.1 Screen Shots 50

9.0 Conculsion 60

10.0 Bibliography 61

3
ACKNOWLEDGEMENT
I like to extend our gratitude to Dr. B S AJIT KUMAR our principal of
VPM R.Z. Shah College of Arts, Science & Commerce, who extended moral support,
conductive work environment and the much needed inspiration to conclude this
project in time.

I take this opportunity to thank Prof. RAJSHRI PRABHU, Head of the


Department and all professors of the Department Computer Science of VPM R.Z.
Shah College of Arts, Science & Commerce, for giving us an opportunity to study in
the Institute and the must needed guidance throughout the duration of the course.

Prof.NISHA KHOTHAWADE provided the guidance and necessary


support during each phase of the project.

Last but not the least, I would like to thank friends and family for the support and

encouragement they have given me during this course of work.


Thanking you.

4
ABSTRACT

As the name specifies “TOURS AND TRAVELS MANAGEMENT” is a

software developed for managing tour booking.

Identification of the drawbacks of the existing system leads to the designing of

computerized system that will be compatible to the existing system with the system Which

is more user friendly and more GUI oriented. We can improve the efficiency of the system,

thus overcome the drawbacks of the existing system.

• Less human error

• Strength and strain of manual labour can be reduced

• High security

• Data redundancy can be avoided to some extent

• Data consistency

• Easy to handle

• Easy data updating

• Easy record keeping

• Backup data can be easily generated

• Effective and User Friendly

5
Declaration

I , ASIF KHAN , student of VPM’s R.Z. Shah College of Arts, Science &

Commerce Mithagar Road, Mulund(E), Mumbai-81, studying in TYBSC

COMPUTER SCIENCE hereby declare that I have completed this project on

TOURS AND TRAVELS SYSTEM during the academic year 2019- 2020.

The information submitted is true and original to the best of my knowledge.

Date :

Place:

ASIF JABBAR KHAN

BSC in (COMPUTER SCIENCE)

6
OBJECTIVE

o The objective of the project is to develop a system that automates the processes
and activities of a travel and tourism agency.
o The purpose is to design a system using which one can perform all operations
related to traveling and sight-seeing.
o In the present system a customer has to approach various agencies to find
details of places and to book tickets.
o This often requires a lot of time and effort.
o A customer may not get the desired information from these offices and often
the customer may be misguided.
o It is tedious for a customer to plan a particular journey and have it executed
properly.
o The proposed system is a web based application and maintains a centralized
repository of all related information.

o The system allows one to easily access the relevant information and make
necessary travel arrangements.

o Users can decide about places they want to visit and make bookings online for
travel and accommodation.

7
INTRODUCTION :

This Project is based on “Apache Server Technology Implemented Is Used.


User can save its time during Online Service,User can Manage
Booking.There are three Module has been used in TMS has ADMIN,USER
and GUEST User.
User can all benefits which they want in our service all tour pacakages they can
view book and generate Tickets through Admin.

➢ Objective of TMS :
1. Make all the system computerize
2. Reduce time consumption
3. All system management are automated
4. Centralized database management
5. Easy operation for operator of the system
6. No paper work requirement

Advantages :
• This system can be used to view all the package details and accordingly select
to User choice own package.
• This system can also be used to view Enquiry Form about Tickets and Travels
also get Package details about it in very quick time.
• This Web Site user will be able make quick decision in after selecting
Package for User’s Own Choice.

Disadvantages :
• This website cannot be run on Visual Studio, Netbeans,Android Studio any
other Platform Except XAMPP Server OR MAMP SERVER .
• This Tours and Travels Website only provide In All Over India Only
• The website cannot be run on Smart Mobile Phone.

8
REQUIREMENT SPECIFICATION

A Software Requirement Specification (SRS) is a description of a software system to


be developed . It lays out functional and non-functional requirements, and may
include a set of use cases that describe the user interactions that the software must
provide.

SOFTWARE REQUIREMNTS :-

Front End : All Windows Version Platform.(MAMP Server)


Back End :- MYSQL Database,PHP,JQUERY,JAVASCRIPT,HTML,.CSS
Development Tool :- PHP Programming Run Through MAMP Server

2.1 Hardware Configuration

1. Pentium IV Processor
2. 512 MB RAM
3. 40GB HDD
4. 1024 * 768 Resolution Color Monitor

2.2 Software Configuration

1. OS : Windows XP

2.PHP Triad (PHP5.6, MySQL, Apache, and PHPMyAdmin)

9
➢ 2.3 Software Features

2.3.1 PHP TRIAD

PHPTriad installs a complete working PHP/MySQL server environment on Windows

platforms (9x/ NT). Installs PHP, MySQL, Apache, and PHPMyAdmin.

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 Or MAMP Server”

➢ Modules of Tourism Management System in php:-


• Admin
• Users
• Guest users

➢ Users—
1)User can register yourself.

2)User can login with valid email and password.

3)Forgot Password(user Can recover own password)

4)Tour Booking

5)Manage Booking

6)Generate Ticket(Regarding Complaint)

7)change Password

10
➢ Admin–
1)Admin can create Package

2)Manage packages(Create,Update)

3)Manage Users

4)Manage Inquiries

5)Manage issues

6)Manage Booking

7)Manage Pages

8)Change Password

9)Admin Dashboard

Guest users—
1)Visit the Website

2)Guest user can enquiry

11
FEASIBILITY STUDY:

To provide flexibility to the users, the interfaces have been developed that are accessible
through a browser. The GUI’S at the top level have been categorized as

1. Administrative user interface

2. The operational or generic user interface


The ‘administrative user interface’ concentrates on the consistent information that is
practically, part of the organizational activities and which needs proper authentication for
the data collection. These interfaces help the administrators with all the transactional states
like Data insertion, Data deletion and Date updation along with the extensive data search
capabilities.

FEASIBILITY REPORT:

Preliminary investigation examines project feasibility, the likelihood the system will
be useful to the organization. The main objective of the feasibility study is to test the
Technical, Operational and Economical feasibility for adding new modules and debugging
old running system. All systems are feasible if they are given unlimited resources and
infinite time. There are aspects in the feasibility study portion of the preliminary
investigation:--

➢ Technical Feasibility
➢ Operation Feasibility
➢ Economic Feasibility

12
❑ TECHNICAL FEASIBILITY:

The technical issue usually raised during the feasibility stage of the investigation includes
the following:

• Does the necessary technology exist to do what is suggested?


• Do the proposed equipments have the technical capacity to hold the data required to
use the new system?
• Will the proposed system provide adequate response to inquiries, regardless of the
number or location of users?
• Can the system be upgraded if developed?
• Are there technical guarantees of accuracy, reliability, ease of access and data
security?

❑ OPERATIONAL FEASIBILITY:-

Proposed projects are beneficial only if they can be turned out into information
systems, which will meet the organization’s operating requirements. Operational feasibility
aspects of the project are to be taken as an important part of the project implementation.
Some of the important issues raised are to test the operational feasibility of a project
includes the following: -

• Is there sufficient support for the management from the users?


• Will the system be used and work properly if it is being developed and implemented?
• Will there be any resistance from the user that will undermine the possible application
benefits?
This system is targeted to be in accordance with the above-mentioned issues.
Beforehand, the management issues and user requirements have been taken into
consideration. So there is no question of resistance from the users that can undermine the
possible application benefits.

13
The well-planned design would ensure the optimal utilization of the computer resources
and would help in the improvement of performance status.

❑ ECONOMIC FEASIBILITY:

A system can be developed technically and that will be used if installed must still be
a good investment for the organization. In the economical feasibility, the development cost
in creating the system is evaluated against the ultimate benefit derived from the new
systems. Financial benefits must equal or exceed the costs. The system is economically
feasible. It does not require any additional hardware or software.

14
SDLC Methodology:

This document play a vital role in the development of life cycle (SDLC) as it
describes the complete requirement of the system. It means for use by developers
and will be the basic during testing phase. Any changes made to the requirements in
the future will have to go through formal change approval process.

SPIRAL MODEL was defined by Barry Boehm in his 1988 article, “A spiral Model
of Software Development and Enhancement. This model was not the first model to
discuss iterative development, but it was the first model to explain why the iteration
models.

The steps for Spiral Model can be generalized as follows:

• The new system requirements are defined in as much details as possible. This
usually involves interviewing a number of users representing all the external or internal
users and other aspects of the existing system.

• A preliminary design is created for the new system.

• A first prototype of the new system is constructed from the preliminary design. This
is usually a scaled-down system, and represents an approximation of the
characteristics of the final product.

• A second prototype is evolved by a fourfold procedure:

1. Evaluating the first prototype in terms of its strengths, weakness, and risks.

2. Defining the requirements of the second prototype.

3. Planning an designing the second prototype.

4. Constructing and testing the second prototype.

15
The following diagram shows how a spiral model acts like:

Advantages:

• Estimates(i.e. budget, schedule etc .) become more relistic as work progresses,


because important issues discoved earlier.

• It is more able to cope with the changes that are software development generally.

16
SYSTEM DESIGN

Data Flow Diagram (Context level Diagram):-


❑ Users :

17
❑ B. Admin :

18
❑ C. Guest :

19
❖ UML-USE CASE DIAGRAM

20
21
❑ ER Diagram(Users)

22
ER Diagram(Admin)

23
❖ Gantt Chart-

Tours and Travels


Gantt Chart 3% 3% 6% 3%
7% 3%
3% 7%
4%
3%
3% 10%
4%

10% 14%
6% 3%
10%

Task1 Acknowledgement 20-May Task2 Overview 21-May

Task3 Objectives 30-May Task4 Study OF the System 15-Jun

Task5 Functional Requirements 28-Jun Task6 Number of Modules 30-Jun

Task7 Feasibility Study 05-Jul Task8 SDLC Methodology 08-Jul

Task9 System Design 12-Jul Task10 DFD,UML,ER Diagrams 27-Jul

Task11 System Flow Chart 10-Aug Task12 Gantt Chart 13-Aug

Task13 Class Diagram 24-Aug Task14 Database Tables and Structure 29-Aug

Task15 Architecture Flow (N-Tier) 02-Sep Task15 Development Phase (Coding's) 07-Sep

Task16 Implementation (Screen Shots) 09-Sep Task17 Reference and Bibliography 10-Sep

24
CLASS DIAGRAM

25
❑ Architecture flow :(N-Tier)

N-Tier Applications can easily implement the concepts of Distributed


Application Design and Architecture. The N-Tier Applications provide strategic
benefits to Enterprise Solutions. While 2-tier, client-server can help us create quick
and easy solutions and may be used for Rapid Prototyping, they can easily become
maintenance and security night mare The N-tier Applications provide specific
advantages that are vital to the business continuity of the enterprise. Typical features
of a real life n-tier may include the following:

• Security

• Availability and Scalability

• Manageability

• Easy Maintenance

• Data Abstraction

The above mentioned points are some of the key design goals of a successful n-tier
application that intends to provide a good Business Solution.

Definition:

Simply stated, an n-tier application helps us distribute the overall functionality into
various tiers or layers:

• Presentation Layer

• Business Logic layer

• Data Link Layer

• Database/Data Store

Each layer can be developed independently of the other provided that it adheres to
the standards and communicates with the other layers as per the specifications. This
is the one of the biggest advantages of the n-tier application. Each layer can

26
potentially treat the other layer as a ‘Block-Box’. In other words, each layer does not
care how other layer processes the data as long as it sends the right data in a correct
format.

Presentation Layer

Request Response
Business Logic
Layer

Data Link

Layer

Data Base

Fig: N-Tier Architecture

27
1.Presentation Layer:

Also called as client layer, comprises of components that are dedicated to


presenting the data to the user. For example: Windows/Web Forms and buttons, edit
boxes, Text boxes, labels, grids, etc.

2.Business Logic Layer:

This layer encapsulates the Business rules or the business logic of the
encapsulations. To have a separate layer for business logic is of a great advantage.
This is because any changes in Business Rules can be easily handled in this layer.
3.Data Link Layer:

This layer comprises of components that help in accessing the Database. If used
in the right way, this layer provides a level of abstraction for the database structures.
Simply put changes made to the database, tables, etc do not affect the rest of the
application because of the Data Access layer. The different application layers send
the data requests to this layer and receive the response from this layer.

4.Database Layer:

This layer comprises of the Database Components such as DB Files, Tables,


Views, etc. The Actual database could be created using SQL Server, Oracle, Flat files,
etc. In an n-tier application, the entire application can be implemented in such a way
that it is independent of the actual Database.

28
❑ RESULTS

Database tables and Structure

29
30
31
❖ DEVELOPMENT PHASE:

• System index.php Source Code:

Every Web application based System has source codes.There are some Source Codes of my

“Tours and Travels Management“ are given below with explanation.

❖ “index.php” source codes:

<?php
session_start();
error_reporting(0);
include('includes/config.php');
?>
<!DOCTYPE HTML>
<html>
<head>
<title>Tours and Travels Trip</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>

32
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;"><font
color="Black">TOURS and TRAVELS </font></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">
<i class="fa fa-usd"></i>
</div>
<div class="rup-rgt">
<h3>UP TO INR. 499 OFF</h3>
<h4>TRAVEL SMART</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">
<i class="fa fa-h-square"></i>
</div>
<div class="rup-rgt">
<h3>UP TO 50% OFF</h3>
<h4>ON HOTELS ACROSS WORLD</h4>

</div>

33
<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">
<i class="fa fa-mobile"></i>
</div>
<div class="rup-rgt">
<h3>FLAT INR. 379 OFF</h3>
<h4>OUR 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>

34
<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><font color="black">INR</font> <?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">
<h3>5,98,460+</h3>
<p> <font color="Black">Enquiries</font></p>
</div>

<p><font color="Black">Regestered users </font></p>


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

35
<div class="col-md-4 routes-left wow fadeInRight animated" data-
wow-delay=".5s">
<div class="rou-left">
<a href="#"><i class="Fi Fa-ticket"></i></a>
</div>
<div class="rou-rgt">
<h3>9,85,597+</h3>
<p><font color="Black">Booking </font></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');?>
</body>
</html>

36
• “Create ClientAccount.php” Source Code:

<?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>";

<div class="modal fade" id="myModal4" tabindex="-1" role="dialog" aria-


labelledby="myModalLabel">

<div class="modal-dialog" role="document">

<div class="modal-content modal-info">

<div class="modal-header">

37
<button type="button" class="close"
data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>

</div>

<div class="modal-body modal-spa">

<div class="login-grids">

<div class="login">

<div class="login-
left">

<ul>

<li><a class="fb" href="https://en-


gb.facebook.com/login/"><i></i>Facebook</a></li>

<li><a class="goog"
href="https://accounts.google.com/signin/v2/identifier?service=CPanel&flowName=GlifWeb
SignIn&flowEntry=ServiceLogin"><i></i>Google+</a></li>

color="blue"><font size="5">Signin with your account </h3>

<input type="text" name="email" id="email" placeholder="Enter your Email"


required="" autocomplete='off'>

<input type="password" name="password" id="password" placeholder="Password"


value="" required="">

<h4>

<href="forgot-password.php"><font color="Red"><font size="4">Forgot


password?</font></font><font color="black"><font size="4">Recover

<input type="submit" name="signin" value="SIGNIN">

</form> </div>

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

</div>

<p><font color="black"><font size="3">By logging in you agree to our


</font><a href="page.php?type=terms"><font size="3">Terms and Conditions</font></a>
and <a href="page.php?type=privacy"><font size="3">Privacy Policy</font></a></p>

</div>

</div>

</div>

• ConfigDatabase.php Source Code:

<?php

// DB credentials.

define('DB_HOST','localhost');

define('DB_USER','root');

define('DB_PASS','root');

define('DB_NAME','tms');

// 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()); } ?>

39
❖ User PackageDetails.php Source Code:

<?php

session_start();

error_reporting(0);

include('includes/config.php');

?>

<!DOCTYPE HTML>

<html>

<head>

<title>Tours and Travels Package List</title>

</title>

<meta name="viewport" content="width=device-width, initial-scale=1">

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

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

40
<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;"> <font color="white"><br><br><br><font
color="black"> Tours Package List </br></br></font></h1>

</div>

</div>

<!--- /banner ---->

<!--- rooms ---->

<div class="rooms">

<div class="container">

<div class="room-bottom">

<h3>Package's List</h3>

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

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

$query->execute();

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

$cnt=1;

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

foreach($results as $result)

{ ?>

<div class="rom-btm">

<div class="col-md-3 room-left wow fadeInLeft animated" data-


wow-delay=".5s">

<img src="admin/pacakgeimages/<?php echo


htmlentities($result->PackageImage);?>" class="img-responsive" alt=""></div>

41
<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><font color="black">INR</font><?php echo


htmlentities($result->PackagePrice);?></h5>

<a href="package-details.php?pkgid=<?php echo


htmlentities($result->PackageId);?>" class="view"><font color="white">PACKAGE
DETAILS</font></a>

</div>

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

</div>

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

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

<!-- signup -->

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

<!-- signin -->

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

<!-- //signin -->

<!-- write us -->

<?php include('includes/write-us.php');?>

<!-- //write us -->

</body>

</html>

42
❖ Admin index.php Source code

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

43
<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,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="main-wthree">

<div class="container">

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

<h2>ADMIN SIGN IN</h2>

44
<form method="post">

<div class="username">

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

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


required="" autocomplete="off">

<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"><font color="black">Back To


Home</font></a>

</div> </div>

</div>

</body>

</html>

45
➢ Admin ConfigDatabase.php

<?php

// DB credentials.

define('DB_HOST','localhost');

define('DB_USER','root');

define('DB_PASS','root');

define('DB_NAME','tms');

// 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());

?>

46
• ManageBooking.php and ManagePackage.php

<?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";

?>

<!DOCTYPE HTML>

47
<html>

<head>

<title>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"> <?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>

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

</body> </html> <?php } ?>

49
➢ Implementation:- Screen Shots
• 1)User Home Page:

50
. 2)Client Create Own Account

51
• 3)User Pacakge Details

52
• 4)User Enquiry Form

53
• 5)User Tour History

54
• 6)ADMIN Login Page

. 7 )ADMIN Home Page

55
• 8) Admin Manage Users

56
• 9)Admin Can Create Package

• 10)ADMIN Change Own Password

57
• 10)Admin Manage Booking

58
• 12)ADMIN Manage Issues

59
CONCLUSION

To conclude the description about the project: The project, developed using

PHP and MySQL is based on the requirement specification of the user and the analysis of

the existing system, with flexibility for future enhancement.

The expanded functionality of today’s software requires an appropriate approach

towards software development. This hostel management software is designed for people

who want to manage various activi-ties in the hostel. For the past few years the number of

educational institutions are increasing rapidly.

Thereby the number of hostels are also increasing for the accommodation of

the students studying in this institution. And hence there is a lot of strain on the person

who are running the hostel and software’s are not usually used in this context. This

particular project deals with the problems on managing a hostel and avoids the problems

which occur when carried manually.

Identification of the drawbacks of the existing system leads to the designing of

computerized system that will be compatible to the existing system with the system which

is more user friendly and more GUI oriented.

60
BIBILIOGRAPHY

1. www.w3schools.com

2. in.php.net

3. en.wikipedia.org/wiki/PHP

4 . www.hotscripts.com/category/php/

5. www.apache.org/

6. www.wordpress.org/

7. www.mysql.com/click.php?e=35050

61

Das könnte Ihnen auch gefallen