Sei sulla pagina 1di 157

CHAPTER-1

INTRODUCTION

NSIC/BCA/VI/15A1SB7019 Page | 1
ABSTRACT
The importance of information and efficient information management is steadily increasing
due to the evolution of new technologies and high-capacity storage media but also because
growing market dynamics raise information needs. A marketing decision support system
(MDSS) can be of particular importance as it supports organizations in collecting, storing,
processing, and disseminating information, and in the decision-making process by provid- ing
forecasts and decision models (Little 1979). The following article provides insights into a
successful implementation of a MDSS in tourism. Based on findings on the analysis of the
system’s protocol files, it discusses the information needs in tourism management.

OBJECTIVES

The objective of the Travel and Tourism Management System project is to develop a system
that automates the processes and activities of a travel and the purpose is to design a system
using which one can perform all operations related to traveling.

Tourism Website Builder is a complete Content Management System (CMS) for the travel &
tourism industry that delivers the features most requested by independent tourism operators,
destination marketing groups, tourism associations and travel professionals.
Anyone - Anywhere - Anytime
All functions are secure, intuitive and user friendly, and can be operated by non-technical
persons at any time, from any remote location, with an Internet connection and Web browser.
A high speed Internet connection is not required.
Site Design Elements:
You control the key site design elements for your travel or DMO Website. Choose from a
variety of layouts and color palettes. Or, have us create a custom design for your site.
Template-Based Publishing
Build Web pages quickly and easily with page templates that deliver a wide range of interactive
features. Each template adheres to the site design elements you have chosen and guarantees a
consistency of appearance and navigation. Simply type, insert or copy & paste information into
a page template and you are ready to publish. Or, create freeform pages, that automatically
retain the look and feel of the site, with the built-in Page Editor.

Modular Description

This application consists following modules.

1. Administrator module
2. Travels module
3. Routes module
4. Reservations module

NSIC/BCA/VI/15A1SB7019 Page | 2
5. Testimonials module

1.5.1 Administrator module:


This module provides administrator related functionality. Administrator manages all
information and has access rights to add, delete, edit and view the data related to places, travels,
routes, bookings, restaurants etc.

1.5.2 Travels module:


This module provides the details of various travel agencies. A user can select the appropriate
agency depending on convenience and accessibility.

1.5.3 Routes module:


This module provides 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. Only administrator can add , delete, edit and manage the data.
Users can only view the information.

1.5.4 Reservations module:


This module provides functionalities that allow a user to 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.

1.5.5 Testimonials module:


Users of this application can post their opinions, complaints and suggestions regarding this
portal and services to the administrator. Accordingly, the administrator can take various steps
to act on the complaints and suggestions.

FUTURE SCOPE
 To Create Web Based Application For our Organization.
 To Provide Search Facility For Customer.
 To Generate Different Types of Reports.
 To Provide the online Ticket Booking and online Payment Facility
 For Customer.
 To Provide package Details.
 Customer Can Cancel the Booking then Return 15% Less Deduct
 From the Amount
.

NSIC/BCA/VI/15A1SB7019 Page | 3
CHAPTER-2
LITERATURE SURVEY

NSIC/BCA/VI/15A1SB7019 Page | 4
Travel and Tourism management system: This is an online project developed using Php and
MySQL. The purpose of this project is to provide the complete information about the vehicles
available for a tour. There are 2 different types of users. First the customer visits the site and
enters the place from where to where he wishes to travel. He also provides the date as when he
would like to travel. Then he sends these details to the travel and tourism agency. The employee
of travel and tourism agency receives the mail and check which vehicle is available for that
day and reverts back to the customer along with the quotation. If the customer agrees for any
one of the quotation, he can reply back along with agreed quotation. Then the agency will take
down all the details of the customer and will send a confirmation message to the customer. On
the day of the tour, the customer first must show the confirmation message to the driver for
clarity and only then he will agree to drive after looking at the confirmation message. This
software is user friendly and helps in finding the vehicle sooner rather than wandering manually
everywhere to find for vehicles. Before the tour starts, half payment has to be done. After the
customer returns or reaches his final destination, he must pay full amount either through cash
or through cards. After the travelling the customer can come back to the site and enter his
feedback about the travel and tourism agency. If any good feedback will be taken positively
and if any negative feedback too will be taken positively and try to improve what had lacked.
The report is also generated periodically and the database will be cleared according to the time
span for faster performance.
Travel and Tourism sample code is available in the below link directed. If you would like to
purchase the exact code,, mail us. A quotation will be sent. A complete support will be provided
by our team to you after the purchase.

The Travel Management System team is currently developing and implementing an enterprise-
wide travel system to replace the TAPS system. This system will be used for all Indiana
University faculty, staff, and students to submit travel authorization documents and initiate
reimbursement requests. The new system will allow for the automation of travel approvals and
processing of reimbursement requests.

Currently, Travel Office staff manually enter travel authorization and reimbursement data. The
system is slow and inefficient and leads to data entry errors and delays in processing travel
reimbursements for IU faculty, staff, and students. The new system will speed up processing
time and provide more accurate data.

The Travel Management System will be rolled out in stages. Currently, work is being
completed on the back office portion of the applications, which facilitates processing of
requests and reimbursements and provides key integration points with travel vendors such as
Expedia and Enterprise. The next phase of the Travel Management System project is to
distribute the travel request and reimbursement forms to select departments as a pilot group.
Upon successful completion of the pilot, these documents will be integrated with Kuali
Enterprise Workflow (KEW) in order to accommodate electronic routing and approval. Once
automated routing and approval are ready, the Travel Management System documents will be
made available to all IU faculty, staff, and students.

This project development a website for Tour & Travel management system with HTML-5,CSS
3,PHP as front-end & MYSQL EXPRESS as back-end. Tour & Travel management system
planning the tour for their customer. It is an application which decreases few efforts of planning

NSIC/BCA/VI/15A1SB7019 Page | 5
of trip or making of yours holidays happy. This system provides better services for booking
tickets(train,air,etc…) & planning for visiting places & hotels facility & transportation mode.
a) Date of Donation of blood
b) validity of Blood
c) Available Blood group

Advantages

 It becomes convenient for users to book their tour online instead of visiting agency.
 Saves time and money.
 Provides a customized view of the tour to users.
 The website is easy and flexible to use.
 Automates the manual bookingpayment and customization process.

Disadvantages

 Requires reliable internet connection.


 Requires large database.

Summary

O n l i n e T o u r s a n d T r a v e l s M a n a g e m e n t i s a s o f t w a r e w e b application to book
multiple types of tickets online. Presently this website will offer Trip booking, Air Ticket
Booking and Bus Ticket Booking. o f o r a l l t yp e o f t r a v e l e r s t h i s w e b s i t e
p r o v i d e s a s o l u t i o n t o b o o k t h e i r t i c k e t s o n l i n e a n d m a k e t h e p a ym e n t
online. The site is alsoproviding the communication between user and
the administration.T h i s p r o ! e c t h a s t w o m o d u l e s , o n e a d m i n m o d u l e
a n d t h e c l i e n t module. " n a d m i n m o d u l e a l l t h e m a s t e r e n t r i e s , t i c k e t
pricing, tripdetails, flight details, bus details, and their schedule
e t c c a n b e entered. o admin complete control on the site. Apart from
t h i s i n each section proper reports are provided to know how many tick etsare
booked in each section."n case of user module, user can signup after that they can ablelogin
into the site, they can search for the different trips, flight details,bus details etc., After searching
they can able to book the tickets.

Existing System
 All Work are done Manually.
 In Manual Booking System Customer has to go to the Travelling
office.
 Ask Inquiry for Travelling then Book ticket Finally Pay Payment &
Collect Receipt.
 Difficult To Maintain the Customer Details of Package and Payment
Receipt in Register.
 They Register Tour Package in the notebook.
 Add advertisement in Local newspaper or Local Market.
NSIC/BCA/VI/15A1SB7019 Page | 6
 Use Travelling Facility For the Limited Area or Person.

Need for New System


 To Create Web Based Application For our Organization.
 To Provide Search Facility For Customer.
 To Generate Different Types of Reports.
 To Provide the online Ticket Booking and online Payment Facility
For Customer.
 To Provide package Details.
 Customer Can Cancel the Booking then Return 15% Less Deduct
From the Amount.

5. Software Development Process:


5.1 Life Cycle Used to develop this Project
The Systems Development Life Cycle (SDLC) is a conceptual model used in project
management that describes the stages involved in an information system development project
from an initial feasibility study through maintenance of the completed application. Various
SDLC methodologies have been developed to guide the processes involved including the
waterfall model (the original SDLC method), rapid application development (RAD), joint
application development (JAD), the fountain model and the spiral model. Mostly, several
models are combined into some sort of hybrid methodology.

5.1.1 Feasibilities study

The first step is to study whether or not it is practical to development the software or
whether or not it is worth carrying on with the requirement analysis. The following questions
should be answered in this step:

a) Does the software contribute to the overall objective of the organization?

b) Can the software be implemented using current technology and within given cost and
schedule constraints?

c) Can the software be integrated with other software in the application domain

A widely used model to document requirement is called use case, which describe the interaction
of one or several scenarios. A use case usually consists of the following parts. A description of
what the software and users except when the scenario starts.

a) A description of the normal flow of events in the scenario

b) A description of what can go wrong and how this is handled , and

c) A description of the system state when the scenario finishes.

NSIC/BCA/VI/15A1SB7019 Page | 7
5.1.2 Requirement validation

This is the process to show that the requirements actually refine the software that the users
want.

A) ECONOMIC ANALYSIS
Among the most important information contained in feasibility study is Cost Benefit Analysis
and assessment of the economic justification for a computer based system project. Cost Benefit
Analysis delineates costs for the project development and weighs them against tangible and
intangible benefits of a system. Cost Benefits Analysis is complicated by the criteria that vary
with the characteristics of the system to be developed, the relative size of the project and the
expected return on investment desired as part of company’s strategic plan. In addition, many
benefits derived from a computer-based system are intangible (e.g. better design quality through
iterative optimization, increased customer satisfaction through programmable control etc.) As
this is an in-house project for the company, to be used for its own convenience and also it is not
that big a project. So neither it requires a huge amount of money nor any costly tools or
infrastructure need to be set up for it.

A) TECHNICAL ANALYSIS

During technical analysis, the technical merits of the system are studied and at the same time
collecting additional information about performance, reliability, maintainability and
predictability.
Technical ansalysis begins with an assessment of the technical viability of the proposed system.

What technologies are required to accomplished system function and performance?


How will these obtained from technical analysis form the basis for another go/no-go decision
on the test system? If the technical risk is severe, if models indicate that the desired function
can not be achieved, if the pieces just won’t fit together smoothly-it’s back to the drawing
board.

As the software is vary much economically feasible, then it is really important for it to be
technically sound. The software will be build among:

MY SQL
a) DreamWeaver as Front End

B) SYSTEM ANALYSIS
System analysis is the process of studying the business processors and procedures, generally
referred to as business systems, to see how they can operate and whether improvement is
needed.This may involve examining data movement and storage, machines and technology
used in the system, programs that control the machines, people providing inputs, doing the
processing and receiving the outputs.

NSIC/BCA/VI/15A1SB7019 Page | 8
5.1.3 INVESTIGATION PHASE
The investigation phase is also known as the fact-finding stage or the analysis of
the current system. This is a detailed study conducted with the purpose of wanting to fully
understand the existing system and to identify the basic information requirements. Various
techniques may be used in fact-finding and all fact obtained must be recorded.
A thorough investigation was done in every effected aspect when determining
whether the purposed system is feasible enough to be implemented.

5.1.4 CONSTRAINTS AND LIMITATIONS


The constraints and limitation within a system are the drawbacks that occur during the
implementation of the system. These limitations and constraints can crop up in almost every
system; the most important fact is to find a way to overcome these problems. Software design
is the first of three technical activities – design, code generation, and test that are required to
build and verify the software. Each activity transforms information in manner that ultimately
results in validated computer software .The design task produces a data design, an architectural
design, an interface design and component design.The design of an information system
produces the details that clearly describe how a system will meet the requirements identified
during system analysis. The system design process is not a step by step adherence of clear
procedures and guidelines. When I started working on system design, I face different types of
problems; many of these are due to constraints imposed by the user or limitations of hardware
and software available. Sometimes it was quite difficult to enumerate that complexity of the
problems and solutions thereof since the variety of likely problems is so great and no solutions
are exactly similar however the following consideration I kept in mind during design phased.
2. Overview of the languages used

2.3.1Introduction to PHP
The front end is an interface between the user and the back end. The front and back ends may
be distributed amongst one or more systems.In Network computing, front end can refer to any
hardware that optimizes or protects network traffic. It is called application front-end hardware
because it is placed on the network's outward-facing front end or boundary. Network traffic passes
through the front-end hardware before entering the network.

In compilers, the front end translates a computer programming source code into an intermediate
representation, and the back end works with the intermediate representation to produce code in
a computer output language. The back end usually optimizes to produce code that runs faster.
The front-end/back-end distinction can separate the parser section that deals with source code
and the back end that generates code and optimizes. These days, front-end development refers
to the part of the web users interact with. In the past, web development consisted of people
who worked with Photoshop and those who could code HTML and CSS. Now, developers need
a handle of programs like Photoshop and be able to code not only in HTML and CSS, but also
JavaScript or jQuery, which is a compiled library of JavaScript.Most of everything you see on
any website is a mixture of HTML, CSS, and JavaScript, which are all controlled by the
browser. For example, if you’re using Google Chrome or Firefox, the browser is what translates

NSIC/BCA/VI/15A1SB7019 Page | 9
all of the code in a manner for you to see and with which to interact, such as fonts, colors, drop-
down menus, sliders, forms, etc. In order for all of this to work, though, there has to be
something to support the front-end; this is where the backend comes into play.

2.1 Architecture of PHP:

2.1.1 Architecture and Concepts


The query cache plugin is implemented as a PHP extension. It is written in C and operates
under the hood of PHP. During the startup of the PHP interpreter, it gets registered as a mysqlnd
plugin to replace selected mysqlnd C methods. Hereby, it can change the behaviour of any PHP
MySQL extension (mysqli, PDO_MYSQL, mysql) compiled to use the mysqlnd library
without changing the extensions API. This makes the plugin compatible with each and every
PHP MySQL application. Because existing APIs are not changed, it is almost transparent to
use. Please, see the mysqlnd plugin API description for a discussion of the advantages of the
plugin architecture and a comparison with proxy based solutions.

