133
A Project Report On Explore World Submitted by Sumit Kumar (133553020739) Naveen Chandra (133553020727) Reena Rao (133553020734) Submitted to the department of Computer Science & Engineering in partial fulfillment of the requirements for the Diploma in Computer Science & Engineering 1

Emplore World

Embed Size (px)

DESCRIPTION

free

Citation preview

A

Project ReportOn

Explore World

Submitted by

Sumit Kumar (133553020739)

Naveen Chandra (133553020727)

Reena Rao (133553020734)

Submitted to the department of Computer Science & Engineeringin partial fulfillment of the requirements

for the Diploma in

Computer Science & Engineering

JANTA POLYTECHNIC, JAHANGIRABAD BULANDSHAHR

BOARD OF TECHNICAL EDUCATION, LUCKNOW 2012-13

1

JANTA POLYTECHNIC, JAHANGIRABAD BULANDSHAHR

________________________________________________________________________

CERTIFICATE

This is to certify that the Project entitled “Explore World” which is being submitted by

students with Roll No. 133553020739 , 133553020727 and 133553020734 to the Deptt.

of Computer Science & Engg, Janta Polytechnic Jahangirabad(BSR) for the award of

Diploma in Computer Sc. & Engg., is a record of bonafide project work, he has carried

out under our supervision and guidance.

The result contained in this project has not been submitted to any other university or

institute for the award of a Degree or Diploma.

Dr. B. Singh Er. Manjeet SinghHead, (Project Guide)CSE Deptt.

2

DECLARATION

We hereby declare that this submission is our own work and that to the best of our

knowledge and belief, it contains no material previously published or written by another

person nor material which to a substantial extent has been accepted for the award of any

other degree or diploma of the university or other institute of higher learning, except

where due acknowledgement has been made in the text.

Name:- Sumit Kumar

Roll No:- 133553020739

Name:- Naveen Chandra

Roll No:- 133553020727

Name:- Reena Rao

Roll No:- 133553020734

3

ACKNOWLEDGEMENT

This is the matter of privilege for us to submit this project entitled “EXPLORE

WORLD”. We take pleasure in expressing our deep sense of gratitude for providing

necessary guidance to Mr. Ravindra Sharma, Lecturer in the department of Computer Sc.

& Engg. at Janta polytechnic jahangirabad, Bulandshahr for his kind and constant

encouragement made it possible for us to complete this project work.

He has given us pragmatic sense to look deep into the matter and we are also highly

obliged for his persistence in making the project complete.

We extent our gratitude and sincere thanks to Mr. Ravindra Sharma, Mr. Ankit Varshney

,Mr. Manjeet Singh And Head of the Dept., Computer Science & Engg. Dr. B. Singh

Project co-ordinator for providing all necessary facilities and co-operation to complete

the project.

It gives us great pleasure to extend our sincere thanks to all our colleagues, who helped

us directly or indirectly to complete the project.

Last but not the least, we would like to express thanks to all technical staff of the

department for their technical support and constant encouragement.

Name:- Sumit kumarRoll No:- 133553020739

Name:- Naveen ChandraRoll No:- 133553020727

Name:- Reena Rao Roll No:- 133553020734

4

EXPLORE WORLD

________________________________________________________________________

Contents________________________________________________________________________

Certificate

Declaration

Acknowledgement

Chapter Description Page No.

1. Requirement analysis

1.1 Introduction 1

1.2 Aim and objective 2

1.3 Explanation of modules 3

2. System analysis

2.1 H/W requirements 5

2.2 S/W requirements 6

3. Design and implementation

3.1 ER diagrams 11

3.2 Snapshots 22

3.2.1 HOTELS

3.2.2. FLIGHTS

3.2.3 TRAVEL

3.3 Database tables 37

4. Coding 47

5. Testing 104

6. Maintenance 106

6.1 Limitation and Future scope 107

6.3 Conclusion 108

6.4 Bibliography 109

5

Chapter 1

INTRODUCTION

X - Plore World helps you to explore the world of traveling. This web site is one place

where you can arrange your travelling facilities. Also you can have information about

which services you can hire that are availableto you by this website. This includes a

number of search options such as Travel Search, Hotel Search, Flight Search and Car

Search. Thus X - Plore World will help you in accessing all the information about your

travel needs i.e whether you want to book a car, a hotel or a flight. The only thing you

have to do is that you have to create an X - Plore World account and you can access all

the ares of the website for free. You can search for travel areas, flights, cars and hotels in

X - Plore World. After searching, you can book the appropriate thing you need. An

Online booking system is present in X - Plore World, which will help you to book these

in no time.

6

OBJECTIVE & SCOPE

Present System is running manually if a customer wants to get information about

company’s services, he/she must have come to company. This is very time consuming

and costly process.

Explore world provides a common platform for booking hotels, flights and

packages to user.

Explore world reduces the man power.

Explore world is online project.

Saves lot of time of communication of Customer who is participating in booking

of hotels, flights and travel packages.

Explore world act as an automation tool for booking of hotels, flights and travel

packages..

Internet is available to everyone anywhere and anytime hence; this makes the site

highly mobile.

This system is very much helpful for those people who have sufficient money but

resources are not available at their disposal.

The site is flexible to any expansion or contraction in the future.

7

INFORMATION ABOUT MODULES

There can be three type of accounts on which the website can work:

1. Manager account - Manager is like the administrator of the website. He can add as well as modify the records of HOTEL, FLIGHT AND TRAVEL. Nobody can get the manager account by simply signing up. For this database has to be modified to change customer account into manager account. Manager will always check and modify the tables. In case of hotel he can add a new hotel, can update room charges for any particular hotel and can see the hotel report. In case of flight he can add a new flight, can update flight costs for any particular flight and can see the hotel reports. Similarly for the travel package the manager can add a new travel package, can update travel charges and can finally see the travel report.

2. Staff account – Staff account is similar to customer account. The only difference is that customer cannot see the report about bookings. Customer can only setup their booking.

Customer account is created by default when new user signs up. After signing up manager or administrator will have to update the database. He has to change the record by changing account type customer to staff. After that staff will get the following menu:

1) hotel booking2) hotel report3) flight booking4) flight report5) travel booking6) travel report

3. Customer account - Customer is the one who will use this project for booking. Customer cannot update or delete records in the database. Customer can book flight, hotel and travel package online.

Customer account is created by default when new user signs up. After signing up the customer is directed to customer menu. In this menu he will get following options

1) hotel booking2) flight booking3) travel booking

8

These are the main options of customer home. By clicking on any one of them the project will direct to respective pages.

By selecting hotel booking, first the customer has to search the hotel. After searching the hotel the website will show customer if there are seats available in hotel or not. If seats are available then website will show option of booking. When booking is clicked the payment is shown to the customer. If the customer is satisfied he can click on continue booking. After this payment is calculated and saved in the records. The hotel is booked.

By selecting flight booking, first the customer has to search the flight. After searching the flight the website will show customer if there are seats available in flight or not. If seats are available then website will show option of booking. When booking is clicked the payment is shown to the customer. If the customer is satisfied he can click on continue booking. After this payment is calculated and saved in the records. The flight is booked.

By selecting travel package booking, first the customer has to search first the hotel. After searching the travel package the website will show customer if there are seats available in hotel or not. If seats are available then website will show option of booking. When booking is clicked the payment is shown to the customer. If the customer is satisfied he can click on continue booking. After this payment is calculated and saved in the records. The travel package is booked.

There are basically 3 modules in explore world which are as follows:

HOTEL –In this module the customer as well as staff can book any

particular hotel of his choice but only if there are sufficient rooms in the

hotel.

FLIGHT – In this module the customer as well as the staff can book any

flight of his choice.

TRAVEL PACKAGE - In this the customer as well the staff can book

travel packages.

9

Chapter 2

PROJECT REQUIREMENT AND SPECIFICATION

Operating System Requirements

The .NET Framework is supported on the following platforms.

Scenario Operating systemClient Microsoft® Windows® 2000 Professional

Microsoft® Windows® XP Professional

a. HARDWARE REQUIREMENTS

Processor : PIV

SD RAM : 256 MB*

FDD : 1.44 MB

CDD : 52X

HDD : 40GB*

Monitor : 14” SVGA Mono Monitor

*Or the minimum required by the operating system, whichever is higher.

b. SOFTWARE REQUIREMENTS

Operating System : Microsoft Windows XP

Front End Tools : Visual Studio .Net 2005

Back End Tools : SQL Server 2000

10

Browser : Internet Explorer

Active Server Pages are Microsoft’s solution to creating dynamic web pages. An ASP file

can contain text, HTML tags and scripts. Scripts in an ASP file are executed on the

server. ASP is a program that runs at server. With Windows 2000/XP plays the role of

server. An ASP file is just the same as an HTML file; it can contain text, HTML, XML,

and scripts. Scripts in a ASP file are executed on the server and it has an extension .aspx.

In ASP Client-Server Model is implemented. A client computer requests some needed

information from Server computer. The Server returns this information and the client acts

on it. The client is a web browser on the Internet. With the Internet the server is a

particular web server. A web server is a computer that contains all the web pages for a

particular web site and has special software installed to send these web pages to web

browsers that request them. The client can’t tell the difference between an ASP page and

a static web page because it receives just HTML text in both cases. When the web server

processes an ASP page, all the programmatic code is interpreted on the server-none of it

is sent to the client.

2. Functional requirements

Essentials:

1. Should provide facility for defining grammar.

2. Should work properly in the n/w environment.

3. Non- Functional Requirements:

1. Should be efficient.

2. Should not produce errors during working.

3. Should be compact and concise

4. Should be extensible and flexible.

11

5. Should be complete and consistent.

12

INTRODUCTION TO .NET

The .NET Framework is a new computing platform that simplifies application development in the highly distributed environment of the Internet. The .NET Framework is designed to fulfill the following objectives:

To provide a consistent object-oriented programming environment whether object code is stored and executed locally, executed locally but Internet-distributed, or executed remotely.

To provide a code-execution environment that minimizes software deployment and versioning conflicts.

To provide a code-execution environment that eliminates the performance problems of scripted or interpreted environments.

To make the developer experience consistent across widely varying types of applications, such as Windows-based applications and Web-based applications.

To build all communication on industry standards to ensure that code based on the .NET Framework can integrate with any other code.

The .NET Framework has two main components:

1. The common language runtime.

2. The .NET Framework class library.

The common language runtime is the foundation of the .NET Framework.

Act as an agent that manages code at execution time Providing core services such as memory management, thread management, and

remoting.

Also enforcing strict type safety and other forms of code accuracy that ensure security and robustness.

In fact, the concept of code management is a fundamental principle of the runtime. Code that targets the runtime is known as managed code, while code that does not target the runtime is known as unmanaged code.

The class library, the other main component of the .NET Framework.

It is a comprehensive, object-oriented collection of reusable types that you can use to develop applications ranging from traditional command-line or graphical user interface (GUI) applications to applications based on the latest innovations provided by ASP.NET, such as Web Forms and XML Web services.

13

The .NET Framework can be hosted by unmanaged components that load the common language runtime into their processes and initiate the execution of managed code, thereby creating a software environment that can exploit both managed and unmanaged features. The .NET Framework not only provides several runtime hosts, but also supports the development of third-party runtime hosts.

For example, ASP.NET hosts the runtime to provide a scalable, server-side environment for managed code. ASP.NET works directly with the runtime to enable ASP.NET applications and XML Web services, both of which are discussed later in this topic.

Internet Explorer is an example of an unmanaged application that hosts the runtime (in the form of a MIME type extension). Using Internet Explorer to host the runtime enables you to embed managed components or Windows Forms controls in HTML documents. Hosting the runtime in this way makes managed mobile code (similar to Microsoft® ActiveX® controls) possible, but with significant improvements that only managed code can offer, such as semi-trusted execution and secure isolated file storage.

.NET Framework in context

The following sections describe the main components and features of the .NET Framework in greater detail.

14

Features of the Common Language Runtime

The common language runtime manages memory, thread execution, code execution, code safety verification, compilation, and other system services. These features are intrinsic to the managed code that runs on the common language runtime.

With regards to security, managed components are awarded varying degrees of trust, depending on a number of factors that include their origin (such as the Internet, enterprise network, or local computer). This means that a managed component might or might not be able to perform file-access operations, registry-access operations, or other sensitive functions, even if it is being used in the same active application.

The runtime enforces code access security. For example, users can trust that an executable embedded in a Web page can play an animation on screen or sing a song, but cannot access their personal data, file system, or network. The security features of the runtime thus enable legitimate Internet-deployed software to be exceptionally feature rich.

The runtime also enforces code robustness by implementing a strict type-and-code-verification infrastructure called the common type system (CTS). The CTS ensures that all managed code is self-describing. The various Microsoft and third-party language compilers generate managed code that conforms to the CTS. This means that managed code can consume other managed types and instances, while strictly enforcing type fidelity and type safety.

In addition, the managed environment of the runtime eliminates many common software issues. For example, the runtime automatically handles object layout and manages references to objects, releasing them when they are no longer being used. This automatic memory management resolves the two most common application errors, memory leaks and invalid memory references.

15

Microsoft SQL Server

Microsoft SQL Server is a relational database management system (RDBMS)

produced by Microsoft. Its primary query language is Transact-SQL, an

implementation of the ANSI/ISO standard Structured Query Language (SQL)

used by both Microsoft and Sybase.

The architecture of Microsoft SQL Server is broadly divided into three components:

SQLOS which implements the basic services required by SQL Server, including thread

scheduling, memory management and I/O management; the Relational Engine, which

implements the relational database components including support for databases, tables,

queries and stored procedures as well as implementing the type system; and the

Protocol Layer which exposes the SQL Server functionality.

16

Chapter 3

Design and Module

ER DIAGRAMS

User Login

UserName Password

Role

Users

17

Add member

Login

username

userID

User type

userpassword

Add member

Info

Customer

CustomeridID

firstname

lastname email Phoneno.

18

Add Flight Information

Flight

FlightNo

DepTime

ArrTime

sourceAirlines namedestination

Tax

seats

Adult fareChild fare

flight info

Flight update seat status

Flight no. Remaining seats

19

Add package Information

package

packageid

Start date

End date

locationpackage name

description

Tax

seats

fare

Package info

Package update seat statusPackage id Remaining

seats

20

BOOKING

hotelbooking

bokingid

Dateofbooking

checkoutdate

customerid

hotelid

checkindate

No. of dx rooms

Hotel booking

Paymentpaymentid

bookingid

bookingcharges

totaltax discount

No of ex rooms

21

Booking 2

hoteldiscount

Hotel booking

Customer hotel

discount

dateofbooking

customerid

bookingid

discount

hotelid

no of rooms

22

Flight booking

Flight payment

paymentID bookingID

Adult charges Child charges

booking

Flight booking

No of children No of adults

customerid

Bookingid

dateofjourney

flightno

Date of booking

totaltaxamount

23

Flight booking2

Flight seat status

Remaining seats

Flight no

flightbooking

Flight travellers

Booking id

First name

Last name

TravType

24

Cancellation

Package booking

Customer id

Date of bookingAg

e

Booking idpackageid

seats

booking

Package payment

bookingid Payment id

Total amount

25

Package booking2

Package travellers

bookingid

firstname

customerid

Traveler type

LName

booking

Package status

Package id Remaining seats

26

27

Hotel add

HOTEL

AircraftTypeID

Description FirstClassSeats

BusinessClassSeats

Dx room fare/day

AircraftTypeID

Description FirstClassSeats

AircraftTypeID

Description FirstClassSeats

AircraftTypeID

Description FirstClassSeats

AircraftTypeID

Description FirstClassSeats

AircraftTypeID

Description FirstClassSeats

AircraftTypeID

Description locationHOTELID HOTEL NAME

No. of Dx ROOMS

No of ex rooms

Ex room Fare/day

SNAPSHOTHOME PAGE

28

Main login button. This is common to all type of members

For creating new member click on this button.

This is the starting page of the project. This page opens up when the website is opened by the customer or visitor. In every website there is a area for the members. The home page ensures that only member gets login into the website. This page is linked to every other page of the website.Home page includes the login facility for the existing members and sign up facility for new members. It contains two buttons.

1) Login - to enter members’ area.2) Sign up - to create new member

SIGN UP

29

Check if username is available or not.

Click on this and new user is created.

