Download as pdf or txt
Download as pdf or txt
You are on page 1of 38

VISVESVARAYA TECHNOLOGICAL UNIVERSITY

“Jnana Sangama”, Belagavi-590018

A
Mini project Report
on
“SPORTS CLUB MANAGEMENT SYSTEM”
SUBMITTED IN PARTIAL FULFILLMENT FOR 5TH SEMESTER
BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING
SUBMITTED BY

SHAMA S KOLHAR [1JB20CS109]


SHREYA GUPTA [1JB20CS116]

Under the Guidance of


Mrs. Prakruthi M K
Assistant Professor
Dept of CSE, SJBIT

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING


SJB INSTITUTE OF TECHNOLOGY
No.67, BGS Health & Education City, Dr. Vishnuvardhan Rd, Kengeri,
Bengaluru, Karnataka 560060.
2022-23
|| Jai Sri Gurudev ||
Sri Adichunchanagiri Shikshana Trust ®
SJB INSTITUTE OF TECHNOLOGY
No.67, BGS Health & Education City, Dr. Vishnuvardhan Rd, Kengeri, Bengaluru, Karnataka 560060

Department of Computer Science and Engineering

CERTIFICATE

Certified that the DBMS Mini Project entitled “SPORTS CLUB MANAGEMENT SYSTEM”
carried out by Shama S Kolhar, Shreya Gupta bearing USN 1JB20CS109 and 1JB20CS116 are bonafide
students of SJB Institute of Technology in partial fulfilment for 5th Semester of BACHELOR OF
ENGINEERING in COMPUTER SCIENCE AND ENGINEERING of the Visvesvaraya Technological
University, Belagavi during the academic year 2022-23. It is certified that all corrections/suggestions
indicated for Internal Assessment have been incorporated in the Report deposited in the Departmental library.
The mini project report has been approved as it satisfies the academic requirements in respect of mini project
prescribed for the said Degree.

Signature of Guide Signature of HOD

Mrs. Prakruthi M K Dr. Krishna A N


Assistant professor Professor & Head
Dept. of CSE, SJBIT Dept. of CSE, SJBIT

Internal Examiner
External Examiner
We would like to express our profound grateful to His Divine Soul Jagadguru Padmabhushan Sri Sri Sri Dr.
Balagangadharanatha Mahaswamiji and His Holiness Jagadguru Sri Sri Sri Dr. Nirmalanandanatha
Mahaswamiji for providing us an opportunity to complete our academics in this esteemed institution.

We would also like to express our profound thanks to Revered Sri Sri Dr. Prakashnath Swamiji, Managing
Director, SJB Institute of Technology, for his continuous support in providing amenities to carry out this Mini
Project in this admired institution.

We express our gratitude to Dr. K. V. Mahendra Prashanth, Principal, SJB Institute of Technology, for providing
us an excellent facility and academic ambience; which have helped us in satisfactory completion of Mini Project
work.

We extend our sincere thanks to Dr. Krishan A N, Head of the Department, Computer Science and Engineering
for providing us an invaluable support throughout the period of our Mini project work.

We wish to express our heartfelt gratitude to our guide Prakruthi M K, for her valuable guidance, suggestions
and cheerful encouragement during the entire period of our Mini Project work.

Finally, we take this opportunity to extend our earnest gratitude and respect to our parents, Teaching & Non
teaching staffs of the department, the library staff and all our friends, who have directly or indirectly supported
us during the period of our Mini Project work.

Regards,

Shama S Kolhar [1JB20CS109]


Shreya Gupta [1JB20CS116]
ABSTRACT

The project ‘THE SPORTS CLUB MANAGEMENT SYSTEM’ creates a software that store and manages all
the data needed to describe the personal data of the members and their framework within an organization. It
includes definition of various levels of hierarchy in an organization, the price structure pertaining to every
element in this hierarchy, the description of every member functioning in the club and the overall sports club
database which integrates all the elements mentioned above.