2.1.2 Transparent to use

At PHP run time PECL/mysqlnd_qc can proxy queries send from PHP (mysqlnd) to the
MySQL server. It then inspects the statement string to find whether it shall cache its results. If
so, result set is cached using a storage handler and further executions of the statement are served
from the cache for a user-defined period. The Time to Live (TTL) of the cache entry can either
be set globally or on a per statement basis.

A statement is either cached if the plugin is instructed to cache all statements globally using a
or, if the query string starts with the SQL hint (/*qc=on*/). The plugin is capable of caching

NSIC/BCA/VI/15A1SB7019 Page | 10
any query issued by calling appropriate API calls of any of the existing PHP MySQL
extensions.

2.1.3 Flexible storage: various storage handler


Various storage handler are supported to offer different scopes for cache entries. Different
scopes allow for different degrees in sharing cache entries among clients.

a) default (built-in): process memory, scope: process, one or more web requests depending
on PHP deployment model used
b) APC: shared memory, scope: single server, multiple web requests
c) SQLite: memory or file, scope: single server, multiple web requests
d) MEMCACHE: main memory, scope: single or multiple server, multiple web requests
e) user (built-in): user-defined - any, scope: user-defined - any

Support for the APC, SQLite and MEMCACHE storage handler has to be enabled at compile
time. The default and user handler are built-in. It is possible to switch between compiled-in
storage handlers on a per query basis at run time. However, it is recommended to pick one
storage handler and use it for all cache entries.

2.1.4 Built-in slam defense to avoid overloading


To avoid overload situations the cache plugin has a built-in slam defense mechanism. If a
popular cache entries expires many clients using the cache entries will try to refresh the cache
entry. For the duration of the refresh many clients may access the database server concurrently.
In the worst case, the database server becomes overloaded and it takes more and more time to
refresh the cache entry, which in turn lets more and more clients try to refresh the cache entry.
To prevent this from happening the plugin has a slam defense mechanism. If slam defense is
enabled and the plugin detects an expired cache entry it extends the life time of the cache entry
before it refreshes the cache entry. This way other concurrent accesses to the expired cache
entry are still served from the cache for a certain time.The other concurrent accesses to not
trigger a concurrent refresh. Ideally, the cache entry gets refreshed by the client which extended
the cache entries lifespan before other clients try to refresh the cache and potentially cause an
overload situation.

2.1.5 Unique approach to caching

PECL/mysqlnd_qc has a unique approach to caching result sets that is superior to application
based cache solutions. Application based solutions first fetch a result set into PHP variables.
Then, the PHP variables are serialized for storage in a persistent cache, and then unserialized
when fetching. The mysqlnd query cache stores the raw wire protocol data sent from MySQL
to PHP in its cache and replays it, if still valid, on a cache hit. This way, it saves an extra
serialization step for a cache put that all application based solutions have to do. It can store the
raw wire protocol data in the cache without having to serialize into a PHP variable first and
deserializing the PHP variable for storing in the cache a

NSIC/BCA/VI/15A1SB7019 Page | 11
2.2 Software & Tools Used:
1. PHP:-

2.2.1 Introduction

PHP is now officially known as “PHP: Hypertext Preprocessor”. It is a server-side scripting


language usually written in an HTML context. Unlike an ordinary HTML page, a PHP script
is not sent directly to a client by the server; instead, it is parsed by the PHP binary or module,
which is server-side installed. HTML elements in the script are left alone, but PHP code is
interpreted and executed. PHP code in a script can query databases, create images, read and
write files, talk to remote servers – the possibilities is endless. The output from PHP code is
combined with the HTML in the script and the result sent to the user’s web-browser, therefore
it can never tell the user whether the web-server uses PHP or not, because the entire browser
sees is HTML.

PHP’s support for Apache and MySQL further increases its popularity. Apache is now
the most-used web-server in the world, and PHP can be compiled as an Apache module.
MySQL is a powerful free SQL database, and PHP provides a comprehensive set of functions
for working with it. The combination of Apache, MySQL and PHP is all but unbeatable.

That doesn’t mean that PHP cannot work in other environments or with other tools. In
fact, PHP supports an extensive list of databases and web-servers. While in the mid-1990s it
was ok to build sites, even relatively large sites, with hundreds of individual hard-coded HTML
pages, today’s webmasters are making the most of the power of databases to manage their
content more effectively and to personalize their sites according to individual user preferences.

Reasons for using PHP


There are some indisputable great reasons to work with PHP. As an open source product, PHP
is well supported by a talented production team and a committed user community. Furthermore,
PHP can be run on all the major operating systems with most servers.

a) Learning PHP is easy Basic is easy any interpreted language should be easy to learn.
Since you are isolated from the system (no pointers to use, no memory to allocate). The other
advantage that all modern interpreted languages share is good associative array constructs.

b) Its Performance

While we can build an application that serves millions of pages a day on a server, when we
really look at the performance of the language it sucks. We are still orders of magnitude from
real performance. Not only that, but since PHP is designed around a single process model our
ability to share data structures or connection pool resources is left to native code libraries.

c) The low cost


There are many languages which are available at very less cost. There are some languages
which are available at very less cost like below:

NSIC/BCA/VI/15A1SB7019 Page | 12
a. PHP
b. C
c. C++ etc

d) It’s Open Source, We can modify it


We can modify it if you need a hole in your head! Technically the point is that it’s an open
source project and they release patches often. You’re point is that the community is actively
working out the bugs. So, what any active language is doing this...
Unfortunately C, C++ and Perl have all “died” at this point and will pretty much remain static
at their current functionality.

e) Its Portability
C is portable; it’s just the OS bits that aren’t. A lot PHP isn’t portable to Windows since people
don’t use the OS abstractions to avoid some problems.

F)It has interfaces to a large variety of database systems


PHP supports a large variety of the database.

Support available
Online Support is available for using PHP.

d) PHP Syntax
You cannot view the PHP source code by selecting “View source” in the browser – you
will only see the output from the PHP file, which is plain HTML. This is because the
scripts are executed on the server before the result is sent back to the browser.

Basic PHP Syntax


A PHP scripting block always starts with <?php and ends with ?>. A PHP scripting block can
be placed anywhere in the document.
On servers with shorthand support enabled you can start a scripting block
with <? And end with ?>. However, for maximum compatibility, we recommend that you
use the standard form (<?php) rather than the shorthand form.

A PHP file normally contains HTML tags, just like an HTML file, and some PHP scripting
code.

2.2.2 HTML
HTML or Hyper Text Markup Language is the standard markup language used to create
web pages.
HTML was created in 1991 by Tim Berners-Lee at CERN in Switzerland. It was designed to
allow scientists to display and share their research.
HTML is written in the form of HTML elements consisting of tags enclosed in angle
brackets(like <html>). HTML tags most commonly come in pairs like <h1> and </h1>,

NSIC/BCA/VI/15A1SB7019 Page | 13
although some tags represent empty elements and so are unpaired, for example <img>. The first
tag in a pair is the start tag, and the second tag is the end tag (they are also called opening tags
and closing tags).
The purpose of a web browser is to read HTML documents and compose them into visible or
audible web pages. The browser does not display the HTML tags, but uses the tags to interpret
the content of the page. HTML describes the structure of a website semantically along with
cues for presentation, making it a markup language rather than a programming language.
HTML elements form the building blocks of all websites. HTML allows images and objects to
be embedded and can be used to create interactive forms. It provides a means to create
structured documents by denoting structural semantics for text such as headings, paragraphs,
lists, links, quotes and other items. It can embed scripts written in languages such as Java Script
which affect the behavior of HTML web pages.
HTML is descriptive markup language. Library of various markup languages is defined in
various browsers.

a) HTML Images - The <img> Tag and the Src Attribute

In HTML, images are defined with the <img> tag.


The <img> tag is empty, which means that it contains attributes only, and has no closing tag.
To display an image on a page, you need to use the src attribute. Src stands for "source". The
value of the src attribute is the URL of the image you want to display.
Syntax for defining an image:
<imgsrc="url" alt="some_text">

b) HTML FORMS
HTML forms are used to pass data to a server.

The <form> tag is used to


create an HTML form:
<form>
.
input elements
.
</form>
An HTML form can contain input elements like text fields, checkboxes, radio-buttons, submit
buttons and more. A form can also contain select lists, textarea, fieldset, legend, and label
elements.
c) Image tag (<img>) :
To add an image to an HTML document, we just need to include an <IMG> tag with a
reference to the desired image. The <IMG> tag is an empty element i.e. it doesn’t require a
closing tag and we can use it to include from small icons to large images.

NSIC/BCA/VI/15A1SB7019 Page | 14
Syntax: <imgsrc=”URL” alt=”alternative text”>

d) HTML Lists :

An ordered list:
An unordered list:
 The first list item
 List item
 The second list item
 List item
 The third list item
 List item

2.2.3 HTML 5
HTML5 will be the new standard for HTML. The previous version of HTML, HTML 4.01,
came in 1999. The web has changed a lot since then. HTML5 is still a work in progress.
However, the major browsers support many of the new HTML5 elements and APIs.
HTML5 is cooperation between the World Wide Web Consortium (W3C) and the Web
Hypertext Application Technology Working Group (WHATWG).
WHATWG was working with web forms and applications, and W3C was working with
XHTML 2.0. In 2006, they decided to cooperate and create a new version of HTML.
Some rules for HTML5 were established:
a) New features should be based on HTML, CSS, DOM, and JavaScript
b) Reduce the need for external plug-ins (like Flash)
c) Better error handling
d) More markup to replace scripting
e) HTML5 should be device independent
f) The development process should be visible to the public

2.2.4 CSS

CSS tutorial or CSS 3 tutorial provides basic and advanced concepts of CSS technology. Our
CSS tutorial is developed for beginners and professionals. The major points of CSS are given
below:

a) CSS stands for Cascading Style Sheet.


b) CSS is used to design HTML tags.
c) CSS is a widely used language on the web.
d) HTML, CSS and JavaScript are used for web designing. It helps the web designers to
apply style on HTML tags.

Cascading Style Sheets (CSS) is a style sheet language used for describing the look and
formatting of a document written in a markup language. While most often used to style web
pages and user interfaces written in HTML and XHTML, the language can be applied to any
kind of XML document, including plain XML, SVG and XUL. CSS is a cornerstone

NSIC/BCA/VI/15A1SB7019 Page | 15
specification of the web and almost all web pages use CSS style sheets to describe their
presentation.
CSS is designed primarily to enable the separation of document content from document
presentation, including elements such as the layout, colors, and fonts. This separation can
improve content accessibility, provide more flexibility and control in the specification of
presentation characteristics, enable multiple pages to share formatting, and reduce complexity
and repetition in the structural content (such as by allowing for table less web design).
CSS can also allow the same markup page to be presented in different styles for different
rendering methods, such as on-screen, in print, by voice (when read out by a speech-based
browser or screen reader) and on Braille-based, tactile devices. It can also be used to allow the
web page to display differently depending on the screen size or device on which it is being
viewed. While the author of a document typically links that document to a CSS file, readers
can use a different style sheet, perhaps one on their own computer, to override the one the
author has specified.
With plain HTML you define the colors and sizes of text and tables throughout your pages. If
you want to change a certain element you will therefore have to work your way through the
document and change it. With CSS you define the colors and sizes in "styles". Then as you
write your documents you refer to the styles. Therefore: if you change a certain style it will
change the look of your entire site. Another big advantage is that CSS offers much more
detailed attributes than plain HTML for defining the look and feel of your site.

2.2.5 JAVASCRIPT
JavaScript (JS) is a dynamic computer programming language. It is most commonly used as
part of web browsers, whose implementations allow client-side scripts to interact with the user,
control the browser, communicate asynchronously, and alter the document content that is
displayed. It is also being used in server-side network programming (with Node.js), game
development and the creation of desktop and mobile applications.
JavaScript is a prototype-based scripting language with dynamic typing and has first-class
functions. Its syntax was influenced by C. JavaScript copies many names and naming
conventions from Java, but the two languages are otherwise unrelated and have very different
semantics. The key design principles within JavaScript are taken from the Self and Scheme
programming languages. It is a multi-paradigm language, supporting object-oriented,
imperative, and functional programming styles.
The application of JavaScript in use outside of web pages—for example, in PDF documents,
site-specific browsers, and desktop widgets—is also significant. Newer and faster JavaScript
VMs and platforms built upon them (notably Node.js) have also increased the popularity of
JavaScript for server-side web applications. On the client side, JavaScript was traditionally
implemented as an interpreted language but just-in-time compilation is now performed by
recent (post-2012) browsers.
JavaScript was formalized in the ECMA Script language standard and is primarily used as part
of a web browser (client-side JavaScript). This enables programmatic access to objects within
a host environment.
JavaScript is the most popular programming language in the world.
It is the language for HTML, for the Web, for computers, servers, laptops, tablets, smart
phones, and more.
You can use JavaScript to:

NSIC/BCA/VI/15A1SB7019 Page | 16
a) Change HTML elements
b) Delete HTML elements
c) Create new HTML elements
d) Copy and clone HTML elements

3. About Back End:


In a previous blog, we talked about how web programmers are concerned with launching
websites, updates, and maintenance, among other things. All of that works to support the front-
end of the website. The back-end has three parts to it: server, application, and database.

To better explain how all of this works, let’s use the example of a customer trying to purchase a
plane ticket using a website. Everything that the customer sees on the webpage is the front-end,
as we have explained before, but once that customer enters all of his or her information, ssssuch
as their name, billing address, destination, etc, the web application stores the information in a
database that was created previously on the server in which the website is calling for information.

The web application creates, deletes, changes, renames, etc items in the database. For example,
when a customer purchases a ticket, that creates an item in the database, but when they have a
change in their order or they wish to cancel, the item in the database is changed.

.In short, when a customer wants to buy a ticket, the backend operation is the web application
communicating with the server to make a change in a database stored on said server.
Technologies like PHP, Ruby, Python, and others are the ones backend programmers use to
make this communication work smoothly, allowing the customer to purchase his or her ticket
with ease

3.1 MySQL’s Logical Architecture


The topmost layer contains the services that aren’t unique to MySQL. They’re services most
network-based client/server tools or servers need: connection handling, authentication,
security, and so forth.

NSIC/BCA/VI/15A1SB7019 Page | 17
.