By clicking on the sign up button on home page this page will open up. The new member has to enter the details. The user can check the availability of username. By clicking on “Create User” the message will be displayed “new user is register”. After signing up the custmers can access every area of X- Plore World. So by this way each customer will have his/her own user name and password.

30

The sign up page with all the constraints on every field.

LOGIN PAGE

31

For accessing customer privileges, the user has to enter name and password

Click on login to enter member’s area

MANAGER HOME

32

Manager menu. Manager is the administrator of website. He can add and modify the records

Manager is like the administrator of the website. He can add as well as modify the records of HOTEL, FLIGHT AND TRAVEL. Nobody can get the manager account by simply signing up. For this database has to be modified to change customer account into manager account. Manager will always check and modify the tables.

ADD NEW HOTEL

33

This page is only for manager. After clicking on add new hotel in manager home page, this page will show up. In this all the details have to be filled up by the manager. The hotel id will be generated automatically. After completing the details when we click “Add new hotel” this message will be shown up “Hotel details added successfully!!!”

Id generated automatically

UPDATE ROOM CHARGES

34

As room charges of the hotels are not same in all the season, the manager has the provision of revising the room charges by clicking on the option “Update room charges” in the menu. As he enters the hotel id, all the details of hotel will be open up. He can now update the charges. After updating, the message will be displayed “Hotel details updated successfully!!!”

HOTEL REPORT

35

If the manager wants to see the details of a particular hotel, he can view it by clicking on the option HOTEL REPORT. By giving hotel name, city, start date, end date the details of the hotel are shown. Manager can see which customer has booked which rooms in hotel from whichS date to which date.

ADD NEW FLIGHT

36

Flight id will be generated automatically

When a new flight comes, manager can add new flight through this option. Airlines name and city will be chosen through the options given by website. Flight no is automatically generated. When the flight is added the message “Flights values added successfully!!!” is displayed.

UPDATE FLIGHT COST

37

When the flight cost changes, manager can update the cost by coming to this option. When he selects the flight no. old fares will b shown up and new fares’ space is given. Enter the details and click update flight cost. The message “Flight fares updated successfully!!!” will be displayed as output.

FLIGHT REPORT

38

This page is for manger in which the manager can see flight details. Flight report can be viewed based on particular day and between specified locations. After giving the flight no. the report is generated.

Report generated

ADD NEW TRAVEL

39

Package id will be automatically generated

In this page the manager can create new travel package. The package id is automatically generated. Location, package name, total seats, fare, start date, end date, description and tax should be filled and after clicking add new travel the package is created.

UPDATE TRAVEL DETAILS

40

After giving package id the details of respective package will be shown. Manager can update the details.

TRAVEL REPORT

41

Travel report can be generated on the basis of customer report or package report. Manager has to provide package name and report will be generated.

TRAVEL REPORT

42

Report on the basis of package.

DATABASE TABLES

43

44

45

46

47

48

49

50

51

52

53

CHAPTER 4

CODING

<%@ Page Language="C#" MasterPageFile="~/Customer.master" AutoEventWireup="true" CodeFile="CustomerHome.aspx.cs" Inherits="RegisterCustomer" Title="Customer Home" %><asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> <br /> <asp:Panel ID="pnlContent" runat="server" Height="546px" Style="z-index: 100; left: 222px; position: absolute; top: 129px" Width="632px" BackColor="White" BorderColor="#1C6397" BorderStyle="Solid"> &nbsp; <asp:Image ID="Image1" runat="server" Height="278px" ImageUrl="~/Images/customer_relations.jpg" Style="z-index: 100; left: 180px; position: absolute; top: 246px" /> <asp:Label ID="lblContents" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Height="267px" Style="z-index: 102; left: 20px; position: absolute; top: 32px; text-align: justify;" Text='Welcome to X- Plore World. You can explore the whole worl dof travel and tour by using X -

54

Plore World. You can use the four features that are available for you. There is ' Width="595px"></asp:Label> </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /></asp:Content>

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Copy of Login.aspx.cs" Inherits="Login" %>

<!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 runat="server"> <title>X-Plore World</title></head><body> <form id="form1" runat="server"> <div> <asp:Panel ID="pnlHome" runat="server" BorderColor="#96B3CD" BorderStyle="Double" Height="538px" Style="z-index: 100; left: 165px; position: absolute; top: 192px" Width="923px"> &nbsp; <asp:Image ID="ImgTravel" runat="server" BorderColor="#96B3CD" BorderStyle="Double" BorderWidth="3px" Height="157px" ImageUrl="~/IMAGES/Travel3.jpg" Style="z-index: 100; left: 38px; position: absolute; top: 302px" Width="184px" /> <asp:Image ID="ImgCar" runat="server" BorderColor="#96B3CD" BorderStyle="Double" BorderWidth="3px" Height="157px" ImageUrl="~/IMAGES/Car5.jpg" Style="z-index: 101; left: 39px; position: absolute; top: 123px" Width="184px" /> <asp:Image ID="ImgFlight" runat="server" BorderColor="#96B3CD" BorderStyle="Double" BorderWidth="3px" Height="157px" ImageUrl="~/IMAGES/Flight2.jpg" Style="z-index: 102; left: 246px; position: absolute; top: 305px" Width="184px" /> <asp:Image ID="imgHotel" runat="server" BorderColor="#96B3CD" BorderStyle="Double" BorderWidth="3px" Height="157px" ImageUrl="~/IMAGES/Hotel5.jpg" Style="z-index: 103; left: 249px; position: absolute; top: 122px" Width="184px" />

55

<asp:Panel ID="pnlLogin" runat="server" BackColor="#6F9CD5" Height="22px" Style="z-index: 104; left: 555px; position: absolute; top: 444px" Width="119px"> <asp:LinkButton ID="lbLogin" runat="server" Font-Names="Agency FB" Font-Size="Medium" ForeColor="White" Style="z-index: 100; left: 42px; position: absolute; top: 2px; text-decoration: none" OnClick="lbLogin_Click" TabIndex="3">Login</asp:LinkButton> </asp:Panel> &nbsp; <asp:Panel ID="pnlSignUp" runat="server" BackColor="#6F9CD5" Height="22px" Style="z-index: 105; left: 695px; position: absolute; top: 443px" Width="113px"> <asp:LinkButton ID="lbExit" runat="server" Font-Names="Agency FB" Font-Size="Medium" ForeColor="White" Style="z-index: 100; left: 37px; position: absolute; top: 0px; text-decoration: none" OnClick="lbExit_Click" CausesValidation="False" TabIndex="4">Home</asp:LinkButton> </asp:Panel> <asp:Label ID="lblAbout" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="font-size: 8pt; z-index: 106; left: 774px; position: absolute; top: 519px" Text="About Us |"></asp:Label> <asp:Label ID="Label1" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="font-size: 8pt; z-index: 107; left: 830px; position: absolute; top: 519px" Text="Copyright@2008"></asp:Label> <asp:Image ID="imgSearch" runat="server" Height="124px" ImageUrl="~/IMAGES/Search.gif" Style="z-index: 108; left: 285px; position: absolute; top: -132px" Width="142px" /> &nbsp; <asp:Panel ID="Panel2" runat="server" BackColor="White" BorderColor="#96B3CD" BorderStyle="Solid" BorderWidth="1px" Height="308px" Style="z-index: 111; left: 484px; position: absolute; top: 121px" Width="396px"> &nbsp;&nbsp; <asp:TextBox ID="txtPassword" runat="server" MaxLength="15" Style="z-index: 100; left: 139px; position: absolute; top: 166px" TextMode="Password" BorderColor="#1C6397" BorderStyle="Solid" BorderWidth="1px" Width="204px" TabIndex="1"></asp:TextBox> <asp:TextBox ID="txtName" runat="server" MaxLength="15" Style="z-index: 101; left: 138px; position: absolute; top: 124px" Width="206px" BorderColor="#1C6397" BorderStyle="Solid" BorderWidth="1px"></asp:TextBox> <asp:Label ID="lblName" runat="server" Font-Names="Tahoma" Font-Size="Smaller" Style="z-index: 102; left: 85px; position: absolute; top: 126px" Text="Name" Font-Bold="False" ForeColor="#1C6397"></asp:Label> <asp:Label ID="lblPassword" runat="server" Font-Names="Tahoma" Font-Size="Smaller"

56

Style="z-index: 103; left: 63px; position: absolute; top: 169px" Text="Password" Font-Bold="False" ForeColor="#1C6397"></asp:Label> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtName" ErrorMessage="Enter User Name" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 104; left: 138px; position: absolute; top: 147px"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword" ErrorMessage="Enter the Password" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 105; left: 141px; position: absolute; top: 192px"></asp:RequiredFieldValidator> &nbsp; &nbsp; <asp:CheckBox ID="CheckBox1" runat="server" Style="z-index: 106; left: 240px; position: absolute; top: 267px" Text="Remember Me" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" TabIndex="2" /> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtName" ErrorMessage="Special Character other than '_' not allowed" ForeColor="#1C6397" Height="24px" Style="z-index: 107; left: 65px; position: absolute; top: 225px" ValidationExpression="([A-Z]|[a-z]|[0-9]|_)*" Width="290px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:Label ID="Label2" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 108; left: 10px; position: absolute; top: 22px" Text="To access the customer privileges, the user has to enter the user name and password. If the user has not created an account, go back to the home page and sign up as a new user."></asp:Label> <hr style="z-index: 109; left: 19px; width: 356px; position: absolute; top: 98px; height: 1px" /> <hr style="z-index: 110; left: 18px; width: 356px; position: absolute; top: 215px; height: 1px" /> </asp:Panel> </asp:Panel> <asp:Panel ID="pnlHeading" runat="server" BackColor="#96B3CD" Height="124px" Style="z-index: 102; left: 165px; position: absolute; top: 64px" Width="289px"> <asp:Label ID="lblHeading" runat="server" Font-Bold="True" Font-Names="Agency FB" Font-Size="XX-Large" ForeColor="White" Style="z-index: 100; left: 46px; position: absolute; top: 46px" Width="360px">X-PLORE WORLD</asp:Label> </asp:Panel> </div> </form></body></html>

57

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AccountCreation.aspx.cs" Inherits="CreateAccount" %>

<!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 runat="server"> <title>Create An Account</title></head><body bgColor="#CCCCCC" style="background-color: white;"> <form id="form1" runat="server"> <div> <asp:Panel ID="pnlTravel" runat="server" Style="z-index: 100; left: 196px; position: absolute; top: 153px; background-color: seashell; height: 511px;" Width="744px" BorderColor="#96B3CD" BorderStyle="Solid" BorderWidth="1px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Panel ID="pnlCustomer" runat="server" Height="88px" Style="z-index: 100; left: 16px; position: absolute; top: 16px" Width="705px" BackColor="#96B3CD"> <asp:Label ID="lblCustomer" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 100; left: 37px; position: absolute; top: 37px" Text="Customer" Font-Bold="True"></asp:Label> <asp:Image ID="imgCustomer" runat="server" Height="78px" ImageUrl="~/Images/customer_relations.jpg" Style="z-index: 102; left: 144px; position: absolute; top: 4px" Width="88px" /> </asp:Panel> <hr style="z-index: 103; left: 15px; width: 711px; position: absolute; top: 111px; height: 1px" /> <table border="0" style="font-size: 100%; width: 700px; z-index: 104; left: 17px; position: absolute; top: 124px; background-color: buttonface; height: 366px;"> <tr> <td align="center" colspan="2" style="height: 21px"> <strong style="background-color: lightskyblue; text-align: center;"> Sign Up for Your New Account</strong></td> </tr> <tr> <td align="right" style="width: 198px; height: 26px;">

58

<asp:Label ID="UserNameLabel" runat="server" AssociatedControlID="UserName" Font-Names="Tahoma" Font-Size="Smaller">User Name:</asp:Label></td> <td style="height: 26px; width: 288px;"> <asp:TextBox ID="UserName" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" ErrorMessage="User Name is required." ToolTip="User Name is required.">*</asp:RequiredFieldValidator>&nbsp; <asp:Button ID="btnAvailablity" runat="server" BackColor="White" BorderColor="#E0E0E0" BorderStyle="Solid" BorderWidth="1px" Style="z-index: 100; left: 526px; position: absolute; top: 30px" Text="Availibility" OnClick="btnAvailablity_Click" CausesValidation="False" /> </td> </tr> <tr> <td align="right" style="width: 198px"> <asp:Label ID="PasswordLabel" runat="server" AssociatedControlID="Password" Font-Names="Tahoma" Font-Size="Smaller">Password:</asp:Label></td> <td style="width: 288px"> <asp:TextBox ID="Password" runat="server" TextMode="Password"></asp:TextBox> <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" ErrorMessage="Password is required." ToolTip="Password is required.">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td align="right" style="height: 26px; width: 198px;"> <asp:Label ID="ConfirmPasswordLabel" runat="server" AssociatedControlID="ConfirmPassword" Font-Names="Tahoma" Font-Size="Smaller">Confirm Password:</asp:Label></td> <td style="height: 26px; width: 288px;"> <asp:TextBox ID="ConfirmPassword" runat="server" TextMode="Password"></asp:TextBox> <asp:RequiredFieldValidator ID="ConfirmPasswordRequired" runat="server" ControlToValidate="ConfirmPassword" ErrorMessage="Confirm Password is required." ToolTip="Confirm Password is required.">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td align="right" style="width: 198px; height: 26px">

59

<asp:Label ID="lblFirstName" runat="server" AssociatedControlID="FirstName" Font-Names="Tahoma" Font-Size="Smaller">First Name :</asp:Label></td> <td style="height: 26px; width: 288px;"> <asp:TextBox ID="FirstName" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="EmailRequired" runat="server" ControlToValidate="FirstName" ErrorMessage="Enter Fisrt Name">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td align="right" style="width: 198px"> <asp:Label ID="QuestionLabel" runat="server" AssociatedControlID="LastName" Font-Names="Tahoma" Font-Size="Smaller">Last Name :</asp:Label></td> <td style="width: 288px"> <asp:TextBox ID="LastName" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="QuestionRequired" runat="server" ControlToValidate="LastName" ErrorMessage="Security question is required." ToolTip="Security question is required.">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td align="right" style="width: 198px; height: 22px"> <asp:Label ID="AddressLabel" runat="server" Style="left: 152px; top: 196px" Text="Address:" AssociatedControlID="Address" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> &nbsp;</td> <td style="height: 22px; width: 288px;"> <asp:TextBox ID="Address" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="rfvEmailId" runat="server" ControlToValidate="Address" ErrorMessage="Enter Email Id" Style="z-index: 100; left: 449px; position: absolute; top: 207px">*</asp:RequiredFieldValidator> </td> </tr> <tr> <td align="right" style="width: 198px; height: 20px"> <asp:Label ID="EmailLabel" runat="server" Style="z-index: 100; left: 143px; top: 228px" Text="EmailId :" AssociatedControlID="EmailId" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> </td>

60

<td style="height: 20px; width: 288px;"> <asp:TextBox ID="EmailId" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="EmailId" ErrorMessage="Address required" Style="z-index: 100; left: 450px; position: absolute; top: 178px">*</asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="EmailId" ErrorMessage="Email Id should be [email protected]" Style="z-index: 102; left: 448px; position: absolute; top: 206px" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Width="253px">*</asp:RegularExpressionValidator> </td> </tr> <tr> <td align="right" style="width: 198px; height: 26px;"> <asp:Label ID="PhoneLabel" runat="server" AssociatedControlID="Phone" Font-Names="Tahoma" Font-Size="Smaller">Phone Number :</asp:Label></td> <td style="width: 288px; height: 26px"> <asp:TextBox ID="Phone" runat="server"></asp:TextBox> <asp:RequiredFieldValidator ID="PhoneRequired" runat="server" ControlToValidate="Phone" ErrorMessage="Phone Number required" ToolTip="Phone Number required">*</asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="revPhone" runat="server" ControlToValidate="Phone" ErrorMessage="Not a valid Mobile Number" Style="z-index: 100; left: 451px; position: absolute; top: 233px" ValidationExpression="\d\d\d\d\d\d\d\d\d\d" Width="195px"></asp:RegularExpressionValidator> </td> </tr> <tr> <td align="center" colspan="2" style="height: 21px"> <asp:CompareValidator ID="PasswordCompare" runat="server" ControlToCompare="Password" ControlToValidate="ConfirmPassword" Display="Dynamic" ErrorMessage="The Password and Confirmation Password must match." ValidationGroup="CreateUserWizard1"></asp:CompareValidator> </td> </tr> <tr> <td align="center" colspan="2" style="color: red; height: 15px;"> <asp:Literal ID="ErrorMessage" runat="server" EnableViewState="False"></asp:Literal>