It has a database administration that has access to the entire database, in regards with
viewing and update of information. The exclusive right is implemented using authorized access. Also viewing
all data and editing of personal data can be done by admin any admin, this also using authorized access.

We will develop this software using HTML, CSS. The design tool used in this project is PHP.
The preferred IDE is Microsoft visual studio code. The server used to run the project is XAMPP. The database
used in the backend is MySQL.

II
TABLE OF CONTENTS

Acknowledgement I
Abstract II
Table of contents III
List of figures V
List of tables VI

Chapter 1
Introduction
1.1 Introduction………………………………………………………………………….1
1.2 Objectives……………………………………………………………………………1
1.3 History of database system…………………………………………………………..1

Chapter 2
System requirements
2.1 Introduction…………………………………………………………………………3
2.2 Overview of the components used
2.2.1 PHP……………………………………………………………………..4
2.2.2 MYSQL…………………………………………………………………4
2.2.3 XAMPP…………………………………………………………………5
2.3 Software design……………………………………………………………………..5
2.4 Hardware design…………………………………………………………………….6

Chapter 3
System design
3.1 Introduction………………………………………………………………………..7
3.2 ER Diagram………………………………………………………………………..8
3.3 Schema Diagram…………………………………………………………………...9
3.4 Data flow model……………………………………………………………………9

III
Chapter 4
Implementation
4.1 Code Snippets
4.1.1 Database connection………………………………………………….11
4.1.2 Login page…………………………………………………………….12
4.1.3 Add members………………………………………………………….14
4.1.4 Payment……………………………………………………………….16
4.2 SQL Procedures and Triggers
4.2.1 Triggers……………………………………………………………….19
4.2.2 Stored Procedure……………………………………………………...20

Chapter 5
Results and discussions
5.1 Snapshots………………………………………………………………………21
5.2 Tables…………………………………………………………………………..25

Conclusion……………………………………………………………………………………29

Reference………………………………………………………………………………………30

IV
LIST OF FIGURES

Fig No. Description Page No.


Fig 2.1 Web Server……………………………………………………..5
Fig 3.1 ER Diagram…………………………………………………….8
Fig 3.2 Schema Diagram………………………………………………..9
Fig 3.3 Data Flow Model……………………………………………….10
Fig 4.1 Triggers………………………………………………………….19
Fig 4.2 Stored Procedure…………………………………………………20
Fig 5.1 Admin Login……………………………………………………..21
Fig 5.2 Dashboard………………………………………………………..22
Fig 5.3 Member Registration…………………………………………….22
Fig 5.4 Payments…………………………………………………………23
Fig 5.5 Health Status……………………………………………………..23
Fig 5.6 Sports Plan……………………………………………………….24
Fig 5.7 Sports Routine……………………………………………………24
Fig 5.8 Profile…………………………………………………………….24

V
LIST OF TABLES

Table No. Description Page No.


5.2.1 Address of sports club members……………………………..25
5.2.2 Credentials of sports club admin……………………………..26
5.2.3 Health status of member……………………………………...26
5.2.4 Plans available in sports club…………………………………27
5.2.5 Details of members……………………………………………27
5.2.6 Timetable of sports……………………………………………28

VI
Sports Club Management System

Chapter 1
INTRODUCTION

1.1 Introduction
The Sports Club Management System project deals with registering new members, plans,
payments, routine and managing the members for the club. The project has complete access for the
curd operations that are to create, read, update and delete the database entries. At first you need to
login as this system is totally controlled by the admin/owner and then register the members for the
club and check their health status and view the total income per month. Now you can assign different
routine to different members and also check the health status which can be viewed and edited too and
finally check the payments according to the plan they have chosen. It has a database administration
that has access to the entire database, in regards with viewing, updating and deleting the information.