The third layer contains the storage engines. They are responsible for storing and retrieving all
data stored “in” MySQL. Like the various filesystems available for GNU/Linux, each storage
engine has its own benefits and drawbacks. The server communicates with them through the
storage engine API. This interface hides differences between storage engines and makes them
largely transparent at the query layer. The API contains a couple of dozen low-level functions
that perform operations such as “begin a transaction” or “fetch the row that has this primary
key.” The storage engines don’t parse SQL[4] or communicate with each other; they simply
respond to requests from the server.

NSIC/BCA/VI/15A1SB7019 Page | 18
 Data Test.

The above listed test are carried out at development site, installation site and during the
development process as per the requirement. The multiple waterfall modules during the
development of the project will assure minimum risk.

3.2 Softwares and tools used:


3.2.1 My Sql:

Introduction:
The database has become an integral part of almost every human's life. Without it, many things
we do would become very tedious, perhaps impossible tasks. Banks, universities, and libraries
are three examples of organizations that depend heavily on some sort of database system. On
the Internet, search engines, online shopping, and even the website naming convention would
be impossible without the use of a database. A database that is implemented and interfaced on
a computer is often termed a database server.
One of the fastest SQL (Structured Query Language) database servers currently on the
market is the MySQL server, developed by T.c.X. DataKonsultAB. MySQL, available for
download at www.mysql.com, offers the database programmer with an array of options and
capabilities rarely seen in other database servers. MySQL is free of charge for those wishing
to use it for private and commercial use. Those wishing to develop applications specifically
using MySQL should consult MySQL's licensing section, as there is charge for licensing the
product.

These capabilities range across a number of topics, including the following:


a) Ability to handle an unlimited number of simultaneous users.
b) Capacity to handle 50,000,000+ records.
c) Very fast command execution, perhaps the fastest to be found on the market.
d) Easy and efficient user privilege system.

However, perhaps the most interesting characteristic of all is the fact that it's free. That's right,
T.c.X offers MySQL as a free product to the general public

NSIC/BCA/VI/15A1SB7019 Page | 19
Reasons to Use MySQL
a) Scalability and Flexibility

The MySQL database server provides the ultimate in scalability, sporting the capacity to handle
deeply embedded applications with a footprint of only 1MB to running massive data
warehouses holding terabytes of information. Platform flexibility is a stalwart feature of
MySQL with all flavors of Linux, UNIX, and Windows being supported.

b) High Performance
A unique storage-engine architecture allows database professionals to configure the MySQL
database server specifically for particular applications, with the end result being amazing
performance results.

C) High Availability

Rock-solid reliability and constant availability are hallmarks of MySQL, with customers
relying on MySQL to guarantee around-the-clock uptime. MySQL offers a variety of high-
availability options from high-speed master/slave replication configurations, to specialized
Cluster servers offering instant failover, to third party vendors offering unique high-availability
solutions for the MySQL database server.

d) Robust Transactional Support

MySQL offers one of the most powerful transactional database engines on the market. Features
include complete ACID (atomic, consistent, isolated, durable) transaction support, unlimited
row-level locking, distributed transaction capability, and multi-version transaction support
where readers never block writers and vice-versa.

e) Web and Data Warehouse Strengths

MySQL is the de-facto standard for high-traffic web sites because of its high-performance
query engine, tremendously fast data inserts capability, and strong support for specialized web
functions like fast full text searches.

f) Strong Data Protection

Because guarding the data assets of corporations is the number one job of database
professionals, MySQL offers exceptional security features that ensure absolute data protection.
In terms of database authentication, MySQL provides powerful mechanisms for ensuring only
authorized users have entry to the database server, with the ability to block users down to the
client machine level being possible.

NSIC/BCA/VI/15A1SB7019 Page | 20
g) Management Ease

MySQL offers exceptional quick-start capability with the average time from software
download to installation completion being less than fifteen minutes. This rule holds true
whether the platform is Microsoft Windows, Linux, Macintosh, or UNIX.

PHP Main Features of MySQL


a) The MySQL Server design is multi-layered with independent modules.

b) Fully multi-threaded using kernel threads. It can easily use multiple CPUs if they are available.

c) Provides transactional and non-transactional storage engines.

d) Uses very fast B-tree disk tables with index compression.

e) Relatively easy to add other storage engines. This is useful if you want to provide an SQL
interface for an in-house database.

f) A very fast thread-based memory allocation system.

g) Very fast joins using an optimized one-sweep multi-join.

h) In-memory hash tables, which are used as temporary tables.

i) SQL functions are implemented using a highly optimized class library and should be as fast as
possible. Usually there is no memory allocation at all after query initialization.

j) The server is available as a separate program for use in a client/server networked environment.

3.2.2 WAMP:-

a) Install WAMP by double clicking on the icon, an installation wizard will be opened.

NSIC/BCA/VI/15A1SB7019 Page | 21
b) Click on next button to continue , and then again box will be appeared on the screen
asking you for acceptance or not acceptance of the license agreement.

c) For this select option “I accept the terms in the license agreement”. Click on next
button.

d) Then again wizard will be opened asking you about the location of placing the folder.
For selecting location click on browse and click next.

NSIC/BCA/VI/15A1SB7019 Page | 22
e) The next wizard will ask you about auto start the WAMP i.e. if you want to start the
WAMP automatically then click on the checkbox and if do not want then it remain
unchecked.

f) Click on next button to precede further, the next wizard will display you the summary
of the setting . Click on install button for installation.

NSIC/BCA/VI/15A1SB7019 Page | 23
g) After installation the next wizard will be opened asking you about directory for your
root folder .if you are not sure , just leave the default directory .for proceeding further
click on next button.

h) The next wizard will ask you about your server just fill localhost and click on next
button.

NSIC/BCA/VI/15A1SB7019 Page | 24
i) The next wizard will be appeared on the screen asking you about the email address
for sending mails. Just leave the default email address if you are not sure. Click
on the next button.

j) This
wizard will ask
you about the
browser by
default
browser is
internet
explorer you
can set default
browser
according to
your
requirement
.click on next
button.

k) On clicking next a popup menu will displayed asking you “would you like to install the
new WAMP homepage ?” click on yes option.

Finally click on finish after complete installation of WAMP on your system.

NSIC/BCA/VI/15A1SB7019 Page | 25
CHAPTER-3
DESIGN

NSIC/BCA/VI/15A1SB7019 Page | 26
3.1 System Design Waterfall Model

The Waterfall Model was the first Process Model to be introduced. It is also referred to
as a linear-sequential life cycle model. It is very simple to understand and use. In a
waterfall model, each phase must be completed before the next phase can begin and there
is no overlapping in the phases.

The Waterfall model is the earliest SDLC approach that was used for software
development.

The waterfall Model illustrates the software development process in a linear sequential
flow. This means that any phase in the development process begins only if the previous
phase is complete. In this waterfall model, the phases do not overlap.

Waterfall Model - Design Waterfall approach was first SDLC Model to be used widely
in Software Engineering to ensure success of the project. In "The Waterfall" approach,
the whole process of software development is divided into separate phases. In this
Waterfall model, typically, the outcome of one phase acts as the input for the next phase
sequentially. We have implemented waterfall model into our project.

The following illustration is a representation of the different phases of the Waterfall


Model.

The sequential phases in Waterfall model are −

Requirement Gathering and analysis − All possible requirements of the system to be


developed are captured in this phase and documented in a requirement specification
document.

System Design − The requirement specifications from first phase are studied in this
phase and the system design is prepared. This system design helps in specifying
hardware and system requirements and helps in defining the overall system architecture.

Implementation − With inputs from the system design, the system is first developed
in small programs called units, which are integrated in the next phase. Each unit is
developed and tested for its functionality, which is referred to as Unit Testing.

Integration and Testing − All the units developed in the implementation phase are
integrated into a system after testing of each unit. Post integration the entire system is
tested for any faults and failures.

Deployment of system − Once the functional and non-functional testing is done; the
product is deployed in the customer environment or released into the market.

Maintenance − There are some issues which come up in the client environment. To
fix those issues, patches are released. Also to enhance the product some better versions
are released. Maintenance is done to deliver these changes in the customer environment.

All these phases are cascaded to each other in which progress is seen as flowing steadily
downwards (like a waterfall) through the phases. The next phase is started only after the

NSIC/BCA/VI/15A1SB7019 Page | 27
defined set of goals are achieved for previous phase and it is signed off, so the name
"Waterfall Model". In this model, phases do not overlap.

Waterfall Model - Application Every software developed is different and requires a


suitable SDLC approach to be followed based on the internal and external factors. Some
situations where the use of Waterfall model is most appropriate are −

Requirements are very well documented, clear and fixed.

Product definition is stable.

Technology is understood and is not dynamic.

There are no ambiguous requirements.

Ample resources with required expertise are available to support the product.

The project is short.

3.2 Requirement Analysis:

HARDWARE REQUIREMTS

Processor Pentium IV and above

Processor Speed 1.4 Hz

Ram Size 1 GB

Hard Disk Size 10 GB

Printer All black and white and color printer

SOFTWARE REQUIREMENTS

NSIC/BCA/VI/15A1SB7019 Page | 28
Operating System Windows XP

Front End Tool Visual Basic 2005 Express edition

Back End Tool MS Sql Server

3.3 Data flow Diagram Notations.


A data flow diagram (DFD) is a graphical representation of the "flow" of data through
an information system, modelling its process aspects. A DFD is often used as a preliminary
step to create an overview of the system without going into great detail, which can later be
elaborated. DFDs can also be used for the visualization of data processing (structured design).

A DFD shows what kind of information will be input to and output from the system, how the
data will advance through the system, and where the data will be stored. It does not show
information about process timing or whether processes will operate in sequence or in parallel,
unlike a traditional structured flowchart which focuses on control flow, or a UML activity
workflow diagram, which presents both control and data flows as a unified model.

3.3.1. Data Flow Diagrams Symbols


There are essentially two different types of notations for data flow diagrams (Yourdon & Coad
or Gane & Sarson) defining different visual representations for processes, data stores, data flow
and external entities.
Yourdon and Coad type data flow diagrams are usually used for system analysis and design,
while Gane and Sarson type DFDs are more common for visualizing information systems.
Visually, the biggest difference between the two ways of drawing data flow diagrams is how
processes look. In the Yourdon and Coad way, processes are depicted as circles, while in the
Gane and Sarson diagram the processes are squares with rounded corners.
Process Notations. A process transforms incoming data flow into outgoing data flow.

Datastore Notations. Datastores are repositories of data in the system. They are sometimes
also referred to as files.

NSIC/BCA/VI/15A1SB7019 Page | 29
Dataflow Notations. Dataflows are pipelines through which packets of information flow.
Label the arrows with the name of the data that moves through it.

External Entity Notations. External entities are objects outside the system, with which the
system communicates. External entities are sources and destinations of the system's inputs and
outputs.

3.3.2. Data Flow Diagram Levels

Context Diagram. A context diagram is a top level (also known as "Level 0") data flow
diagram. It only contains one process node ("Process 0") that generalizes the function of the
entire system in relationship to external entities.

NSIC/BCA/VI/15A1SB7019 Page | 30
DFD Layers. Draw data flow diagrams can be made in several nested layers. A single process
node on a high level diagram can be expanded to show a more detailed data flow diagram.
Draw the context diagram first, followed by various layers of data flow diagrams.
DFD Levels. The first level DFD shows the main processes within the system. Each of these
processes can be broken into further processes until you reach pseudo code.

LEVEL 1 DFD

NSIC/BCA/VI/15A1SB7019 Page | 31
LEVEL-2 DFD

NSIC/BCA/VI/15A1SB7019 Page | 32
E-R DIAGRAM

NSIC/BCA/VI/15A1SB7019 Page | 33
DATABASE DESIGN
Database design is the process of producing a detailed data model of database. This data model
contains all the needed logical and physical design choices and physical storage parameters
needed to generate a design in a data definition language, which can then be used to create a
database. A fully attributed data model contains detailed attributes for each entity.
The term database design can be used to describe many different parts of the design of an
overall database system. Principally, and most correctly, it can be thought of as the logical
design of the base data structures used to store the data. In the relational model these are the
tables and views. In an object database the entities and relationships map directly to object
classes and named relationships. However, the term database design could also be used to apply
to the overall process of designing, not just the base data structures, but also the forms and
queries used as part of the overall database application within the database management system
(DBMS).
The process of doing database design generally consists of a number of steps which will be
carried out by the database designer. Usually, the designer must:
Determine the data to be stored in the database.
Determine the relationships between the different data elements.
Superimpose a logical structure upon the data on the basis of these relationships.
Within the relational model the final step above can generally be broken down into two further
steps, that of determining the grouping of information within the system, generally determining
what are the basic objects about which information is being stored, and then determining the
relationships between these groups of information, or objects. This step is not necessary with
an Object database.

3.4.2 DATA DICTIONARY


1. Table Name:Login_mst
Description:To store the admin, customer, Traveler Login Details
Primary Key: User Name

Sr.No Name DataType Constraint Description


1 Username Varchar(10) Primary Key To store the
username

2 User_Type Varchar(10) Not null To store user


type
like admin,
customer,traveler
etc

3 Password varchar(10) Not null To store the


password

NSIC/BCA/VI/15A1SB7019 Page | 34
2
Sr.no Field Name Data Type Constraint Description

1 Name Varchar(50) Not null To store the


Name of agent.

2 Company_Name Varchar(50) Primary Key To store


Company
Name
.

3 Address Varchar(50) Not null To store


address.

4 City Varchar(50) Not null To store city.

5 Zip_code Numeric(18,0) Not null To store Agent


zip code.

6 Country Varchar(50) Not null To store


country.

7 Mobile no Numeric(18,0) Not null To store mobile


number.

8 Email_id Nvarchar(30) Not null To store the


Email id.

9 Comment Varchar(50) Not null To store


Comment.

NSIC/BCA/VI/15A1SB7019 Page | 35
NSIC/BCA/VI/15A1SB7019 Page | 36
CHAPTER-4
CODING

NSIC/BCA/VI/15A1SB7019 Page | 37
About US.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>
<link href="stylecss.css" rel='stylesheet' type='text/css'/>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css'/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
</head>

<body>
<?php include('function.php'); ?>
<?php include('top.php'); ?>

NSIC/BCA/VI/15A1SB7019 Page | 38
<!--/sticky-->
<?php include('slider.php'); ?>
<div style="height:50px"></div>