61

</td> </tr> <tr> <td align="center" colspan="2" style="color: red; height: 71px"> <asp:Button ID="btnCreateUser" runat="server" BackColor="ButtonHighlight" BorderColor="ControlDark" BorderStyle="Solid" BorderWidth="1px" Font-Names="Verdana" OnClick="btnCreateUser_Click" Style="z-index: 100; left: 294px; position: absolute; top: 332px" Text="Create User" /> </td> </tr> </table> </asp:Panel> &nbsp; </div> </form></body></html>

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="AccountUpdation.aspx.cs" Inherits="CreateAccount" %>

<!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 runat="server"> <title>Update Your Account</title></head><body> <form id="form1" runat="server"> <div> <asp:Panel ID="pnlTravel" runat="server" Height="420px" Style="z-index: 100; left: 186px; position: absolute; top: 150px" Width="744px" BorderColor="#96B3CD" BorderStyle="Double"> &nbsp; <asp:Label ID="lblNewPassword" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 100; left: 302px; position: absolute; top: 281px" Text="New Password"></asp:Label> <asp:Label ID="lblConfirmPassword" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 101; left: 282px; position: absolute; top: 315px" Text="Confirm Password"></asp:Label> &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;

62

<asp:Panel ID="pnlCustomer" runat="server" Height="88px" Style="z-index: 103; left: 16px; position: absolute; top: 16px" Width="233px" BackColor="#6F9CD5"> <asp:Label ID="lblCustomer" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 100; left: 37px; position: absolute; top: 37px" Text="Customer" Font-Bold="True"></asp:Label> <asp:Image ID="imgCustomer" runat="server" Height="78px" ImageUrl="~/Images/customer_relations.jpg" Style="z-index: 102; left: 137px; position: absolute; top: 5px" Width="88px" /> </asp:Panel> <hr style="z-index: 111; left: 15px; width: 711px; position: absolute; top: 111px; height: 1px" /> <asp:Label ID="lblDescription" runat="server" SkinID="labelStyle" Style="z-index: 104; left: 21px; position: absolute; top: 125px" Text="You can update the password in this page. You have to enter the existing password and then you have to enter the new password. "></asp:Label> <asp:Label ID="lblCurrentPassword" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 105; left: 285px; position: absolute; top: 243px" Text="Current Password"></asp:Label> &nbsp; <asp:TextBox ID="txtCurrentPassword" runat="server" Style="z-index: 106; left: 399px; position: absolute; top: 241px" TextMode="Password"></asp:TextBox> &nbsp; <asp:TextBox ID="txtNewPassword" runat="server" Style="z-index: 107; left: 400px; position: absolute; top: 276px" TextMode="Password"></asp:TextBox> <asp:TextBox ID="txtConfirmNewPassword" runat="server" Style="z-index: 108; left: 399px; position: absolute; top: 312px" TextMode="Password"></asp:TextBox> <asp:Panel ID="pnlLogin" runat="server" BackColor="#6F9CD5" Height="22px" Style="z-index: 109; left: 272px; position: absolute; top: 360px" Width="119px"> <asp:LinkButton ID="lbUpdate" runat="server" Font-Names="Agency FB" Font-Size="Medium" ForeColor="White" OnClick="lbUpdate_Click" Style="z-index: 100; left: 29px; position: absolute; top: 2px; text-decoration: none" TabIndex="3">Update Account</asp:LinkButton> </asp:Panel> <asp:Panel ID="pnlSignUp" runat="server" BackColor="#6F9CD5" Height="22px" Style="z-index: 112; left: 441px; position: absolute; top: 360px" Width="113px"> <asp:LinkButton ID="lbExit" runat="server" CausesValidation="False" Font-Names="Agency FB" Font-Size="Medium" ForeColor="White" OnClick="lbExit_Click" Style="z-index: 100;

63

left: 37px; position: absolute; top: 0px; text-decoration: none" TabIndex="4">Home</asp:LinkButton> </asp:Panel> </asp:Panel> </div> </form></body></html>

<%@ Page Language="C#" MasterPageFile="~/Customer.master" AutoEventWireup="true" CodeFile="CarAddNew.aspx.cs" Inherits="RegisterCustomer" Title="Add A New Car" %><asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> <br /> <asp:Panel ID="Panel1" runat="server" Height="546px" Style="z-index: 100; left: 222px; position: absolute; top: 129px" Width="632px" BackColor="#EEEDEF" BorderColor="#96B3CD" BorderStyle="Solid"> <asp:Label ID="lblVehicleType" runat="server" Font-Names="Tahoma" Font-Size="Smaller" Style="z-index: 100; left: 210px; position: absolute; top: 157px" Text="Car Type" ForeColor="#1C6397"></asp:Label> <asp:Label ID="lblLocation" runat="server" Font-Names="Tahoma" Font-Size="Smaller" Style="z-index: 101; left: 208px; position: absolute; top: 204px" Text="Location" ForeColor="#1C6397" Width="54px"></asp:Label>

64

<asp:Label ID="lblRatesPerDay" runat="server" Font-Names="Tahoma" Font-Size="Smaller" Style="z-index: 102; left: 182px; position: absolute; top: 344px" Text="Rates Per Day" ForeColor="#1C6397"></asp:Label> <asp:Label ID="lblTax" runat="server" Font-Names="Tahoma" Font-Size="Smaller" Style="z-index: 103; left: 241px; position: absolute; top: 297px" Text="Tax" ForeColor="#1C6397"></asp:Label> <asp:Button ID="btnAddACar" runat="server" Style="z-index: 104; left: 179px; position: absolute; top: 432px" Text="Add A New Car" Width="279px" OnClick="btnAddACar_Click" /> <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtTax" ErrorMessage="Alphabets and special Character Not allowed" Style="z-index: 105; left: 282px; position: absolute; top: 321px" ValidationExpression="([0-9])*(.)([0-9])*" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:Button ID="btnadd" runat="server" OnClick="btnadd_Click" Style="z-index: 106; left: 176px; position: absolute; top: 457px" Text="Add" Visible="False" Width="277px" /> <asp:TextBox ID="txtaddcar" runat="server" Style="z-index: 107; left: 442px; position: absolute; top: 249px" Visible="False"></asp:TextBox> &nbsp; <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtaddcar" ErrorMessage="Enter Integer Value" Style="z-index: 108; left: 280px; position: absolute; top: 275px" ValidationExpression="([0-9])*" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:Label ID="lblNoOfVehicles" runat="server" Font-Names="Tahoma" Font-Size="Smaller" Style="z-index: 109; left: 179px; position: absolute; top: 254px" Text="No Of Vehicles" ForeColor="#1C6397"></asp:Label> &nbsp;&nbsp; <asp:DropDownList ID="Ddvtype" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="CarType" DataValueField="CarType" OnSelectedIndexChanged="Ddvtype_SelectedIndexChanged" Style="z-index: 110; left: 279px; position: absolute; top: 153px" Width="150px" Height="16px"> </asp:DropDownList> <asp:DropDownList ID="Ddlocation" runat="server" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="Location" DataValueField="Location" OnSelectedIndexChanged="Ddlocation_SelectedIndexChanged" Style="z-index: 111; left: 279px; position: absolute; top: 199px" Width="150px" Height="16px"> </asp:DropDownList> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyDataBase %>" SelectCommand="SELECT [CarType], [Location] FROM [tblCarDetails]"></asp:SqlDataSource> <asp:SiteMapPath ID="smpSiteMapPath" runat="server" Font-Bold="False" Font-Names="Tahoma"

65

Font-Size="Smaller" PathSeparator=" : " Style="font-size: 8pt; z-index: 121; left: 290px; position: absolute; top: 56px"> <PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" /> <CurrentNodeStyle ForeColor="#1C6397" /> <NodeStyle Font-Bold="False" ForeColor="#6F9CD5" /> <RootNodeStyle Font-Bold="False" ForeColor="#6F9CD5" /> </asp:SiteMapPath> <asp:TextBox ID="txtNoOfVehicles" runat="server" Style="z-index: 113; left: 279px; position: absolute; top: 249px" Height="16px" Width="144px"></asp:TextBox> <asp:TextBox ID="txtTax" runat="server" Style="z-index: 114; left: 279px; position: absolute; top: 295px" Height="16px" Width="144px"></asp:TextBox> <asp:TextBox ID="txtTatesPerDay" runat="server" Style="z-index: 115; left: 279px; position: absolute; top: 343px" Height="16px" Width="144px"></asp:TextBox> <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtTatesPerDay" ErrorMessage="Alphabets and special Character Not allowed" Style="z-index: 116; left: 281px; position: absolute; top: 370px" ValidationExpression="([0-9])*" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:Image ID="imgAddNew" runat="server" ImageUrl="~/IMAGES/Add.bmp" Style="z-index: 117; left: 25px; position: absolute; top: 18px" Width="48px" /> <hr style="z-index: 120; left: 21px; width: 592px; position: absolute; top: 75px; height: 2px; background-color: teal" /> <asp:Label ID="lblBookingDetails" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 118; left: 85px; position: absolute; top: 49px" Text="Add New Car"></asp:Label> <asp:Label ID="lblDescription" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Height="11px" Style="z-index: 119; left: 29px; position: absolute; top: 87px" Text="New Car Details can be entered in this page. After entering all the valid details, you can save add this as a new car" Width="562px"></asp:Label> </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /></asp:Content>

66

<%@ Page Language="C#" MasterPageFile="~/Customer.master" AutoEventWireup="true" CodeFile="CarBooking.aspx.cs" Inherits="CarBooking" Title="Book This Car" %><asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> <br /> <asp:Panel ID="Panel1" runat="server" Height="546px" Style="z-index: 100; left: 212px; position: absolute; top: 129px" Width="642px" BackColor="#EEEDEF" BorderColor="#96B3CD" BorderStyle="Solid"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br /> <br /> &nbsp; <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyDataBase %>" SelectCommand="SELECT [Cartype], [location] FROM [tblCarDetails] WHERE (([location] = @location) AND ([location] = @location2)) ORDER BY [location]"> <SelectParameters> <asp:QueryStringParameter Name="location" QueryStringField="city" /> <asp:QueryStringParameter Name="location2" QueryStringField="city" /> </SelectParameters> </asp:SqlDataSource> <asp:Image ID="imgPayment" runat="server" ImageUrl="~/IMAGES/Booking4.gif" Style="z-index: 100; left: 34px; position: absolute; top: 17px" Width="48px" />

67

<hr style="z-index: 113; left: 27px; width: 592px; position: absolute; top: 70px; height: 2px; background-color: teal" /> <asp:Label ID="lblBookingDetails" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 101; left: 89px; position: absolute; top: 50px" Text="Car Booking"></asp:Label> <asp:Label ID="lblDescription" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Height="11px" Style="z-index: 102; left: 27px; position: absolute; top: 79px" Text="Car booking can be done in this page. You can select the appropriate flight for booking. You can review the booking details later." Width="591px"></asp:Label> &nbsp;<br /> &nbsp; &nbsp; &nbsp; &nbsp; <asp:GridView ID="Gvvehicledetails" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" OnRowCommand="GridView1_RowCommand" Style="z-index: 105; left: 23px; position: absolute; top: 313px" OnSelectedIndexChanged="Gvvehicledetails_SelectedIndexChanged" CellPadding="4" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#333333" GridLines="None" Width="603px" Height="161px"> <Columns> <asp:BoundField DataField="Cartype" HeaderText="Cartype" ReadOnly="True" SortExpression="Cartype" /> <asp:BoundField DataField="location" HeaderText="location" ReadOnly="True" SortExpression="location" /> <asp:ButtonField ButtonType="Button" HeaderText="Book This" Text="Book This" /> </Columns> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <EditRowStyle BackColor="#999999" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#6F9CD5" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> </asp:GridView> <asp:Panel ID="Panel2" runat="server" BackColor="#6F9CD5" BorderColor="Silver" Font-Bold="True" ForeColor="White" Height="14px" Style="z-index: 106; left: 27px; position: absolute; top: 178px" Width="596px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="Label1" runat="server" Font-Bold="True" Height="19px" Style="z-index: 100; left: 44px; position: absolute; top: 0px" Text="Journey Date" Width="90px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label>

68

<asp:Label ID="lbljourneydate" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 102; left: 141px; position: absolute; top: 0px" Width="165px" Font-Names="Tahoma" ForeColor="White"></asp:Label> </asp:Panel> <asp:Panel ID="Panel3" runat="server" BackColor="#6F9CD5" BorderColor="Silver" Font-Bold="True" ForeColor="White" Height="14px" Style="z-index: 107; left: 27px; position: absolute; top: 198px" Width="596px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="Label9" runat="server" BorderColor="InactiveCaption" Font-Bold="True" Style="z-index: 100; left: 18px; position: absolute; top: 0px" Text="Journey End Date" Width="115px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="lblenddate" runat="server" Font-Bold="False" Font-Size="Smaller" Height="13px" Style="z-index: 102; left: 142px; position: absolute; top: 3px" Width="165px" Font-Names="Tahoma" ForeColor="White"></asp:Label> </asp:Panel> <asp:Panel ID="Panel4" runat="server" BackColor="#6F9CD5" BorderColor="Silver" Font-Bold="True" ForeColor="White" Height="14px" Style="z-index: 108; left: 27px; position: absolute; top: 218px" Width="596px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Label ID="Label5" runat="server" Font-Bold="True" Height="19px" Style="z-index: 100; left: 10px; position: absolute; top: 1px" Text="Journey start Time" Width="125px" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> <asp:Label ID="lbljourneystarttime" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 102; left: 142px; position: absolute; top: 0px" Width="64px" Font-Names="Tahoma"></asp:Label> </asp:Panel> <asp:Panel ID="Panel5" runat="server" BackColor="#6F9CD5" BorderColor="Silver" Font-Bold="True" ForeColor="White" Height="14px" Style="z-index: 109; left: 27px; position: absolute; top: 238px" Width="596px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="Label7" runat="server" Font-Bold="True" Height="19px" Style="z-index: 100; left: 20px; position: absolute; top: 0px" Text="Journey End Time" Width="112px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="lbljourneyendtime" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 102; left: 142px; position: absolute; top: 1px" Font-Names="Tahoma" ForeColor="White"></asp:Label> </asp:Panel> <asp:Panel ID="Panel6" runat="server" BackColor="#6F9CD5" BorderColor="Silver" Font-Bold="True" ForeColor="White" Height="14px" Style="z-index: 110; left: 28px; position: absolute; top: 157px" Width="596px">

69

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Label ID="lblcity" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 100; left: 141px; position: absolute; top: 2px" Text="Label" Font-Names="Tahoma" ForeColor="White"></asp:Label> <asp:Label ID="Label2" runat="server" Font-Bold="True" Style="z-index: 102; left: 106px; position: absolute; top: 0px" Text="City" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> </asp:Panel> <asp:Panel ID="Panel7" runat="server" BackColor="#6F9CD5" BorderColor="Silver" Font-Bold="True" ForeColor="White" Height="14px" Style="z-index: 111; left: 27px; position: absolute; top: 258px" Width="596px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Label ID="Label3" runat="server" Font-Size="Smaller" Style="z-index: 100; left: 184px; position: absolute; top: 0px" Text="Adults" Width="39px" Font-Names="Tahoma" ForeColor="White" Height="16px"></asp:Label> <asp:Label ID="Label4" runat="server" Font-Bold="True" Style="z-index: 101; left: 67px; position: absolute; top: 0px" Text="Travellers" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="lbltravellers" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 103; left: 144px; position: absolute; top: 1px" Text="Label" Width="33px" Font-Names="Tahoma" ForeColor="White" Height="16px"></asp:Label> </asp:Panel> <asp:Panel ID="Panel8" runat="server" BackColor="#6F9CD5" BorderColor="Silver" Font-Bold="True" ForeColor="White" Height="14px" Style="z-index: 114; left: 27px; position: absolute; top: 278px" Width="596px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Label ID="Label6" runat="server" Font-Bold="True" Style="z-index: 100; left: 57px; position: absolute; top: 0px" Text="Travel Type" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="lbltraveltype" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 102; left: 143px; position: absolute; top: 0px" Font-Names="Tahoma" ForeColor="White"></asp:Label> </asp:Panel> </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /></asp:Content>

