Вы находитесь на странице: 1из 3

Web Application for Managing a sports complex

Adrian tefnescu and Bogdan Ilie


University of Piteti Mathematics-Computer Science department
Piteti, Romania
Abstract. This application aims to help in the management and day to day running of a
sports complex, also serving as a platform to present the services and location to the
general public. All of this is achieved through a Web Application served by a MySQL
database hosted on a web server.

Keywords: database, MySQL, PHP, HTML, etc.

Components
In this section we are going to discuss some basic concepts concerning the
application and its main components: the web interface and the database.

1.1 The Web Interface


The interface aims to provide the client and the administrator with 2 different
action sets, each of them aimed at a different user: the client and the administrator.
The client side aims to inform the client on the available courts and facilities,
allowing them to book a field for a private session, with or without a professional
trainer. The administration side of the website provides access to the reservation
database and also the ability to add new personnel, manage courts and see an
economical overview of the entire complex.

Fig. 1: The Home page design.

Using the client side, the main steps that should be followed in order to book a
court are:
The customer is identified into the database in order to be allowed to book
a court (if the customer does not exist into the database, he will be added
by completing the necessary information);
The application checks into the database if the desired court is available at
the date and hour specified by the customer;
If the court is available and there is an unoccupied employee, the booking
is made by creating a new entry into a specific table;
If the court is not available or all the employees are busy, the customer is
asked to choose another day or another hour for the booking.
The administrative side of the web application offers some different choices: the
ability to assign new roles to the users, the ability to add or remove fields from the
rotation, and the ability to see an overview of the activity, analyzing the activity of
coaches and their booked hours. All of these functions are done through MySQL
views.

Fig. 2: The Personnel page.

1.2 The databases design


Considering the features that were mentioned, the database should provide the
following functions:
Keeping a list of all the companys customers;
Keeping a list with all the companys employees and their qualifications;

Keeping a list with all the courts that are managed by the company and
their specific features in order to help the customers to choose the most
appropriate one;
Providing the possibility to book a specific court after seeing what
bookings were made previously in order to check if the desired court is
available;
Providing the possibility to check each employees activity at a specific
moment of time;
Performing analyzes and statistics after some periods (e.g. a week, a
month, etc.);
Granting some special rights for specific users (e. g. companys
employees)
Considering the facts that were shown previously, there was made the following
databases relational model (Fig. 3).

Fig. 3: The databases relational model.


For some specific reasons, the databases components were named by putting the
first letter of the word corresponding their type (t for tables, v for views, etc.)
before the name.
This database will be programmed using MySQL, a powerful environment
which enables the creation of reliable databases, which can be used in a lot of
applications (web applications, desktop applications, mobile applications, etc.).
The tables were created after the previously shown diagram (Fig. 1) by following
the SQL languages specific rules.

Вам также может понравиться