<div style="width:900px; padding-left:100px">


<table cellpadding="0px" cellspacing="0" width="900px">
<tr><td class="headingText">About Us</td></tr>
<tr><td class="paraText" width="900px">
<b>About My Tour</b></br>

My Tour aims to increase awareness of many tourist attractions, to encourage and support
travel to My Tour.
Although associated with the My Tour National Tourist Office – North America, My Tour
remains an independent, non-profit, initiative to produce Web content and to offer assistance
to North-American and Australian travelers interested in visiting My Tour.
About the My Tour National Tourist Office
The My Tour National Tourist Office — North America (MtNTO) is the official representative
of the My Tour Tourist Authority
Founded in 2012 to satisfy the growing demand for trusted information and knowledge about
tourism , MtNTO's mission is to represent all the components of My Tour travel industry and
to promote and facilitate increased inbound travel.
MtNTO's activities include:
Providing information to North American travelers, press, tour operators and travel agencies
regarding tourist attractions, travel conditions, events and tourist facilities within My Tour.
Facilitating contacts and cooperation between North American and My Tour organizations and
business companies involved in travel and tourism in My Tour
Marketing activities aimed at increasing awareness of tourist attractions among media,
consumers and business companies resulting in increased visitation to My Tour.
We handle all types of travel; everything from airline tickets, Canadian & International tours,
packaged vacations in Canada, the United States and abroad, cruises & hotel bookings. We're
also experts in travel to the island paradise of Cuba.
We're also "specialists" in educational and youth organization tour travel. Our student travel
services are second to none, which enables us to provide your student or youth organization
group with excellent tours across North America, Britain and Europe.

NSIC/BCA/VI/15A1SB7019 Page | 39
Whether you're a seasoned traveller, or a first timer, our goal is to ensure your vacation exceeds
your expectations. If you're looking for a Tour Package to an international destination, you
should pay a visit our Tour Information page first. You'll find everything you need to know
about Tour selection and buying.

</td></tr>
<tr><td colspan="3"><img src="images/ttttt.jpg" width="1200px"
height="700px"/></td></tr>

<tr><td colspan="3" class="paraText"><div class="container">


<div class="about-grids">
<h4><b><span class="icon1"></span>Our Vision</b></h4>
Tourism which is ethical, fair and a positive experience for both
travellers and the people and places they visit.My Tour seeks to enhance the corporate
management tools to improve the service while reducing your travel costs. We manage almost
every type of travel needs, from simplest to the complex, and create an unparalleled experience
that our customers could rely on. We aim to maintain our vision of high class travel services at
reasonable prices through consistent leadership, controlled growth and excellent
commitment.Keeping our vision, “value for money & client satisfaction” as a compass. The
number of passengers serviced annually today, is more than ten times higher than that we
serviced on annual basis when we first started up. Through continuous investments in
contemporary travel related technology and quality assurance, My Tour Vision Travel has
positioned itself today as one of the Top Ranked Travel and Tour Operating Companies in
world, capable of meeting any Individual, Group, Organization or tour operator’s requirement.
There are presently few competitors offering services similar to ours. However considering the
pace of change and current growth rate of the tourism industry luring many companies into the
sector, this may be short-lived. Hence there will be a need to not only firmly establish ourselves
on the market, but also strongly differentiate ourselves from these other businesses.
My Tour Vision Travel is one of the few organizations that can offer all over the world a full
spectrum of tourism services with flexible and efficient solutions, as a one stop supplier. The
services we provide are of a high standard as well as to save both time and money.
We invite you to share our vision and benefit from our expertise, professionalism, flexibility,
personalized approach, strong purchasing power and comprehensive product portfolio.
</div></td></tr>
<tr><td class="paraText"> <div class="about-grids grid2">
<h4><b><span class="icon2"></span>Our Mission</b></h4>
To ensure tourism always benefits local people by challenging bad
practice and promoting better tourism.My travel seeks to manage the travel requirements of
your company and add value to your travel spend. We tend to focus on the customers’
requirements to come up with effective strategies for meeting their demands in an efficient
manner. Our mission is to offer corporate travel solutions and become the biggest travel agency

NSIC/BCA/VI/15A1SB7019 Page | 40
in the World.Efficiency, Flexibility and Quality Service with a Personal Touch, combined with
strong purchasing advantages and Value for Money.
We’re committed to offer competitive value for money and high level services in order to
achieve total client satisfaction. We want to meet and exceed all business clients ‘goals and
objectives, strive for excellence in quality, integrity, professionalism and value in all we do.
The Company offers packages in the most sought after international tickets, passport and visa
assistance, pilgrim tours, inbound and outbound tours as well as to the most popular
destinations Worldwide.
We want our partners and ourselves to grow profitably in our respective country, through
thorough market analysis, continuous product development, aggressive yield management and
prudent financial risk monitoring.

</div></td></tr>
<tr> <td class="paraText"><div class="about-grids">
<h4><b><span class="icon3"></span>Safety Information</b></h4>
Vacation is a time to relax in safe surroundings.For emergency aid of
any kind, call 911 from any phone... in your hotel, dial 9-911.
some safety tips are:<br/><br/>
<b>TRANSPORTATION SAFETY TIPS:</b><br/>
While traveling you should always keep in mind certain transportation safety tips as well:-
Always choose the safest mode of transport for traveling. Do check its previous safety track
record.<br/>
Be mindful of other passengers traveling with you and never hesitate to report any suspicious
act to the concerned authorities.<br/>
Never share cab or taxi with strangers. As carjacking is the biggest threat for a traveler.<br/>
While traveling by flight, always pay attention to the preflight briefing about closest
emergency exit door, fastening your seat belts properly, applying oxygen masks and other
important details to be followed in case of emergency.<br/>
Do not ignore all significant details provided by flight attendant. They are prime source of
aid in case of emergency and unexpected turbulence.<br/>
Wear money belts, hidden neck and waist pouches, hidden pocket wallets and zippered
compartments under your clothes to avoid pick pocketing.<br/><br/>

<b>HOTEL SAFETY TIPS: </b><br/><br/>

Choosing the safest accommodation at an unknown place could be a biggest concern for you.
Therefore be aware of certain tips while choosing a safest hotel for your self.<br/>

NSIC/BCA/VI/15A1SB7019 Page | 41
Never hesitate to choose the best and safest hotel in town.<br/>
Always carry all the important documents with you while going out of your hotel room.<br/>
Double check window and door locks before leaving the hotel room.<br/>
Prefer to keep your important luggage at receptions locker.<br/>
Get well versed with emergency exits, fire escapes, emergency stairwells to be used in case
of emergency.<br/>
To make most out of your trip these basic general safety tips can prove to be very helpful.
</div>
</div>
</td> </tr></table>

</div>

<div style="clear:both"></div>

<?php include('bottom.php'); ?>


</body>
</html>

Category
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

NSIC/BCA/VI/15A1SB7019 Page | 42
<link href="stylecss.css" rel='stylesheet' type='text/css'/>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css'/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
</head>

<body>
<?php include('function.php'); ?>
<?php include('top.php'); ?>
<!--/sticky-->
<?php include('slider.php'); ?>
<div style="height:50px"></div>
<div style="width:1000px; margin:auto" >

<div style="width:200px; float:left">

<table cellpadding="0" cellspacing="0" width="1000px">


<tr><td style="font-family:Lucida Calligraphy; font-size:20px;
color:#09F"><b>Category</b></td></tr>
<?php

NSIC/BCA/VI/15A1SB7019 Page | 43
$s="select * from category";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{

echo "<tr><td style=' padding:5px;'><b><a


href='subcat.php?catid=$data[0]'>$data[1]</a></b></td></tr>";

}
mysqli_close($cn);
?>

</table>

</div>

<div style="width:800px; float:left">


<table cellpadding="0px" cellspacing="0" width="1000px">
<tr><td class="headingText">Welcome to My Tour</td></tr>
<tr><td class="paraText" width="900px">Plan and Book Your Perfect Trip.Create your dream
holiday.
what you like. Do what you love.
What's New Explore new experiences, attractions, food and wine trends.
What will you find during your visit to My Tour? Awe-inspiring natural beauty and the
dramatic
red rock landscape of the Colorado National Monument. Exhilarating outdoor adventures
including
hiking, camping or skiing on the Grand Mesa. Hundreds of miles of world-class mountain
biking trails

NSIC/BCA/VI/15A1SB7019 Page | 44
such as the Kokopelli Trail. Incredible whitewater rafting on the Colorado River. Stunning golf
courses
whose green fairways are juxtaposed against the craggy Redland desert. Peaceful places to
reflect and
unwind amidst the natural splendor of Colorado's Western Slope. A charming downtown full
of great
shops, restaurants, art galleries and so much more. This is My Tour, where you can experience
beautiful tourist places.</td><td style="background-image:url(images/13.jpg); background-
repeat:no-repeat; color:#FFF; font-family:Lucida Sans Unicode, Lucida Grande, sans-serif;
font-size:24px; " width="700px" height="250px" ><div style="background:linear-
gradient(#09F,#096,#09F); vertical-align:text-top; padding-left:5%; width:100%;">HAVE A
GOOD TIME &nbsp;&nbsp;&nbsp; without spending a dime</div ></td></tr></table>

</div>

</div>

<div style="clear:both"></div>

<?php include('bottom.php'); ?>


</body>
</html>

Enquiry
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>
<link href="stylecss.css" rel='stylesheet' type='text/css'/>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css'/>

NSIC/BCA/VI/15A1SB7019 Page | 45
<link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
</head>

<body>
<?php include('function.php'); ?>
<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="insert into
enquiry(Packageid,Name,Gender,Mobileno,Email,NoofDays,Child,Adults,Message,Statusfie
ld) values('" . $_REQUEST["pid"] ."','" . $_POST["t1"] ."','" . $_POST["r1"] ."','" .
$_POST["t2"] ."','" . $_POST["t3"] ."','" . $_POST["t4"] ."','" . $_POST["t5"] ."','" .
$_POST["t6"] ."','" . $_POST["t7"] ."','Pending')";

mysqli_query($cn,$s);

echo "<script>alert('Record Save');</script>";


}

NSIC/BCA/VI/15A1SB7019 Page | 46
?>

<?php include('top.php'); ?>


<!--/sticky-->
<?php include('slider.php'); ?>
<div style="height:50px"></div>
<div style="width:1000px; margin:auto" >

<div style="width:200px; font-size:18px; color:#09F; float:left">

<table cellpadding="0" cellspacing="0" width="1000px">


<tr><td style="font-size:18px" color="#09F">Category</td></tr>
<?php

$s="select * from category";


$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{

echo "<tr><td style=' padding:5px;'><a


href='subcat.php?catid=$data[0]'>$data[1]</a></td></tr>";

}
?>

</table>

</div>

NSIC/BCA/VI/15A1SB7019 Page | 47
<div style="width:800px; float:left">
<table cellpadding="0px" cellspacing="0" width="1000px">
<tr><td class="headingText">Enquiry</td></tr>
<tr><td class="paraText" width="900px">
<table cellpadding="0" cellspacing="0" width="900px">
<td>

<table border="0"; width="600px" height="400px" align="center" >


<?php

$s="select * from package,category,subcategory where package.category=category.cat_id and


package.subcategory=subcategory.subcatid and package.packid='" . $_GET["pid"] ."'";

$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;
$n=0;
$data=mysqli_fetch_array($result);
mysqli_close($cn);
?>

<form method="post" enctype="multipart/form-data">


<tr><td colspan="3" class="middletext">Package Id:&nbsp;&nbsp;&nbsp;<?php echo
$data[0];?></td></tr>
<tr><td colspan="3" class="middletext">Pack Name:&nbsp;&nbsp;&nbsp;<?php echo
$data[1];?></td></tr>
<tr><td class="lefttxt">Name:</td><td><input type="text" name="t1" required pattern="[a-
zA-z1 _]{3,50}" title"Please Enter Only Characters and numbers between 1 to 50 for
Name"/></td></tr><br/>
<tr><td class="lefttxt">Gender:</td><td><input type="radio" name="r1" value="Male"
checked="checked" />Male<input type="radio" name="r1"
value="Female"/>Female</td></tr><br/>
<tr><td class="lefttxt">Mobile No.</td><td><input type="text" name="t2" required
pattern="[0-9]{10,12}" title"Please Enter Only numbers between 10 to 12 for Mobile
No"/></td></tr><br/>

NSIC/BCA/VI/15A1SB7019 Page | 48
<tr><td class="lefttxt">Email:</td><td><input type="email" name="t3" required
/></td><td><br/>
<tr><td class="lefttxt">No.of Days:</td><td><input type="number" name="t4" required
pattern="[1 _]{1,20}" title"Please Enter Only numbers between 1 to 20 for No. oF
Days"/></td><td><br/>
<tr><td class="lefttxt">No.of Children:</td><td><input type="number" name="t5" required
pattern="[1 _]{1,10}" title"Please Enter Only numbers between 1 to 10 for
Children"/></td><td><br/>
<tr><td class="lefttxt">No.of Adults:</td><td><input type="number" name="t6" required
pattern="[1 _]{1,20}" title"Please Enter Only numbers between 1 to 20 for No.Of
Adults"/></td><td><br/>
<tr><td class="lefttxt">Enquiry Message:</td><td><textarea name="t7"
required="required"/></textarea></td><td><br/>
<tr><td>&nbsp;</td><td ><input type="submit" value="Submit" name="sbmt" /></td></tr>

</form></td></tr>
</table>
</td>
</table>
</td></tr>
</table>

</div>

</div>

<div style="clear:both"></div>

<?php include('bottom.php'); ?>


</body>
</html>

Subcat.php

NSIC/BCA/VI/15A1SB7019 Page | 49
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>
<link href="stylecss.css" rel='stylesheet' type='text/css'/>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css'/>
<link href="css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
</head>

<body>
<?php include('function.php'); ?>
<?php include('top.php'); ?>
<!--/sticky-->
<?php include('slider.php'); ?>
<div style="height:50px"></div>

NSIC/BCA/VI/15A1SB7019 Page | 50
<div style="width:1000px; margin:auto" >

<div style="width:200px; float:left">

<table cellpadding="0" cellspacing="0" width="1000px">


<tr><td style="font-size:20px; font-family:Lucida Calligraphy;
color:#09F"><b>Category</b></td></tr>
<?php

$s="select * from category";