70

<%@ Page Language="C#" MasterPageFile="~/Customer.master" AutoEventWireup="true" CodeFile="CarPayment.aspx.cs" Inherits="CarPayment" Title="Car Payment" %><asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> <br /> <asp:Panel ID="Panel1" runat="server" Height="546px" Style="z-index: 100; left: 222px; position: absolute; top: 129px" Width="632px" BackColor="#EEEDEF" BorderColor="#96B3CD" BorderStyle="Solid"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Label ID="Label4" runat="server" Font-Bold="True" Style="z-index: 100; left: 51px; position: absolute; top: 374px" Text="Total amount" Width="88px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004040"></asp:Label> <asp:Label ID="Label5" runat="server" Font-Bold="True" Style="z-index: 101; left: 249px; position: absolute; top: 374px" Text="Discount In %" Width="95px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004040"></asp:Label> <asp:Label ID="Label6" runat="server" Font-Bold="True" Style="z-index: 102; left: 465px; position: absolute; top: 374px" Text="Amount to be paid" Width="122px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004040"></asp:Label> &nbsp; &nbsp;&nbsp;

71

<asp:Label ID="lbltotalamount" runat="server" Font-Bold="False" Font-Size="Smaller" Height="19px" Style="z-index: 103; left: 41px; position: absolute; top: 406px" Width="98px" Font-Names="Tahoma" ForeColor="Black"></asp:Label> <asp:Label ID="lbldiscount" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 104; left: 247px; position: absolute; top: 407px" Width="97px" Font-Names="Tahoma" ForeColor="Black"></asp:Label> <asp:Label ID="lblamounttobepaid" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 105; left: 472px; position: absolute; top: 407px" Width="98px" Font-Names="Tahoma" ForeColor="Black"></asp:Label> &nbsp;&nbsp; <asp:Button ID="btncalculatepayment" runat="server" OnClick="btncalculatepayment_Click" Style="z-index: 106; left: 187px; position: absolute; top: 299px" Text="Calculate Payment And Discount" Width="245px" ForeColor="#1C6397" /> <asp:Button ID="btnsavedeatils" runat="server" OnClick="btnsavedeatils_Click" Style="z-index: 107; left: 190px; position: absolute; top: 464px" Text="Save Payement Details" Width="244px" ForeColor="#1C6397" /> <asp:Image ID="imgPayment" runat="server" ImageUrl="~/IMAGES/Payment.jpg" Style="z-index: 108; left: 45px; position: absolute; top: 19px" Width="48px" /> <hr style="z-index: 115; left: 42px; width: 565px; position: absolute; top: 74px; height: 2px; background-color: teal" /> <asp:Label ID="lblDescription" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Height="11px" Style="z-index: 109; left: 39px; position: absolute; top: 83px" Text="You can now calculate the payment for the Car. After calculating the payment, you can save the payment details for future reference." Width="562px"></asp:Label> <asp:Label ID="lblBookingDetails" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 110; left: 105px; position: absolute; top: 49px" Text="Car Payment"></asp:Label> <asp:Panel ID="Panel5" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 111; left: 39px; position: absolute; top: 198px" Width="564px"> &nbsp; &nbsp; <asp:Label ID="Label10" runat="server" Font-Bold="True" Style="z-index: 100; left: 65px; position: absolute; top: 0px" Text="CustomerID" Width="71px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="Label9" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 102; left: 154px; position: absolute; top: 0px" Width="89px" Font-Names="Tahoma" ForeColor="White"></asp:Label> </asp:Panel> <asp:Panel ID="Panel2" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 112; left: 39px; position: absolute; top: 218px" Width="564px">

72

&nbsp; &nbsp; <asp:Label ID="Label1" runat="server" Font-Bold="True" Style="z-index: 100; left: 73px; position: absolute; top: 0px" Text="Booking ID" Width="69px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="lblbookingid" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 102; left: 154px; position: absolute; top: 0px" Width="94px" Font-Names="Tahoma" ForeColor="White"></asp:Label> </asp:Panel> <asp:Panel ID="Panel3" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 113; left: 39px; position: absolute; top: 238px" Width="564px"> &nbsp; &nbsp; <asp:Label ID="Label2" runat="server" Font-Bold="True" Style="z-index: 100; left: 2px; position: absolute; top: 0px" Text="Total Vehicle Amount" Width="137px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="lbltotalvehicleamount" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 102; left: 154px; position: absolute; top: 1px" Width="94px" Font-Names="Tahoma" ForeColor="White"></asp:Label> </asp:Panel> <asp:Panel ID="Panel4" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 114; left: 39px; position: absolute; top: 257px" Width="564px"> &nbsp; &nbsp; <asp:Label ID="Label3" runat="server" Font-Bold="True" Style="z-index: 100; left: 26px; position: absolute; top: 0px" Text="Total Tax Amount" Width="114px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="lbltotaltaxamount" runat="server" Font-Bold="False" Font-Size="Smaller" Height="7px" Style="z-index: 102; left: 154px; position: absolute; top: 0px" Width="94px" Font-Names="Tahoma" ForeColor="White"></asp:Label> </asp:Panel> <hr style="z-index: 116; left: 38px; width: 565px; position: absolute; top: 363px; height: 2px; background-color: teal" /> <hr style="z-index: 118; left: 36px; width: 565px; position: absolute; top: 396px; height: 2px; background-color: teal" /> <hr style="z-index: 119; left: 36px; width: 565px; position: absolute; top: 431px; height: 2px; background-color: teal" /> </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /></asp:Content>

73

<%@ Page Language="C#" MasterPageFile="~/Customer.master" AutoEventWireup="true" CodeFile="CarReport.aspx.cs" Inherits="RegisterCustomer" Title="Car Report" %><asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> <br /> <asp:Panel ID="Panel1" runat="server" Height="546px" Style="z-index: 100; left: 222px; position: absolute; top: 129px" Width="632px" BackColor="#EEEDEF" BorderColor="#1C6397" BorderStyle="Solid"> <asp:GridView ID="grdCarReport" runat="server" CellPadding="4" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#333333" GridLines="None" Style="z-index: 100; left: 15px; position: absolute; top: 267px" Width="601px" AutoGenerateColumns="False" DataSourceID="SqlDataSource2" Visible="False"> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <EditRowStyle BackColor="#999999" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#6F9CD5" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" ForeColor="#284775" />

74

<Columns> <asp:BoundField DataField="FirstName" HeaderText="FirstName" SortExpression="FirstName" /> <asp:BoundField DataField="LastName" HeaderText="LastName" SortExpression="LastName" /> <asp:BoundField DataField="carType" HeaderText="carType" SortExpression="carType" /> <asp:BoundField DataField="Location" HeaderText="Location" SortExpression="Location" /> </Columns> </asp:GridView> <asp:Label ID="lblLocation" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 101; left: 320px; position: absolute; top: 229px" Text="Location"></asp:Label> <asp:Label ID="lblDate" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 102; left: 28px; position: absolute; top: 229px" Text="Date"></asp:Label> <asp:DropDownList ID="drpLocation" runat="server" Style="z-index: 103; left: 377px; position: absolute; top: 226px" Width="179px" DataSourceID="SqlDataSource1" DataTextField="Location" DataValueField="Location" AutoPostBack="True"> </asp:DropDownList> &nbsp; <asp:TextBox ID="txtDate" runat="server" Style="z-index: 104; left: 79px; position: absolute; top: 226px" AutoPostBack="True" OnTextChanged="txtDate_TextChanged"></asp:TextBox> <asp:Button ID="btnSelectDate" runat="server" Style="z-index: 105; left: 241px; position: absolute; top: 225px" Text=">>" OnClick="btnSelectDate_Click" /> <asp:Calendar ID="CCjourneydate" runat="server" OnSelectionChanged="CCjourneydate_SelectionChanged" Style="z-index: 106; left: 247px; position: absolute; top: 45px" Visible="False" BackColor="White" BorderColor="White" BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" Height="118px" NextPrevFormat="FullMonth" Width="161px"> <SelectedDayStyle BackColor="#333399" ForeColor="White" /> <TodayDayStyle BackColor="#CCCCCC" /> <OtherMonthDayStyle ForeColor="#999999" /> <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" VerticalAlign="Bottom" /> <DayHeaderStyle Font-Bold="True" Font-Size="8pt" /> <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" Font-Bold="True" Font-Size="12pt" ForeColor="#333399" /> </asp:Calendar> <asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="<%$ ConnectionStrings:MyDataBase %>" SelectCommand="SELECT tblCustomer.FirstName, tblCustomer.LastName, tblcarBooking.carType, tblcarBooking.Location FROM tblcarBooking INNER JOIN tblCustomer ON tblcarBooking.CustomerId = tblCustomer.CustomerId&#13;&#10;&#13;&#10;AND @Date between tblcarBooking.JourneyStartDate and tblcarBooking.JourneyEndDate AND tblcarBooking. Location=@Location&#13;&#10;">

75

<SelectParameters> <asp:ControlParameter ControlID="txtDate" DefaultValue="" Name="Date" PropertyName="Text" /> <asp:ControlParameter ControlID="drpLocation" DefaultValue="" Name="Location" PropertyName="SelectedValue" /> </SelectParameters> </asp:SqlDataSource> <asp:SiteMapPath ID="smpSiteMapPath" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" PathSeparator=" : " Style="font-size: 8pt; z-index: 107; left: 309px; position: absolute; top: 68px"> <PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" /> <CurrentNodeStyle ForeColor="#1C6397" /> <NodeStyle Font-Bold="False" ForeColor="#6F9CD5" /> <RootNodeStyle Font-Bold="False" ForeColor="#6F9CD5" /> </asp:SiteMapPath> <hr style="z-index: 115; left: 31px; width: 579px; position: absolute; top: 86px; height: 2px; background-color: teal" /> &nbsp; <asp:SqlDataSource ID="SqlDataSource3" runat="server" ConnectionString="<%$ ConnectionStrings:MyDataBase %>" SelectCommand="exec procgeneratecarreport @location"> <SelectParameters> <asp:ControlParameter ControlID="drpLocation" Name="location" PropertyName="SelectedValue" /> </SelectParameters> </asp:SqlDataSource> <asp:GridView ID="grdfreeforbooking" runat="server" AutoGenerateColumns="False" CellPadding="4" DataSourceID="SqlDataSource3" ForeColor="#333333" GridLines="None" Style="z-index: 108; left: 17px; position: absolute; top: 268px" Visible="False" Font-Names="Tahoma" Font-Size="Smaller" Width="597px"> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <Columns> <asp:BoundField DataField="CarType" HeaderText="CarType" SortExpression="CarType" /> <asp:BoundField DataField="Location" HeaderText="Location" SortExpression="Location" /> <asp:BoundField DataField="NoOfCars" HeaderText="NoOfCars" SortExpression="NoOfCars" /> <asp:BoundField DataField="RatePerDay" HeaderText="RatePerDay" SortExpression="RatePerDay" /> <asp:BoundField DataField="Tax" HeaderText="Tax" SortExpression="Tax" /> </Columns> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <EditRowStyle BackColor="#999999" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" /> <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#6F9CD5" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" ForeColor="#284775" />

76

</asp:GridView> <asp:RadioButton ID="rbBookedCars" runat="server" Checked="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" GroupName="CarReport" Style="z-index: 109; left: 26px; position: absolute; top: 164px" Text="Booked Cars" AutoPostBack="True" OnCheckedChanged="rbBookedCars_CheckedChanged" /> <asp:RadioButton ID="rbSearchFreeForBooking" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" GroupName="CarReport" Style="z-index: 110; left: 26px; position: absolute; top: 138px" Text="Free For Booking" AutoPostBack="True" OnCheckedChanged="rbSearchFreeForBooking_CheckedChanged" /> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyDataBase %>" SelectCommand="SELECT [Location] FROM [tblCarDetails]"></asp:SqlDataSource> <asp:Image ID="imgPayment" runat="server" ImageUrl="~/IMAGES/Report.gif" Style="z-index: 111; left: 31px; position: absolute; top: 27px" Width="48px" /> <asp:Label ID="lblBookingDetails" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 112; left: 87px; position: absolute; top: 66px" Text="Car Report"></asp:Label> <asp:Label ID="lblDescription" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Height="11px" Style="z-index: 113; left: 29px; position: absolute; top: 91px" Text="Car reports can be viewed on this page. Reports can be viewed based on various criterias such as free booking and booked cars." Width="573px"></asp:Label> &nbsp; </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /></asp:Content>

<%@ Page Language="C#" MasterPageFile="~/Customer.master" AutoEventWireup="true" CodeFile="CarReviewDetails.aspx.cs" Inherits="CarReviewDetails" Title="Review Car Details" %><asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />

77

<br /> <br /> <br /> <br /> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> <br /> <asp:Panel ID="Panel1" runat="server" Height="546px" Style="z-index: 100; left: 222px; position: absolute; top: 129px" Width="632px" BackColor="#EEEDEF" BorderColor="#96B3CD" BorderStyle="Solid"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="Label1" runat="server" Font-Bold="False" Font-Size="Smaller" Height="16px" Style="z-index: 100; left: 31px; position: absolute; top: 114px" Text="Car Details" Width="80px" Font-Names="Tahoma" ForeColor="#1C6397"></asp:Label> &nbsp;&nbsp; <asp:Label ID="Label17" runat="server" Font-Bold="True" Style="z-index: 101; left: 313px; position: absolute; top: 313px" Text="Fare" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004000"></asp:Label> <asp:Label ID="Label18" runat="server" Font-Bold="True" Style="z-index: 102; left: 377px; position: absolute; top: 313px" Text="Taxes" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004000"></asp:Label> <asp:Label ID="Label19" runat="server" Font-Bold="True" Style="z-index: 103; left: 443px; position: absolute; top: 313px" Text="Total Including Taxes" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004000"></asp:Label> <asp:Label ID="LblTravellerType" runat="server" Style="z-index: 104; left: 101px; position: absolute; top: 355px" Text="Adults" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> <asp:Label ID="lblquantity" runat="server" Style="z-index: 105; left: 189px; position: absolute; top: 355px" Text="Label" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> <asp:Label ID="lblcity" runat="server" Style="z-index: 106; left: 243px; position: absolute;

78

top: 355px" Text="Label" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> <asp:Label ID="lblfare" runat="server" Style="z-index: 107; left: 307px; position: absolute; top: 355px" Text="Label" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> <asp:Label ID="lbltaxes" runat="server" Style="z-index: 108; left: 380px; position: absolute; top: 355px" Text="Label" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> <asp:Label ID="lbltotaltaxes" runat="server" Style="z-index: 109; left: 548px; position: absolute; top: 355px" Text="Label" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="Label8" runat="server" Font-Bold="False" Font-Size="Smaller" Style="z-index: 110; left: 31px; position: absolute; top: 277px" Text="Fare Details" Width="122px" Font-Names="Tahoma" ForeColor="#1C6397"></asp:Label> &nbsp; <asp:Label ID="Lbl" runat="server" Font-Bold="True" Style="z-index: 111; left: 48px; position: absolute; top: 313px" Text="Traveller Type" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004000"></asp:Label> &nbsp;&nbsp; <asp:Label ID="Label16" runat="server" Font-Bold="True" Style="z-index: 112; left: 167px; position: absolute; top: 313px" Text="Quantity" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004000"></asp:Label> <asp:Label ID="Label12" runat="server" Font-Bold="True" Height="15px" Style="z-index: 113; left: 249px; position: absolute; top: 311px" Text="City" Width="28px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004000"></asp:Label> <asp:Label ID="Label25" runat="server" Font-Bold="True" Style="z-index: 114; left: 447px; position: absolute; top: 394px" Text="Grand Total" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004000"></asp:Label> <asp:Label ID="lblgrandtotal" runat="server" Style="z-index: 115; left: 548px; position: absolute; top: 394px" Text="Label" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> <asp:Button ID="Btncarbooking" runat="server" Font-Bold="False" OnClick="Button1_Click" Style="z-index: 116; left: 172px; position: absolute; top: 480px" Text="Continue Booking" Width="246px" ForeColor="#1C6397" /> <asp:Panel ID="Panel5" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 117; left: 32px; position: absolute; top: 135px" Width="564px"> &nbsp; &nbsp; &nbsp; <asp:Label ID="Label2" runat="server" Font-Bold="True" Style="z-index: 100; left: 49px; position: absolute; top: 0px" Text="Car Name" Width="65px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="lblcarname" runat="server" Style="z-index: 102; left: 127px; position: absolute;