1.2 Objectives
The Sports Club Management software is very user friendly and appealing. The Human
objective of the system is to maintain and retrieve information about the members and the sports they
will play on which day of the week and at what time in the sports club. The system is fairly simple in
design and implementation.
The main objective of this system can be summarized as follows:
 Design of a GUI portal for managing the Sports Club for the admin.
 Insertion of member’s data, plans and managing of payment and health status.
 Monthly Payment for monthly plan and yearly payment of yearly plan.
 Computerized manipulation and management of member data and id.

1.3 History Of Database System


Following the technology progress in the areas of processors, computer memory, computer storage
and computer networks, the sizes, capabilities and performance of database rand their respective
DBMSs have grown in order of magnitude. The development of database technology can be divided
into three eras based on data model or structure: navigational, SQL/relational. The two main early.
Navigational data models were the hierarchical model, epitomized by IBMs IMS system, and the

Department of CSE,SJBIT 2022-23 Page 1


Sports Club Management System

CODASYL model(network model), implemented in a number of products such as IDMS.

The relational model employs sets of ledger-style tables, each used for a
different type of entity. Only in the mid-1980s did computing hardware become powerful enough to
allow the wide deployment of relational systems (DBMSs plus applications). By the early 1990s,
however, relational systems dominated in all large-scale data processing applications, and as of 2015
they remain dominant: IBM DB2, Oracle, MySQL, and Microsoft SQL Server are the top DBMS. The
dominant database language, standardized SQL for the relational model, has influenced database
languages for other data models.

Department of CSE,SJBIT 2022-23 Page 2


Sports Club Management System

CHAPTER 2

SOFTWARE REQUIREMENTS

2.1 Introduction
A high-level requirements specification is required. The purpose of the requirements
analysis is to identify requirements for the proposed system. The emphasis is on the discovery of user
requirements catalogue. Each requirement is recorded in the requirements catalogue on requirements
catalogue entry form. A copy of the form is in the appendix section of the standards manual. The form
should be completed as follows:

 Project/System- the proposed system name or an abbreviation of it.


 Analyst- your name as the analyst on this project.
 Date-the date the entry was made in the catalogue, whether it is a new entry or an amended
entry, i.e., another version of an existing entry.
 Version- a version number is assigned to a requirement. The initial version of a requirement
is number one. However, the requirement may need to be updated in the course of the
development of the project, so then the requirements catalogue entry will be replaced with
the updated version of the
 Status- the status of the requirement will be either ongoing or complete. When the status is
ongoing the status box will be empty, and when the status is complete the status box will
contain a tick.
 Page- page numbering will be maintained within the catalogue.
 Source/Origin- is the originator of the requirement, the person with the responsibility for
negotiation about the requirement.
 Requirement Number- a unique requirement number is assigned to each requirement. The
requirement number is an incremental number starting with one.
 Priority- a priority is assigned to the requirement. The priority given is agreed between the
originator and the analyst. There are three priority levels: high(H), medium(M), low(L).

Department of CSE,SJBIT 2022-23 Page 3


Sports Club Management System

2.2 PHP

PHP is a servlet-side scripting language designed primarily for web development but also
used as a general-purpose programming language. Originally created by Rasmus Lerdorf in I994, the
PHP reference implementation is now produced by The PHP Development Team. PHP originally
stood for Personal Home Page, but it now stands for the recursive acronym PHP: Hypertext Pre-
processor. PHP code may be embedded into HTML or HTML5 markup, or it can be used in
combination with various web template systems, web content management systems and web
frameworks. PHP code is usually processed by a PHP interpreter implemented as a module in the web
server or as a Common Gateway interface (CGI) executable. PHP code may also be executed with a
command-line interface (CLI) and can be used to implement standalone graphical applications.
The standard PHP interpreter, powered by the Zend Engine, is free
software released under the PHP License. PHP has been widely ported and can be deployed on most
web servers on almost every operating system and platform, free of charge. The PHP language evolved
without a written formal specification or standard until 2014, leaving the canonical PHP interpreter as
a de facto standard. Since 2014 work has gone on to create a formal PHP specification. PHP is a
scripting language that helps people make web pages more interactive by allowing them to do more
things. A website programmed with PHP can have pages that are password protected. A website with
no programming cannot do this without other complex things. Standard PHP file extensions are: php,
php3 or, HTML, but a web server can be set up to use any extension