$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{

echo "<tr><td style=' padding:5px;'><a


href='subcat.php?catid=$data[0]'>$data[1]</a></td></tr>";

?>

</table>

</div>

<div style="width:800px; float:left">


<table cellpadding="0px" cellspacing="0" width="1000px">
<tr><td class="headingText">Subcategories</td></tr>
<tr><td class="paraText" width="900px">

NSIC/BCA/VI/15A1SB7019 Page | 51
<table cellpadding="0" cellspacing="0" width="900px">

<?php

$s="select * from subcategory where Catid='" .$_GET["catid"] . "'";


$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;
$n=0;
while($data=mysqli_fetch_array($result))
{

if($n%3==0)
{
?>

<tr>
<?php

}?>
<td>
<table border="0" width="100px" bordercolor="#FF6666">

<tr><td align="center" style="background-color:#60B0E6; font-family:Lucida Calligraphy;


color:#FFF"><?php echo $data[1];?> </td></tr>
<tr><td class="image"><img src="Admin/subcatimages/<?php echo $data[3]; ?>"
width="250px" height="200px" /></td></tr><br/><br/>
<tr><td align="center" style="background-color:#60B0E6; font-family:Lucida
Calligraphy"><a href="package.php?subcatid=<?php echo $data[0];?>"><font
color="#FFFFFF">View Detail</font></a></td></tr>

NSIC/BCA/VI/15A1SB7019 Page | 52
</table>
</td>
<?php

if($n%3==2)
{
?>
</tr>

<?php
}
$n=$n+1;
}
mysqli_close($cn);
?>

</table>

</td></tr></table>

</div>

</div>

<div style="clear:both"></div>

<?php include('bottom.php'); ?>


</body>

NSIC/BCA/VI/15A1SB7019 Page | 53
</html>

Admin .php

Add Advertisement.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

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


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->

NSIC/BCA/VI/15A1SB7019 Page | 54
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>

<?php include('top.php'); ?>


<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">
<form method="post" enctype="multipart/form-data">
<table border="0" width="400px" height="300px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Add Advertisement</td></tr>
<tr><td class="lefttxt">Title</td><td><input type="text" name="t1" required pattern="[a-zA-
z _]{3,50}" title"Please Enter Only Characters between 3 to 50 for Title" /></td></tr>

NSIC/BCA/VI/15A1SB7019 Page | 55
<tr><td class="lefttxt">Company Name</td><td><input type="text" name="t2"
required="required" pattern="[a-zA-z. _]{3,50}" title"Please Enter Only Characters between 3
to 50 for Company name" /></td></tr>
<tr><td class="lefttxt">Upload Pic</td><td><input type="file" name="t3"/></td></tr>
<tr><td class="lefttxt">Details</td><td><textarea name="t4"/></textarea></td></tr>
<tr><td>&nbsp;</td><td ><input type="submit" value="SAVE" name="sbmt" /></td></tr>
</table>
</form>
</div>
</div>
<?php include('bottom.php'); ?>

<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();

$target_dir = "addverimages/";
$target_file = $target_dir.basename($_FILES["t3"]["name"]);
$uploadok = 1;
$imagefiletype = pathinfo($target_file, PATHINFO_EXTENSION);
//check if image file is a actual image or fake image
$check=getimagesize($_FILES["t3"]["tmp_name"]);
if($check!==false) {
echo "file is an image - ". $check["mime"]. ".";
$uploadok = 1;
}else{
echo "file is not an image.";
$uploadok=0;
}

NSIC/BCA/VI/15A1SB7019 Page | 56
//aloow certain file formats
if($imagefiletype != "jpg" && $imagefiletype !="png" && $imagefiletype !="jpeg"
&& $imagefileype !="gif"){
echo "sorry, only jpg, jpeg, Png & gif files are allowed.";
$uploadok=0;
}else{
if(move_uploaded_file($_FILES["t3"]["tmp_name"], $target_file)){

$s="insert into advertisement(title,companyname,pic,detail) values('" . $_POST["t1"]


."','" . $_POST["t2"] . "','" . basename($_FILES["t3"]["name"]) . "','" . $_POST["t4"] ."')";
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Save');</script>";

} else{
echo "sorry there was an error uploading your file.";
}}
}
?>

</body>
</html>

Add Category.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
NSIC/BCA/VI/15A1SB7019 Page | 57
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->

NSIC/BCA/VI/15A1SB7019 Page | 58
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}

?>
<?php include('function.php'); ?>
<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="insert into category(Cat_name) values('" . $_POST["t1"] ."')";
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Save');</script>";
}
?>

<?php include('top.php'); ?>


<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">

NSIC/BCA/VI/15A1SB7019 Page | 59
<form method="post">
<table border="0" width="400px" height="200px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Add Category</td></tr>
<tr><td class="lefttxt">Category Name</td><td><input type="text" name="t1" required
pattern="[a-zA-z _]{3,20}" title"Please Enter Only Characters between 3 to 10 for Category
Name" /></td></tr>
<tr><td>&nbsp;</td><td ><input type="submit" value="SAVE" name="sbmt" /></td></tr>

</table>
</form>
</div>
</div>
<?php include('bottom.php'); ?>
</body>
</html>

Add Package.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

NSIC/BCA/VI/15A1SB7019 Page | 60
<link href="style.css" rel="stylesheet" type="text/css" />

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

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


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}

NSIC/BCA/VI/15A1SB7019 Page | 61
?>
<?php include('function.php'); ?>
<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="insert into category(Cat_name) values('" . $_POST["t1"] ."')";
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Save');</script>";
}
?>

<?php include('top.php'); ?>


<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">

<form method="post">
<table border="0" width="400px" height="200px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Add Category</td></tr>
<tr><td class="lefttxt">Category Name</td><td><input type="text" name="t1" required
pattern="[a-zA-z _]{3,20}" title"Please Enter Only Characters between 3 to 10 for Category
Name" /></td></tr>

NSIC/BCA/VI/15A1SB7019 Page | 62
<tr><td>&nbsp;</td><td ><input type="submit" value="SAVE" name="sbmt" /></td></tr>
</table>
</form>
</div>
</div>
<?php include('bottom.php'); ?>
</body>
</html>

Add SubCategory.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

NSIC/BCA/VI/15A1SB7019 Page | 63
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>

<?php include('top.php'); ?>


<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">

NSIC/BCA/VI/15A1SB7019 Page | 64
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">
<form method="post" enctype="multipart/form-data">
<table border="0" width="400px" height="300px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Add Subcategory</td></tr>
<tr><td class="lefttxt">Subcategory Name</td><td><input type="text" name="t1" required
pattern="[a-zA-z _]{2,50}" title"Please Enter Only Characters between 2 to 50 for Subcategory
name"/></td></tr>
<tr><td class="lefttxt">Select Category</td><td><select name="t2" required/><option
value="">Select</option>
<?php
$cn=makeconnection();
$s="select * from category";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{

echo "<option value=$data[0]>$data[1]</option>";

}
?>

</select>
<tr><td class="lefttxt">Upload Pic</td><td><input type="file" name="t3" /></td></tr>
<tr><td class="lefttxt">Details</td><td><textarea name="t4"/></textarea></td></tr>
<tr><td>&nbsp;</td><td ><input type="submit" value="SAVE" name="sbmt" /></td></tr>

NSIC/BCA/VI/15A1SB7019 Page | 65
</table>
</form>
</div>
</div>
<?php include('bottom.php'); ?>
<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();

$target_dir = "subcatimages/";
$target_file = $target_dir.basename($_FILES["t3"]["name"]);
$uploadok = 1;
$imagefiletype = pathinfo($target_file, PATHINFO_EXTENSION);
//check if image file is a actual image or fake image
$check=getimagesize($_FILES["t3"]["tmp_name"]);
if($check!==false) {
echo "file is an image - ". $check["mime"]. ".";
$uploadok = 1;
}else{
echo "file is not an image.";
$uploadok=0;
}

//check if file already exists


if(file_exists($target_file)){
echo "sorry,file already exists.";
$uploadok=0;
}

NSIC/BCA/VI/15A1SB7019 Page | 66
//check file size
if($_FILES["t3"]["size"]>500000){
echo "sorry, your file is too large.";
$uploadok=0;
}
//aloow certain file formats
if($imagefiletype != "jpg" && $imagefiletype !="png" && $imagefiletype !="jpeg"
&& $imagefileype !="gif"){
echo "sorry, only jpg, jpeg, Png & gif files are allowed.";
$uploadok=0;
}else{
if(move_uploaded_file($_FILES["t3"]["tmp_name"], $target_file)){

$s="insert into subcategory(Subcatname,Catid,pic,detail) values('" . $_POST["t1"]


."','" . $_POST["t2"] . "','" . basename($_FILES["t3"]["name"]) . "','" . $_POST["t4"] ."')";
mysqli_query($cn,$s);

echo "<script>alert('Record Save');</script>";

} else{
echo "sorry there was an error uploading your file.";
}}
}
?>

</body>
</html>

Add User.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
NSIC/BCA/VI/15A1SB7019 Page | 67
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->

NSIC/BCA/VI/15A1SB7019 Page | 68
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>

<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="insert into users values('" . $_POST["t1"] ."','" . $_POST["t2"] . "','" .
$_POST["s1"] . "')";
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Save');</script>";
}
?>

<?php include('top.php'); ?>


<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>

NSIC/BCA/VI/15A1SB7019 Page | 69
</div>
<div class="col-sm-9">
<form method="post">
<table border="0" width="400px" height="300px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Add User</td></tr>
<tr><td class="lefttxt">User Name</td><td><input type="text" name="t1" required
pattern="[a-zA-z1 _]{3,50}" title"Please Enter Only Characters and numbers between 3 to 50
for User name" /></td></tr>
<tr><td class="lefttxt">Password</td><td><input type="password" name="t2" required
pattern="[a-zA-z0-9]{1,10}" title"Please Enter Only Characters and numbers between 1 to 10
for Company name"/></td></tr>
<tr><td class="lefttxt">Confirm Password</td><td><input type="password" name="t3"
required pattern="[a-zA-z0-9]{1,10}" title"Please Enter Only Characters and numbers between
1 to 10 for Company name"/></td></tr>
<tr><td class="lefttxt">Type of User</td><td><select name="s1" required><option
value="">Select</option><option value="Admin">Admin</option><option
value="General">General</option></select></td></tr>
<tr><td>&nbsp;</td><td ><input type="submit" value="SAVE" name="sbmt" /></td></tr>
</table>
</form>
</div>
</div>
<?php include('bottom.php'); ?>
</body>
</html>

Bottom.php

<div class="copyright text-right">


<p style="padding-right:100px">Designed by:V Santhosh Kumar</p>
</div>
<script src="js/jquery.scrollTo.js"></script>
<script src="js/jquery.nav.js"></script>
<script type="text/javascript">
$(document).ready(function() {

NSIC/BCA/VI/15A1SB7019 Page | 70
$('#nav').onePageNav({
begin: function() {
console.log('start')
},
end: function() {
console.log('stop')
}
});
});
</script>

ChStatus.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>

<?php include('function.php'); ?>


<?php

$cn=makeconnection();
$s="update enquiry set statusfield='Confirm' where enquiryid='" . $_GET["eid"] . "'";
mysqli_query($cn,$s);
mysqli_close($cn);
header("location:viewenquiry.php");
?>
</body>

NSIC/BCA/VI/15A1SB7019 Page | 71
</html>

Delete Advertisement.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

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


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

NSIC/BCA/VI/15A1SB7019 Page | 72
<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>


<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="delete from advertisement where Advid='" . $_POST["t1"] . "'";
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Delete');</script>";
}
?>

NSIC/BCA/VI/15A1SB7019 Page | 73
<?php include('top.php'); ?>
<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">
<form method="post" enctype="multipart/form-data">
<table border="0" width="400px" height="300px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Delete Advertisement</td></tr>
<tr><td class="lefttxt">Select Title</td><td><select name="t1" required/><option
value="">Select</option>
<?php
$cn=makeconnection();
$s="select * from advertisement";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;
while($data=mysqli_fetch_array($result))
{
if(isset($_POST["show"])&& $data[0]==$_POST["t1"])
{
echo"<option value=$data[0] selected>$data[1]</option>";
}
else
{
echo "<option value=$data[0]>$data[1]</option>";
}
}
mysqli_close($cn);

NSIC/BCA/VI/15A1SB7019 Page | 74
?>

</select>
<input type="submit" value="Show" name="show" formnovalidate/>
<?php
if(isset($_POST["show"]))
{
$cn=makeconnection();
$s="select * from advertisement where Advid='" .$_POST["t1"] ."'";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

$data=mysqli_fetch_array($result);
$Advid=$data[0];
$Title=$data[1];
$Companyname=$data[2];
$Pic=$data[3];

mysqli_close($cn);

?>

</td></tr>

<tr><td class="lefttxt">Company Name</td><td><input type="text" value="<?php


if(isset($_POST["show"])){ echo $Companyname ;} ?> " name="t2" required pattern="[a-zA-

NSIC/BCA/VI/15A1SB7019 Page | 75
z _]{1,50}" title"Please Enter Only Characters between 1 to 50 for Company
Name"/></td></tr>

<tr><td class="lefttxt">Old Pic</td><td><img src="addverimages/<?php echo @$Pic; ?>"


width="150px" height="100px" /></td></tr>
<tr><td>&nbsp;</td><td ><input type="submit" value="Delete" name="sbmt" /></td></tr>
</table>
</form>
</div>
</div>
<?php include('bottom.php'); ?>
<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();

$target_dir = "addverimages/";
$target_file = $target_dir.basename($_FILES["t3"]["name"]);
$uploadok = 1;
$imagefiletype = pathinfo($target_file, PATHINFO_EXTENSION);
//check if image file is a actual image or fake image
$check=getimagesize($_FILES["t3"]["tmp_name"]);
if($check!==false) {
echo "file is an image - ". $check["mime"]. ".";
$uploadok = 1;
}else{
echo "file is not an image.";
$uploadok=0;
}

//check if file already exists


if(file_exists($target_file)){

NSIC/BCA/VI/15A1SB7019 Page | 76
echo "sorry,file already exists.";
$uploadok=0;
}

//check file size


if($_FILES["t3"]["size"]>500000){
echo "sorry, your file is too large.";
$uploadok=0;
}

//aloow certain file formats


if($imagefiletype != "jpg" && $imagefiletype !="png" && $imagefiletype !="jpeg"
&& $imagefileype !="gif"){
echo "sorry, only jpg, jpeg, Png & gif files are allowed.";
$uploadok=0;
}else{
if(move_uploaded_file($_FILES["t3"]["tmp_name"], $target_file)){

} else{
echo "sorry there was an error uploading your file.";
}}
}
?>