79

top: 0px" Text="Label" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Height="13px"></asp:Label> </asp:Panel> <asp:Panel ID="Panel2" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 118; left: 32px; position: absolute; top: 172px" Width="564px"> &nbsp; &nbsp; &nbsp; <asp:Label ID="Label3" runat="server" Font-Bold="True" Height="11px" Style="z-index: 100; left: 8px; position: absolute; top: 0px" Text="Departure Date" Width="106px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="lbldeparturedate" runat="server" Style="z-index: 102; left: 129px; position: absolute; top: -1px" Text="Label" Width="66px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> </asp:Panel> <asp:Panel ID="Panel3" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 119; left: 32px; position: absolute; top: 210px" Width="564px"> &nbsp; &nbsp; &nbsp; <asp:Label ID="Label4" runat="server" Font-Bold="True" Height="1px" Style="z-index: 100; left: 10px; position: absolute; top: 0px" Text="Departure Time" Width="104px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="lbldeparturetime" runat="server" Style="z-index: 102; left: 129px; position: absolute; top: 0px" Text="Label" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> </asp:Panel> <asp:Panel ID="Panel4" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 120; left: 31px; position: absolute; top: 191px" Width="564px"> &nbsp; &nbsp; &nbsp; <asp:Label ID="Label5" runat="server" Font-Bold="True" Style="z-index: 100; left: 31px; position: absolute; top: 0px" Text="Return Date" Width="84px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="lblreturntype" runat="server" Style="z-index: 102; left: 130px; position: absolute; top: 0px" Text="Label" Width="99px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> </asp:Panel> <asp:Panel ID="Panel6" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 121; left: 32px; position: absolute; top: 229px" Width="564px"> &nbsp; &nbsp; &nbsp; <asp:Label ID="lblarrivaltime" runat="server" Style="z-index: 100; left: 129px; position: absolute; top: 1px" Text="Label" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="Label6" runat="server" Font-Bold="True" Style="z-index: 102; left: 33px; position: absolute; top: -1px" Text="Arrival Time" Width="81px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> </asp:Panel>

80

<asp:Panel ID="Panel7" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 122; left: 31px; position: absolute; top: 153px" Width="564px"> &nbsp; &nbsp; &nbsp; <asp:Label ID="Label7" runat="server" Font-Bold="True" Height="20px" Style="z-index: 100; left: 36px; position: absolute; top: 0px" Text="Travel Type" Width="77px" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> <asp:Label ID="lbltraveltype" runat="server" Style="z-index: 102; left: 129px; position: absolute; top: 0px" Text="Label" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White"></asp:Label> </asp:Panel> <asp:Image ID="imgPayment" runat="server" ImageUrl="~/IMAGES/Review1.gif" Style="z-index: 123; left: 34px; position: absolute; top: 12px" Width="48px" /> <hr style="z-index: 126; left: 32px; width: 562px; position: absolute; top: 64px; height: 1px; background-color: teal" /> <asp:Label ID="lblDescription" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Height="11px" Style="z-index: 124; left: 32px; position: absolute; top: 70px" Text="Car Booking details can be reviewed in this page. After reviewing the details, you can book the particular car and then you can navigate to payment section." Width="563px"></asp:Label> <asp:Label ID="lblBookingDetails" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 125; left: 89px; position: absolute; top: 46px" Text="Review Car Details"></asp:Label> <hr style="z-index: 128; left: 32px; width: 562px; position: absolute; top: 301px; height: 1px; background-color: teal" /> <hr style="z-index: 129; left: 32px; width: 562px; position: absolute; top: 337px; height: 1px; background-color: teal" /> <hr style="z-index: 130; left: 30px; width: 562px; position: absolute; top: 376px; height: 1px; background-color: teal" /> <hr style="z-index: 131; left: 29px; width: 562px; position: absolute; top: 416px; height: 1px; background-color: teal" /> </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /></asp:Content>

81

<%@ Page Language="C#" MasterPageFile="~/Customer.master" AutoEventWireup="true" CodeFile="FlightAddNew.aspx.cs" Inherits="RegisterCustomer" Title="Add A New Flight" %><asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> <br /> <asp:Panel ID="Panel1" runat="server" Height="546px" Style="z-index: 100; left: 222px; position: absolute; top: 129px" Width="632px" BackColor="#EEEDEF" BorderColor="#96B3CD" BorderStyle="Solid"> <asp:Panel ID="pnlFlight" runat="server" BorderStyle="None" Height="566px" Style="z-index: 100; left: -3px; position: absolute; top: -18px" Width="615px"> <asp:Label ID="lblAirportTax" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 100; left: 83px; position: absolute; top: 451px" Text="Airport Tax"></asp:Label> <asp:Label ID="lblFlightNo" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 101; left: 97px; position: absolute; top: 169px" Text="Flight No"></asp:Label> <asp:Label ID="lblAirlinesName" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 102; left: 68px; position: absolute; top: 200px" Text="Airlines Name"></asp:Label>

82

<asp:Label ID="lblSource" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 103; left: 107px; position: absolute; top: 236px" Text="Source"></asp:Label> <asp:Label ID="lblDestination" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 104; left: 286px; position: absolute; top: 236px" Text="Destination"></asp:Label> <asp:Label ID="lblArrivalTime" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 105; left: 77px; position: absolute; top: 280px" Text="Arrival Time"></asp:Label> <asp:Label ID="lblDepartureTime" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 106; left: 313px; position: absolute; top: 280px" Text="Departure Time"></asp:Label> <asp:Label ID="lblTotalSeats" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 107; left: 82px; position: absolute; top: 333px" Text="Total Seats"></asp:Label> <asp:CompareValidator ID="cvArrivalTime" runat="server" ControlToCompare="ddlArrivalTime" ControlToValidate="ddlDepartureTime" ErrorMessage="Arrival Time Greater than Departure Time" Operator="LessThan" Style="z-index: 108; left: 173px; position: absolute; top: 313px" Font-Names="Tahoma" Font-Size="Smaller" Type="Double"></asp:CompareValidator> <asp:CompareValidator ID="cvCompareCity" runat="server" ControlToCompare="ddlSource" ControlToValidate="ddlDestination" ErrorMessage="Source and Destination Cannot be same" Font-Names="Tahoma" Font-Size="Smaller" Operator="NotEqual" Style="z-index: 109; left: 365px; position: absolute; top: 259px"></asp:CompareValidator> <asp:Label ID="lblAdultFare" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 110; left: 88px; position: absolute; top: 373px" Text="Adult Fare"></asp:Label> <asp:Label ID="lblChildFare" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 111; left: 89px; position: absolute; top: 410px" Text="Child Fare"></asp:Label> <asp:TextBox ID="txtAirportTax" runat="server" Style="z-index: 112; left: 170px; position: absolute; top: 446px"></asp:TextBox> <asp:TextBox ID="txtChildFare" runat="server" Style="z-index: 113; left: 170px; position: absolute; top: 407px" MaxLength="5"></asp:TextBox>

83

<asp:TextBox ID="txtAdultFare" runat="server" Style="z-index: 114; left: 170px; position: absolute; top: 368px" MaxLength="5"></asp:TextBox> <asp:TextBox ID="txtTotalSeats" runat="server" Style="z-index: 115; left: 170px; position: absolute; top: 331px" MaxLength="3"></asp:TextBox> <asp:RequiredFieldValidator ID="rfvTotalSeats" runat="server" ControlToValidate="txtTotalSeats" ErrorMessage="Total Seats is Mandatory" Style="z-index: 116; left: 342px; position: absolute; top: 334px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> &nbsp;&nbsp; <asp:TextBox ID="txtFlightNo" runat="server" Style="z-index: 117; left: 170px; position: absolute; top: 167px" ReadOnly="True"></asp:TextBox> <asp:RangeValidator ID="RangeValidator1" runat="server" ControlToValidate="txtTotalSeats" ErrorMessage="Total Seats is Greater than 0" MaximumValue="Convert.ToString(int.MaxValue)" MinimumValue="1" Style="z-index: 118; left: 169px; position: absolute; top: 351px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RangeValidator> <asp:RequiredFieldValidator ID="rfvAdultFare" runat="server" ControlToValidate="txtAdultFare" ErrorMessage="Adult Fare is Mandatory" Style="z-index: 119; left: 336px; position: absolute; top: 372px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvChildFare" runat="server" ControlToValidate="txtChildFare" ErrorMessage="Child Fare Fare is Mandatory" Style="z-index: 120; left: 333px; position: absolute; top: 411px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvAirportTax" runat="server" ControlToValidate="txtAirportTax" ErrorMessage="Airport Tax is Mandatory" Style="z-index: 121; left: 333px; position: absolute; top: 450px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> &nbsp;&nbsp; <asp:DropDownList ID="ddlAirlinesName" runat="server" Style="z-index: 122; left: 170px; position: absolute; top: 200px"> <asp:ListItem>-----Select-----</asp:ListItem> <asp:ListItem>KingFisher</asp:ListItem> <asp:ListItem>Deccan</asp:ListItem> <asp:ListItem>Indigo</asp:ListItem> <asp:ListItem>JetAirways</asp:ListItem> <asp:ListItem>Indian</asp:ListItem> </asp:DropDownList> <asp:RequiredFieldValidator ID="rfvAirlinesNAme" runat="server" ControlToValidate="ddlAirlinesName" ErrorMessage="AirLines Name is Mandatory" Style="z-index: 123; left: 281px; position: absolute; top: 200px" Font-Names="Tahoma" Font-Size="Smaller" InitialValue="-----Select-----"></asp:RequiredFieldValidator>

84

<asp:RequiredFieldValidator ID="rfvSource" runat="server" ControlToValidate="ddlSource" ErrorMessage="Source should be Selected" Style="z-index: 124; left: 170px; position: absolute; top: 259px" Font-Names="Tahoma" Font-Size="Smaller" InitialValue="-----Select-----"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvDestination" runat="server" ControlToValidate="ddlDestination" ErrorMessage="Destination cannot be Null" Style="z-index: 125; left: 461px; position: absolute; top: 236px" Font-Names="Tahoma" Font-Size="Smaller" InitialValue="-----Select-----"></asp:RequiredFieldValidator> &nbsp;&nbsp; <asp:DropDownList ID="ddlDestination" runat="server" Style="z-index: 126; left: 360px; position: absolute; top: 236px" AppendDataBoundItems="True" DataSourceID="sqldsSource" DataTextField="CityName" DataValueField="CityCode"> <asp:ListItem>-----Select-----</asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="ddlSource" runat="server" Style="z-index: 127; left: 170px; position: absolute; top: 236px" AppendDataBoundItems="True" DataSourceID="sqldsSource" DataTextField="CityName" DataValueField="CityCode"> <asp:ListItem>-----Select-----</asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="ddlArrivalTime" runat="server" Style="z-index: 128; left: 170px; position: absolute; top: 280px"> <asp:ListItem>-----Select-----</asp:ListItem> <asp:ListItem>6.00</asp:ListItem> <asp:ListItem>7.00</asp:ListItem> <asp:ListItem>8.00</asp:ListItem> <asp:ListItem>9.00</asp:ListItem> <asp:ListItem>10.00</asp:ListItem> <asp:ListItem>11.00</asp:ListItem> <asp:ListItem>12.00</asp:ListItem> <asp:ListItem>13.00</asp:ListItem> <asp:ListItem>14.00</asp:ListItem> <asp:ListItem>15.00</asp:ListItem> <asp:ListItem>16.00</asp:ListItem> <asp:ListItem>17.00</asp:ListItem> <asp:ListItem>18.00</asp:ListItem> <asp:ListItem>19.00</asp:ListItem> <asp:ListItem>20.00</asp:ListItem> <asp:ListItem>21.00</asp:ListItem> <asp:ListItem>22.00</asp:ListItem> <asp:ListItem>23.00</asp:ListItem> </asp:DropDownList> <asp:DropDownList ID="ddlDepartureTime" runat="server" Style="z-index: 129; left: 435px; position: absolute; top: 280px" Height="24px" Width="93px"> <asp:ListItem>-----Select-----</asp:ListItem> <asp:ListItem>6.00</asp:ListItem> <asp:ListItem>7.00</asp:ListItem> <asp:ListItem>8.00</asp:ListItem> <asp:ListItem>9.00</asp:ListItem>

85

<asp:ListItem>10.00</asp:ListItem> <asp:ListItem>11.00</asp:ListItem> <asp:ListItem>12.00</asp:ListItem> <asp:ListItem>13.00</asp:ListItem> <asp:ListItem>14.00</asp:ListItem> <asp:ListItem>15.00</asp:ListItem> <asp:ListItem>16.00</asp:ListItem> <asp:ListItem>17.00</asp:ListItem> <asp:ListItem>18.00</asp:ListItem> <asp:ListItem>19.00</asp:ListItem> <asp:ListItem>20.00</asp:ListItem> <asp:ListItem>21.00</asp:ListItem> <asp:ListItem>22.00</asp:ListItem> <asp:ListItem>23.00</asp:ListItem> </asp:DropDownList> &nbsp;&nbsp; <asp:Button ID="btnAddAFlight" runat="server" Style="z-index: 130; left: 200px; position: absolute; top: 486px" Text="Add A New Flight" Width="144px" Height="30px" OnClick="btnAddAFlight_Click" ForeColor="#1C6397" /> <asp:Label ID="lblMessage" runat="server" Font-Names="Tahoma" Font-Size="Large" ForeColor="#1C6397" Height="18px" Style="z-index: 131; left: 6px; position: absolute; top: 523px; text-align: center" Width="605px"></asp:Label> <asp:SqlDataSource ID="sqldsSource" runat="server" ConnectionString="<%$ ConnectionStrings:MyDataBase %>" SelectCommand="SELECT * FROM [tblCity]"></asp:SqlDataSource> &nbsp;&nbsp; <asp:RequiredFieldValidator ID="rfvArrivalTime" runat="server" ControlToValidate="ddlArrivalTime" ErrorMessage="Select Arrival Time" Style="z-index: 132; left: 173px; position: absolute; top: 299px" Font-Names="Tahoma" Font-Size="Smaller" InitialValue="-----Select-----"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvDepartureTime" runat="server" ControlToValidate="ddlDepartureTime" ErrorMessage="Select Destination Time" Style="z-index: 133; left: 435px; position: absolute; top: 313px" Font-Names="Tahoma" Font-Size="Smaller" InitialValue="-----Select-----"></asp:RequiredFieldValidator> <asp:RangeValidator ID="RangeValidator2" runat="server" ControlToValidate="txtAdultFare" ErrorMessage="Adult Fare is Greater than 0" MaximumValue="Convert.ToString(int.MaxValue)" MinimumValue="1" Style="z-index: 134; left: 333px; position: absolute; top: 372px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RangeValidator> <asp:RangeValidator ID="RangeValidator3" runat="server" ControlToValidate="txtChildFare" ErrorMessage="Child Fare is Greater than 0" MaximumValue="Convert.ToString(int.MaxValue)" MinimumValue="1" Style="z-index: 135; left: 333px; position: absolute; top: 412px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RangeValidator> <asp:RegularExpressionValidator ID="revAirportTax" runat="server" ControlToValidate="txtAirportTax"

86