2.3 MySQL

MySQL is an open-source relational database Management System (RDBMS). MySQL is


written in C and C++. Its SQL parser is written in yacc, but it uses a home- brewed lexical analyzer.
MySQL works on many system platforms, including Linux, macOS, Microsoft Windows, NetBSD.
MySQL is offered under two different editions: the open-source MySQL Community Server and the
proprietary Enterprise Server. MySQL Enterprise Server is differentiated by a series of proprietary
extensions which install as server plugins, but otherwise shares the version numbering system and is
built from the same code base. Major features that are available in MySQL are a broad subset of ANSI
SQL 99, as well as extensions, Cross-platform support, Stored procedures, using a procedural language
that closely adheres to SQL/PSM, Triggers, Cursors, Updatable views, Online DDL when using the
InnoDB Storage Engine. Many programming languages with language- specific APIs include libraries
for accessing MySQL databases. These include MySQL Connector/Net for integration with

Department of CSE,SJBIT 2022-23 Page 4


Sports Club Management System

Microsoft's Visual Studio and the JDBC driver for Java. In addition, an ODBC interface called
MySQL Connector/ODBC allows additional programming languages that support the ODBC interface
to communicate with a MySQL database, such as ASP or ColdFus

2.4 XAMPP
XAMPP is a free and open-source cross-platform web server solution stack package developed
by Apache Friends, consisting mainly of the Apache HTTP Server, MariaDB database, and interpreters
for scripts written in the PHP and Perl programming languages. Since most actual web server
deployments use the same components as XAMPP, it makes transitioning from a local test server to a
live server possible. XAMPP's ease of deployment means a XAMPP stack can be installed quickly and
simply on an operating system by a developer, with the advantage a number of common add-in
applications such as Wordpress and Joomla! can also be installed with similar ease using Bitnami.

Figure 2.1 Web Server

2.5 Software Specification


 Front end: HTML5, CSS, PHP
 Connection/ Controller: PHP
 Back-end Database: MySQL
 Server: Apache / XAMPP server
 Operating System: Windows 11

Department of CSE, SJBIT 2022-23 Page 5


Sports Club Management System

2.5 Hardware Requirements


 Processor: AMD Ryzen 5 4600H with Radeon Graphics
 RAM: 2GB or more
 Hard Disk: 80GB or more

Department of CSE, SJBIT 2022-23 Page 6


Sports Club Management System

CHAPTER 3
SYSTEM DESIGN
3.1 INTRODUCTION
Systems design is the process or art of defining the architecture, components, modules,
interfaces, and data for a system to satisfy specified requirements. One could see it as the application
of systems theory to product development. This Project is implemented using XAMPP, which is
proven to be a very efficient tool in the field of PHP programming. It is done under Windows11
platform. . PHP programming language is used to implement the entire code. Interface to the program
is provided with the help of MySQL.
The Sports Club management project deals the adding new Sports Club plans and managing
the members for the Sports Club. The project has complete access for the crud operations that are to
create, read, update and delete the database entries . At first you need to login as this system is totally
controlled by the admin/owner and then register the members for the club and check their health status
and view the total income per month . Now you can assign different routine to different members and
also check the health status which can be viewed and edited too and finally check the payments
according to the plan they have chosen. It has a database administration that has access to the entire
database, in regards with viewing and deletion of information.
Existing System:
Here the existing system is nothing but a manual system in which the admin has to fill the
member’s Sports Club details in an excel sheet and send it to their supervisor then the supervisor has to
merge all the member information details and arrange them in to a single sheet. Maintaining a clean
record of all the members is a tedious job in this process.
Drawback:
 Paperback records are hard to maintain.
 Searching for a member’s information can be gruesome task.
 Doesn’t provide Security.
 Difficulty in updating the records.
 More manual hours is needed to maintain the records.
 Updating the member on deadline for payment is difficult.
