Professional Documents
Culture Documents
BY
OKOGUN IMUENTIYAN
PSC0808970
UNIVERSITY OF BENIN
BENIN CITY.
FEBRUARY, 2015
0
CHAPTER ONE
INTRODUCTION
1.0 INTRODUCTION
Database driven websites are commonplace in the web today. The purpose of
between the website and its user. To have such liveliness in a website, the data
intervention. The data is displayed from the database automatically. Such automated
process is less prone to errors. But such cannot be said of the manual update process
In the course of this study, Uniben transport services will be termed “Uniben
established under the commercial law of Edo state and it is located in the capital city
allowed into the organization to operate with their own car for as long as they abide by
the rules and regulations of the UMCR organization. Thus, the organization has about
80 employees and 80 cars. Uniben Maingate car rental (UMCR) organization gives
car rental service mainly to students and staffs in and around the school campuses.
This organization carries out its daily work by providing its services to the customers
using manual system. The organization uses a manual system for reserving and
renting a car through phone calls placed to the car operators by intending users. Under
1
this manual method, there is little or no record of all the rental activities and customer
to make reservation.
To consistently deliver a quality product, friendly service and great value that
make customers confident that UMCR is their best car rental choice.
Various companies form their database based on what they need from and what
they present to their customers and with respect to that, UMCR form its database
Is there an outstanding?
Customers name
Employee name
The value of any financial institution rests on its ability to quickly make
informed and effective decisions. But the institution’s decision-making power is only
as strong as its underlying data. Weak data erodes confidence, creates delays or worse
2
– it could lead to misguided judgment. Alternatively, a robust data platform provides a
1.1 MOTIVATION
Database driven websites has its demand in so many areas of life. Since the
inception of UMCR, it has carried out its daily work by providing its service to
customers using manual system. The organization uses a manual system for reserving
and renting a car through phone calls placed to the car operators by intending users.
Under this manual method, there is little or no record of all the rental activities and
problems
(i) The organization phone may be busy or may not work when customer
(ii) It may be difficult for customers to get the phone number or the
3
(iii) The customers may make unnecessary extra expenses and waste their
time.
(vi) The customers may not get service of the organization 24/7 (twenty
four hours a day and seven days a week), the service thus being limited
by time.
2. When renting a vehicle, the customer information and contract made between
When generating report, it takes time and it may not be easy to manage and
analyze work due to massive collection of data and the generated report
The general objective of this project is to develop interactive web based system
for Uniben Maingate Car Rental (UMCR) organization that will enable customers to
reserve a vehicle of choice online from anywhere. A system where every work process
is done using computer, thus there is no need for expensive, difficult and time
4
To achieve the objective stated above, this project aims at:
of Benin
1.3 METHODOLOGY
1. Introspection
This method has been the primary base for the project. Therefore using the
internet, World Wide Web application (www), decision support system, HTML,
JavaScript, PHP, MySQL, window OS 7 platform, I was able to identify and list out
the common functionalities and requirements for the project. This background
2. Interview
closed and open interview. I selected an open interview for interviewing the manager
and employees for recognizing the existing working procedure of the organization. So
I was able to gather information about the organization and requirements (see
Appendix A)
5
1.4 CONTRIBUTION TO KNOWLEDGE
This project is expected to create a database of UMCR service and to use a web
based application for projecting the information that would be beneficial for making
6
CHAPTER TWO
LITERATURE REVIEW
2.0 INTRODUCTION
A lot has been written about the subject of web based car rental service all
aiming at offering a credible service which can be accessed by customers at any time
irrespective of the terminal or location. This chapter provides the literature review
that is related with what will be developed later. This chapter comprises two sections:
The first section reviews the method, equipment, and technology used. The second
section reviews the existing similar systems. References are made to books, articles,
journals, magazines, conference paper, thesis and also sources from Internet.
increase in their functionality, which, in turn, makes them more complicated to use.
Thus, a useful web application should be based on traditional graphical user interface
design which relies on menu selection and navigation. But these interfaces require a
considerable cognitive overhead. This may be tolerable to frequent users, but will in
many cases deter casual users, especially those who are not yet used to computers.
(Nielsen, 1993)
7
and people. It is important to recognize that while all three resources are key
Management information systems are distinct from regular information systems in that
they are used to analyze other information systems applied in operational activities in
the organization. Academically, the term is commonly used to refer to the group of
making, e.g. decision support systems, expert systems, and executive information
various programming languages and running on various platforms can use web
services to exchange data over computer networks like the Internet in a manner
developing large applications. Software engineering covers not only the technical
aspects of building software systems but also management issues such as directing
documentation that must be done with the development of the system. There are
8
Software Development Plan (SDP), Software Requirements Specification (SRS) and
about Database and even before that, about Data. Data is any facts or figures which
can be recorded and which has a latent meaning. Database is a collection of such data,
of the world and their calling code. Here, countries and calling codes are related to
each other and the database serves a purpose, to provide user with correct calling
code. A random collection where, data is neither related nor serve a purpose cannot
which come together to serve a particular purpose and they emulate some aspect of
real world. Software which is used to manage such databases is called DBMS. For
example Oracle, IBM DB2, Microsoft Access, Microsoft SQL Server, Sybase.
From the various definitions above, we can conclude that DBMS is a software
to store and transform data into information to support decision making. This is very
necessary especially to firms and organizations that make use of large data.
9
2.2.1 FUNCTIONS OF A DBMS
A DBMS makes it possible for users to create, edit and update data in database
files. Once created, the DBMS makes it possible to store and retrieve data from those
database files.
Concurrency: Concurrent access (meaning 'at the same time') to the same database by
multiple users.
Backup and recovery: Processes to back-up the data regularly and recover data if a
problem occurs.
Integrity: Database structure and rules improve the integrity of the data.
by database administrators (DBAs) and other specialists. This ensures the database
A DBMS provides automated methods to create, store and retrieve data. It may
take some time to set up these methods, but once in place, a DBMS can make
10
It allows for concurrent access by multiple users, each with their own specific
role. Some users only need to view the data, some contribute to adding new
data, while others design and manage the database - all at the same time!
general, making sure it works the way it was intended. Having one or more
specialists control these tasks is a lot more effective than having each computer
data. A DBMS makes it possible to set up rules for the database. For example,
when entering the phone number of a customer you should not be entering text
characters. A rule can be set up such that you cannot enter text in the phone
easier to select from a pre-defined list of states than to have to type in the
name.
As with any information system, there are also some challenges associated with
using a DBMS one of them is that implementing a DBMS can be expensive and time-
into the existing business processes. In many cases, implementing a DBMS actually
means some of those processes need to be changed. This may require training of
existing staff and hiring of new staff. And of course, there are costs associated with
11
Moreover, any database remains vulnerable to security issues. As databases get
larger and more complex, so does the challenge of keeping all the data secure.
The term Internet today refers to the global network of public computers
running internet protocol. The Internet supports the public World Wide Web
Yet another source defined the internet as the wired or wireless mode of
communication through which one can receive, transmit information that can be used
providing advanced information storage and retrieval. In 1962, whilst working for
ARPA as the head of the information processing office, he formed a group to further
computer research, but left the group before any actual work was done on the idea.
The plan for this computer network (to be called ARPANET) was presented in
October 1967, and in December 1969 the first four-computer network was up and
running. The core problem in creating a network was how to connect separate physical
networks without tying up network resources for constant links. The technique that
solved this problem is known as packet switching and it involves data requests being
split into small chunks (packets,) which can be processed quickly without blocking
communication from other parties - this principle is still used to run the Internet today.
12
This proliferation of different networking protocols soon became a problem
when trying to get all the separate networks to communicate. There was a solution in
sight however – Robert Kahn, whilst working on a satellite packet network project for
ARPA, started defining some rules for a more open networking architecture to replace
the current protocol used in ARPANET. Later joined by Vinton Cerf from Stanford
University, the two created a system that masked the differences between networking
December 1974, this was called the Internet Transmission Control Program.
This specification reduced the role of the network and moved the responsibility
of maintaining transmission integrity to the host computer. The result was that it
became possible to easily join almost all networks together. ARPA funded
published and adopted; and in 1982 the ARPANET connections outside of the US
were converted to use the new TCP/IP protocol. The Internet as we know it had
arrived.
The World Wide Web (abbreviated as WWW or W3, commonly known as the
Web) is a system of Internet servers that support specially formatted documents. The
Language) that supports links to other documents, as well as graphics, audio, and
video files.
13
The World Wide Web is a system of interlinked hypertext documents that are
accessed via the Internet. With a web browser, one can view web pages that may
contain text, images, videos, and other multimedia and navigate between them via
hyperlinks.
Web browser. During recent years the extent and scope of their use has grown
manufacturing, travel and hospitality, banking, education, and government are Web-
enabled to improve and enhance their operations. The scope and complexity of
This section is to review the current, existing system that relates to car rental
service.
Suria Car Rental & Tour (SCR & TOUR) focus on corporate incentive tour,
corporate group outing, MICE and also individual group outing in Malaysia and
Overseas. Our customer service in the travel industry has benefited our clients from
government, large corporation, small and medium industries and individual clients.
14
Figure 2.1: the home page of SCR Travel& Tour Website Graphical User
Interface.
Figure 2.2: the booking form of SCR Travel & Tour Website Graphical User
Interface.
15
2.6.2 NOVA CAR HIRE
Our focus is to save you time and money when it comes to hiring a car. We
provide you with the cheapest deals as well as a friendly & helpful service (Nova Car
Hire, Online). Our website is user friendly. Furthermore, at Nova Car Hire, we try to
Figure 2.3: the booking form of Nova Car Hire Website Graphical User
Interface.
Figure 2.4: the help interface of Nova Car Hire Website Graphical User
Interface.
16
2.6.3 WS RENT-A-CAR
WSRAC offers a wide choice of vehicles, and all the cars are well-maintained,
ranging from economical to luxury cars, vans, MPVS, and 4 wheel drives, for you to
choose the one most appropriate for your trip and traveling comfort. To help you with
your way, all our rentals are competitively priced. WSRAC has also engaged the
Kurnia Auto Assist's 24 hours Breakdown Service to assist its customers in the event
services, such as chauffeur drive Service, Airport Shuttle Service, Corporate Rate
Program, Long-term Lease Program Weekend Rate Program, Fleet Management and
17
Figure 2.6: the catalog for available vehicles of WS RENT-A-CAR Website
Graphical User Interface.
A car rental, hire car, or car hire agency is a company that rents automobiles
for short periods of time (generally ranging from a few hours to a few weeks). It is
often organized with numerous local branches (which allow a user to return a vehicle
to a different location), and primarily located near airports or busy city areas and often
Car rental agencies primarily serve people who require a temporary vehicle, for
example those who do not own their own car, travelers who are out of town, or owners
Car rental agencies may also serve the self-moving industry needs, by renting vans or
trucks, and in certain markets other types of vehicles such as motorcycles or scooters
Alongside the basic rental of a vehicle, car rental agencies typically also offer
extra products such as insurance, global positioning system (GPS) navigation systems,
18
entertainment systems, and even such things as mobile phones. Horses, chariots,
carriages, and the like have been rented since time immemorial. The earliest known
example of cars being offered for rent dates to 1904. The German company Sixt was
Joe Saunders of Omaha, Nebraska first started with only one borrowed Model
T Ford in 1916, but by 1917, his Ford Livery Company was renting out 18 Model Ts
at 10 cents per mile. The company name became Saunders Drive-It-Yourself System
and then Saunders System. By 1926, Saunders had expanded to 56 cities. Saunders'
Rent-a-Car opened in 1918 with twelve Ford Model T. The company was bought in
In Britain, car rental started with Godfrey Davis, established in 1920, and
The sector expanded rapidly in the US; in 1926, the American Driveurself
The growth in travel after World War II led to the establishment of several well
(1949), Enterprise Rent-A-Car (1957), Thrifty Rent A Car (1958), and Budget Rent a
Car (1958).
19
2.8 WHY ONLINE CAR RENTAL?
processed. Customers can check availability and book instantly, thus closing a
booking without having to wait for your reservations staff to confirm the
reservation by email.
Online car rental service, you are at the forefront of this industry's booking
trend.
3. Customer convenience
20
CHAPTER THREE
3.0 METHODOLOGY
This chapter provides the method and approach which have been used for the
research in order to achieve the specified objectives within a given time. In order to
complete this research, there are some major phases involved. Each phase involved in
this project have significance in achieving the objectives of the project. This
project begins with knowledge acquisition phase and finished with the
Uniben Car Rental service operates a manual form of car rental service. Under
this system of operation, a customer places a call to the car operator and makes a
reservation or he goes to the park to rent a car. Little or no records are kept and the
customer may make a poor reservation choice because he cannot see through a phone
21
3.2 PROBLEMS OF THE EXISTING SYSTEM
2. When renting a vehicle, the customer information and contract made between
3. When generating report, it takes time and it may not be easy to manage and
analyze work due to massive collection of data and the generated report may
not be accurate.
Management software has been designed to carry out the following operations
Make online reservation– the software would enhance the process of reserving
Managing user accounts – users would create account on the platform with
where necessary.
3.4.1 ADMIN
22
Verify the car information database.
3.4.2 EMPLOYEE
Maintain contacts.
3.4.4 CUSTOMER
23
3.5 DESIGN OF A PROPOSED SYSTEM
3.5.1 RESERVATION
2. The system shall allow the customer to view detailed description of particular
vehicle.
4. The system shall present an option for advanced search to limit the vehicle
Model.
5. The system shall allow the customers to select specific vehicle using different
6. The system shall allow customers to view list of available vehicles during
reservation.
7. The system shall allow the customers to cancel reservation using reservation
confirmation number.
9. The system shall allow the employee to view reservations made by customers.
10. The system shall presents information on products and their daily costs and
reservation.
11. The system must be able to provide a unique reservation confirmation number
24
12. The system must be able to display reservation summary for successfully
committed reservation.
3.5.2 LOG IN
13. The system should allow manager to login to the system using their username
and password.
14. The system should allow staff to login to the system using their username and
password.
15. The system shall allow the manager to create new user account.
3.5.3 VEHICLE
21. The system shall allow staff to select vehicles in the list.
22. The system shall allow customer to select vehicles in the list.
23. The system shall allow staff to Search vehicles by specific record.
24. The system shall allow customers to Search vehicles by specific record.
25. The system shall allow staff to update information of the vehicle in need of
modification.
26. The system shall allow staff to display all lists of vehicle.
27. The system shall allow staff to display all available vehicles.
28. The system shall allow customer to display all available vehicle.
25
29. The system shall allow staff to display all rented vehicle.
30. The system shall allow staff to display all off duty vehicles.
3.5.4 RENT
31. The system shall allow staff to register customers into rental list.
32. The system shall allow staff to update customer rent record details in the rental
list.
33. The system shall be able to save all changes made on the customer rent list.
34. The system shall allow staff to select customer rent record by specific search
category.
35. The system shall allow staff to search rent record of customers using specific
categories.
36. The system shall allow staff to display customers who rent vehicles.
37. The system shall allow staff to display all customers rent record
38. The system must provide printable summary for successfully committed rent.
This section presents the use case diagrams and description tables, activity and
the system and depicting the specifications of a use-case. A use case diagram can
portray the different types of users of a system and the case and will often be
26
Figure 3.1: Use-Case Diagram of the Proposed Uniben Maingate car rental
(UMCR)
27
3.6.2 USE-CASE DESCRIPTION
1. USE-CASE LOGIN
Use-case UC-01
Number
Use-Case Log in
Name
Priority High
Actor Staff
Description This use case describes how Staffs login to the UMCR System.
Precondition None
Post-condition If the use case was successful, the actor is now logged into the
UMCR system. If not, the system state is unchanged.
Alternate 6.1 If all fields are not filled out and not matched to the username
course of and password the system notifies the actor a message Verify
Action Username or Password and then goes back or returns to step 4 of
basic course of Action to enter again.
28
2. USE-CASE RESERVE VEHICLE
Use-case UC-02
Number
Use-Case Name Reserve vehicle
Priority High
Actor Customer
Description This use case permits customers to reserve and make schedule for
renting vehicle, based on the availability of the vehicle.
Precondition Customer wants to reserve a vehicle and reservation details about
customer have to be entered.
Post-condition Customers reserve successfully
Basic course of User Action System Response
Action 1. The customer wants to 3. The system prompts the
reserve a vehicle. customer to fill a reservation
2. The customer clicks form.
reservation page. 6. The system checks that all
4. The customer enters the required information have
following information been filled and the date
customer (full name, entered are valid
ID/Passport No, Country, 7. The system presents
Mobile number and selects information to accept or decline
vehicle plate number, Pickup the rental Agreement.
date & return date) 9. The system shows the
5. The customer clicks reserve customer that the reservation has
button to reserve. been completed, and presents the
8. The customer accepts the customer a reservation
reservation and clicks confirmation number.
Accept. 10. Use case ends.
Alternate course 6.1 If the customer enters invalid date and time, the system goes
of Action back to step 4 to enter the valid date and time.
6.1 If the customer fills invalid information, the system goes back
to step 4 to enter the invalid field again.
7.1 If the customer declines the agreement, the system displays a
message that reservation canceled.
29
3. RENT REGISTRATION
Use-case UC-03
Number
Use-Case Name Rent Registration
Priority High
Actor Staff
Description This use case permits to register rental information of the
customers and the vehicle that the customer rents.
Precondition UC-1
Post-condition Customer rent information
Basic course of User Action System Response
Action
1. The customer wants to take the 3. The system displays a
reserved vehicle. form to be filled out for
2. The staff open rent page. renting the vehicle.
4.The staff enters Full name, 4. The system prompts to
Nationality, Country, City, enter the following
Identification Number, Phone, Plate information.
No, Down Payment, Daily Price, 6. The system verifies that
Rent Date, Return Date, Total Rent basic fields have been filled
Day, Total Payment, Refund out.
5. The staff clicks on rent button. 7. The system displays
successful rent summary
8. Use case Exit.
Alternate course 6.1 If Full name, Nationality, country, City, Id/Passport, Phone,
of Action Car Plate No, Down Payment, Price/day, Rent Date, Return date
and Total Payment fields are not filled out, system goes back or
returns to step 4 of basic course of Action. To fill invalid field.
30
4. VEHICLE REGISTRATION
Use-Case UC-04
Number
Use-Case Name Vehicle Registration
Priority High
Actor Staff
Description These use case permits staff to register New Vehicles to the system
with detail descriptions about the Vehicle such as condition,
Model, Brand, fuel type, Number of sits and amount of price per
day.
Precondition New vehicle Purchased
Post-condition New Vehicle information stored successfully.
Basic course of User Action System Response
Action
1. The staff wants to add a new 3. The system responds or
vehicle displays a form to be filled
2. The staff requests add new out for vehicle registration.
vehicle form page. 6. The system verifies that
4. The staff enters the following the fields have been filled
information in the form. out correctly.
Vehicle Brand, Vehicle Type, 7. The system displays a
Vehicle Model, Fuel Type, Plate successfully stored message
Number, Number of Sits, Condition, to the employee.
Price per day 8. Use case Exit
5. The staff clicks on the save or
insert button.
Alternate course 6.1 If all fields are not filled out the system goes back or returns to
of Action step 4 of basic course of Action. To fill the invalid or the empty
field.
31
5. SEARCH VEHICLE
Use-Case UC-05
Number
Use-Case Name Search Vehicle
Priority Medium
Actor Staff and customer
Description This use case permits staff and customer to search vehicle from the
vehicle list in order to display.
Precondition UC-3, UC-2
Post-condition Display
Basic course of User Action System Response
Action
1. The staff or Customers clicks 2. The system displays combo
on search vehicle link. box to select search to a vehicle.
3. The staff or customers select 4. Then the system display all
one of the following lists from information about the vehicle
the combo Box, Vehicle Brand. based on selected list.
Vehicle Type. Vehicle Model or 6. Use case End.
default is All.
Clicks on search button.
Alternate course 4.1 If any lists are not selected from the combo box system goes
of Action back or returns to step 3 of basic course of Action to select from the
combo box.
6. UPDATE VEHICLE
7. VIEW VEHICLE
8. UPDATE RENT
Use-Case UC-08
Number
Use-Case Name Update Rent
33
Priority High
Actor Staff
Description This use case permits employee to update or modify Rent
information incase when there is a need for editing
Precondition Need to Change information
Post-condition Successful Update Message
Basic course of User Action System Response
Action 1. Staff wants to update rent. 4. The system displays the
2.Open the rent page rent information.
3. Search by unique attribute 7. The system validates
which is give to customer during updated information and
rent. saves updated information in
5.The Staff update the to database.
information 8. Exit use case.
6. Click on update button.
Alternate course 4.1 If match is not found go back to basic course of action 3.
of Action 7.1 if the entered information is invalid the system goes back to
basic course of action 5
9. CANCEL RESERVATION
Use-Case UC-09
Number
Use-Case Name Cancel a Reservation
Priority Medium
Actor Customer
Description This use case permits a customer to cancel a reservation.
Precondition Customer has already reserved and wants to cancel the reservation
Post-condition Customer successfully cancel a vehicle
Basic course of User Action System Response
Action 1. The customer wants to cancel 3. The system
reservation displays a form
2. The customer opens reservation 5. The system verifies the field
page and clicks cancel reservation has been filled out correctly
link and checks validity of
4. The customer enters confirmation number, then
reservation confirmation number popup a message to verify the
and clicks cancel reservation canceling.
button. 7. The system cancels the
6. Are you sure you want to reservation and display a
34
cancel, the customer clicks “Yes” message that the reservation is
button. canceled.
8.use case Exit
Alternate course 5.1 If the customer enters invalid number system goes back or
of Action returns to step 4 of basic course of Action. To fill invalid or the
empty field again.
6.1 If the customer clicks “NO” reservation canceling will be
terminated.
Use-Case UC-10
Number
Use-Case Name View Reservation
Priority Medium
Actor Staff
Description These use case allow staff to view or display customer reservation.
Precondition UC-1
Post Condition Display all reservations
Basic Course of User Action System Response
Action 1. The staff wants to view 3. The system responds to the
reservation. requested page.
2. The staff requests the 5. The system puts on view or
reservation Page. displays all reservation
4. Then on reservation page information to the employee.
the employee clicks view 6. Use case ends
button.
Alternate course 5.1
of If reservation is not found, system goes to basic course of
Action action 6.
35
11. GENERATE REPORT
Use-Case UC-11
Number
Use-Case Name Generate Report
Priority High
Actor Manager
Description These use case allows the manager of the organization to generate a
report about the renting information of the month.
Precondition Manager wants to see report
Post Condition Generate monthly Report Information
Basic Course of User Action System Response
Action 1. The Manager wants to generate report. 3. The system
2. The Manager clicks rent pages. responds to the
5. Then on the rent page the Manager requested page.
specifies the month and then clicks on the 7. Use case ends
generate button.
Alternate course 7.1 If the reservation information is empty or not found go to 8.
of Action
12. LOGOUT
36
3.6.3 ACTIVITY DIAGRAM
represent the performance of actions or sub activities and the transitions are triggered
procedure itself.
37
Figure 3.3: Activity Diagram – Reserve a Vehicle
38
Figure 3.4: Activity Diagram – Rent registration
39
Figure3.5: Activity Diagram – Vehicle registration
40
Figure 3.6: Activity Diagram – Search Vehicle
41
Figure 3.7: Activity Diagram – Update Vehicle
42
Figure 3.8: Activity Diagram – View Vehicle
43
Figure 3.9: Activity Diagram – Update Rent
44
Figure 3.10: Activity Diagram – Cancel Reservation
45
3.6.4 SEQUENCE DIAGRAM (SD)
and the stimuli with which they are arranged in time sequence. It does not show the
UMCR
Login
Data
base
46
UMCR Data
base
UMCR Data
base
47
UMCR Data
base
a)
BRC:
UMCRDatabase
Data base
Staff, Customer
48
UMCR
Data base
49
UMCR
Data base
UMCR
Data base
50
UMCR
Data base
51
UMCR
Data base
UMCR
Data base
52
CHAPTER FOUR
SYSTEM IMPLEMENTATION, TESTING AND DOCUMENTATION
conversion of the old system to the new system. It begins from testing and debugging
of the program to ensuring the elimination of potential problems users may face in the
choice, testing the system, training the user on how to use it, and so on. The overall
system is very user-friendly; that is, it is designed so that any level of user can easily
use it without having any sort of problem. To implement any system design into a
computer program the most important consideration is first and foremost the
factor in determining the cost, complexity, user – operability and that which can be
used for a wide array of programming functions. Some are more suited for writing
certain types of program than the others, based on their functionality or on criteria set
by programmer.
53
4.1 HTML LANGUAGE
for documents on the interconnected computing network known as the World Wide
Web. HTML documents are text files that contain two parts: content that is meant to
directs the text format on the screen and is generally hidden from the user. Some tags
in an HTML document determine the way certain text, such as titles, will be
formatted. Other tags cue the computer to respond to the user's actions on the
keyboard or mouse. For instance, the user might click on an icon (a picture that
represents a specific command), and that action might call another piece of software to
display a graphic, play a recording, or run a short movie. Another important tag is a
link, which may contain the Uniform Resource Locator (URL) of another document.
HTML also includes markups for forms that let the user fill out information and
electronically send, or e-mail, the data to the document author, and initiate
central component of the widely used LAMP open source web application software
MySQL Database powers the most demanding Web, E-commerce and Online
ACID compliant database with full commit, rollback, crash recovery and row level
54
locking capabilities. MySQL delivers the ease of use, scalability, and performance that
has made MySQL the world's most popular open source database.
MySQL is the database construct that enables PHP and Apache to work
Query Language server designed for heavy loads and processing of complex queries.
Multi-platform operation
implemented at levels
indexes)
55
MySQL is the perfect choice for providing data via the Internet because of its
4.3 PHP
PHP is a server-side scripting language that allows your Web site to be truly
dynamic. PHP stands for PHP: Hypertext Preprocessor its flexibility and relatively
small learning curve (especially for programmers who have a background in C, Java,
or Perl) make it one of the most popular scripting languages around. PHP’s popularity
alternative to Microsoft’s ASP language and realize that PHP’s benefits most certainly
new CS Live online services, which provides a fast and accurate solution for cross-
browser compatibility testing. With BrowserLab you can preview web pages and local
content using multiple viewing and comparison tools. Dreamweaver lets you build
56
4.4.1 DYNAMICALLY-RELATED FILES
The Dynamically-Related Files feature lets you discover all of the external files
pages, and displays their filenames in the Related Files toolbar. By default
Dreamweaver supports file discovery for the Wordpress, Drupal, and Joomla CMS
frameworks.
Live view navigation activates links in live view, allowing you to interact with
server-side applications and dynamic data. The feature also allows you to enter a URL
to inspect pages served from a live web server and edit pages you have browsed to if
they exist in one of your locally defined sites. A Dreamweaver site provides a way to
organize and manage all of your web documents, upload your site to a web server,
track and maintain your links, and manage and share files. It consists of as many
folders, whose numbers depend on your development environment and the type of
Stores the files you are working on. Dreamweaver refers to this folder as your
local site. This folder is typically on your local computer, but it can also be on a
network server.
refers to this folder as your ―remote site in the Files panel. Typically, your remote
folder is on the computer where your web server is running. The remote folder holds
the files that users access on the Internet. Together, the local and remote folders
57
enable you to transfer files between your local hard disk and web server, making it
easy to manage files in your Dreamweaver sites. You work on files in the local folder,
and then publish them to the remote folder when you want other people to view them.
applications that will run on just about any computer, regardless of operating
task.
ii. If the computer can run web server software, the PHP / MySQL application is
portable across operating systems and environments ... PC, Mac, Linux, Unix,
iii. PHP / MySQLis most often used to create dynamic web sites. On this web site,
one script drives about 60 pages of content. Additional scripts are used here to
process form data but that too could be done through the main script using
included files.
iv. Data can be exported from MySQL for use in spreadsheets or databases on
your PC. Similarly, data residing in existing PC spreadsheets and databases can
uses, especially for workgroups and for those who need to access data from
58
4.6 DATABASE DESIGN SPECIFICATIONS
The database management system used as the backend for the design and
development of the system is MySQL. The database management system was used to
create different database schema objects that store, retrieve, and manipulate the data in
different dimensions for the automated system. The major schema objects created in
the database are database tables that are used to store the data for the application. The
database tables were fully accessed using PHP (Hypertext Pre-Processor) connection
from the application programme interface (API) to the backend, which is the database
schema objects to the maximum. The automated system was designed and developed
management system. The software is expected to work and run efficiently and
This section specifies the hardware and software requirements of the proposed
59
4.7.1 HARDWARE REQUIREMENTS
since it requires upload of car catalogue and other digital media which are data
intensive. LAN/WAN Products and peripherals needed for car rental computerization
Intel/Alpha Servers.
vi. Other Accessories - Scanners, Printers, Web Cam, Digital Camera, etc.
60
ii. MySQL Server
Languages such as HTML/PHP, Visual Basic 6.0, C++, C#, Java, C, Visual Basic.Net,
Pascal, FORTRAN, Visual Basic etc., are available and appropriate for the
implementation of the design. The choice of programming language for this project is
HTML/PHP because PHP is a web based program that can be accessed on-line from
PHP is a scripting language that is often embedded into HTML to add dynamic
functions. PHP allows you collect process and utilize data to create a desired output.
PHP is able to perform a number of tasks including printing data, making numeric
bigger, are they equal, etc.) and making simple Boolean choices. From this you can
create more complex loops and functions to make your page generate more
specialized data.
MySQL can store many types of data from something as tiny as a single character to
programing languages, it is often coupled with PHP because they work together with
ease. Information stored in a MySQL database hosted on a web server can be accessed
To start the UMCR Online Management System, open a web browser and enter
the address of UMCR Online Management System website which for now is
http://localhost/cab
ii. For Staff; record available cars and also generate report on rented cars.
iii. For Administrator; generate report on rental history and other administrative
privileges.
iv. Click on the Print report button to print preview the report and print if need be.
aims at ensuring that the system works accurately and efficiently before the actual
Management System needs, but since no system design is perfect, it is proper the
The system application is tested after it has been successfully installed into the
UMCR Online Management System host computer, from the login screen via a
username and a password entering. After entering the valid username and password,
the operator clicks on login to display the menu screen. After which he/she clicks on
62
any command from the screen to perform a task. Simply follow the easy to use GUI
System installation is the process of installing the necessary software and hardware
without which the new system cannot function optimally. The installation should be
carried out in the presence of a trained staff. However, the steps listed below can be
i. Open My computer
Also it is most important to create the database that the application will use as the
backend. The application also, creates the database once the application is opened for
the first time, after which the database is created once and for all.
63
4.12 SYSTEM OPERATIONAL DOCUMENTATION (USER’S MANUAL)
UMCR Online car rental service and it brings to focus a global strategy for achieving
efficiencies and facilitating the provision of high quality car rental management. This
goes beyond just having computers at the comfort of our homes to the actual
represents a radical transition from slow and inflexible paper and manual processes to
digital and automated processes, which is far more accurate and easier to work with.
This is tantamount to transforming a car rental into a near paperless system, reducing
cost and workload, saving time and thereby aiding in quick decision making and
For the software to be used successfully, the user should meet the requirements
4.13 MAINTENANCE
Maintenance and upgrading of the web based car rental management system
will be carried out from time to time so as to allow for more innovations and also
newly discovered functions. This will help in making the system up-to-date and thus
enhance speed, efficiency and quality of delivery in terms of car rental management.
64
CHAPTER 5
CONCLUSION
5.0 CONCLUSION:
environment for car rental services that intends to overcome the problems faced by
users and car rental service organizations. For customers, the proposed UMCR online
rental management system will provide car recommendation service to help users to
choose the suitable car for them to rent based on their budget, the number of
passenger, and their journey distance. Besides, users may view the car catalogue
provided in the system, while for the organization, UMCR online is able to produce
transaction report and thereby able to make informed business decisions. To access
the administrator page, UMCR provides security access level for authorized
administrator only.
Today, various online systems make the life of human very comfortable. By
some clicks only, we can get whatever we want at home. We already know about the
online shopping, e-banking, etc. Similarly, The Car Rental System is the online
facility to book cars online with just few clicks. Some people cannot afford a car, for
those people this system becomes very helpful. This system includes various cars to
1. This application can help UMCR offer timely and effective web based
65
2. This application makes transaction processing and data management that
5.1 RECOMMENDATIONS
Some suggestions exist that can be considered against UMCR even with the
1. Need to open branches in other major parts of the city in order to achieve more
3. It is necessary to develop the credit card payment system, so that when the
customers do not have a PayPal account, they can pay with credit cards.
66
REFRENCES
Computing in High Energy Physics 92, Annecy, France, 2327 Sep 1992.
2) Berners-Lee T.J., et al, (2001). The World Wide Web, Communications of the
ACM
518405-0
4) Ian Peter, (2004, Retrieved 27 June 2014) the Internet History Project. “So,
5) Barry M. Leiner, et al. (Retrieved 27 June 2014) Brief History of the Internet:
Symbiosis
67
BIBLIOGRAPHY
1) Laura M Haas, Walteer Chang et al, (1990). Staburstmid flight: As The Dust
3) http://en.wikipedia.org/wiki/Car_rental.
4) http://www.onlinebookingmanager.com/benefits.php.
5) http://www.ccs.neu.edu/home/mirek/classes/2012-FCS3200/Slides/1
Introduction.pdf
(or "webapp")?".
Task Force.
68
12) Guy Harrison; Steven Feuerstein (2008). MySQL Stored Procedure
Reference Manual.
15) Jackson, Joab (2014-07-31). "PHP gets a formal specification, at last". ITworld.
IDG.
16) PHP Group. (Retrieved 2008-02-25). The History of PHP and related projects
17) World Wide Web Consortium, (Retrieved December 2010). "What is CSS?".
18) Meyer, Eric A. (2006). Cascading Style Sheets: The Definitive Guide (3rd ed.).
19) David Powers (July 12, 2010). "Time to Learn PHP? Dreamweaver CS5 Is
Here to Help You". Pearson Education, Adobe Press. Retrieved July 11, 2012.
21) Gehani, N. (2006). The Database Book: Principles and practice using MySQL.
22) Teorey, T.J., Lightstone, S.S., et al., (2009). Database Design: Know it all.1st
69
23) Andreas Mauthe; Peter Thomas (2004). Professional Content Management
Systems: Handling Digital Media Assets. John Wiley & Sons. ISBN 978-0-
470-85542-3.
26) Dumas, Marlon, and Arthur H.M. Ter Hofstede, (2001). "UML activity
28) Gemino, A., Parker, D.(2009) "Use case diagrams in support of use case
29) Vidgen, R. (2003). "Requirements Analysis and UML: Use Cases and Class
30) Matthew West and Julian Fowler (1999). Developing High Quality Data
31) Whitten, Jeffrey L.; Lonnie D. Bentley, Kevin C. Dittman. (2004). Systems
70
APPENDIX
APPENDIX A
QUESTIONAIRES
Q1. What makes your organization different from other organization who rents a car?
Q10. What are the procedures or steps when a customer rents a car?
Q11. What qualifications are expected from a customer who wants to rent a car?
Q13. How do you keep track of which cars are rented and which are not?
71
APENDIX B
SCREENSHOTS FROM THE PROPOSED UMCR WEBSITE
Figure 4.2: Admin Login of Proposed UMCR website Graphical User Interface
72
Figure 4.3: Customer Login of Proposed UMCR website Graphical User
Interface
Figure 4.3: Staff Login of Proposed UMCR website Graphical User Interface
73
APPENDIX C
PROGRAM SOURCE CODE
INDEX.PHP
<?php
session_start();
mysql_connect("localhost", "root", "");
mysql_select_db("cab");
if (isset($_POST['submit'])){
$username = $_POST['customer'];
$password = $_POST['password'];
$sql = "select * from customer where username = \"$username\" and password = \"$password\"";
$query = mysql_query($sql);
$num = mysql_num_rows($query);
session_register("ID");
session_register("FIRSTNAME");
session_register("SURNAME");
session_register("ADDRESS");
session_register("PHONE");
$_SESSION['ID'] = $row['id'];
$_SESSION['FIRSTNAME'] = $row['firstname'];
$_SESSION['LASTNAME'] = $row['lastname'];
$_SESSION['ADDRESS'] = $row['address'];
$_SESSION['PHONE'] = $row['phone'];
header("location: customer/index.php");
}else{
$error = 1;
}
if (isset($_POST['submit2'])){
$username = $_POST['user'];
$password = $_POST['pass'];
$sql = "select * from admin where username = \"$username\" and password = \"$password\"";
$query = mysql_query($sql);
74
$num = mysql_num_rows($query);
session_register("ID");
$_SESSION['ID'] = $row['id'];
header("location: admin/index.php");
}else{
$error = 1;
}
if (isset($_POST['staffsubmit'])){
$username = $_POST['staff'];
$password = $_POST['staffpass'];
$sql = "select * from staff where username = \"$username\" and password = \"$password\"";
$query = mysql_query($sql);
$num = mysql_num_rows($query);
session_register("FIRSTNAME");
session_register("LASTNAME");
$_SESSION['ID'] = $row['id'];
$_SESSION['FIRSTNAME'] = $row['firstname'];
$_SESSION['LASTNAME'] = $row['lastname'];
header("location: staff/index.php");
}else{
$error = 1;
}
}
?>
<!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">
75
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#outercon {
height: auto;
width: 1000px;
margin-right: auto;
margin-left: auto;
}
#head {
height: auto;
width: 1000px;
margin-right: auto;
margin-left: auto;
}
#content {
height: auto;
width: 1000px;
margin-right: auto;
margin-left: auto;
position: relative;
font-family: Tahoma, Geneva, sans-serif;
font-size: 14px;
padding-top: 15px;
padding-bottom: 20px;
text-align: justify;
}
#footer {
height: auto;
width: 1000px;
margin-right: auto;
margin-left: auto;
}
#con1 {
float: left;
height: auto;
width: 600px;
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
#con2 {
float: right;
height: 300px;
width: 300px;
}
#s1 {
height: auto;
width: auto;
76
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
#s2 {
height: auto;
width: auto;
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
fieldset {
background-color: #D5D5BF;
}
.forggg {
width: 240px;
}
h2 {
font-family: Tahoma, Geneva, sans-serif;
}
#conn {
height: auto;
width: auto;
font-family: Tahoma, Geneva, sans-serif;
font-size: 13px;
font-weight: bold;
text-align: center;
}
</style>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryValidationPassword.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
margin-top: 15px;
margin-bottom: 15px;
}
</style>
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationPassword.js" type="text/javascript"></script>
</head>
<body>
<div id="outercon">
<div id="head"><img src="image/banner.jpg" width="1000" height="120" /></div>
<div id="content">
Uniben Maingate car rental (UMCR) organization gives car rental service mainly to students and staffs in
and around the school campuses. The scope of this project is developing web based car rental system for
Uniben Maingate car rental (UMCR). The main functions covered in this project include online car rental
and reservation. Customers as well as the organization’s staff will be able to use the system
effectively.
<br />
77
<b><br />
Vision</b>:<br />
We are growth-oriented car rental organization by efficiently serving value-conscious customers for all of
their car rental occasions.<br />
<br />
</div>
<div id="footer">
<div id="con1" >
<table width="100%" cellspacing="0" cellpadding="8">
<tr class="centre">
<td width="20%"> </td>
<td width="56%"><strong><u>WE ARE THE BEST AROUND TOWN</u></strong></td>
<td width="24%"> </td>
</tr>
<?php
$sql = "select * from car order by id desc limit 4";
$query = mysql_query($sql) ;
$num = mysql_num_rows($query);
if($num > 0){
while($row = mysql_fetch_array($query)){
?>
<tr>
<td><img src="customer/cab/<?php echo $row['image'] ?>" width="100%" /></td>
<td><?php
echo $row['name'] . "<br />" . $row['descrption'] . "<br />";
echo "<b>No of Seat: " . $row['seat'] . "<br />";
echo "Speed: " . $row['speed'] . "Km/H<br />";
echo "Price Per Hour: ₦" . $row['price'] . "</b><br />";
?></td>
<td><?php
if($row['outt'] == 0){
echo "<a href='checkout.php?id=" . $row['id'] . "'>CHECKOUT</a>";
}else{
echo "Car Currently Not Avialable";
}
?></td>
</tr>
<?php
}
}
?>
</table>
<div id="conn"></div>
78
</div>
<div id="con2">
<div id="s1">
<fieldset>
<legend>Customer's Login:</legend>
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td>username:<br />
<span id="sprytextfield1">
<label for="customer"></label>
<input name="customer" type="text" class="forggg" id="customer" />
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td>password:<br />
<span id="sprypassword1">
<label for="password"></label>
<input name="password" type="password" class="forggg" id="password" />
<span class="passwordRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td><input type="submit" name="submit" id="submit" value="Submit" /> <a
href="register.php">Sign Up For New Account</a></td>
</tr>
</table>
</form>
</fieldset>
</div>
<div id="s2"><br />
<fieldset>
<legend>Administrative Login:</legend>
<form id="form2" name="form2" method="post" action="">
<table width="100%" border="0" cellspacing="4" cellpadding="4">
<tr>
<td>username<br />
<span id="sprytextfield2">
<label for="user"></label>
<input name="user" type="text" class="forggg" id="user" />
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td>password:<br />
<span id="sprypassword2">
<label for="pass"></label>
<input name="pass" type="password" class="forggg" id="pass" />
<span class="passwordRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
79
<td><input type="submit" name="submit2" id="submit2" value="Submit" /></td>
</tr>
</table>
</form>
</fieldset><br />
<br />
<fieldset>
<legend>Staff Login:</legend>
<form id="form3" name="form3" method="post" action="">
<table width="100%" border="0" cellspacing="4" cellpadding="4">
<tr>
<td>username:<br />
<span id="sprytextfield3">
<label for="staff"></label>
<input name="staff" type="text" class="forggg" id="staff" />
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td>password:<br />
<span id="sprypassword3">
<label for="staffpass"></label>
<input name="staffpass" type="password" class="forggg" id="staffpass" />
<span class="passwordRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td><input type="submit" name="staffsubmit" id="staffsubmit" value="Submit" /></td>
</tr>
</table>
</form>
</fieldset>
</div>
</div>
</div>
</div>
<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprypassword1 = new Spry.Widget.ValidationPassword("sprypassword1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprypassword2 = new Spry.Widget.ValidationPassword("sprypassword2");
</script>
<?php
if(isset($error)){
if($error == 1){
?>
<script type="text/javascript">
alert("UnKnown Login Credentials");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var sprypassword3 = new Spry.Widget.ValidationPassword("sprypassword3");
80
</script>
<?php
}
}
?>
</body>
</html>
if (isset($_POST['submit'])){
$firstname = $_POST['firstname'];
$lastname = $_POST['lastname'];
$username = $_POST['username'];
$password = $_POST['password'];
$address = $_POST['address'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$query = mysql_query($sql);
$id = mysql_insert_id();
if($query){
$num1 = mysql_num_rows($query1);
81
if ($num1 > 0){
$row = mysql_fetch_array($query1);
session_register("ID");
session_register("FIRSTNAME");
session_register("SURNAME");
session_register("ADDRESS");
session_register("PHONE");
$_SESSION['ID'] = $row['id'];
$_SESSION['FIRSTNAME'] = $row['firstname'];
$_SESSION['SURNAME'] = $row['surname'];
$_SESSION['ADDRESS'] = $row['address'];
$_SESSION['PHONE'] = $row['phone'];
header("location: customer/index.php");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#outercon {
height: auto;
width: 1000px;
margin-right: auto;
margin-left: auto;
}
#head {
height: auto;
width: 1000px;
margin-right: auto;
margin-left: auto;
}
#content {
height: auto;
width: 1000px;
82
margin-right: auto;
margin-left: auto;
position: relative;
font-family: Tahoma, Geneva, sans-serif;
font-size: 14px;
padding-top: 15px;
padding-bottom: 20px;
text-align: justify;
}
#footer {
height: 360px;
width: 1000px;
margin-right: auto;
margin-left: auto;
}
#con1 {
float: left;
height: 355px;
width: 600px;
}
#con2 {
float: right;
height: 350px;
width: 300px;
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
#s1 {
height: auto;
width: auto;
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
#s2 {
height: auto;
width: auto;
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
fieldset {
background-color: #D5D5BF;
}
.forggg {
width: 240px;
}
h2 {
font-family: Tahoma, Geneva, sans-serif;
}
</style>
83
<style type="text/css">
body {
margin-top: 15px;
margin-bottom: 15px;
}
</style>
<link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css" />
<script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
<script src="SpryAssets/SpryValidationTextarea.js" type="text/javascript"></script>
</head>
<body>
<div id="outercon">
<div id="head"><img src="image/banner.jpg" width="1000" height="120" /></div>
<div id="content">
Uniben Maingate car rental (UMCR) organization gives car rental service mainly to students and staffs in
and around the school campuses. The scope of this project is developing web based car rental system for
Uniben Maingate car rental (UMCR). The main functions covered in this project include online car rental
and reservation. Customers as well as the organization’s staff will be able to use the system
effectively.
<br />
<b><br />
Vision</b>:<br />
We are growth-oriented car rental organization by efficiently serving value-conscious customers for all of
their car rental occasions.<br />
<br />
</div>
<div id="footer">
<div id="con1" style="border-radius:8px 8px 8px 8px; box-shadow:2px 2px 7px #666666">
<h2><img src="image/jerry-keys-cab-1_C.jpg" width="600" height="300" /><br /> Superior Car
Delivery Services
</h2>
</div>
<div id="con2">
<fieldset>
<strong>
<legend>New User Registration:</legend>
</strong>
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="0" cellspacing="2" cellpadding="2">
<tr>
<td>Firstname:<br />
<span id="sprytextfield1">
84
<label for="firstname"></label>
<input name="firstname" type="text" class="forggg" id="firstname" />
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td>lastname:<br />
<span id="sprytextfield2">
<label for="lastname"></label>
<input name="lastname" type="text" class="forggg" id="lastname" />
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td>username:<br />
<span id="sprytextfield3">
<label for="username"></label>
<input name="username" type="text" class="forggg" id="username" />
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td>password:<br />
<span id="sprytextfield4">
<label for="password"></label>
<input name="password" type="password" class="forggg" id="password" />
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td>address:<br />
<span id="sprytextarea1">
<label for="address"></label>
<textarea name="address" cols="45" rows="1" class="forggg" id="address"></textarea>
<span class="textareaRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td>email:<br />
<span id="sprytextfield5">
<label for="email"></label>
<input name="email" type="text" class="forggg" id="email" />
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td>mobile contact:<br />
<span id="sprytextfield6">
<label for="mobile"></label>
<input name="mobile" type="text" class="forggg" id="mobile" />
<span class="textfieldRequiredMsg">A value is required.</span></span></td>
</tr>
<tr>
<td><input type="submit" name="submit" id="submit" value="Register" />
<a href="index.php"> Back to Main Menu</a></td>
85
</tr>
</table>
</form>
</fieldset>
</div>
</div>
</div>
<script type="text/javascript">
var sprytextfield1 = new Spry.Widget.ValidationTextField("sprytextfield1");
var sprytextfield2 = new Spry.Widget.ValidationTextField("sprytextfield2");
var sprytextfield3 = new Spry.Widget.ValidationTextField("sprytextfield3");
var sprytextfield4 = new Spry.Widget.ValidationTextField("sprytextfield4");
var sprytextarea1 = new Spry.Widget.ValidationTextarea("sprytextarea1");
var sprytextfield5 = new Spry.Widget.ValidationTextField("sprytextfield5");
var sprytextfield6 = new Spry.Widget.ValidationTextField("sprytextfield6");
</script>
<?php
if(isset($error)){
if($error == 1){
?>
<script type="text/javascript">
alert("Username Already Exist | Please Try With Another Username");
</script>
<?php
}
}
?>
</body>
</html>
if (!isset($_SESSION['ID'])){
session_destroy();
header("location: ../index.php");
}
if(isset($_GET['package'])){
$id = $_GET['package'];
$query = mysql_query($up);
86
header("order.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style type="text/css">
#outercon {
height: auto;
width: 1000px;
margin-right: auto;
margin-left: auto;
}
#head {
height: auto;
width: 1000px;
margin-right: auto;
margin-left: auto;
}
#content {
height: auto;
width: 1000px;
margin-right: auto;
margin-left: auto;
position: relative;
font-family: Tahoma, Geneva, sans-serif;
font-size: 14px;
padding-top: 15px;
padding-bottom: 20px;
text-align: justify;
}
#footer {
height: auto;
width: 1000px;
margin-right: auto;
margin-left: auto;
position: relative;
}
#con1 {
float: left;
height: auto;
width: 150px;
font-family: Tahoma, Geneva, sans-serif;
font-size: 14px;
87
}
#con2 {
float: right;
height: auto;
width: 800px;
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
position: relative;
}
#s1 {
height: auto;
width: auto;
font-family: Tahoma, Geneva, sans-serif;
font-size: 12px;
}
#s2 {
height: auto;
width: auto;
font-family: Tahoma, Geneva, sans-serif;
font-size: 16px;
font-weight: bold;
}
fieldset {
background-color: #D5D5BF;
}
.forggg {
width: 500px;
}
h2 {
font-family: Tahoma, Geneva, sans-serif;
}
#f1 {
height: auto;
width: auto;
}
.but {
width: 100px;
height: 35px;
font-size: 14px;
}
.centre {
text-align: center;
}
.butt {
height: 35px;
}
</style>
<style type="text/css">
body {
88
margin-top: 15px;
margin-bottom: 15px;
}
</style>
<link href="../customer/SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
<script src="../customer/SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
</head>
<body>
<div id="outercon">
<div id="head"><img src="../image/banner.jpg" width="1000" height="120" /></div>
<div id="content">
Uniben Maingate car rental (UMCR) organization gives car rental service mainly to students and staffs in
and around the school campuses. The scope of this project is developing web based car rental system for
Uniben Maingate car rental (UMCR). The main functions covered in this project include online car rental
and reservation. Customers as well as the organization’s staff will be able to use the system
effectively.
<br />
<b><br />
Vision</b>:<br />
We are growth-oriented car rental organization by efficiently serving value-conscious customers for all of
their car rental occasions.<br />
<br />
<br />
<br />
<b> WELCOME ADMINISTRATOR</b>
</div>
<div id="footer">
<div id="con1" style="border-radius:8px 8px 8px 8px; box-shadow:2px 2px 7px #666666">
<ul id="MenuBar1" class="MenuBarVertical">
<li><a href="index.php">Add Cab</a></li>
<li><a href="cab.php">Cab Info</a></li>
<li><a href="staff.php">Add Staff</a></li>
<li><a href="order.php">View Orders</a></li>
<li><a href="return.php">Return Cab</a></li>
<li><a href="password.php">Change Password</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
<div id="con2">
<div id="s2"> VIEW CAB ORDER<br />
</div>
<div id="s1"><br />
<?php
89
$sql = "SELECT orders.id, customer.firstname, lastname, address, phone, reciept, timed, hours,
amount, car.car_number FROM customer, orders, car where orders.customer_id = customer.id and
orders.cab_id = car.id and orders.delivered = 0";
$query = mysql_query($sql);
$num = mysql_num_rows($query);
?>
<table width="100%" border="1" cellspacing="0" cellpadding="6"><br />
<?php
if($num > 0){
?>
<tr class="centre">
<td width="10%"><strong>FIRSTNAME</strong></td>
<td width="10%"><strong>SURNAME</strong></td>
<td width="10%"><strong>ADDRESS</strong></td>
<td width="10%"><strong>MOBILE</strong></td>
<td width="10%"><strong>RECEIPT</strong></td>
<td width="10%"><strong>DELIVERY</strong></td>
<td width="10%"><strong>HOURS</strong></td>
<td width="10%"><strong>AMOUNT</strong></td>
<td width="10%"><strong>NUMBER</strong></td>
<td width="10%"> </td>
</tr>
<?PHP
while($row = mysql_fetch_array($query)){
?>
<tr class="centre">
<td width="10%"><?php echo strtoupper($row['lastname']); ?></td>
<td width="10%"><?php echo strtoupper($row['firstname']) ?></td>
<td width="10%"><?php echo $row['address'] ?></td>
<td width="10%"><?php echo $row['phone'] ?></td>
<td width="10%"><?php echo $row['reciept'] ?></td>
<td width="10%"><?php echo $row['timed'] ?></td>
<td width="10%"><?php echo $row['hours'] ?></td>
<td width="10%"><?php echo $row['amount'] ?></td>
<td width="10%"><?php echo $row['car_number'] ?></td>
<td width="10%"><a href="order.php?package=<?php echo $row['id']; ?>">PACKAGE</a></td>
</tr>
<?php
}
}else{
echo "<b>• <-- NO ORDER MADE | EMPTY ORDER --></b>";
}
?>
</table>
</div>
<br />
90
</div>
</div>
</div>
<script type="text/javascript">
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
{imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
</script>
</body>
</html>
LOGOUT PAGE
<?php
session_start();
session_destroy();
header("location: ../index.php");
?>
91