ErrorMessage="Enter value in Following Format 00.00" Style="z-index: 136; left: 174px; position: absolute; top: 469px" ValidationExpression="^(\d\d)?(\.\d\d)?$" Font-Names="Tahoma" Font-Size="Smaller" EnableViewState="False"></asp:RegularExpressionValidator> &nbsp; <asp:RegularExpressionValidator ID="revChildFare" runat="server" ControlToValidate="txtChildFare" ErrorMessage="Only integer Values are Allowed" Style="z-index: 137; left: 173px; position: absolute; top: 429px" ValidationExpression="\d*" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:RegularExpressionValidator ID="revAdultFare" runat="server" ControlToValidate="txtAdultFare" ErrorMessage="Only integer Values are Allowed" Style="z-index: 138; left: 174px; position: absolute; top: 390px" ValidationExpression="\d*" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:SiteMapPath ID="smpSiteMapPath" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" PathSeparator=" : " Style="font-size: 8pt; z-index: 145; left: 275px; position: absolute; top: 73px"> <PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" /> <CurrentNodeStyle ForeColor="#1C6397" /> <NodeStyle Font-Bold="False" ForeColor="#6F9CD5" /> <RootNodeStyle Font-Bold="False" ForeColor="#6F9CD5" /> </asp:SiteMapPath> <br /> <asp:Image ID="imgAddNew" runat="server" Height="43px" ImageUrl="~/IMAGES/Add.bmp" Style="z-index: 140; left: 26px; position: absolute; top: 43px" Width="48px" /> <hr style="z-index: 144; left: 24px; width: 592px; position: absolute; top: 91px; height: 2px; background-color: teal" /> <asp:Label ID="lblAddNewFlight" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 141; left: 80px; position: absolute; top: 72px" Text="Add New Flight"></asp:Label> <asp:Label ID="lblDescription" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Height="11px" Style="z-index: 142; left: 24px; position: absolute; top: 99px" Text="New Flight Details can be entered in this page. After entering all the valid details, you can save add this as a new Flight." Width="590px"></asp:Label> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />

87

<asp:RegularExpressionValidator ID="revTotalSeats" runat="server" ControlToValidate="txtTotalSeats" ErrorMessage="Only integer Values are Allowed" Style="z-index: 143; left: 333px; position: absolute; top: 334px" ValidationExpression="\d*" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> </asp:Panel> </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /></asp:Content>

<%@ Page Language="C#" MasterPageFile="~/Customer.master" AutoEventWireup="true" CodeFile="FlightPayment.aspx.cs" Inherits="FlightPayment" Title="Flight Payment" %><asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> <br /> <asp:Panel ID="Panel1" runat="server" Height="546px" Style="z-index: 100; left: 222px; position: absolute; top: 129px" Width="632px" BackColor="#EEEDEF" BorderColor="#96B3CD" BorderStyle="Solid">

88

<asp:Panel ID="pnlHotel" runat="server" BorderStyle="None" Height="536px" Style="z-index: 100; left: 0px; position: absolute; top: 0px" Width="626px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Panel ID="Panel2" runat="server" BackColor="#EEEDEF" BorderColor="#1C6397" BorderStyle="None" Height="351px" Style="z-index: 100; left: 17px; position: absolute; top: 149px" Width="596px"> &nbsp; &nbsp; &nbsp; <asp:Button ID="btnCalculatePayment" runat="server" OnClick="btnCalculatePayment_Click" Style="z-index: 100; left: 212px; position: absolute; top: 165px" Text="Calculate Payment" ForeColor="#1C6397" /> <asp:Label ID="lblHTotalAdultFare" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004000" Style="z-index: 101; left: 55px; position: absolute; top: 245px" Text="Total Adult Fare"></asp:Label> <asp:Label ID="lblTotalAdultFare" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="Black" Style="z-index: 102; left: 55px; position: absolute; top: 277px"></asp:Label> <asp:Label ID="lblHTotalChildFare" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004000" Style="z-index: 103; left: 242px; position: absolute; top: 245px" Text="Total Child Fare"></asp:Label> <asp:Label ID="lblTotalChildFare" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="Black" Style="z-index: 104; left: 242px; position: absolute; top: 277px"></asp:Label> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:Label ID="lblHTaxAmount" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#004000" Style="z-index: 105; left: 444px; position: absolute; top: 245px" Text="Tax Amount"></asp:Label> <asp:Button ID="btnSavePayment" runat="server" Height="24px" OnClick="btnSavePayment_Click" Style="z-index: 106; left: 211px; position: absolute; top: 318px" Text="Save Payment Details" Width="165px" ForeColor="#1C6397" /> <hr style="z-index: 117; left: 19px; width: 556px; position: absolute; top: 233px; height: 2px; background-color: teal" /><hr style="z-index: 120; left: 20px; width: 556px; position: absolute; top: 302px; height: 2px; background-color: teal" /> <asp:Label ID="lblTaxAmount" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="Black" Style="z-index: 107; left: 444px; position: absolute; top: 277px"></asp:Label> <asp:Panel ID="Panel5" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 108;

89

left: 13px; position: absolute; top: 90px" Width="564px"> &nbsp; <asp:Label ID="lblHBookingId" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 100; left: 29px; position: absolute; top: 3px" Text="Booking Id"></asp:Label> <asp:Label ID="lblBookingId" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 102; left: 108px; position: absolute; top: 2px"></asp:Label> </asp:Panel> <asp:Panel ID="Panel6" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 109; left: 13px; position: absolute; top: 110px" Width="564px"> &nbsp;&nbsp; <asp:Label ID="lblHAdults" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 100; left: 53px; position: absolute; top: 0px" Text="Adults"></asp:Label> <asp:Label ID="lblAdults" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 102; left: 108px; position: absolute; top: 0px"></asp:Label> </asp:Panel> <asp:Panel ID="Panel7" runat="server" BackColor="#6F9CD5" Height="17px" Style="z-index: 110; left: 13px; position: absolute; top: 130px" Width="564px"> &nbsp; &nbsp; <asp:Label ID="lblHChildren" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 100; left: 43px; position: absolute; top: 0px" Text="Children"></asp:Label> <asp:Label ID="lblChildren" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 102; left: 108px; position: absolute; top: 0px"></asp:Label> </asp:Panel> &nbsp; <asp:Label ID="lblPaymentDetails" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 112; left: 19px; position: absolute; top: 212px" Text="Payment Details"></asp:Label> <hr style="z-index: 118; left: 15px; width: 556px; position: absolute; top: 29px; height: 2px; background-color: teal" /> <asp:Panel ID="Panel3" runat="server" BackColor="#6F9CD5" Height="50px" Style="z-index: 113; left: 13px; position: absolute; top: 38px" Width="222px"> <asp:Label ID="lblTicketFrom" runat="server" Font-Bold="True" Font-Names="Agency FB"

90

Font-Size="X-Large" ForeColor="WhiteSmoke" Style="z-index: 100; left: 14px; position: absolute; top: 7px"></asp:Label> </asp:Panel> <asp:Panel ID="Panel4" runat="server" BackColor="#6F9CD5" Height="50px" Style="z-index: 114; left: 344px; position: absolute; top: 37px" Width="233px"> <asp:Label ID="lblTicketTo" runat="server" Font-Bold="True" Font-Names="Agency FB" Font-Size="X-Large" ForeColor="White" Style="z-index: 100; left: 16px; position: absolute; top: 11px"></asp:Label> </asp:Panel> <asp:Label ID="lblHTo" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="X-Large" ForeColor="#6F9CD5" Style="z-index: 115; left: 271px; position: absolute; top: 48px" Text=">>"></asp:Label><hr style="z-index: 119; left: 20px; width: 556px; position: absolute; top: 269px; height: 2px; background-color: teal" /> </asp:Panel> &nbsp; &nbsp;&nbsp;&nbsp; <asp:Image ID="imgPayment" runat="server" ImageUrl="~/IMAGES/Payment.jpg" Style="z-index: 101; left: 27px; position: absolute; top: 12px" Width="48px" /> <hr style="z-index: 105; left: 26px; width: 565px; position: absolute; top: 70px; height: 2px; background-color: teal" /> <asp:Label ID="lblDescription" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Height="11px" Style="z-index: 102; left: 30px; position: absolute; top: 87px" Text="You can now calculate the payment for the flight. After calculating the payment, you can save the payment details for future reference." Width="562px"></asp:Label> <asp:Label ID="lblBookingDetails" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 103; left: 84px; position: absolute; top: 44px" Text="Flight Payment"></asp:Label> &nbsp; </asp:Panel> </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /></asp:Content>

<%@ Page Language="C#" MasterPageFile="~/Customer.master" Debug="true" AutoEventWireup="true" CodeFile="HotelAddNew.aspx.cs" Inherits="HotelAddNew" Title="Add New Hotel" %>

91

<asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> <br /> <asp:Panel ID="Panel1" runat="server" Height="546px" Style="z-index: 100; left: 222px; position: absolute; top: 129px" Width="632px" BackColor="#EEEDEF" BorderColor="#96B3CD" BorderStyle="Solid"> <asp:Panel ID="pnlHotel" runat="server" BorderStyle="None" Height="536px" Style="z-index: 100; left: 0px; position: absolute; top: 0px" Width="626px"> <asp:Label ID="lblHotelID" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 100; left: 188px; position: absolute; top: 149px" Text="Hotel ID"></asp:Label> &nbsp; &nbsp; &nbsp; &nbsp; <asp:TextBox ID="txtHotelID" runat="server" Style="z-index: 101; left: 264px; position: absolute; top: 147px" Enabled="False"></asp:TextBox> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Panel ID="pnlHotelCtrls" runat="server" Height="419px" Style="z-index: 102; left: 7px; position: absolute; top: 112px" Width="622px"> <asp:Label ID="lblHotelName" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 100; left: 160px; position: absolute; top: 69px" Text="Hotel Name"></asp:Label>

92

<asp:Label ID="lblLocation" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 101; left: 179px; position: absolute; top: 103px" Text="Location"></asp:Label> <asp:Label ID="lblNoDLXRooms" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 102; left: 109px; position: absolute; top: 138px" Text="No Of Deluxe Rooms"></asp:Label> <asp:Label ID="lblNoEXERooms" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 103; left: 125px; position: absolute; top: 171px" Text="No Of EXE Rooms"></asp:Label> <asp:Label ID="lblFareDLXRoom" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 104; left: 64px; position: absolute; top: 203px" Text="Fare Per Day - Deluxe Room"></asp:Label> <asp:Label ID="lblFareEXERoom" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 105; left: 80px; position: absolute; top: 233px" Text="Fare Per Day - EXE Room"></asp:Label> <asp:Label ID="lblHotelTax" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 106; left: 172px; position: absolute; top: 263px" Text="Hotel Tax"></asp:Label> <asp:TextBox ID="txtHotelName" runat="server" Style="z-index: 107; left: 257px; position: absolute; top: 67px" MaxLength="40"></asp:TextBox> &nbsp; <asp:DropDownList ID="drpLocation" runat="server" AppendDataBoundItems="True" DataSourceID="sqldsLocation" DataTextField="CityName" DataValueField="CityCode" Style="z-index: 108; left: 257px; position: absolute; top: 101px" Width="157px"> <asp:ListItem Selected="True">-----Select-----</asp:ListItem> </asp:DropDownList> &nbsp; <asp:SqlDataSource ID="sqldsLocation" runat="server" ConnectionString="<%$ ConnectionStrings:MyDataBase %>" SelectCommand="select * from tblCity"></asp:SqlDataSource> <asp:TextBox ID="txtNoDLXRooms" runat="server" Style="z-index: 109; left: 257px; position: absolute; top: 135px"></asp:TextBox> <asp:TextBox ID="txtEXERooms" runat="server" Style="z-index: 110; left: 257px; position: absolute; top: 168px"></asp:TextBox> <asp:TextBox ID="txtFareDLXRoom" runat="server" Style="z-index: 111; left: 257px; position: absolute; top: 200px"></asp:TextBox> <asp:TextBox ID="txtFareEXERoom" runat="server" Style="z-index: 112; left: 257px; position: absolute; top: 230px"></asp:TextBox> <asp:TextBox ID="txtHotelTax" runat="server" Style="z-index: 113; left: 257px; position: absolute; top: 261px"></asp:TextBox> <asp:Button ID="btnAddAHotel" runat="server" Style="z-index: 114; left: 239px; position: absolute;

93

top: 357px" Text="Add A New Hotel" Width="190px" OnClick="btnAddAHotel_Click" ForeColor="#1C6397" /> <asp:RequiredFieldValidator ID="rfvHotelName" runat="server" ControlToValidate="txtHotelName" ErrorMessage="Enter the Hotel Name" Style="z-index: 115; left: 427px; position: absolute; top: 70px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvLocation" runat="server" ControlToValidate="drpLocation" ErrorMessage="Select the Location" Style="z-index: 116; left: 427px; position: absolute; top: 103px" InitialValue="-----Select-----" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvNoDLXRooms" runat="server" ControlToValidate="txtNoDLXRooms" ErrorMessage="Enter the No. of DLX Rooms" Style="z-index: 117; left: 427px; position: absolute; top: 137px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvNoEXERooms" runat="server" ControlToValidate="txtEXERooms" ErrorMessage="Enter the No. of EXE Rooms" Style="z-index: 118; left: 427px; position: absolute; top: 171px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvDLXRoomFare" runat="server" ControlToValidate="txtFareDLXRoom" ErrorMessage="Enter the DLX Room Fare" Style="z-index: 119; left: 427px; position: absolute; top: 202px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvEXERoomFare" runat="server" ControlToValidate="txtFareEXERoom" ErrorMessage="Enter the EXE Room Fare" Style="z-index: 120; left: 427px; position: absolute; top: 232px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvHotelTax" runat="server" ControlToValidate="txtHotelTax" ErrorMessage="Enter the Hotel Tax %" Style="z-index: 121; left: 427px; position: absolute; top: 262px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="revHotelName" runat="server" ControlToValidate="txtHotelName" ErrorMessage="Not a valid Hotel Name" Style="z-index: 122; left: 426px; position: absolute; top: 69px" ValidationExpression="^[a-zA-Z\s]{1,40}$" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> &nbsp; <asp:RegularExpressionValidator ID="revNoDLXRooms" runat="server" ControlToValidate="txtNoDLXRooms" ErrorMessage="Not a valid number" Style="z-index: 123; left: 427px; position: absolute; top: 137px" ValidationExpression="(([0-1])([0])([0])([0]))|(([0-9])([0-9])([1-9]))|(([0-9])([1-9]))|(([1-9]))" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator>

94

<asp:RegularExpressionValidator ID="revNoEXERooms" runat="server" ControlToValidate="txtEXERooms" ErrorMessage="Not a valid number" Style="z-index: 124; left: 427px; position: absolute; top: 171px" ValidationExpression="(([0-1])([0])([0])([0]))|(([0-9])([0-9])([0-9]))|(([0-9])([0-9]))|(([0-9]))" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:RegularExpressionValidator ID="revEXERoomFare" runat="server" ControlToValidate="txtFareEXERoom" ErrorMessage="Not a valid amount" Style="z-index: 125; left: 427px; position: absolute; top: 231px" ValidationExpression="(([0-1])([0])([0])([0])([0])([0]))|(([0-9])([0-9])([0-9])([0-9])([0-9]))|(([0-9])([0-9])([0-9])([0-9]))|(([0-9])([0-9])([0-9]))|(([0-9])([0-9]))|([0-9])" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:RegularExpressionValidator ID="revDLXRoomFare" runat="server" ControlToValidate="txtFareDLXRoom" ErrorMessage="Not a valid amount" Style="z-index: 126; left: 427px; position: absolute; top: 202px" ValidationExpression="(([0-1])([0])([0])([0])([0])([0]))|(([0-9])([0-9])([0-9])([0-9])([0-9]))|(([0-9])([0-9])([0-9])([0-9]))|(([0-9])([0-9])([0-9]))|(([0-9])([0-9]))|([1-9])" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:RegularExpressionValidator ID="revHotelTax" runat="server" ControlToValidate="txtHotelTax" ErrorMessage="Not a valid Tax" Style="z-index: 127; left: 427px; position: absolute; top: 261px" ValidationExpression="((0)*([1])([0])([0]))|((((0)*([0-9])?([1-9]))|)((0)*(.)([0-9])([0-9])?)?)" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:Label ID="lblMessage" runat="server" Font-Names="Tahoma" Font-Size="Larger" ForeColor="#1C6397" Style="z-index: 128; left: 112px; position: absolute; top: 393px; text-align: center" Width="417px"></asp:Label> <asp:Label ID="lblRoomsBooked" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 129; left: 153px; position: absolute; top: 294px" Text="No of Rooms"></asp:Label> <asp:Label ID="lblDiscount" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 130; left: 178px; position: absolute; top: 324px" Text="Discount"></asp:Label> <asp:TextBox ID="txtRoomsBooked" runat="server" Style="z-index: 131; left: 257px; position: absolute; top: 292px"></asp:TextBox> <asp:TextBox ID="txtDiscount" runat="server" Style="z-index: 132; left: 257px; position: absolute; top: 322px"></asp:TextBox> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtRoomsBooked" ErrorMessage="Enter the No. of RoomsBooked" Font-Names="Tahoma" Font-Size="Smaller" Style="z-index: 133; left: 427px; position: absolute; top: 293px"></asp:RequiredFieldValidator>