One way to overcome all these difficulties is so store all the information in database.
The computerization helps mitigate a lot of drawback and streamlines the process.

Department of CSE, SJBIT 2022-23 Page 7


Sports Club Management System

Proposed System:
Performance Management System is to replace the existing manual system with a software
solution. It allows all the employees in different sections of the club to work together and manage a
single record. Different areas of the Sports Club can be managed in different tabs by different people.
Other Computerized System advantages:
 Faster processing
 Centralized database helps in avoiding conflicts.
 Easy to use GUI that does not re

3.2 ER Diagram
An entity–relationship model (ER model) describes inter-related things of interest in a
specific domain of knowledge. An ER model is composed of entity types (which classify the things of
interest) and specifies relationships that can exist between instances of those entity types. In software
engineering an ER model is commonly formed to represent things that a business needs to remember
in order to perform business processes. Consequently, the ER model becomes an abstract data model
that defines a data or information structure that can be implemented in a database, typically a relational
database.

Figure 3.1: Entity Relationship Diagram

Department of CSE, SJBIT 2022-23 Page 8


Sports Club Management System

3.3 Schema Diagram


The database schema of a database system is its structure described in a formal
language supported by the database Management System (DBMS). The term "schema" refers to the
organization of data as a blueprint of how the database is constructed (divided into database tables in
the case of relational databases). The formal definition of a database schema is a set of formulas
(sentences) called integrity constraints imposed on a database.

Figure 3.2: Schema diagram

3.4 Data Flow Diagram


A Data Flow Diagram (DFD) is a structured analysis and design tool that can be used
for flowcharting. A DFD is a network that describes the flow of data and the processes that change or
transform the data throughout a system. This network is constructed by using a set of symbols that do
not imply any physical implementation. It has the purpose of clarifying system requirements and
identifying major transformations. So it is the starting point of the design phase that functionally
decomposes the requirements specifications down to the lowest level of detail. DFD can be considered
to an abstraction of the logic of an information-oriented or a process-oriented system flow-chart. For
these reasons DFD’s are often referred to as logical data flow diagrams.

Department of CSE, SJBIT 2022-23 Page 9


Sports Club Management System

Figure 3.3: Data Flow Diagram

Department of CSE, SJBIT 2022-23 Page 10


Sports Club Management System

Chapter 4
Implementation
4.1 Code Snippets
4.1.1 Database Connection: This is a code snippet to show how PHP is used to connect to
the local MySQL database using the localhost server.