</body>
</html>

Delete Category.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts

NSIC/BCA/VI/15A1SB7019 Page | 77
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>

NSIC/BCA/VI/15A1SB7019 Page | 78
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>


<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="delete from category where Cat_id='" . $_POST["t1"] . "'";
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Delete');</script>";
}
?>

<?php include('top.php'); ?>


<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">

NSIC/BCA/VI/15A1SB7019 Page | 79
<form method="post">
<table border="0" width="400px" height="200px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Delete Category</td></tr>
<tr><td class="lefttxt">Select Category</td><td><select name="t1" required/><option
value="">Select</option>

<?php
$cn=makeconnection();
$s="select * from category";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{

echo "<option value=$data[0]>$data[0]</option>";

}
mysqli_close($cn);

?>

</select>

<?php
if(isset($_POST["show"]))

NSIC/BCA/VI/15A1SB7019 Page | 80
{
$cn=makeconnection();
$s="select * from category where Cat_id='" .$_POST["t1"] ."'";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

$data=mysqli_fetch_array($result);
$Cat_id=$data[0];
$Cat_name=$data[1];

mysqli_close($cn);

?>

</td></tr>

<tr><td>&nbsp;</td><td ><input type="submit" value="Delete" name="sbmt" /></td></tr>


</table>
</form>
</div>

</div>
<?php include('bottom.php'); ?>
</body>
</html>

NSIC/BCA/VI/15A1SB7019 Page | 81
Delete Package.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

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


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->

NSIC/BCA/VI/15A1SB7019 Page | 82
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>
<?php include('function.php'); ?>
<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="delete from package where packid='" . $_POST["t1"] . "'";
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Delete');</script>";
}
?>
<?php include('top.php'); ?>
<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">

NSIC/BCA/VI/15A1SB7019 Page | 83
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">
<form method="post" enctype="multipart/form-data">
<table border="0" width="400px" height="150px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Delete Package</td></tr>
<tr><td class="lefttxt">Select Package</td><td><select name="t1" required/><option
value="">Select</option>
<?php
$cn=makeconnection();
$s="select * from package";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{

echo "<option value=$data[0]>$data[1]</option>";

}
mysqli_close($cn);
?>
</select>
</td></tr>
<tr><td>&nbsp;</td><td ><input type="submit" value="Delete" name="sbmt" /></td></tr>

</table>
</form>

</div>

NSIC/BCA/VI/15A1SB7019 Page | 84
</div>
<?php include('bottom.php'); ?>

</body>
</html>

Delete Sub Category.php


<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

NSIC/BCA/VI/15A1SB7019 Page | 85
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>

<?php
if(isset($_POST["sbmt"]))
{

NSIC/BCA/VI/15A1SB7019 Page | 86
$cn=makeconnection();
$s="delete from subcategory where subcatid='" . $_POST["s1"] . "'";
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Delete');</script>";
}
?>

<?php include('top.php'); ?>


<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">

<form method="post" enctype="multipart/form-data">


<table border="0" width="400px" height="250px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Delete Subcategory</td></tr>
<tr><td class="lefttxt">Select Category</td><td><select name="t2" required/><option
value="">Select</option>

<?php
$cn=makeconnection();
$s="select * from category";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);

NSIC/BCA/VI/15A1SB7019 Page | 87
//echo $r;

while($data=mysqli_fetch_array($result))
{
if(isset($_POST["show"])&& $data[0]==$_POST["t2"])
{
echo "<option value=$data[0] selected>$data[1]</option>";
}
else
{
echo "<option value=$data[0]>$data[1]</option>";
}

}
mysqli_close($cn);
?>
</select>
<input type="submit" value="Show" name="show" formnovalidate/>

<tr><td class="lefttxt">Select Subcategory</td><td><select name="s1" required/><option


value="">Select</option>

<?php
if(isset($_POST["show"]))
{

$cn=makeconnection();
$s="select * from subcategory where catid='" . $_POST["t2"] ."'";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);

NSIC/BCA/VI/15A1SB7019 Page | 88
//echo $r;

while($data=mysqli_fetch_array($result))
{

echo "<option value=$data[0]>$data[1]</option>";

}
mysqli_close($cn);
}
?>

</select>

</td></tr>

<tr><td>&nbsp;</td><td ><input type="submit" value="Delete" name="sbmt" /></td></tr>

</table>
</form>

</div>

</div>
<?php include('bottom.php'); ?>

</body>
</html>

Delete User.php

NSIC/BCA/VI/15A1SB7019 Page | 89
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

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


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">

NSIC/BCA/VI/15A1SB7019 Page | 90
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>


<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="delete from users where Username='" . $_POST["t1"] . "'";
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Delete');</script>";
}
?>

<?php include('top.php'); ?>


<!--/sticky-->

NSIC/BCA/VI/15A1SB7019 Page | 91
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">
<form method="post">
<table border="0" width="400px" height="200px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Delete User</td></tr>
<tr><td class="lefttxt">Select User</td><td><select name="t1" required/><option
value="">Select</option>

<?php
$cn=makeconnection();
$s="select * from users";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{

echo "<option value=$data[0]>$data[0]</option>";

}
mysqli_close($cn);

?>
</select>

<?php

NSIC/BCA/VI/15A1SB7019 Page | 92
if(isset($_POST["show"]))
{
$cn=makeconnection();
$s="select * from users where Username='" .$_POST["t1"] ."'";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

$data=mysqli_fetch_array($result);
$Username=$data[0];
$Pass=$data[1];
$Usertype=$data[2];

mysqli_close($cn);

?>

</td></tr>

<tr><td>&nbsp;</td><td ><input type="submit" value="Delete" name="sbmt" /></td></tr>


</table>
</form>
</div>

</div>
<?php include('bottom.php'); ?>
</body>
</html>

NSIC/BCA/VI/15A1SB7019 Page | 93
Form.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form>
<table border="1" width="300px" height="300px">
<tr><td colspan="2" align="center">Add User</td></tr>
<tr><td>User Name</td><td><input type="text" /></td></tr>
<tr><td>Password</td><td><input type="password"/></td></tr>
<tr><td>Confirm Password</td><td><input type="password"/></td></tr>
<tr><td>Type of User</td><td><select><option value="Select">Select</option><option
value="Admin">Admin</option><option
value="General">General</option></select></td></tr>
<tr><td colspan="2" align="center"><input type="button" value="SAVE" /></td></tr>
</table>
</form>
</body>
</html>

Function.php
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

NSIC/BCA/VI/15A1SB7019 Page | 94
<body>
<?php
function makeconnection()
{
$cn=mysqli_connect("localhost","root","","travel");
if(mysqli_connect_errno())
{
echo "failed to connect to mysqli:".mysqli_connect_error();
}
return $cn;
}

$cn=mysqli_connect("localhost","root","","travel");
?>
</body>
</html>

Index.php
<?php if(!isset($_SESSION)) { session_start(); } ?>

<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>

NSIC/BCA/VI/15A1SB7019 Page | 95
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>
<link href="../css/bootstrap.css" rel='stylesheet' type='text/css'/>
<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->

<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

NSIC/BCA/VI/15A1SB7019 Page | 96
<?php include('top.php'); ?>
<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9" align="center"><img src="adminpics/ert.jpg" style="padding-
top:40px" width="500px" height="400px"/></div>

</div>
<?php include('bottom.php'); ?>
</body>
</html>

Index.php
<?php if(!isset($_SESSION)) { session_start(); } ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"


"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<table style="width:100%">
<tr><td style="font-size:28px">Admin Links</td></tr>

<?php if($_SESSION["usertype"]=="Admin")
{?>

NSIC/BCA/VI/15A1SB7019 Page | 97
<tr><td><a href="adduser.php">Add User</a></td></tr>
<tr><td><a href="updateuser.php">Update User</a></td></tr>
<tr><td><a href="deleteuser.php">Delete User</a></td></tr>

<?php }?>

<tr><td><a href="addcategory.php">Add Category</a></td></tr>

<?php if($_SESSION["usertype"]=="Admin")
{?>
<tr><td><a href="updatecategory.php">Update Category</a></td></tr>
<tr><td><a href="deletecategory.php">Delete Category</a></td></tr>
<?php }?>

<tr><td><a href="viewcategory.php">View Category</a></td></tr>


<tr><td><a href="addsubcategory.php">Add Subcategory</a></td></tr>
<?php if($_SESSION["usertype"]=="Admin")
{?>
<tr><td><a href="updatesubcategory.php">Update Subcategory</a></td></tr>
<tr><td><a href="deletesubcategory.php">Delete Subcategory</a></td></tr>
<?php }?>

<tr><td><a href="viewsubcategory.php">View Subcategory</a></td></tr>


<tr><td><a href="addpackage.php">Add Package</a></td></tr>

<?php if($_SESSION["usertype"]=="Admin")
{?>
<tr><td><a href="updatepackage.php">Update Package</a></td></tr>
<tr><td><a href="deletepackage.php">Delete Package</a></td></tr>

NSIC/BCA/VI/15A1SB7019 Page | 98
<?php }?>

<tr><td><a href="viewpackage.php">View Package</a></td></tr>

<tr><td><a href="addadvertisement.php">Add Advertisement</a></td></tr>


<?php if($_SESSION["usertype"]=="Admin")
{?>
<tr><td><a href="deleteadvertisement.php">Delete Advertisement</a></td></tr>
<?php }?>

<tr><td><a href="viewadvertisement.php">View Advertisement</a></td></tr>


<tr><td><a href="viewenquiry.php">View Enquiry</a></td></tr>
</table>

</body>
</html>

Login Form.php
<?php session_start(); ?>
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
NSIC/BCA/VI/15A1SB7019 Page | 99
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->

<?php include('function.php'); ?>


<?php
$_SESSION['loginstatus']="";
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="select * from users where Username='" . $_POST["t1"] . "' and Pwd='" .
$_POST["t2"] ."'";

$q=mysqli_query($cn,$s);
$r=mysqli_num_rows($q);
$data=mysqli_fetch_array($q);
mysqli_close($cn);

NSIC/BCA/VI/15A1SB7019 Page | 100


if($r>0)
{
$_SESSION["Username"]= $_POST["t1"];
$_SESSION["usertype"]=$data[2];
$_SESSION['loginstatus']="yes";
header("location:index.php");
}
else
{
echo "<script>alert('Invalid User Name or Password');</script>";
}
}
?>

<?php include('topforlogin.php'); ?>


<!--/sticky-->
<div style="padding-top:150px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style=" min-height:450px;">

</div>
<div class="col-sm-9">
<form method="post">
<table border="0" width="500px" height="400px" align="left" class="tableshadow">
<tr><td colspan="2" class="toptd"><img src="adminpics/lo.jpg" width="550px"
height="100px" /></td></tr>

<tr><td><img src="adminpics/gggh.jpg" width="200px" height="200px" /></td>


<td class="lefttxt"><table border="0" width="100px" height="200px"><td>User
Name</td></td><td><input type="text" name="t1" required pattern="[a-zA-z _]{1,50}"
title"Please Enter Only Characters between 1 to 50 for User Name" /></td></tr>

NSIC/BCA/VI/15A1SB7019 Page | 101


<tr><td
class="lefttxt">Password&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td><input
type="password" name="t2" required pattern="[a-zA-z0-9]{1,10}" title"Please Enter Only
Characters between 1 to 10 for Password" /></td></tr></table>
<tr><td></td><td align="center" ><input type="submit" value="LOGIN" name="sbmt"
/></td></tr>
</table>
</form>
</div>
</div>
<?php include('bottom.php'); ?>
</body>
</html>

Logout.php
<?php session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<?php
$_SESSION["username"]="";
$_SESSION["usertype"]="";
$_SESSION["loginstatus"]="";

header("location:loginform.php");
?>
</body>
</html>

NSIC/BCA/VI/15A1SB7019 Page | 102