95

<asp:RegularExpressionValidator ID="revRoomsBooked" runat="server" ControlToValidate="txtRoomsBooked" ErrorMessage="Not a valid number" Font-Names="Tahoma" Font-Size="Smaller" Style="z-index: 134; left: 427px; position: absolute; top: 294px" ValidationExpression="(([0-2])([0])([0])([0]))|(([0-9])([0-9])([0-9]))|(([0-9])([0-9]))|(([0-9]))"></asp:RegularExpressionValidator> <asp:RequiredFieldValidator ID="rfvDiscount" runat="server" ControlToValidate="txtDiscount" ErrorMessage="Enter the discount %" Font-Names="Tahoma" Font-Size="Smaller" Style="z-index: 135; left: 427px; position: absolute; top: 324px"></asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="revDiscount" runat="server" ControlToValidate="txtDiscount" ErrorMessage="Not a valid number" Font-Names="Tahoma" Font-Size="Smaller" Style="z-index: 137; left: 427px; position: absolute; top: 324px" ValidationExpression="((0)*([1])([0])([0]))|((0)*([0-9])?([0-9]))((.)([0-9])([0-9])?)?"></asp:RegularExpressionValidator> </asp:Panel> <asp:Image ID="imgAddNew" runat="server" Height="43px" ImageUrl="~/IMAGES/Add.bmp" Style="z-index: 103; left: 21px; position: absolute; top: 42px" Width="48px" /> <hr style="z-index: 107; left: 21px; width: 592px; position: absolute; top: 92px; height: 2px; background-color: teal" /> <asp:Label ID="lblBookingDetails" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 104; left: 76px; position: absolute; top: 68px" Text="Add New Hotel"></asp:Label> <asp:Label ID="lblDescription" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Height="11px" Style="z-index: 105; left: 20px; position: absolute; top: 101px" Text="New Hotel Details can be entered in this page. After entering all the valid details, you can save add this as a new Hotel." Width="590px"></asp:Label> <asp:SiteMapPath ID="smpSiteMapPath" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" PathSeparator=" : " Style="font-size: 8pt; z-index: 108; left: 312px; position: absolute; top: 68px"> <PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" /> <CurrentNodeStyle ForeColor="#1C6397" /> <NodeStyle Font-Bold="False" ForeColor="#6F9CD5" /> <RootNodeStyle Font-Bold="False" ForeColor="#6F9CD5" /> </asp:SiteMapPath> </asp:Panel> </asp:Panel> <br /> <br /> <br /> <br /> <br />

96

<br /> <br /> <br /></asp:Content>

<%@ Page Language="C#" MasterPageFile="~/Customer.master" AutoEventWireup="true" CodeFile="HotelBooking.aspx.cs" Inherits="HotelBooking" Title="Book This Hotel" %><asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> <br /> <asp:Panel ID="Panel1" runat="server" Height="546px" Style="z-index: 100; left: 222px; position: absolute; top: 129px" Width="632px" BackColor="#EEEDEF" BorderColor="#96B3CD" BorderStyle="Solid"> &nbsp; <asp:Panel ID="panelDispHotelDisplays" runat="server" BackColor="#EEEDEF" BorderColor="#1C6397" BorderStyle="None" ForeColor="Black" Height="515px" Style="z-index: 100; left: 17px; position: absolute; top: 20px" Width="607px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:SqlDataSource ID="SqlDSHotelDetails" runat="server" ConnectionString="<%$ ConnectionStrings:MyDataBase %>" SelectCommand="SELECT tblHotelDetails.HotelName, tblCity.CityName, tblHotelDetails.HotelId &#13;&#10;FROM tblHotelDetails INNER JOIN tblCity

97

ON tblHotelDetails.Location = tblCity.CityCode &#13;&#10;WHERE (tblHotelDetails.Location = @Location)&#13;&#10;"> <SelectParameters> <asp:QueryStringParameter DefaultValue="BNG" Name="Location" QueryStringField="CityId" /> </SelectParameters> </asp:SqlDataSource> &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <asp:Image ID="imgPayment" runat="server" ImageUrl="~/IMAGES/Booking4.gif" Style="z-index: 102; left: 0px; position: absolute; top: 3px" Width="48px" /> <hr style="z-index: 111; left: 3px; width: 592px; position: absolute; top: 63px; height: 2px; background-color: teal" /> <asp:Label ID="lblBookingDetails" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 103; left: 54px; position: absolute; top: 44px" Text="Hotel Booking"></asp:Label> <asp:Label ID="lblDescription" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Height="11px" Style="z-index: 104; left: 1px; position: absolute; top: 73px" Text="Hotel booking can be done in this page. You can select the appropriate hotel for booking. You can review the booking details later." Width="562px"></asp:Label> <asp:Panel ID="Panel2" runat="server" BackColor="#6F9CD5" BorderColor="Silver" Font-Bold="True" ForeColor="White" Height="14px" Style="z-index: 105; left: 3px; position: absolute; top: 138px" Width="596px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="lblCity" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 100; left: 102px; position: absolute; top: 0px" Text="City"></asp:Label> <asp:Label ID="lblCityValue" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 102; left: 135px; position: absolute; top: 0px"></asp:Label> </asp:Panel> <asp:GridView ID="gvHotelDetails" runat="server" AutoGenerateColumns="False" CellPadding="4" ForeColor="#333333" GridLines="None" Height="244px" Style="z-index: 106; left: 4px; position: absolute; top: 243px" Width="594px" AllowPaging="True" DataKeyNames="HotelId" DataSourceID="SqlDSHotelDetails" OnRowCommand="gvHotelDetails_RowCommand1" PageSize="5" Font-Names="Tahoma" Font-Size="Smaller"> <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <RowStyle BackColor="#F7F6F3" ForeColor="#333333" /> <EditRowStyle BackColor="#999999" /> <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />

98

<PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" /> <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" /> <AlternatingRowStyle BackColor="White" ForeColor="#284775" /> <Columns> <asp:BoundField DataField="HotelId" HeaderText="HotelId" ReadOnly="True" SortExpression="HotelId" /> <asp:BoundField DataField="HotelName" HeaderText="HotelName" SortExpression="HotelName" /> <asp:BoundField DataField="CityName" HeaderText="CityName" SortExpression="CityName" /> <asp:ButtonField ButtonType="Button" HeaderText="Book This" ShowHeader="True" Text="Book This" /> </Columns> </asp:GridView> <asp:Panel ID="Panel3" runat="server" BackColor="#6F9CD5" BorderColor="Silver" Font-Bold="True" ForeColor="White" Height="14px" Style="z-index: 107; left: 3px; position: absolute; top: 159px" Width="596px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="lblArrivalDate" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 100; left: 47px; position: absolute; top: 4px" Text="Arrival Date"></asp:Label> <asp:Label ID="lblArrivalDateValue" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 102; left: 135px; position: absolute; top: 4px"></asp:Label> </asp:Panel> <asp:Panel ID="Panel4" runat="server" BackColor="#6F9CD5" BorderColor="Silver" Font-Bold="True" ForeColor="White" Height="14px" Style="z-index: 108; left: 3px; position: absolute; top: 179px" Width="596px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="lblDepartureDate" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 100; left: 24px; position: absolute; top: 0px" Text="Departure Date" Font-Italic="False"></asp:Label> <asp:Label ID="lblDepartDateValue" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 102; left: 135px; position: absolute; top: 0px" Font-Italic="False"></asp:Label> </asp:Panel> <asp:Panel ID="Panel5" runat="server" BackColor="#6F9CD5" BorderColor="Silver" Font-Bold="True" ForeColor="White" Height="14px" Style="z-index: 109; left: 3px; position: absolute; top: 199px" Width="596px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;

99

<asp:Label ID="lblDLXRooms" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 100; left: 53px; position: absolute; top: 1px" Text="DLX Rooms"></asp:Label> <asp:Label ID="lblDLXVal" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 102; left: 135px; position: absolute; top: 1px" Width="89px"></asp:Label> </asp:Panel> <asp:Panel ID="Panel6" runat="server" BackColor="#6F9CD5" BorderColor="Silver" Font-Bold="True" ForeColor="White" Height="14px" Style="z-index: 112; left: 3px; position: absolute; top: 219px" Width="596px"> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:Label ID="lblEXERooms" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 100; left: 55px; position: absolute; top: 0px" Text="EXE Rooms"></asp:Label> <asp:Label ID="lblEXEval" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="White" Style="z-index: 102; left: 135px; position: absolute; top: 0px"></asp:Label> </asp:Panel> </asp:Panel> </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /></asp:Content>

<%@ Page Language="C#" MasterPageFile="~/Customer.master" AutoEventWireup="true" CodeFile="HotelSearch.aspx.cs" Inherits="HotelSearch" Title="Search For Hotel" %><asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />

100

&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> <br /> <asp:Panel ID="Panel1" runat="server" Height="546px" Style="z-index: 100; left: 222px; position: absolute; top: 129px" Width="632px" BackColor="#EEEDEF" BorderColor="#96B3CD" BorderStyle="Solid"> &nbsp; <asp:Panel ID="Panel2" runat="server" BackColor="#EEEDEF" BorderColor="#1C6397" BorderStyle="None" Height="518px" Style="z-index: 100; left: 9px; position: absolute; top: 14px" Width="616px"> <asp:Label ID="lblCustomerId" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 100; left: 80px; position: absolute; top: 104px" Text="Customer Id"></asp:Label> <asp:Label ID="lblCity" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 101; left: 129px; position: absolute; top: 150px" Text="City"></asp:Label> <asp:Label ID="lblArrivalDate" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 102; left: 83px; position: absolute; top: 196px" Text="Arrival Date"></asp:Label> <asp:Label ID="lblDLXRooms" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 103; left: 85px; position: absolute; top: 286px" Text="DLX Rooms"></asp:Label> <asp:Label ID="lblDepartureDate" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 104; left: 63px; position: absolute; top: 247px" Text="Departure Date"></asp:Label> <asp:Label ID="lblEXERooms" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 105; left: 85px; position: absolute; top: 336px" Text="EXE Rooms"></asp:Label>

101

<asp:TextBox ID="txtArrivalDate" runat="server" ForeColor="#1C6397" Style="z-index: 106; left: 199px; position: absolute; top: 195px"></asp:TextBox> <asp:TextBox ID="txtDLXRooms" runat="server" ForeColor="#1C6397" Style="z-index: 107; left: 199px; position: absolute; top: 287px"></asp:TextBox> <asp:TextBox ID="txtDepartureDate" runat="server" ForeColor="#1C6397" Style="z-index: 108; left: 199px; position: absolute; top: 240px"></asp:TextBox> <asp:TextBox ID="txtEXERooms" runat="server" ForeColor="#1C6397" Style="z-index: 109; left: 199px; position: absolute; top: 337px"></asp:TextBox> <asp:DropDownList ID="ddlCustomerId" runat="server" AppendDataBoundItems="True" DataTextField="CustomerId" DataValueField="CustomerId" ForeColor="#1C6397" Style="z-index: 110; left: 199px; position: absolute; top: 99px" Width="147px" DataSourceID="SqlDSCustomerID"> </asp:DropDownList> &nbsp; <asp:DropDownList ID="ddlCity" runat="server" AppendDataBoundItems="True" DataTextField="CityName" DataValueField="CityCode" ForeColor="#1C6397" Style="z-index: 111; left: 199px; position: absolute; top: 144px" Width="152px" DataSourceID="SqlDSCity"> </asp:DropDownList> <asp:Button ID="btnNextArrDate" runat="server" ForeColor="#1C6397" OnClick="btnNextArrDate_Click" Style="z-index: 112; left: 366px; position: absolute; top: 193px" Text=">>" Width="33px" /> <asp:Button ID="btnNextDeptDate" runat="server" ForeColor="#1C6397" OnClick="btnNextDeptDate_Click" Style="z-index: 113; left: 368px; position: absolute; top: 240px" Text=">>" Width="32px" /> <asp:Button ID="btnSearchHotels" runat="server" Font-Bold="True" ForeColor="#1C6397" OnClick="btnSearchHotels_Click" Style="z-index: 114; left: 105px; position: absolute; top: 426px" Text="Search for Hotels" Width="303px" /> <asp:Calendar ID="ccArrivalDate" runat="server" BackColor="White" BorderColor="White" BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" Height="144px" NextPrevFormat="FullMonth" OnSelectionChanged="ccArrivalDate_SelectionChanged" Style="z-index: 115; left: 405px; position: absolute; top: 194px" Visible="False" Width="133px"> <SelectedDayStyle BackColor="#333399" ForeColor="White" /> <TodayDayStyle BackColor="#CCCCCC" /> <OtherMonthDayStyle ForeColor="#999999" /> <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" VerticalAlign="Bottom" /> <DayHeaderStyle Font-Bold="True" Font-Size="8pt" /> <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" Font-Bold="True" Font-Size="12pt" ForeColor="#333399" />

102

</asp:Calendar> &nbsp; <asp:Calendar ID="ccDepartureDate" runat="server" BackColor="White" BorderColor="White" BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" ForeColor="Black" Height="125px" NextPrevFormat="FullMonth" OnSelectionChanged="ccDepartureDate_SelectionChanged" Style="z-index: 116; left: 408px; position: absolute; top: 243px" Visible="False" Width="145px"> <SelectedDayStyle BackColor="#333399" ForeColor="White" /> <TodayDayStyle BackColor="#CCCCCC" /> <OtherMonthDayStyle ForeColor="#999999" /> <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" VerticalAlign="Bottom" /> <DayHeaderStyle Font-Bold="True" Font-Size="8pt" /> <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" Font-Bold="True" Font-Size="12pt" ForeColor="#333399" /> </asp:Calendar> &nbsp;&nbsp; <asp:RequiredFieldValidator ID="rfvCustomerID" runat="server" ControlToValidate="ddlCustomerId" ErrorMessage="Enter Valid Customer Id" Font-Names="Tahoma" Font-Size="Smaller" InitialValue="Select" Style="z-index: 117; left: 360px; position: absolute; top: 101px"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvCity" runat="server" ControlToValidate="ddlCity" ErrorMessage="Enter Valid City" Font-Names="Tahoma" Font-Size="Smaller" InitialValue="Select" Style="z-index: 118; left: 360px; position: absolute; top: 144px"></asp:RequiredFieldValidator> <asp:SqlDataSource ID="SqlDSCity" runat="server" ConnectionString="<%$ ConnectionStrings:MyDataBase %>" SelectCommand="SELECT [CityCode], [CityName] FROM [tblCity]"></asp:SqlDataSource> <asp:SiteMapPath ID="smpSiteMapPath" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" PathSeparator=" : " Style="font-size: 8pt; z-index: 126; left: 274px; position: absolute; top: 29px"> <PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" /> <CurrentNodeStyle ForeColor="#1C6397" /> <NodeStyle Font-Bold="False" ForeColor="#6F9CD5" /> <RootNodeStyle Font-Bold="False" ForeColor="#6F9CD5" /> </asp:SiteMapPath> &nbsp; &nbsp;&nbsp;&nbsp;&nbsp; <asp:RegularExpressionValidator ID="revDLXRooms" runat="server" ControlToValidate="txtDLXRooms" ErrorMessage="Enter Valid No of DLX Rooms" Style="z-index: 120; left: 369px; position: absolute; top: 287px" ValidationExpression="(([0-1])([0])([0])([0]))|(([0-9])([0-9])([0-9]))|(([0-9])([0-9]))|(([0-9]))" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:RegularExpressionValidator ID="revEXERooms" runat="server" ControlToValidate="txtEXERooms"

103