<?php
$host = "localhost";
$username = "root";
$password = "";
$db_name = "sports_club_db";
$con = mysqli_connect($host, $username, $password, $db_name);
if (!$con) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?>
<?php
function page_protect()
{
session_start();

global $db;
if (isset($_SESSION['HTTP_USER_AGENT'])) {
if ($_SESSION['HTTP_USER_AGENT'] != md5($_SERVER['HTTP_USER_AGENT'])) {
session_destroy();
echo "<meta http-equiv='refresh' content='0; url=../login/'>";
exit();
}
}
if (!isset($_SESSION['user_data']) && !isset($_SESSION['logged']) &&
!isset($_SESSION['auth_level'])) {
session_destroy();

Department of CSE, SJBIT 2022-23 Page 11


Sports Club Management System

echo "<meta http-equiv='refresh' content='0; url=../login/'>";


exit();
}
else {
}
}
?>
4.1.2 Login Page
<?php
include './include/db_conn.php';
$user_id_auth = ltrim($_POST['user_id_auth']);
$user_id_auth = rtrim($user_id_auth);
$pass_key = ltrim($_POST['pass_key']);
$pass_key = rtrim($_POST['pass_key']);
$user_id_auth = stripslashes($user_id_auth);
$pass_key = stripslashes($pass_key);
if ($pass_key == "" && $user_id_auth == "") {
echo "<head><script>alert('Username and Password can be
empty');</script></head></html>";
echo "<meta http-equiv='refresh' content='0; url=index.php'>";
} else if ($pass_key == "") {
echo "<head><script>alert('Password can be empty');</script></head></html>";
echo "<meta http-equiv='refresh' content='0; url=index.php'>";
} else if ($user_id_auth == "") {
echo "<head><script>alert('Username can be empty');</script></head></html>";
echo "<meta http-equiv='refresh' content='0; url=index.php'>";
} else {
$user_id_auth = mysqli_real_escape_string($con, $user_id_auth);
$pass_key = mysqli_real_escape_string($con, $pass_key);

Department of CSE, SJBIT 2022-23 Page 12


Sports Club Management System

$sql = "SELECT * FROM admin WHERE username='$user_id_auth' and


pass_key='$pass_key'";
$result = mysqli_query($con, $sql);
$count = mysqli_num_rows($result);
if ($count == 1) {
$row = mysqli_fetch_assoc($result);
session_start();
$_SESSION['user_data'] = $user_id_auth;
$_SESSION['logged'] = "start";
// $_SESSION['auth_level'] = $row['level'];
$_SESSION['full_name'] = $user_id_auth;
$_SESSION['username'] = $row['Full_name'];
// $auth_l_x = $_SESSION['auth_level'];
// if ($auth_l_x == 5) {
header("location: ./dashboard/admin/");
// } else if ($auth_l_x == 4) {
// header("location: ../dashboard/cashier/");
// } else if ($auth_l_x == 3) {
// header("location: ../dashboard/member/");
// } else {
// header("location: ../login/");
// }
} else {
include 'index.php';
echo "<html><head><script>alert('Username OR Password is
Invalid');</script></head></html>";
}}
?>

Department of CSE, SJBIT 2022-23 Page 13


Sports Club Management System

4.1.3 Registration of members


<?php
require '../../include/db_conn.php';
page_protect();

$memID = $_POST['m_id'];
$uname = $_POST['u_name'];
$stname = $_POST['street_name'];
$city = $_POST['city'];
$zipcode = $_POST['zipcode'];
$state = $_POST['state'];
$gender = $_POST['gender'];
$dob = $_POST['dob'];
$phn = $_POST['mobile'];
$email = $_POST['email'];
$jdate = $_POST['jdate'];
$plan = $_POST['plan'];
$query = "insert into
users(
userid,
username,
gender,
mobile,
email,
dob,
joining_date
)
values(
'$memID',
'$uname',
'$gender',
'$phn',
'$email',

Department of CSE, SJBIT 2022-23 Page 14


Sports Club Management System

'$dob',
'$jdate'
)";
if (mysqli_query($con, $query) == 1) {
$query1 = "select * from plan where pid='$plan'";
$result = mysqli_query($con, $query1);

if ($result) {
$value = mysqli_fetch_row($result);
date_default_timezone_set("Asia/Calcutta");
$d = strtotime("+" . $value[3] . " Months");
$cdate = date("Y-m-d");
$expiredate = date("Y-m-d", $d);
$query2 = "insert into enrolls_to(pid,uid,paid_date,expire,renewal)
values('$plan','$memID','$cdate','$expiredate','yes')";
if (mysqli_query($con, $query2) == 1)
$query4 = "insert into health_status(uid) values('$memID')";
if (mysqli_query($con, $query4) == 1) {

$query5 = "insert into address(id,streetName,state,city,zipcode) values


('$memID','$stname','$state','$city','$zipcode')";
if (mysqli_query($con, $query5) == 1) {
echo "<head><script>alert('Member Added ');</script></head></html>";
echo "<meta http-equiv='refresh' content='0; url=new_entry.php'>";
} else {
echo "<head><script>alert('Member Added Failed');</script></head></html>";
echo "error: " . mysqli_error($con);
$query3 = "DELETE FROM users WHERE userid='$memID'";
mysqli_query($con, $query3);
}
} else {
echo "<head><script>alert('Member Added Failed');</script></head></html>";
echo "error: " . mysqli_error($con);

Department of CSE, SJBIT 2022-23 Page 15


Sports Club Management System

$query3 = "DELETE FROM users WHERE userid='$memID'";


mysqli_query($con, $query3);
}

} else {
echo "<head><script>alert('Member Added Failed');</script></head></html>";
echo "error: " . mysqli_error($con);
$query3 = "DELETE FROM users WHERE userid='$memID'";
mysqli_query($con, $query3);
}

} else {
echo "<head><script>alert('Member Added Failed');</script></head></html>";
echo "error: " . mysqli_error($con);
$query3 = "DELETE FROM users WHERE userid='$memID'";
mysqli_query($con, $query3);
}

} else {
echo "<head><script>alert('Member Added Failed');</script></head></html>";
echo "error: " . mysqli_error($con);
}
?>