Style.css
.tableshadow{ box-shadow:10px 10px 5px #999; padding-top:40px; border:solid 1px
#60b2e7}
.lefttxt{ padding-left:30px; font-size:16px; color:#60b2e7}
.toptd{ color:white; font-size:24px; text-align:center; height:40px; background-
color:#60b2e7}

Top.php
<div class="header-top">
<!--container-->
<div class="container">
<div class="top-nav">
<div class="logo">
<a href="#"><img src="../images/logo.png"
id="section-1" class="img-responsive" alt=""/></a>
</div>
<div class="menu">
<ul id="nav">
<li><a href="../index.php"
target="_blank">Preview Website</a></li>
<li><a href="logout.php">Log
Out</a></li>
<div class="clearfix"></div>
</ul>
</div>
</div>
<div class="clearfix"> </div>

</div>
<!--/container-->
</div>

NSIC/BCA/VI/15A1SB7019 Page | 103


Top For Login.php
<div class="header-top">
<!--container-->
<div class="container">
<div class="top-nav">
<div class="logo">
<a href="#"><img src="../images/logo.png"
id="section-1" class="img-responsive" alt=""/></a>
</div>

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

</div>
<!--/container-->
</div>

Update Category.php

<?php if(!isset($_SESSION)) { session_start(); } ?>


<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>

NSIC/BCA/VI/15A1SB7019 Page | 104


<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

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


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")

NSIC/BCA/VI/15A1SB7019 Page | 105


{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>


<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="update category set Cat_name='" . $_POST["t2"] ."' where Cat_id='" .
$_POST["t1"] . "'";
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Update');</script>";
}
?>

<?php include('top.php'); ?>


<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">

<form method="post">

NSIC/BCA/VI/15A1SB7019 Page | 106


<table border="0" width="500px" height="300px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Update Category</td></tr>
<tr><td class="lefttxt">Selected Category Name</td><td><select name="t1"
required/><option value="">Select</option>

<?php
$cn=makeconnection();
$s="select * from category";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{
if(isset($_POST["show"])&& $data[0]==$_POST["t1"])
{
echo"<option value=$data[0] selected>$data[1]</option>";
}
else
{
echo "<option value=$data[0]>$data[1]</option>";
}
}
mysqli_close($cn);

?>

</select>
<input type="submit" value="Show" name="show" formnovalidate/>
<?php

NSIC/BCA/VI/15A1SB7019 Page | 107


if(isset($_POST["show"]))
{
$cn=makeconnection();
$s="select * from category where Cat_id='" .$_POST["t1"] ."'";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

$data=mysqli_fetch_array($result);
$Cat_id=$data[0];
$Cat_name=$data[1];

mysqli_close($cn);

?>

</td></tr>
<tr><td class="lefttxt">Category Name</td><td><input type="text" value="<?php
if(isset($_POST["show"])){ echo $Cat_name ;} ?>" name="t2" required pattern="[a-zA-z
_]{3,10}" title"Please Enter Only Characters between 3 to 10 for Category Name"/></td></tr>

<tr><td>&nbsp;</td><td ><input type="submit" value="Update" name="sbmt" /></td></tr>


</table>
</form>
</div>

</div>
<?php include('bottom.php'); ?>
</body>

NSIC/BCA/VI/15A1SB7019 Page | 108


</html>

Update Package.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

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


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

NSIC/BCA/VI/15A1SB7019 Page | 109


<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>

<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$f1=0;
$f2=0;
$f3=0;

$target_dir = "packimages/";
//t4

NSIC/BCA/VI/15A1SB7019 Page | 110


$target_file = $target_dir.basename($_FILES["t4"]["name"]);
$uploadok = 1;
$imagefiletype = pathinfo($target_file, PATHINFO_EXTENSION);

if(move_uploaded_file($_FILES["t4"]["tmp_name"], $target_file)){
$f1=1;
}

//t5
$target_file = $target_dir.basename($_FILES["t5"]["name"]);
$uploadok = 1;
$imagefiletype = pathinfo($target_file, PATHINFO_EXTENSION);
//t6
$target_file = $target_dir.basename($_FILES["t6"]["name"]);
$uploadok = 1;
$imagefiletype = pathinfo($target_file, PATHINFO_EXTENSION);
//check file size
if($_FILES["t6"]["size"]>500000){
echo "sorry, your file is too large.";
$uploadok=0;
}

else{
if(move_uploaded_file($_FILES["t6"]["tmp_name"], $target_file)){
$f3=1;
}
}

NSIC/BCA/VI/15A1SB7019 Page | 111


}

?>

<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();

if (empty($_FILES['t3']['name'])) {

$s="update package set Packname='" . $_POST["t1"] ."',Category='" .


$_POST["t2"] . "',Subcategory='" . $_POST["t3"] . "',Packprice='" . $_POST["t8"] . "',Pic1='"
. $_POST["h1"] . "',Pic2='" . $_POST["h2"]. "',Pic3='" .$_POST["h3"] . "',Detail='" .
$_POST["t7"] . "' where Packid='" . $_POST["s1"] . "'";

}
else
{

$s="update package set Packname='" . $_POST["t1"] ."',Category='" . $_POST["t2"] .


"',Subcategory='" . $_POST["t3"] . "',Packprice='" . $_POST["t8"] . "',Pic1='" .
basename($_FILES["t4"]["name"]) . "',Pic2='" . basename($_FILES["t5"]["name"]) .
"',Pic3='" . basename($_FILES["t6"]["name"]) . "',Detail='" . $_POST["t7"] . "' where
Packid='" . $_POST["s1"] . "'";}
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Update');</script>";
}

?>

<?php include('top.php'); ?>

NSIC/BCA/VI/15A1SB7019 Page | 112


<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">
<form method="post" enctype="multipart/form-data">
<table border="0" width="500px" height="700px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Update Package</td></tr>
<tr><td class="lefttxt">Select Package</td><td><select name="s1" required/><option
value="">Select</option>

<?php
$cn=makeconnection();
$s="select * from package";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{
if(isset($_POST["show"])&& $data[0]==$_POST["s1"])
{
echo"<option value=$data[0] selected>$data[1]</option>";
}
else
{
echo "<option value=$data[0]>$data[1]</option>";
}
}
mysqli_close($cn);
?>

NSIC/BCA/VI/15A1SB7019 Page | 113


</select>
<input type="submit" value="Show" name="show" formnovalidate/>
<?php
if(isset($_POST["show"]))
{
$cn=makeconnection();
$s="select * from package where Packid='" .$_POST["s1"] ."'";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

$data=mysqli_fetch_array($result);
$Packid=$data[0];
$Packname=$data[1];
$Category=$data[2];
$Subcategory=$data[3];
$Packprice=$data[4];
$Pic1=$data[5];
$Pic2=$data[6];
$Pic3=$data[7];
$Detail=$data[8];

mysqli_close($cn);

?>

</td></tr>

<tr><td class="lefttxt">Package Name</td><td><input type="text" value="<?php


if(isset($_POST["show"])){ echo $Packname ;} ?> " name="t1" required pattern="[a-zA-z
_]{1,50}" title"Please Enter Only Characters between 1 to 50 for Package Name"/></td></tr>

NSIC/BCA/VI/15A1SB7019 Page | 114


<tr><td class="lefttxt">Select Category</td><td><select name="t2" required/><option
value="">Select</option>

<?php
$cn=makeconnection();
$s="select * from category";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{
if(isset($_POST["show"])&& $Category==$data[0])
{

echo "<option value=$data[0] selected='selected' >$data[1]</option>";


}
else
{
echo "<option value=$data[0]>$data[1]</option>";

}
}
mysqli_close($cn);

?>

</select>

<tr><td class="lefttxt">Select Subcategory</td><td><select name="t3" required/><option


value="">Select</option>

NSIC/BCA/VI/15A1SB7019 Page | 115


<?php
$cn=makeconnection();
$s="select * from subcategory";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{
if(isset($_POST["show"])&& $Subcategory==$data[0])
{

echo "<option value=$data[0] selected='selected' >$data[1]</option>";


}
else
{
echo "<option value=$data[0]>$data[1]</option>";

}
}
mysqli_close($cn);

?>

</select>

<tr><td class="lefttxt">Package Price</td><td><input type="text" name="t8" value="<?php


if(isset($_POST["show"])){ echo $Packprice ;} ?> " /></td></tr>

NSIC/BCA/VI/15A1SB7019 Page | 116


<tr><td class="lefttxt">Old Pic</td><td><img src="packimages/<?php echo @$Pic1; ?>"
width="150px" height="50px" />
<input type="hidden" name="h1" value="<?php if(isset($_POST["show"])) {echo $Pic1;} ?>"
/>
</td></tr>
<tr><td class="lefttxt">Upload Pic1</td><td><input type="file" name="t4"/></td></tr>

<tr><td class="lefttxt">Old Pic</td><td><img src="packimages/<?php echo @$Pic2; ?>"


width="150px" height="50px" />
<input type="hidden" name="h2" value="<?php if(isset($_POST["show"])) {echo $Pic2;} ?>"
/>
</td></tr>
<tr><td class="lefttxt">Upload Pic2</td><td><input type="file" name="t5"/></td></tr>

<tr><td class="lefttxt">Old Pic</td><td><img src="packimages/<?php echo @$Pic3; ?>"


width="150px" height="50px" />
<input type="hidden" name="h3" value="<?php if(isset($_POST["show"])) {echo $Pic3;} ?>"
/>
</td></tr>
<tr><td class="lefttxt">Upload Pic3</td><td><input type="file" name="t6"/></td></tr>

<tr><td class="lefttxt">Details</td><td><textarea name="t7" /><?php


if(isset($_POST["show"])){ echo $Detail ;} ?></textarea></td></tr>
<tr><td>&nbsp;</td><td ><input type="submit" value="Update" name="sbmt" /></td></tr>

</table>
</form>
</div>
</div>
<?php include('bottom.php'); ?>
</body>

NSIC/BCA/VI/15A1SB7019 Page | 117


</html>

Update Sub Category.php


<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

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


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

NSIC/BCA/VI/15A1SB7019 Page | 118


<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>

<?php
if(isset($_POST["sbmt"]))
{

$cn=makeconnection();

$target_dir = "subcatimages/";
$target_file = $target_dir.basename($_FILES["t3"]["name"]);
$uploadok = 1;
$imagefiletype = pathinfo($target_file, PATHINFO_EXTENSION);
//check if image file is a actual image or fake image

NSIC/BCA/VI/15A1SB7019 Page | 119


if(move_uploaded_file($_FILES["t3"]["tmp_name"], $target_file)){

}else{
echo "sorry there was an error uploading your file.";
}
}
?>

<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();

if (empty($_FILES['t3']['name'])) {

$s="update subcategory set Subcatname='" . $_POST["t1"] ."',Catid='" . $_POST["t2"]


. "',Pic='" . $_POST["h1"] . "',Detail='" . $_POST["t4"] . "' where Subcatid='" . $_POST["s1"]
. "'";

}
else
{

$s="update subcategory set Subcatname='" . $_POST["t1"] ."',Catid='" .


$_POST["t2"] . "',Pic='" . basename($_FILES["t3"]["name"]) . "',Detail='" . $_POST["t4"] . "'
where Subcatid='" . $_POST["s1"] . "'";}
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Update');</script>";
}
?>

NSIC/BCA/VI/15A1SB7019 Page | 120


<?php include('top.php'); ?>
<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">

<form method="post" enctype="multipart/form-data">


<table border="0" width="450px" height="500px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Update Subcategory</td></tr>
<tr><td class="lefttxt">Select Subcategory</td><td><select name="s1" required/><option
value="">Select</option>

<?php
$cn=makeconnection();
$s="select * from subcategory";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{
if(isset($_POST["show"])&& $data[0]==$_POST["s1"])
{
echo"<option value=$data[0] selected>$data[1]</option>";
}
else
{
echo "<option value=$data[0]>$data[1]</option>";
}
}

NSIC/BCA/VI/15A1SB7019 Page | 121


mysqli_close($cn);

?>

</select>
<input type="submit" value="Show" name="show" formnovalidate/>
<?php
if(isset($_POST["show"]))
{
$cn=makeconnection();
$s="select * from subcategory where subcatid='" .$_POST["s1"] ."'";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

$data=mysqli_fetch_array($result);
$Subcatid=$data[0];
$Subcatname=$data[1];
$Catid=$data[2];
$Pic=$data[3];
$Detail=$data[4];

mysqli_close($cn);

?>

</td></tr>

NSIC/BCA/VI/15A1SB7019 Page | 122


<tr><td class="lefttxt">Subcategory Name</td><td><input type="text" value="<?php
if(isset($_POST["show"])){ echo $Subcatname ;} ?> " name="t1" required pattern="[a-zA-z1
_]{1,50}" title="Please Enter Only Characters and numbers between 1 to 50 for Subcategory
Name" /></td></tr>
<tr><td class="lefttxt">Select Category</td><td><select name="t2" value="<?php
if(isset($_POST["show"])){ echo $Catid ;} ?> " required="required" pattern="[a-zA-z1
_]{1,50}" title"Please Enter Only Characters and numbers between 1 to 50 for Company
name"/><option value="Select">Select</option>

<?php
$cn=makeconnection();
$s="select * from category";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{
if(isset($_POST["show"]) && $data[0]==$Catid)
{
echo "<option value=$data[0] selected>$data[1]</option>";
}
else
{
echo "<option value=$data[0]>$data[1]</option>";
}

}
mysqli_close($cn);
?>
</select>

<tr><td class="lefttxt">Old Pic</td><td><img src="subcatimages/<?php echo @$Pic; ?>"


width="150px" height="100px" / >

NSIC/BCA/VI/15A1SB7019 Page | 123


<input type="hidden" name="h1" value="<?php if(isset($_POST["show"])) {echo $Pic;} ?>"
/>
</td></tr>

<tr><td class="lefttxt">Upload Pic</td><td><input type="file" name="t3" /></td></tr>


<tr><td class="lefttxt">Details</td><td><textarea name="t4" /><?php
if(isset($_POST["show"])){ echo $Detail ;} ?></textarea></td></tr>
<tr><td>&nbsp;</td><td ><input type="submit" value="Update" name="sbmt" /></td></tr>

</table>
</form>

</div>

</div>
<?php include('bottom.php'); ?>

</body>
</html>

Update User.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
NSIC/BCA/VI/15A1SB7019 Page | 124
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>
<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>
<?php include('function.php'); ?>

NSIC/BCA/VI/15A1SB7019 Page | 125


<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="update users set pwd='" . $_POST["t2"] ."',Typeofuser='" . $_POST["s1"] . "'
where Username='" . $_POST["t1"] . "'";
mysqli_query($cn,$s);
mysqli_close($cn);
echo "<script>alert('Record Update');</script>";
}
?>
<?php include('top.php'); ?>
<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">

<form method="post">
<table border="0" width="400px" height="300px" align="center" class="tableshadow">
<tr><td colspan="2" class="toptd">Update User</td></tr>
<tr><td class="lefttxt">Select User</td><td><select name="t1" required/><option
value="">Select</option>

<?php
$cn=makeconnection();
$s="select * from users";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);

NSIC/BCA/VI/15A1SB7019 Page | 126


//echo $r;

while($data=mysqli_fetch_array($result))
{
if(isset($_POST["show"])&& $data[0]==$_POST["t1"])
{
echo"<option value=$data[0] selected>$data[0]</option>";
}
else
{
echo "<option value=$data[0]>$data[0]</option>";
}
}
mysqli_close($cn);

?>

</select>
<input type="submit" value="Show" name="show" formnovalidate/>
<?php
if(isset($_POST["show"]))
{
$cn=makeconnection();
$s="select * from users where Username='" .$_POST["t1"] ."'";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

$data=mysqli_fetch_array($result);
$Username=$data[0];

NSIC/BCA/VI/15A1SB7019 Page | 127


$Pass=$data[1];
$Usertype=$data[2];

mysqli_close($cn);

}
?>
</td></tr>
<tr><td class="lefttxt">Password</td><td><input type="password" value="<?php
if(isset($_POST["show"])){ echo $Pass ;} ?>" name="t2" required pattern="[a-zA-z0-
9]{1,10}" title"Please Enter Only Characters and numbers between 1 to 10 for
Password"/></td></tr>
<tr><td class="lefttxt">Confirm Password</td><td><input type="password" value="<?php
if(isset($_POST["show"])){ echo $Pass ;} ?>" name="t3" required pattern="[a-zA-z0-
9]{1,10}" title"Please Enter Only Characters and numbers between 1 to 10 for
Password"/></td></tr>
<tr><td class="lefttxt">Type of User</td><td><select name="s1" required /><option
value="">Select</option>
<option value="Admin" <?php if(isset($_POST["show"])&& $Usertype=="Admin"){ echo
"selected"; } ?>>Admin</option>
<option value="General" <?php if(isset($_POST["show"])&& $Usertype=="General"){ echo
"selected"; } ?>>General</option>
</select></td></tr>
<tr><td>&nbsp;</td><td ><input type="submit" value="Update" name="sbmt" /></td></tr>
</table>
</form>
</div>
</div>
<?php include('bottom.php'); ?>
</body>
</html>

View Advertisement.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--

NSIC/BCA/VI/15A1SB7019 Page | 128


Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

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


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>

NSIC/BCA/VI/15A1SB7019 Page | 129


new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>

<?php include('top.php'); ?>


<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">
<form method="post">
<table border="0" width="400px" height="300px" align="center" class="tableshadow">
<tr><td class="toptd">View Advertisement</td></tr>
<tr><td align="center" valign="top" style="padding-top:10px;">
<table border="0" align="center" width="90%" >
<tr><td style="font-size:15px; padding:5px; font-weight:bold;">ID</td>

NSIC/BCA/VI/15A1SB7019 Page | 130


<td style="font-size:15px; padding:5px; font-weight:bold;">Title</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Company Name</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Pics</td></tr>

<?php
$cn=mysqli_connect("localhost","root","","tourandtravel");
$s="select * from advertisement";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{

echo "<tr><td style=' padding:5px;'>$data[0]</td><td style='


padding:5px;'>$data[1]</td><td style=' padding:5px;'>$data[2]</td><td style='
padding:5px;'><img src='addverimages/$data[3]' style='height:50px' /></td></tr>";

}
mysqli_close($cn);

?>

</table>
</td></tr></table>
</form>
</div>
</div>
<?php include('bottom.php'); ?>
</body>
</html>

NSIC/BCA/VI/15A1SB7019 Page | 131


View Category.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>

NSIC/BCA/VI/15A1SB7019 Page | 132


new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>


<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="insert into category(Cat_name) values('" . $_POST["t1"] ."')";
mysqli_query($cn,$s);

echo "<script>alert('Record Save');</script>";


}
?>
<?php include('top.php'); ?>
<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>

NSIC/BCA/VI/15A1SB7019 Page | 133


</div>
<div class="col-sm-9">
<form method="post">
<table border="0" width="400px" height="300px" align="center" class="tableshadow">
<tr><td class="toptd">View Category</td></tr>
<tr><td align="center" valign="top" style="padding-top:10px;">
<table border="0" align="center" width="70%" >
<tr><td style="font-size:15px; padding:5px; font-weight:bold;">Category Id</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Category Name</td></tr>
<?php
$s="select * from category";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;
while($data=mysqli_fetch_array($result))
{

echo "<tr><td style=' padding:5px;'>$data[0]</td><td style='


padding:5px;'>$data[1]</td></tr>";

}
?>
</table>
</td></tr></table>
</form>
</div>
</div>
<?php include('bottom.php'); ?>
</body>
</html>

View Enquiry.php

NSIC/BCA/VI/15A1SB7019 Page | 134


<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>

NSIC/BCA/VI/15A1SB7019 Page | 135


<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>


<?php include('top.php'); ?>
<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">
<form method="post">
<table border="0" width="90%" height="300px" align="center" class="tableshadow">
<tr><td class="toptd">View Enquiry</td></tr>
<tr><td align="center" valign="top" style="padding-top:10px;">
<table border="0" align="center" width="95%">
<tr><td style="font-size:15px; padding:5px; font-weight:bold;" >Package Name</td>
<td style="font-size:15px; padding:5px; font-weight:bold; ">Package Id</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Name</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Gender</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Mobile No.</td>

NSIC/BCA/VI/15A1SB7019 Page | 136


<td style="font-size:15px; padding:5px; font-weight:bold;">Email</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">No. of Days</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">No. of Children</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">no. of Adults</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Status Field</td></tr>
<?php
$s="select * from enquiry,package where enquiry.Packageid=package.Packid";
$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;
while($data=mysqli_fetch_array($result))
{

echo "<td style=' padding:5px;'>$data[12]</td>


<td style=' padding:5px;'>$data[1]</td>
<td style=' padding:5px;'>$data[2]</td>
<td style=' padding:5px;'>$data[3]</td>
<td style=' padding:5px;'>$data[4]</td>
<td style=' padding:5px;'>$data[5]</td>
<td style=' padding:5px;'>$data[6]</td>
<td style=' padding:5px;'>$data[7]</td>
<td style=' padding:5px;'>$data[8]</td>
<td style=' padding:5px;'><a
href='chstatus.php?eid=$data[0]'>$data[10]</a></td>
</tr>";

}
?>
</table>
</td></tr></table>
</form>

NSIC/BCA/VI/15A1SB7019 Page | 137


</div>
</div>
<?php include('bottom.php'); ?>
</body>
</html>

View Package.php
<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="application/x-javascript"> addEventListener("load", function() {
setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

NSIC/BCA/VI/15A1SB7019 Page | 138


<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>
<?php include('function.php'); ?>
<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="insert into category(Cat_name) values('" . $_POST["t1"] ."')";
mysqli_query($cn,$s);

echo "<script>alert('Record Save');</script>";


}
?>

NSIC/BCA/VI/15A1SB7019 Page | 139


<?php include('top.php'); ?>
<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">
<form method="post">
<table border="0" width="90%" height="300px" align="center" class="tableshadow">
<tr><td class="toptd">View Package</td></tr>
<tr><td align="center" valign="top" style="padding-top:10px;">
<table border="0" align="center" width="95%" >
<tr><td style="font-size:15px; padding:5px; font-weight:bold;">ID</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Package Name</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Category</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Subcategory</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Price</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Pic1</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Pic2</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Pic3</td></tr>

<?php

$s="select * from package";


$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{

NSIC/BCA/VI/15A1SB7019 Page | 140


echo "<tr><td style=' padding:5px;'>$data[0]</td>
<td style=' padding:5px;'>$data[1]</td>
<td style=' padding:5px;'>$data[2]</td>
<td style=' padding:5px;'>$data[3]</td>
<td style=' padding:5px;'>$data[4]</td>
<td style=' padding:5px;'><IMG src='packimages/$data[5]' style='height:50PX'
/></td>
<td style=' padding:5px;'><IMG src='packimages/$data[6]' style='height:50PX'
/></td>
<td style=' padding:5px;'><IMG src='packimages/$data[7]' style='height:50PX'
/></td></tr>";

?>

</table>
</td></tr></table>

</form>
</div>
</div>
<?php include('bottom.php'); ?>
</body>
</html>

View Sub Category.php


<?php if(!isset($_SESSION)) { session_start(); } ?>
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported

NSIC/BCA/VI/15A1SB7019 Page | 141


License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>My-tour bootstrap Design website | Home :: w3layouts</title>
<link
href='http://fonts.googleapis.com/css?family=Lato:100,300,400,700,900,100italic,300italic,4
00italic,700italic,900italic' rel='stylesheet' type='text/css'>

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

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


<link href="../css/style.css" rel="stylesheet" type="text/css" media="all"/>
<meta name="viewport" content="width=device-width, initial-scale=1">

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


setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); }
</script>
<!--js-->
<script src="js/jquery.min.js"></script>

<!--/js-->
<!--animated-css-->
<link href="../css/animate.css" rel="stylesheet" type="text/css" media="all">
<script src="../js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->

NSIC/BCA/VI/15A1SB7019 Page | 142


</head>
<body>
<!--header-->
<!--sticky-->
<?php
if($_SESSION['loginstatus']=="")
{
header("location:loginform.php");
}
?>

<?php include('function.php'); ?>


<?php
if(isset($_POST["sbmt"]))
{
$cn=makeconnection();
$s="insert into category(Cat_name) values('" . $_POST["t1"] ."')";
mysqli_query($cn,$s);

echo "<script>alert('Record Save');</script>";


}
?>
<?php include('top.php'); ?>
<!--/sticky-->
<div style="padding-top:100px; box-shadow:1px 1px 20px black; min-height:570px"
class="container">
<div class="col-sm-3" style="border-right:1px solid #999; min-height:450px;">
<?php include('left.php'); ?>
</div>
<div class="col-sm-9">
<form method="post">

NSIC/BCA/VI/15A1SB7019 Page | 143


<table border="0" width="400px" height="300px" align="center" class="tableshadow">
<tr><td class="toptd">View Subcategory</td></tr>
<tr><td align="center" valign="top" style="padding-top:10px;">
<table border="0" align="center" width="70%" >
<tr><td style="font-size:15px; padding:5px; font-weight:bold;">Subcategory Id</td>
<td style="font-size:15px; padding:5px; font-weight:bold;">Subcategory Name</td></tr>

<?php

$s="select * from subcategory";


$result=mysqli_query($cn,$s);
$r=mysqli_num_rows($result);
//echo $r;

while($data=mysqli_fetch_array($result))
{

echo "<tr><td style=' padding:5px;'>$data[0]</td><td style='


padding:5px;'>$data[1]</td></tr>";

}
?>
</table>
</td></tr></table>

</form>
</div>
</div>
<?php include('bottom.php'); ?>
</body>
</html>

NSIC/BCA/VI/15A1SB7019 Page | 144


CHAPTER-5
TESTING

NSIC/BCA/VI/15A1SB7019 Page | 145


5.1 Introduction to Testing
Testing goes side by side with the implementation that is aimed at ensuring that the system
works accurately and efficiently before the live operation is performed .The common view of
testing held by the user is process of executing a program with explicit intention of handling
errors. The application which has been developed has to be tested to prove its validity. Testing
is considered to be the least creative phase of the whole cycle of system design. In the real
sense it is the phase, which helps to bring out the creativity of the other phases, and makes it
shine.
5.1.1 White Box Testing
a. By using this technique it was tested that all the individual logical paths were executed at
least once and every statement in the program was executed once during testing
b. All the logical decisions where tested on both their true and false sides
c. All the loops were tested with data in between the range and especially at the boundary
values.
5.1.2 Black Box Testing
a. By the use of this technique the missing functions were identified and placed in their position.
b. The errors in the interfaces were identified and corrected.
c. The errors in the database access were indentified. d. This technique was along used to
identify the initialization and termination errors and correct them.
5.1.3 Application Testing Strategies
Any application has to be tested with pre-planned strategies. As Roger Pressman states, the
preparation for testing should star as soon as the design of the system star. To carry out the
testing in an efficient manner certain amount of strategic planning has to be done. Any testing
strategy must incorporate test planning, test case design, test execution and the resultant data
collection evaluation.
5.1.4 Unit Testing
 In the line of strategy the entire individuals function and modules were
put to test independently
 By following this strategy all the errors in coding were identified and
corrected.
 This method was applied in combination with the White Box and Black
Box testing
 Technique to find errors in each module.
 The effort of specific combination of data on system operation was
tested.

NSIC/BCA/VI/15A1SB7019 Page | 146


 The following were the testes carried out for Graphical User Interface
(GUI).
 It was seen that the pages opens properly based on related menu based
commands.
 It was tested whether all relevant menus, buttons, icons and other
controls are available and properly displayed.
 Are the names of the menu functions self-explanatory?
 Are data input messages intelligible?
5.1.5 Integration Testing
This application testing strategy has two different approached namely the top down
approach in which the integration is carried out from the top level module to the bottom and
the bottom up approach in which the integration is carried out from the low level modules to
the top. The modules were tested using the bottom up approach by introducing stubs for the
top –level functions. This test was used to identify the errors in the interfaces, the error in
passing the parameters between the function and to correct them. 5.1.6 Validation Testing
The main aim of this testing is to verify that the application system does what it was
designed for.

5.1.7 System Testing


The idea of applying this testing strategy was to put the system to a series of tests to ensure that
it performed well and exactly same under all condition. The tests were made on each form for
its correctness of accepting the data and storing the data into the respective tables in the desired
form of data type. The algorithms were tested with the test data first and then with the real data.
The tests were made for all types of constraints. The tests were done in presence of the user so
that he/she is familiar with the system that is going to be introduced. During the testing each
objective of the system was tested and found to be working correctly.

NSIC/BCA/VI/15A1SB7019 Page | 147


CHAPTER-6
USER MANUAL

NSIC/BCA/VI/15A1SB7019 Page | 148


SCREENSHOTS

HOME

ABOUT

NSIC/BCA/VI/15A1SB7019 Page | 149


Gallery

Category

NSIC/BCA/VI/15A1SB7019 Page | 150


FAMILY TOURS

RELIGIOUS TOURS

NSIC/BCA/VI/15A1SB7019 Page | 151


ADVENTURE TOURS

NSIC/BCA/VI/15A1SB7019 Page | 152


SPECIAL EVENT TOURS

NATIONAL PARKS

THEMED VACATIONS

NSIC/BCA/VI/15A1SB7019 Page | 153


SMALL GROUP TOURS

ADMIN

NSIC/BCA/VI/15A1SB7019 Page | 154


CHAPTER-7
CONCLUSION
NSIC/BCA/VI/15A1SB7019 Page | 155
CONCLUSION
Tourism is currently recognized as a global industry which is highly growing at a high rate,
and like any industry that grows rapidly, the activities of tourism can have a substantial impact
on the local development processes. The local effects of the industry are varied and usually
distinctive to the industry. Sustainable tourism endeavours to create a less impact on the natural
environment as well as the local culture and social life, whilst supporting to create earnings
and employment opportunities for local community and promoting the conservation of the
ecosystems in the local area. There are three main models of sustainable tourism which are
ecotourism, coastal tourism and community base tourism. The main aspect in all these models
is to enhance sustainable tourism through giving priority to the local community environment,
social life and cultural aspects. However, at times these objectives have not been able to be
achieved.

FUTURE ENHANCEMENTS
•In future we will give facility of online donation.
•We will include more functionality as per user requirement.
•Not a single website is ever consider as complete forever firstly because
there is always something new requirement also are growing day by day.
•We want to improved our home page, as it is the main thing which attracts
all users.

NSIC/BCA/VI/15A1SB7019 Page | 156


BIBLIOGRAPHY
 http://www.freetutes.com/learn-php/
 http://www.phptutor.net/
 https://www.youtube.com
 http://www.stackoverflow.net
 http://tutorialspoint.com
 http://www.w3schools.com
 https://www.techterms.com
 https://www.techopedia.com

NSIC/BCA/VI/15A1SB7019 Page | 157

Potrebbero piacerti anche