ErrorMessage="Enter Valid No of EXE Rooms" Style="z-index: 121; left: 368px; position: absolute; top: 339px" ValidationExpression="(([0-1])([0])([0])([0]))|(([0-9])([0-9])([0-9]))|(([0-9])([0-9]))|(([0-9]))" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <hr style="z-index: 125; left: 18px; width: 579px; position: absolute; top: 49px; height: 1px; background-color: white" /> <asp:Label ID="lblDescription" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Height="11px" Style="z-index: 122; left: 18px; position: absolute; top: 57px" Text="This can be used to search the hotels between in various locations. For searching, various search criterias are implemented. " Width="552px"></asp:Label> <asp:Image ID="Image1" runat="server" Height="31px" ImageUrl="~/IMAGES/Search.gif" Style="z-index: 123; left: 19px; position: absolute; top: 12px" Width="38px" /> <asp:Label ID="lblBookingDetails" runat="server" Font-Bold="True" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 124; left: 65px; position: absolute; top: 29px" Text="Hotel Search"></asp:Label> </asp:Panel> <asp:SqlDataSource ID="SqlDSCustomerID" runat="server" ConnectionString="<%$ ConnectionStrings:MyDataBase %>" SelectCommand="SELECT [CustomerId] FROM [tblCustomer] ORDER BY [CustomerId]"></asp:SqlDataSource> </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /></asp:Content>

<%@ Page Language="C#" MasterPageFile="~/Customer.master" AutoEventWireup="true" CodeFile="TravelAddNew.aspx.cs" Inherits="TravelAddNew" Title="Travel - Add New" %><asp:Content ID="Content1" ContentPlaceHolderID="cphMain" Runat="Server"> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />

104

<br /> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <br /> <br /> <asp:Panel ID="Panel1" runat="server" Height="546px" Style="z-index: 100; left: 222px; position: absolute; top: 129px" Width="632px" BackColor="#EEEDEF" BorderColor="#96B3CD" BorderStyle="Solid"> <asp:Panel ID="pnlTravel" runat="server" Height="541px" Style="z-index: 100; left: 0px; position: absolute; top: 0px" Width="626px"> <asp:Label ID="lblPackageId" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 100; left: 100px; position: absolute; top: 124px" Text="Package Id"></asp:Label> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <asp:TextBox ID="txtPackageId" runat="server" Style="z-index: 101; left: 206px; position: absolute; top: 121px"></asp:TextBox> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp; <asp:SiteMapPath ID="smpSiteMapPath" runat="server" Font-Bold="False" Font-Names="Tahoma" Font-Size="Smaller" PathSeparator=" : " Style="font-size: 8pt; z-index: 108; left: 264px; position: absolute; top: 50px"> <PathSeparatorStyle Font-Bold="True" ForeColor="#507CD1" /> <CurrentNodeStyle ForeColor="#1C6397" /> <NodeStyle Font-Bold="False" ForeColor="#6F9CD5" /> <RootNodeStyle Font-Bold="False" ForeColor="#6F9CD5" /> </asp:SiteMapPath> &nbsp; &nbsp; &nbsp; &nbsp; <asp:Panel ID="Panel2" runat="server" Height="454px" Style="z-index: 103; left: 1px; position: absolute; top: 103px" Width="627px"> <asp:Label ID="lblPackageName" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 100; left: 81px; position: absolute; top: 55px" Text="Package Name"></asp:Label> <asp:Label ID="lblLocation" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 101; left: 117px; position: absolute; top: 100px"

105

Text="Location"></asp:Label> <asp:Label ID="lblStartDate" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 102; left: 107px; position: absolute; top: 212px" Text="Start Date"></asp:Label> <asp:Label ID="lblEndDate" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 103; left: 114px; position: absolute; top: 251px" Text="End Date"></asp:Label> <asp:Label ID="lblTotalSeats" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 104; left: 100px; position: absolute; top: 136px" Text="Total Seats"></asp:Label> <asp:Label ID="lblFarePerPerson" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 105; left: 73px; position: absolute; top: 173px" Text="Fare Per Person"></asp:Label> <asp:Label ID="lblDescription" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 106; left: 102px; position: absolute; top: 287px" Text="Description"></asp:Label> <asp:Label ID="lblTax" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 107; left: 145px; position: absolute; top: 315px" Text="Tax"></asp:Label> <asp:Button ID="btnAddATravel" runat="server" Style="z-index: 108; left: 189px; position: absolute; top: 362px" Text="Add A New Travel" Width="180px" OnClick="btnAddATravel_Click" Font-Bold="False" ForeColor="#1C6397" /> <asp:TextBox ID="txtPackageName" runat="server" Style="z-index: 109; left: 204px; position: absolute; top: 55px"></asp:TextBox> &nbsp; <asp:DropDownList ID="ddlLocation" runat="server" AppendDataBoundItems="True" DataSourceID="SqlDataSource1" DataTextField="CityName" DataValueField="CityCode" Style="z-index: 110; left: 204px; position: absolute; top: 94px" Width="154px"> <asp:ListItem Selected="True">--Select--</asp:ListItem> </asp:DropDownList> <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:MyDataBase %>" SelectCommand="select * from tblCity"></asp:SqlDataSource> <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="txtPackageName" ErrorMessage="Enter Package Name" Style="z-index: 111; left: 375px; position: absolute; top: 57px" Width="152px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:TextBox ID="txtTotalSeats" runat="server" Style="z-index: 112; left: 204px; position: absolute; top: 133px"></asp:TextBox>

106

<asp:TextBox ID="txtFarePerPerson" runat="server" Style="z-index: 113; left: 204px; position: absolute; top: 170px"></asp:TextBox> <asp:TextBox ID="txtDescription" runat="server" Style="z-index: 114; left: 204px; position: absolute; top: 281px"></asp:TextBox> <asp:TextBox ID="txtTax" runat="server" Style="z-index: 115; left: 204px; position: absolute; top: 316px"></asp:TextBox> &nbsp; <asp:TextBox ID="txtEndDate" runat="server" Style="z-index: 116; left: 204px; position: absolute; top: 244px" ReadOnly="True"></asp:TextBox> <asp:TextBox ID="txtStartDate" runat="server" Style="z-index: 117; left: 204px; position: absolute; top: 208px" ReadOnly="True"></asp:TextBox> <asp:Button ID="btnStartDate" runat="server" Style="z-index: 118; left: 372px; position: absolute; top: 209px" Text=">>" CausesValidation="False" OnClick="btnStartDate_Click" /> <asp:Calendar ID="calStart" runat="server" OnSelectionChanged="calStart_SelectionChanged" OnVisibleMonthChanged="calStart_VisibleMonthChanged" Style="z-index: 119; left: 408px; position: absolute; top: 249px" Visible="False" ForeColor="Black" BackColor="White" BorderColor="White" BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" Height="57px" NextPrevFormat="FullMonth" Width="101px"> <SelectedDayStyle BackColor="#333399" ForeColor="White" /> <TodayDayStyle BackColor="#CCCCCC" /> <OtherMonthDayStyle ForeColor="#999999" /> <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" VerticalAlign="Bottom" /> <DayHeaderStyle Font-Bold="True" Font-Size="8pt" /> <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" Font-Bold="True" Font-Size="12pt" ForeColor="#333399" /> </asp:Calendar> &nbsp;&nbsp; <asp:Label ID="lblrEndDateMessg" runat="server" ForeColor="Red" Style="z-index: 120; left: 407px; position: absolute; top: 246px" Text="It Can't be Less than Start date" Visible="False" Width="193px" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> <asp:Label ID="lblErrStartDate" runat="server" ForeColor="Red" Style="z-index: 121; left: 405px; position: absolute; top: 211px" Text="Date should be Greater than today" Visible="False" Width="214px" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> &nbsp; <asp:Button ID="btnEndDate" runat="server" Style="z-index: 122; left: 373px; position: absolute; top: 243px" Text=">>" CausesValidation="False" OnClick="btnEndDate_Click" />

107

<asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtFarePerPerson" ErrorMessage="Enter a Valid amount" Style="z-index: 123; left: 374px; position: absolute; top: 170px" ValidationExpression="(([0-1])([0])([0])([0])([0])([0]))|(([0-9])([0-9])([0-9])([0-9])([0-9]))|(([0-9])([0-9])([0-9])([0-9]))|(([0-9])([0-9])([0-9]))|(([0-9])([0-9]))|([1-9])" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:RequiredFieldValidator ID="rfvtoTotalSeats" runat="server" ControlToValidate="txtTotalSeats" ErrorMessage="Enter Location" Style="z-index: 124; left: 377px; position: absolute; top: 96px" Width="160px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvFare" runat="server" ControlToValidate="txtFarePerPerson" ErrorMessage="Enter Fare per Person" Style="z-index: 125; left: 375px; position: absolute; top: 186px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvDescription" runat="server" ControlToValidate="txtDescription" ErrorMessage="Give the description" Style="z-index: 126; left: 375px; position: absolute; top: 281px" Width="160px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="ddlLocation" ErrorMessage="Select a City" InitialValue="--Select--" Style="z-index: 127; left: 377px; position: absolute; top: 112px" Width="168px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="txtTotalSeats" ErrorMessage="Give valid total seats " Style="z-index: 128; left: 379px; position: absolute; top: 136px" ValidationExpression="(([0-2])([0])([0])([0]))|(([0-9])([0-9])([0-9]))|(([0-9])([0-9]))|(([0-9]))" Width="166px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtTotalSeats" ErrorMessage="Enter Total Seats" Style="z-index: 129; left: 382px; position: absolute; top: 153px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:Calendar ID="calTodate" runat="server" OnSelectionChanged="calTodate_SelectionChanged" OnVisibleMonthChanged="calTodate_VisibleMonthChanged" Style="z-index: 130; left: 411px; position: absolute; top: 303px" Visible="False" ForeColor="Black" BackColor="White" BorderColor="White" BorderWidth="1px" Font-Names="Verdana" Font-Size="9pt" Height="136px" NextPrevFormat="FullMonth" Width="136px"> <SelectedDayStyle BackColor="#333399" ForeColor="White" />

108

<TodayDayStyle BackColor="#CCCCCC" /> <OtherMonthDayStyle ForeColor="#999999" /> <NextPrevStyle Font-Bold="True" Font-Size="8pt" ForeColor="#333333" VerticalAlign="Bottom" /> <DayHeaderStyle Font-Bold="True" Font-Size="8pt" /> <TitleStyle BackColor="White" BorderColor="Black" BorderWidth="4px" Font-Bold="True" Font-Size="12pt" ForeColor="#333399" /> </asp:Calendar> &nbsp; <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="txtStartDate" ErrorMessage="Start date Cant be Blank" Height="11px" Style="z-index: 132; left: 409px; position: absolute; top: 227px" Width="176px" Font-Names="Tahoma" Font-Size="Smaller"></asp:RequiredFieldValidator> <asp:RequiredFieldValidator ID="rfvEndDate" runat="server" ControlToValidate="txtEndDate" ErrorMessage="End date Cant be Blank" Style="z-index: 138; left: 409px; position: absolute; top: 265px" Width="190px"></asp:RequiredFieldValidator> <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ControlToValidate="txtTax" ErrorMessage="Enter value in Following Format 00.00" Style="z-index: 134; left: 375px; position: absolute; top: 318px" ValidationExpression="^(\d\d)?(\.\d\d)?$" Font-Names="Tahoma" Font-Size="Smaller"></asp:RegularExpressionValidator> <asp:Label ID="lblstartMessg" runat="server" ForeColor="Red" Style="z-index: 135; left: 416px; position: absolute; top: 230px" Text="Enter Start Date" Visible="False" Width="95px" Font-Names="Tahoma" Font-Size="Smaller"></asp:Label> <asp:Label ID="lblMessage" runat="server" Font-Bold="False" Font-Size="Medium" ForeColor="SteelBlue" Style="z-index: 136; left: 155px; position: absolute; top: 397px" Text="Package Added Successfully !" Visible="False" Width="247px" Font-Names="Tahoma" Height="25px"></asp:Label> <asp:RequiredFieldValidator ID="rfvTax" runat="server" ControlToValidate="txtTax" ErrorMessage="Enter Tax Percentage" Style="z-index: 137; left: 375px; position: absolute; top: 334px"></asp:RequiredFieldValidator> </asp:Panel> &nbsp;&nbsp; <br /> <br /> <br /> <asp:Image ID="imgAddNew" runat="server" Height="43px" ImageUrl="~/IMAGES/Add.bmp" Style="z-index: 104; left: 22px; position: absolute; top: 23px" Width="48px" /> <hr style="z-index: 107; left: 20px; width: 592px; position: absolute; top: 71px; height: 2px; background-color: teal" /> <asp:Label ID="lblAddNewFlight" runat="server" Font-Bold="True" Font-Names="Tahoma"

109

Font-Size="Smaller" ForeColor="#1C6397" Style="z-index: 105; left: 79px; position: absolute; top: 50px" Text="Add New Travel"></asp:Label> <asp:Label ID="Label1" runat="server" Font-Names="Tahoma" Font-Size="Smaller" ForeColor="#1C6397" Height="11px" Style="z-index: 106; left: 18px; position: absolute; top: 79px" Text="New Travel Details can be entered in this page. After entering all the valid details, you can save add this as a new Travel." Width="590px"></asp:Label> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> </asp:Panel> </asp:Panel> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /></asp:Content>

110

CHAPTER 5

PROJECT TESTING

UNIT TESTING

The purpose of unit testing phase (sometimes called the implementation phase)

of software development is to translate the Software design into source code.

To enable the engineers to write good quality programs, every software

development organizations normally its own coding standards that suits itself.

MODULE TESTING

Each module is unit tested to determine the correct working of all the

individual modules. It involves testing of each module in isolation as this the

most efficient way to debug the errors .Testing a module in isolation is that the

other modules, with which this module has to be unit interfaced may not be

ready.

SYSTEM TESTING

When all the modules have been successfully integrated & tested System

testing is carried out. The goal of System testing is to ensure that the developed

system conforms to its requirements aid out in SRS document .System testing

is normally carried out in a planned manner according to system test plan

document.

111

MAINTENANCE

Maintenance of typical software product requires much more effort than the

effort necessary to develop the product itself.

Correcting errors that were not discovered during the product

development phase. This is called corrective maintenance.

Improving the implementation of the system, & enhancing the

functionalities of the system according to the customer’s

requirements. This is called Perfective maintenance.

Porting the software to work in a new environment. This is called

Adaptive maintenance.

Adaptive Maintenance: it has been argued that once a software system is

deployed, the environment in which it operates changes. Hence the needs that

initiated the software development also changes to reflect the needs of the new

environment. The changed software then changes the environment which in

turn requires future changes. This phenomenon is sometimes called the law of

software evaluation. Maintenance due to this phenomenon is called the

adaptive maintenance.

Corrective Maintenance: it is commonly believed that the stage of the art today

is such that almost all software that is developed has residual error or bugs in

them. Many of these surfaces only after the system have been developed and

have been in operation, sometimes for a long time. These errors once

discovered need to be remove leading to the software getting changed. This is

sometimes called corrective maintenance.

112

LIMITATIONS AND FUTURE SCOPE

With .net as the development environment many new applications and features can be added to make the software more useful. Within the boundaries of .net we can develop a web site to enhance the business operations of the company, by providing its users with online facility. This flexibility will help them also to smoothen and transparent their operations with the new coming and existing users.

Enhancement of our proposed system would be in terms of connectivity with the rest of the departments so that information is made available throughout the organization which leads to efficiency and speeding up of a number of processes in the organization.

When the developed system runs successfully, it can be also be used in other areas with certain changes according to the requirements of that areas.

By using the latest trends in information technology we can use this project in the well connected network environment like the facility of online registration of hotels, flights or packages.

Integration of IVRS (Integrated Voice Recognition System) for automated telephonic Problem/Complaint entry system can be incorporated to minimize the workload on the Computer Operator. After entering the complaint the system can automatically assign the Complaint to the Problem-Solver on the basis of Problem/complaint type, thus reducing the workload on the Supervisor.

113

CHAPTER 6

CONCLUSION

The proposed system is user friendly that can easily be used by any person irrespective of his/her location. People can easily book hotels, flights or packages through this site. Both the customer and the manager are mutually benefited as well as they are satisfied. There is no doubt that there always remains some scope of improvement, however good or efficient the Software may be. The important thing is that the system developed is flexible to accommodate any future.

Our project is satisfying all the characteristics like Easy to Use, Flexible, Portable and Proper Functional.

114

CHAPTER 7

BIBLIOGRAPHY

“Professional ASP.NET 2.0” –Wrox

[Evajen,Hanselma,Muhammad,Sivakumar,Rader]

“ASP.NET 2.0 Uleashed”-Sams Pearson Education [Stephen Walther]

INTERNET

115