4.1.4 Payments done during the registration


<?php
require '../../include/db_conn.php';
page_protect();
?>
<!DOCTYPE html>
<html lang="en">
<head>

Department of CSE, SJBIT 2022-23 Page 16


Sports Club Management System

<title>SPORTS CLUB | Payments</title>


<link rel="stylesheet" href="../../css/style.css" id="style-resource-5">
<script type="text/javascript" src="../../js/Script.js"></script>
<link rel="stylesheet" href="../../css/dashMain.css">
<link rel="stylesheet" type="text/css" href="../../css/entypo.css">
<link href="a1style.css" type="text/css" rel="stylesheet">
<style>
.page-container .sidebar-menu #main-menu li#paymnt>a {
background-color: #2b303a;
color: #ffffff;
}
</style>
</head>
<body class="page-body page-fade" onload="collapseSidebar()">
<div class="page-container sidebar-collapsed" id="navbarcollapse">
<div class="sidebar-me>
<header class="logo-env">
<!-- logo -->
<div class="logo">
<a href="main.php">
<img src="logo1.png" alt="" width="192" height="80" />
</a>
</div>
<!-- logo collapse icon -->
<div class="sidebar-collapse" onclick="collapseSidebar()">
<a href="#"
class="sidebar-collapse-icon with-animation"><!-- add class "with-animation" if you
want sidebar to have animation during expanding/collapsing transition -->
<i class="entypo-menu"></i>
</a>
</div>
</header>
<?php include('nav.php'); ?>

Department of CSE, SJBIT 2022-23 Page 17


Sports Club Management System

</div>
<div class="main-content">
<div class="row">
<!-- Profile Info and Notifications -->
<div class="col-md-6 col-sm-8 clearfix">
</div>
<!-- Raw Links -->
<div class="col-md-6 col-sm-4 clearfix hidden-xs">
<ul class="list-inline links-list pull-right">
<li>Welcome <?php echo $_SESSION['full_name']; ?>
</li>
<li>
<a href="logout.php">
Log Out <i class="entypo-logout right"></i>
</a>
</li>
</ul>
</div>
</div>
<h2>Payments</h2>
<hr />
<table class="table table-bordered datatable" id="table-1" border=1 (color=white)>
<thead>
<tr>
<th>Sl.No</th>
<th>Membership Expiry</th>
<th>Name</th>
<th>Member ID</th>
<th>Phone</th>
<th>E-Mail</th>
<th>Gender</th>
<th>Action</th>
</tr>
</thead>

Department of CSE, SJBIT 2022-23 Page 18


Sports Club Management System

4.2 SQL Stored Procedures and Triggers


4.2.1 Triggers:
CREATE TRIGGER `deletelog` BEFORE DELETE ON `users`
FOR EACH ROW insert into log_users values(null,old.userid,'deleted',now())

CREATE TRIGGER `insertlog` AFTER INSERT ON `users`


FOR EACH ROW INSERT INTO log_users VALUES(null,NEW.userid,'inserted',now())

CREATE TRIGGER `updatelog` AFTER UPDATE ON `users`


FOR EACH ROW insert INTO log_users values(null,new.use())

Figure 4.1 Triggers

Description: This trigger is used to display the action performed in the users table i.e.
insertion, deletion or update and reflects these changes in log users tables

Department of CSE, SJBIT 2022-23 Page 19


Sports Club Management System

4.2.2 Stored Procedure


DELIMITER $$
CREATE DEFINER=`root`@`localhost`
PROCEDURE `countGender`()
SELECT gender , COUNT(*) from users group by gender$$
DELIMITER ;

Figure 4.2: Stored Procedure

Department of CSE, SJBIT 2022-23 Page 20


Sports Club Management System

Chapter 5
RESULTS AND DISCUSSIONS
5.1 Snapshots
The below figure refers to the initial bootup page of the application

Figure 5.1: Admin Login

Department of CSE, SJBIT 2022-23 Page 21


Sports Club Management System

The below figure refers to Dashboard page if the login username and password is correct and you get
logged in the system

Figure 5.2: Dashboard

The below figure refers to the member registration

Figure 5.3: Member Registration

Department of CSE, SJBIT 2022-23 Page 22


Sports Club Management System

The figure below refers to the Payments of membership

Figure 5.4: Payments

The below figure refers to the Health Status entry for the member

Figure 5.5: Health Status

Department of CSE, SJBIT 2022-23 Page 23


Sports Club Management System

The below figure refers to the different sports plans available and can be added and edited

Figure 5.6: Sports plan

The below figure refers to Sports Routine which is followed

Figure 5.7: Sports Routine

Department of CSE, SJBIT 2022-23 Page 24


Sports Club Management System

The below figure refers to the admin login detailed Profile

Figure 5.8: Profile

5.2 Tables
Table 5.2.1 Address of sports club member

Department of CSE, SJBIT 2022-23 Page 25


Sports Club Management System

Table 5.2.2 Credentials of sports club admin

Table 5.2.3 Health Status of members

Department of CSE, SJBIT 2022-23 Page 26


Sports Club Management System

Table 5.2.4 Plans available in sports club for members

Table 5.2.5 Details of members in the sports club

Department of CSE, SJBIT 2022-23 Page 27


Sports Club Management System

Table 5.2.6 Time table of sports club

Department of CSE, SJBIT 2022-23 Page 28


Sports Club Management System

CONCLUSION

The maintenance of Sports Club will be well planned and organized. The data will be stored efficiency
with optimal disk space consumption in data stores which will help in retrieval of information as well
as its storage under resource constraints.
The level of accuracy in the proposed system will be higher. All operations would
conform to integrity constraints and correctness, and it will be ensured that whatever information is
received at or sent from the center is accurate.
The reliability of the proposed system will be high due to the above-mentioned reasons.
This comes from the fact that only the data which conforms accuracy clause would be allowed to
commit back to the disk. Other properties like transaction management and rollback during system or
power failure etc. get automatically taken care of by the SQL systems, which is undoubtedly an
excellent choice of the DBMS system. Properties of atomicity, consistency, isolation and data security
are intrinsically maintained

Department of CSE, SJBIT 2022-23 Page 29


Sports Club Management System

REFERENCES

 “Fundamentals of Database Systems” by Ramez Elmasri , Shamkant Navathe ,7th edition,


Pearson Education India.

 W3 Schools (HTML, CSS and PHP reference)- https://www.w3schools.com/

 The MySQL Documentation- https://dev.mysql.com/doc/

 Wikipedia- https://www.wikipedia.org/triggers -database

 Randy Connolly, Ricardo Hoar, "Fundamentals of Web Development”, 1stEdition, Pearson Education
India.

 PHP Official Documentation- https://php.net/docs.php/

 https://www.tutorialspoint.com

 www.youtube.com

 www.geeksforgeeks.com

Department of CSE, SJBIT 2022-23 Page 30

You might also like