You are on page 1of 81

ABSTRACT

Sports tournament management is to provide which manages the activity of many sports at a
time. It also manages the selection activity of college students. This application will provide the
information regarding a sports tournament and will provide all necessary details about the tournament.
The user will consume less amount of time when compared to manual paper work through the
automated system. The system will provide the serving activity in quick and easy manner. To maintain
information about the teams participating in the tournament and related to particular sports. The
student’s information will be saved in the database depending on the particular sports. Tournament
venue and date will be maintained in the database. Sports teacher and also sports students can use this
system. There are two roles ADMIN and USER. Admin has all the access and he can create match with
other team, View match details and update the match results.User can register, Login pay the fees, apply
for a match which was created by admin and can see the registers details.

1
INTRODUCTION
The basic aim of the project is to develop a system, which is very simple, user friendly, easy
retrieval and simple access the sports management system project that provides and manages various
club activities such as member registration, registration for various regular and vacation batches and
more. The club management system software is a PHP built system that manages the entire club
activities and provides respective functionality for various types of visitors. This system is built with
respect to managing a Sports club. It allows normal users to avail for club membership, book the ground
for desired days and even enroll for various activities in the club. The club management system is built
keeping in mind various daily activities of a Sports club and the software automates all these club
functionality for easy operation of the club.
This system is providing the multiuser environment. Whenone user is updating forms; the other
user cannot open the same form due to this to avoid conflicts. Security to the data is provided by giving
each customer has specific username and password. Only authorized users can have access to the
system. The system contains two modules are admin and user module. In admin has maintains the club
details and view user details in the system. The users are view details and apply. The project front end is
PHP and back end is MySQL server.

2
SYSTEM ANALYSIS

Existing System
In the existing Sports Event Management system, students are not able to get proper information
about the games conducted in various colleges. The student needs to spend the time to get the
information about the game. The student should attend the venue to get registered for the game which
takes a lot of time.
Disadvantages
 Student cannot view upcoming match details created by admin.
 Students won’t have any dashboard to view their progress in that sports club.
 Students cannot pay through online.
 Admin cannot update the completed match details.

3
Proposed System

The software to be produced is on “Sports Management System (SMS)”. There are 2 users’ i.e.,
the admin and the student. Students register to get username and password for login. He also has the
right to add or modify the given username and password. Using this username and password, students
can login to the system. The first procedure is the student registration. Here the students enter all the
details of a student including the sport they like to participate. All these information will be stored in the
database. Next is the entry of the tournaments. Here depending on the sport, the tournament date and the
venue is saved in the database for further confirmation. A list of players will be displayed and also the
upcoming tournaments will be shown according to the particular sport.

The system also does the selection procedure to the college level and the state level competition.
To the college level all the players are allowed to play. Whereas to the state level, the best players will
be selected from the college level list which will be also saved in the database.

Advantages
 It becomes convenient for members to view completed and upcoming match details
 Admin can create a new match against any team.
 Admin can update the completed match details and score card.
 The system stores and sends all the members details to the admin for requests.
 The system is easy to use and saves human efforts and cost.

4
SYSTEM REQUIREMENTS

Hardware Requirement

 Processor : Intel processor 3.0 GHz


 RAM : 2GB
 Hard disk : 500 GB
 Compact Disk : 650 Mb
 Keyboard : Standard keyboard
 Mouse : Logitech mouse
 Monitor : 15 inch color monitor

Software Requirement

 Front End : PHP


 Back End : MYSQL
 Server : WAMP
 Operating System : Windows OS
 System type : 32-bit or 64-bit Operating System
 IDE : DREAMWEAVER
 DLL : Depends upon the title

5
CHAPTER 2 SYSTEM CONFIGURATION

1 System Architecture

Sport Tournament Management System

Admin User

Login
Login

View sports details


Add sports details

Apply details

Sports intimation
details

6
CHAPTER 3 DIAGRAMATIC REPRESENTATION
UML Diagrams

Use Case Design

7
Class Diagram

8
Sequence Diagram

9
Activity Diagram

10
ER Diagram

11
Trainer Details

Appointment Reports
User Details
Training
Events
Feedback
New Student Booking
Sports Info

Password

Profile
Username Admin

Login
Trainer

Student
Profile

Sports Details Feedback

Appointment
Apply

Fees Events

12
Data Flow Diagram
Level 0:

Sport TournamentManagement System

ADMIN User

Sports Database

Level 1:

Login Admin Database

Maintain club details


Club Database

ADMIN
Add sports details
Sports Database

Report generate
Reports Database

13
Level 2:

Login View sports details


User

Apply details

Sports competition and intimation details

User Database

14
Database Structure
Table for admin

Field Type Nul Default


l
usernam varchar(20) Yes NULL
e
password varchar(20) Yes NULL

Table for apply

Field Type Nul Default


l
id int(11) Yes NULL
uname varchar(20) Yes NULL
sid int(11) Yes NULL
trainer varchar(20) Yes NULL
sport varchar(30) Yes NULL
duratio varchar(30) Yes NULL
n
fees double Yes NULL
rdate varchar(15) Yes NULL
month int(11) Yes NULL
year int(11) Yes NULL
appoint varchar(100) Yes NULL
status int(11) Yes NULL

Table for event

Field Type Null Default


id int(11) Yes NULL
title varchar(100 Yes NULL
)
event varchar(200 Yes NULL
)
venue varchar(50) Yes NULL
rdate varchar(15) Yes NULL
15
rtime varchar(15) Yes NULL

Table for feedback

Field Type Null Default


id int(11) Yes NULL
uname varchar(20) Yes NULL
feedback varchar(100) Yes NULL
rdate varchar(15) Yes NULL

Table for register

Field Type Null Default


id int(11) Yes NULL
name varchar(20 Yes NULL
)
gender varchar(10 Yes NULL
)
dob varchar(15 Yes NULL
)
address varchar(50 Yes NULL
)
mobile bigint(20) Yes NULL
email varchar(30 Yes NULL
)
uname varchar(20 Yes NULL
)
pass varchar(20 Yes NULL
)

Table for sport

Field Type Null Default


id int(11) Yes NULL
sport varchar(30) Yes NULL
duration varchar(30) Yes NULL
fees double Yes NULL

Table for trainer

16
Field Type Null Default
id int(11) Yes NULL
name varchar(20) Yes NULL
mobile bigint(20) Yes NULL
email varchar(30) Yes NULL
uname varchar(20) Yes NULL
specialized varchar(100) Yes NULL
experience varchar(100) Yes NULL
pass varchar(20) Yes NULL

CHAPTER 4 MODULES
Modules List
 Admin Login
 Tournament Details
 Schedules
 Register Details
 Report
 User Registration
 User Login
 View Tournament Details
 Schedule Information
 Apply Event
 Feedback

MODULES DESCRIPTION

Admin

Admin Login
The admin can only login in this page. It checks whether the username and password are correct,
if correct allows the administrator to update or view the details else displays the error message.
Tournament Details
In the module, admin will maintain recorded to store in the database. All information’s are view
to the administrator. Admin can managed to collection of tournament details are stored in the database.

17
Schedules

In this module describes the user activities in this system. Delivery information should be
monitor and managed by the admin. Then admin have the rights to stop the schedules to the specified
user.

Register Details
In the module, admin will maintain the registers recorded to store in the database. All
information’s are view to the user details. Admin can managed to collection of tournament details are
stored in the database.
Report:
Administrator is responsible for providing the all reports. The bills provided by administrator are
checked by secretary.
Trainer
Trainer Registration

In this module describe the Trainerregistration process. Trainerregister the information like a
user name, mobile number, mail id, etc.
Trainer Login
Trainerregistered into this website after that they can login to the website.
Register Details
In the module, Trainerwill maintain the registers recorded to store in the database. All
information’s are view to the user details. Trainercan managed to collection of student details are stored
in the database
User

User Registration
In this module describe the user registration process. User register the information like a user
name, mobile number, mail id, etc.
User Login
User registered into this website after that they can login to the website.
View Tournament Details
All information’s are view to the user. Admin can managed to collection of sport details are
stored in the database.

18
Schedule Information

After getting notification, user login into this application and view the sport details such as sport
date, time etc.

Apply Event

In the module, user will apply the registers recorded to store in the database. All information’s
are view to the admin. Admin can managed to collection of college details are stored in the database.
Feedback
The customer can provide their feedback about the entire process whether it may be positive or
negative and the feedback.

CHAPTER 5 DESIGN AND DEVELOPMENT

The purpose of testing is to discover errors. Testing is the process of trying to


discovereveryconceivablefaultorweaknessinaworkproduct.Itprovidesawaytocheck the
functionality of components, sub assemblies, assemblies and/or a finished product It is the
process of exercising software with the intent of ensuring that the Software system meets its
requirements and user expectations and does not fail in an unacceptable manner. There are
various types of test. Each test type addresses a specific testing requirement.

Type of Testing

Testing is the process of trying to discover every conceivable fault or weakness in a


work product. The different type of testing is given below:

Unit Testing:

Unit testing involves the design of test cases that validate that the internal program logic is
functioning properly, and that program inputs produce valid outputs. All decision branch and
internal code flow should be validated. It is the testing of individual software units of the
application .it is done after the completion of an individual unit before integration.

This is a structural testing, that relieson knowledge of its construction and is invasive.Unit
tests perform basic tests at component level and test a specific business process, application,
and/or system configuration. Unit tests ensure that each unique path of a business process

19
performs accurately to the documented specifications and contains clearly defined inputs and
expected results.

Integration Testing:

Integration tests are designed to test integrated software components to determine if they
actually run as one program. Testing is event driven and is more concerned with the basic
outcome of screens or fields. Integration tests demonstrate that although the components were
individually satisfaction, as shown by successfully unit testing, the combination of
components is correct and consistent. Integration testing is specifically aimed at exposing the
problems that arise from the combination of components.

Functional Test:

Functional tests provide systematic demonstrations that functions tested are available as
specified by the business and technical requirements, system documentation, and user
manuals.

Functional testing is centered on the following items:

Valid Input : identified classes of valid input must be accepted.

Invalid Input : identified classes of invalid input must be rejected.

Functions : identified functions must be exercised.

Output : identified classes of application outputs must be

20
exercised.

Systems/ Procedures: interfacing systems or procedures must be invoked.

Organization and preparation of functional tests is focused on requirements, key


functions, or special test cases. In addition, systematic coverage pertaining to identify
Business process flows; data fields, predefined processes, and successive processes must be
considered for testing. Before functional testing is complete, additional tests are identified and
the effective value of current tests is determined.

Performance Testing:

System testing ensures that the entire integrated software system meets requirements. It tests a
configuration to ensure known and predictable results. An example of system testing is the
configuration oriented system integration test. System testing is based on process descriptions
and flows, emphasizing pre-driven process links and integration points.

White Box Testing:

White Box Testing is a testing in which in which the software tester has knowledge of the
inner workings, structure and language of the software, or at least its purpose. It is purpose. It
is used to test areas that cannot be reached from a black box level.

Black Box Testing:

Black Box Testing is testing the software without any knowledge of the inner workings,
structure or language of the module being tested. Black box tests, as most other kinds of tests,
must be written from a definitive source document, such as specification or requirements
document, such as specification or requirements document. It is a testing in which the software
under test is treated, as a black box .you cannot “see” into it. The test provides inputs and
responds to outputs without considering how the software works.

Acceptance Testing:

User Acceptance Testing is a critical phase of any project and requires significant
participation by the end user. It also ensures that the system meets the functional requirements.
21
Test Results: All the test cases mentioned above passed successfully. No defects
encountered

Validation Testing

Validation testing is the process of ensuring if the tested and developed software
satisfiestheclient/userneeds.Thebusinessrequirementlogicorscenarioshavetobetested in detail.
All the critical functionalities of an application must be testedhere.

Asatester,itisalwaysimportanttoknowhowtoverifythebusinesslogicorscenariosthat are
given to you. One such method that helps in detail evaluation of the functionalities is the
ValidationProcess.

Whenever you are asked to perform a validation test, it takes a great responsibility as you
needtotestallthecriticalbusinessrequirementsbasedontheuserneeds.Thereshouldnot be even a
single miss on the requirements asked by the user. Hence a keen knowledge on validation
testing is much important.

Asatester,youneedtoevaluateifthetestexecutionresultscomplywiththatmentionedin the
requirements document. Any deviation should be reported immediately and that deviation is
thus called abug.

From a company perspective, the validation test in simple is carried out by the following
steps:

 You gather the business requirements for validation testing from the end user.
 Prepare the business plan and send it for the approval to the
onsite/stakeholders involved.
 On approval of the plan, you begin to write the necessary test cases and send
them for approval.
 Once approved you begin to complete testing with the required
software, environment and send the deliverables as requested by the
client.
 Upon approval of the deliverables, UAT testing is done by the client.
 After that, the software goes for production.
22
Fields Testing

Thistestingisdoneinthelastphasewhentheregressionisdonefortheapplication
andtheapplicationiscalledstablebythe‘Team’beforetherelease.Theremayormaynot be a
requirement given for this from the customer. The type of testing mainly include the functional
and usability of the application. This is strictly done on Mobile Networks. QA's need to step
out and test while walking around or at home or driving. Testing is done only on real devices.

23
CHAPTER 7 APPENDIX
INDEX
<?php
session_start();
include("include/dbconnect.php");
extract($_REQUEST);
if(isset($btn))
{
$qq1="select * from register where uname='$uname' &&
pass='$pass'";
$qq2=mysql_query($qq1);
$num=mysql_num_rows($qq2);
if($num==1)
{
$_SESSION['uname']=$uname;
header("location:userhome.php");
}
else
{
$msg="E-mail or Password wrong!";
}
}

?>
<!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=iso-8859-1" />
<title><?php include("include/title.php"); ?></title>
<link rel="shortcut icon" href="img/icon.ico">

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="favicon.ico">

<!-- Animate.css -->


<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">

24
<!-- Style -->
<link rel="stylesheet" href="css/style.css">

<!-- Modernizr JS -->


<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<!--<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-
awesome.min.css">-->

</head>

<body>

<?php include("include/link_home.php"); ?>


<div class="panel panel-default">
<div class="panel-heading" align="center"><!--<img src="img/header.jpg" width="1060"
height="276" />--></div>
<div class="panel-body">
<h3 align="center"></h3>
</div>
</div>
<!--start content area-->

<h3 align="center"><?php include("include/title.php"); ?></h3>


<div class="row">

<div class="col-lg-1">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>

<div class="col-lg-4"><img src="img/spo.jpg" width="585"


height="357" />
<!-- A grey horizontal navbar that becomes vertical on small screens
-->
</div>

<div class="col-lg-2">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>

<div class="col-lg-4">
<div class="card">

25
<div class="card-header d-flex align-items-center">
<h2 class="h5 display display">
<h2>User Login</h2>
</h2>
</div>
<div class="card-block">
<p></p>
<form name="name" method="post">

<div class="form-group">
<label>Username</label>
<input type="text" name="uname" placeholder="Username" class="form-
control" required>
</div>
<div class="form-group">
<label>Password</label>
<input type="password" name="pass" placeholder="Password" class="form-
control" required>
</div>
<div class="form-group">
<input type="submit" name="btn" value="Sign In" class="btn btn-primary">
</div>
<div class="msg"><?php echo $msg; ?></div>
<a href="register.php">Sign Up</a>
</form>
</div>
</div>
</div>

</div>
<!--end content area-->

<p>&nbsp;</p>
</body>
</html>
LOGIN
<?php
session_start();
include("include/dbconnect.php");
extract($_REQUEST);
if(isset($btn))
{
$qry = "select * from admin where username='$uname' &&
password='$pass'";
$exe=mysql_query($qry);
$num=mysql_num_rows($exe);
if($num==1)

26
{
$_SESSION['uname']=$uname;

header("location:admin.php");
}
else
{
$msg="Username or Password wrong!";
}
}

?>
<!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=iso-8859-1" />
<title><?php include("include/title.php"); ?></title>
<link rel="shortcut icon" href="img/icon.ico">

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="favicon.ico">

<!-- Animate.css -->


<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<!-- Style -->
<link rel="stylesheet" href="css/style.css">

<!-- Modernizr JS -->


<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<!--<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-
awesome.min.css">-->

27
</head>

<body>
<?php include("include/link_home.php"); ?>
<div class="panel panel-default">
<div class="panel-heading" align="center"><!--<img src="img/header.jpg" width="1060"
height="276" />--></div>
<div class="panel-body">
<h3 align="center"></h3>
</div>
</div>
<!--start content area-->

<div class="row">
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>

<div class="col-lg-4">
<div class="card">
<div class="card-header d-flex align-items-center">
<h2 class="h5 display display">
<h2>Admin </h2>
</h2>
</div>
<div class="card-block">
<p></p>
<form name="name" method="post">

<div class="form-group">
<label>Username</label>
<input type="text" name="uname" placeholder="Username" class="form-
control">
</div>
<div class="form-group">
<label>Password</label>
<input type="password" name="pass" placeholder="Password" class="form-
control">
</div>
<div class="form-group">
<input type="submit" name="btn" value="Sign In" class="btn btn-primary">
</div>
<div class="msg"><?php echo $msg; ?></div>
</form>
</div>
</div>

28
</div>

<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>
</div>
<!--end content area-->

<div class="row">
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>
<div class="col-lg-4">
<div class="card">

</div>
</div>
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>

</div>

<p>&nbsp;</p>
</body>
</html>
ADMIN HOME
<?php
session_start();
include("include/dbconnect.php");
extract($_REQUEST);
$uname=$_SESSION['uname'];

?>
<!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=iso-8859-1" />
<title><?php include("include/title.php"); ?></title>
<link rel="shortcut icon" href="img/icon.ico">

29
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="favicon.ico">

<!-- Animate.css -->


<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<!-- Style -->
<link rel="stylesheet" href="css/style.css">

<!-- Modernizr JS -->


<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<!--<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-
awesome.min.css">-->

</head>

<body>
<?php include("include/link_admin.php"); ?>
<div class="panel panel-default">
<div class="panel-heading" align="center"><!--<img src="img/header.jpg" width="1060"
height="276" />--></div>
<div class="panel-body">
<h3 align="center"></h3>
</div>
</div>
<!--start content area-->
<?php

if($_REQUEST['act']=="wrong")
{
?>
<div class="row">
<div class="col-lg-4">

30
<!-- A grey horizontal navbar that becomes vertical on small
screens -->
</div>

<div class="col-lg-4">
<div class="alert alert-warning">
<strong>Warning!</strong> This Username or Password Incorrect!
</div>
</div>
</div>
<?php
}
?>
<h2 align="center">Welcome Admin</h2>

<p align="center">&nbsp;</p>
<table width="420" border="0" align="center">
<tr>
<td colspan="2" align="center" class="btn-primary">Dashboard</td>
</tr>
<tr>
<td width="229"><a href="view_sport.php">Sports Info </a></td>
<td width="181"><a href="view_trainer.php">Trainer Details</a></td>
</tr>
<tr>
<td><a href="add_event.php">Events </a></td>
<td><a href="view_user.php">User Details </a></td>
</tr>
<tr>
<td><a href="report.php">Report</a></td>
<td><a href="view_feed.php">Feedback</a></td>
</tr>
</table>
<p>&nbsp;</p>
</body>
</html>
TRAINER REGISTER
<?php
session_start();
include("include/dbconnect.php");
extract($_REQUEST);

?>
<!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">

31
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php include("include/title.php"); ?></title>
<link rel="shortcut icon" href="img/icon.ico">
<style type="text/css">
<!--
.box {
background-color: #F3F3F3;
height: 270px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box1 {
background-color: #F3F3F3;
height: 100px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
padding:10px;
}
.box3 {
padding:10px;
}
.t1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bold;
color: #0066CC;
font-variant: small-caps;
text-transform: none;
}
.msg {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF0000;
}
.box4
{
width:250px;
height:35px;
}
-->
</style>
<meta charset="utf-8">

32
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="favicon.ico">

<!-- Animate.css -->


<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<!-- Style -->
<link rel="stylesheet" href="css/style.css">

<!-- Modernizr JS -->


<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="img/icon.ico">
<style type="text/css">
<!--
.box {
background-color: #F3F3F3;
height: 270px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box1 {
background-color: #F3F3F3;
height: 100px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
padding:10px;
}
.box3 {
padding:10px;

33
}
.t1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bold;
color: #0066CC;
font-variant: small-caps;
text-transform: none;
}
.msg {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF0000;
}
.box4
{
width:250px;
height:35px;
}
-->

</style>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="favicon.ico">

<!-- Animate.css -->


<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<!-- Style -->
<link rel="stylesheet" href="css/style.css">

<!-- Modernizr JS -->


<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<!--<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-

34
awesome.min.css">-->

<script language="javascript">
function validate()
{
if(document.form1.name.value=="")
{
alert("Enter the Name");
document.form1.name.focus();
return false;
}

if(document.form1.mobile.value=="")
{
alert("Enter the Mobile Number");
document.form1.mobile.focus();
return false;
}
if(isNaN(document.form1.mobile.value))
{
alert("Invaalid Mobile Number!");
document.form1.mobile.select();
return false;
}
if(document.form1.mobile.value.length!=10)
{
alert("Mobile Number must be 10 digits");
document.form1.mobile.select();
return false;
}

if(document.form1.email.value=="")
{
alert("Enter the E-mail");
document.form1.email.focus();
return false;
}

reEmail=/^[\w-|+|'|]+(\.[\w-|+|'|]+)*@([a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*?\.[a-zA-Z]
{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$/
if(!(reEmail.test(document.form1.email.value))){
alert("E-Mail Invalid");
return false;
}
if(document.form1.uname.value=="")
{
alert("Enter the Username");
document.form1.uname.focus();
return false;
}

35
if(document.form1.pass.value=="")
{
alert("Enter the Password");
document.form1.pass.focus();
return false;
}
if(document.form1.repass.value=="")
{
alert("Enter the Re-type Password");
document.form1.repass.focus();
return false;
}
if(document.form1.repass.value!=document.form1.pass.value)
{
alert("New Password & Re-type password not equal!");
document.form1.repass.select();
return false;
}

return true;
}

</script>
</head>

<body>
<?php include("include/link_home.php"); ?>
<div class="panel panel-default">
<div class="panel-heading" align="center"><span class="t1"><?php
include("include/title.php"); ?></span></div>
<div class="panel-body">
<h3 align="center"></h3>
</div>
</div>
<!--start content area-->

<div class="row">
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>

<?php
if($_REQUEST['act']=="success")
{
?>
<div class="alert alert-success">
<strong>Register Success!</strong> <a

36
href="login_tr.php">Login</a>
</div>
<?php
}
if($_REQUEST['act']=="wrong")
{
?>

<div class="alert alert-warning">


<strong>Warning!</strong> Already exist!
</div>
<?php
}
?>

</div>

<div class="row">
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>

<div class="col-lg-4">
<div class="card">
<div class="card-header d-flex align-items-center">
<h2 class="h5 display display">
<h2>Trainer Registration</h2>
</h2>
</div>
<div class="card-block">
<p></p>
<form name="form1" method="post">

<div class="form-group">
<label>Name</label>
<input type="text" name="name" placeholder="Name" class="form-control">
</div>

<div class="form-group">
<label>Mobile No.</label>
<input name="mobile" type="text" maxlength="10" class="form-control">
</div>

37
<div class="form-group">
<label>Email</label>
<input type="text" name="email" placeholder="Email Address" class="form-
control">
</div>
<div class="form-group">
<label>Username</label>
<input type="text" name="uname" placeholder="Username" class="form-
control">
</div>

<div class="form-group">
<label>Password</label>
<input type="password" name="pass" placeholder="Password" class="form-
control">
</div>
<div class="form-group">
<label>Re-type Password</label>
<input type="password" name="repass" placeholder="Re-type Password"
class="form-control">
</div>

<div class="form-group">
<input type="submit" name="btn" value="Register" class="btn btn-primary"
onclick="return validate()">
</div>
</form>
</div>
</div>

</div>

</div>
<!-- row end -->

<div class="row">
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on


small screens -->
</div>
<div class="col-lg-4">
<div class="card">

<div class="card-block" align="center">


Have an account? <a href="login_tr.php">Login</a>
</div>

38
</div>
</div>
</div>
<?php
$msg="";

if(isset($btn))
{

$max_qry = mysql_query("select max(id) maxid from trainer");


$max_row = mysql_fetch_array($max_qry);
$id=$max_row['maxid']+1;
$rdate=date("d-m-Y");

$idt=explode("-",$dob);
$dob1=$idt[2]."-".$idt[1]."-".$idt[0];

$q1="insert into trainer(id,name,mobile,email,uname,pass)


values($id,'$name','$mobile','$email','$uname','$pass')";
$q2=mysql_query($q1);
if($q2)
{

?>
<script language="javascript">
window.location.href="reg_trainer.php?act=success";
</script>
<?php
}
else
{
?>
<script language="javascript">
window.location.href="reg_trainer.php?act=wrong";
</script>
<?php
}

}
?>
<!--end content area-->
<p align="center" class="msg"><?php
if($msg!="")
{
echo $msg;
}

39
?></p>
<p>&nbsp;</p>
</body>
</html>
USER REGISTER
<?php
session_start();
include("include/dbconnect.php");
extract($_REQUEST);

?>
<!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=iso-8859-1" />
<title><?php include("include/title.php"); ?></title>
<link rel="shortcut icon" href="img/icon.ico">
<style type="text/css">
<!--
.box {
background-color: #F3F3F3;
height: 270px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box1 {
background-color: #F3F3F3;
height: 100px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
padding:10px;
}
.box3 {
padding:10px;
}
.t1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bold;
color: #0066CC;
font-variant: small-caps;
text-transform: none;

40
}
.msg {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF0000;
}
.box4
{
width:250px;
height:35px;
}
-->
</style>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="favicon.ico">

<!-- Animate.css -->


<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<!-- Style -->
<link rel="stylesheet" href="css/style.css">

<!-- Modernizr JS -->


<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="img/icon.ico">
<style type="text/css">
<!--
.box {
background-color: #F3F3F3;
height: 270px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box1 {

41
background-color: #F3F3F3;
height: 100px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
padding:10px;
}
.box3 {
padding:10px;
}
.t1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bold;
color: #0066CC;
font-variant: small-caps;
text-transform: none;
}
.msg {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF0000;
}
.box4
{
width:250px;
height:35px;
}
-->

</style>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="favicon.ico">

<!-- Animate.css -->


<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Owl Carousel -->

42
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<!-- Style -->
<link rel="stylesheet" href="css/style.css">

<!-- Modernizr JS -->


<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<!--<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-
awesome.min.css">-->

<script language="javascript">
function validate()
{
if(document.form1.name.value=="")
{
alert("Enter the Name");
document.form1.name.focus();
return false;
}
if(document.form1.gender[0].checked==false &&
document.form1.gender[1].checked==false)
{
alert("Select the Gender");
return false;
}
if(document.form1.dob.value=="")
{
alert("Enter the Date of Birth");
document.form1.dob.focus();
return false;
}
if(document.form1.address.value=="")
{
alert("Enter the Address");
document.form1.address.focus();
return false;
}

if(document.form1.mobile.value=="")
{
alert("Enter the Mobile Number");
document.form1.mobile.focus();
return false;
}

43
if(isNaN(document.form1.mobile.value))
{
alert("Invaalid Mobile Number!");
document.form1.mobile.select();
return false;
}
if(document.form1.mobile.value.length!=10)
{
alert("Mobile Number must be 10 digits");
document.form1.mobile.select();
return false;
}

if(document.form1.email.value=="")
{
alert("Enter the E-mail");
document.form1.email.focus();
return false;
}

reEmail=/^[\w-|+|'|]+(\.[\w-|+|'|]+)*@([a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*?\.[a-zA-Z]
{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$/
if(!(reEmail.test(document.form1.email.value))){
alert("E-Mail Invalid");
return false;
}
if(document.form1.uname.value=="")
{
alert("Enter the Username");
document.form1.uname.focus();
return false;
}
if(document.form1.pass.value=="")
{
alert("Enter the Password");
document.form1.pass.focus();
return false;
}
if(document.form1.repass.value=="")
{
alert("Enter the Re-type Password");
document.form1.repass.focus();
return false;
}
if(document.form1.repass.value!=document.form1.pass.value)
{
alert("New Password & Re-type password not equal!");
document.form1.repass.select();
return false;
}

44
return true;
}

</script>
</head>

<body>
<?php include("include/link_home.php"); ?>
<div class="panel panel-default">
<div class="panel-heading" align="center"><span class="t1"><?php
include("include/title.php"); ?></span></div>
<div class="panel-body">
<h3 align="center"></h3>
</div>
</div>
<!--start content area-->

<div class="row">
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>

<?php
if($_REQUEST['act']=="success")
{
?>
<div class="alert alert-success">
<strong>Register Success!</strong> <a
href="index.php">Login</a>
</div>
<?php
}
if($_REQUEST['act']=="wrong")
{
?>

<div class="alert alert-warning">


<strong>Warning!</strong> Already exist!
</div>
<?php
}
?>

</div>

45
<div class="row">
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>

<div class="col-lg-4">
<div class="card">
<div class="card-header d-flex align-items-center">
<h2 class="h5 display display">
<h2>User Registration</h2>
</h2>
</div>
<div class="card-block">
<p></p>
<form name="form1" method="post">

<div class="form-group">
<label>Name</label>
<input type="text" name="name" placeholder="Name" class="form-control">
</div>
<div class="form-group">
<label>Gender</label>
<input name="gender" type="radio" value="Male" />
Male
<input name="gender" type="radio" value="Female" />
Female

</div>

<div class="form-group">
<label>Date of Birth</label>
<input type="date" name="dob" placeholder="D.O.B" class="form-control">
</div>
<div class="form-group">
<label>Address</label>
<input type="text" name="address" placeholder="Address" class="form-
control">
</div>

<div class="form-group">
<label>Mobile No.</label>
<input name="mobile" type="text" maxlength="10" class="form-control">
</div>

<div class="form-group">
<label>Email</label>

46
<input type="text" name="email" placeholder="Email Address" class="form-
control">
</div>
<div class="form-group">
<label>Username</label>
<input type="text" name="uname" placeholder="Username" class="form-
control">
</div>

<div class="form-group">
<label>Password</label>
<input type="password" name="pass" placeholder="Password" class="form-
control">
</div>
<div class="form-group">
<label>Re-type Password</label>
<input type="password" name="repass" placeholder="Re-type Password"
class="form-control">
</div>

<div class="form-group">
<input type="submit" name="btn" value="Register" class="btn btn-primary"
onclick="return validate()">
</div>
</form>
</div>
</div>

</div>

</div>
<!-- row end -->

<div class="row">
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on


small screens -->
</div>
<div class="col-lg-4">
<div class="card">

<div class="card-block" align="center">


Have an account? <a href="index.php">Login</a>
</div>
</div>
</div>
</div>

47
<?php
$msg="";

if(isset($btn))
{

$max_qry = mysql_query("select max(id) maxid from register");


$max_row = mysql_fetch_array($max_qry);
$id=$max_row['maxid']+1;
$rdate=date("d-m-Y");

$idt=explode("-",$dob);
$dob1=$idt[2]."-".$idt[1]."-".$idt[0];

$q1="insert into
register(id,name,gender,dob,address,mobile,email,uname,pass)
values($id,'$name','$gender','$dob1','$address','$mobile','$email','$uname','$pass')";
$q2=mysql_query($q1);
if($q2)
{

?>
<script language="javascript">
window.location.href="register.php?act=success";
</script>
<?php
}
else
{
?>
<script language="javascript">
window.location.href="register.php?act=wrong";
</script>
<?php
}

}
?>
<!--end content area-->
<p align="center" class="msg"><?php
if($msg!="")
{
echo $msg;
}
?></p>
<p>&nbsp;</p>

48
</body>
</html>
USER SPORTS
<?php
session_start();
include("include/dbconnect.php");
extract($_REQUEST);
$uname=$_SESSION['uname'];
?>
<!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=iso-8859-1" />
<title><?php include("include/title.php"); ?></title>
<link rel="shortcut icon" href="img/icon.ico">
<style type="text/css">
<!--
.box {
background-color: #F3F3F3;
height: 270px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box1 {
background-color: #F3F3F3;
height: 100px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
padding:10px;
}
.box3 {
padding:10px;
}
.t1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bold;
color: #0066CC;
font-variant: small-caps;
text-transform: none;
}
.msg {

49
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF0000;
}
.box4
{
width:250px;
height:35px;
}
-->
</style>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="favicon.ico">

<!-- Animate.css -->


<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<!-- Style -->
<link rel="stylesheet" href="css/style.css">

<!-- Modernizr JS -->


<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="img/icon.ico">
<style type="text/css">
<!--
.box {
background-color: #F3F3F3;
height: 270px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box1 {
background-color: #F3F3F3;
height: 100px;

50
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
padding:10px;
}
.box3 {
padding:10px;
}
.t1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bold;
color: #0066CC;
font-variant: small-caps;
text-transform: none;
}
.msg {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF0000;
}
.box4
{
width:250px;
height:35px;
}
-->

</style>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="favicon.ico">

<!-- Animate.css -->


<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">

51
<!-- Style -->
<link rel="stylesheet" href="css/style.css">

<!-- Modernizr JS -->


<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<!--<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-
awesome.min.css">-->

<script language="javascript">
function validate()
{
if(document.form1.txt.value=="")
{
alert("Enter the Sports");
document.form1.txt.focus();
return false;
}

return true;
}

</script>
</head>

<body>
<?php include("include/link_user.php"); ?>
<div class="panel panel-default">
<div class="panel-heading" align="center"><span class="t1"></span></div>
<div class="panel-body">
<h3 align="center"></h3>
</div>
</div>
<!--start content area-->

<div class="row">
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>

52
<div class="col-lg-4">
<div class="card">
<div class="card-header d-flex align-items-center">
<h2 class="h5 display display">
<h2>Search</h2>
</h2>
</div>
<div class="card-block">
<p></p>
<form name="form1" method="post">

<div class="form-group">
<label>Search</label>
<input type="text" name="txt" class="form-control">
</div>

<div class="form-group">
<input type="submit" name="btn" value="Search" class="btn btn-primary"
onclick="return validate()">
</div>
</form>
</div>
</div>

</div>

</div>
<!-- row end -->

<?php
$msg="";

if(isset($btn))
{
$q1=mysql_query("select * from sport where sport like '%$txt%'");
$n1=mysql_num_rows($q1);
if($n1>0)
{
?>
<!--end content area-->
<table width="100%" border="1" align="center">
<tr>

53
<th width="42" class="bg1" scope="col">Sno</th>
<th width="159" class="bg1" scope="col">Sport</th>
<th width="164" class="bg1" scope="col">Duration</th>
<th width="164" class="bg1" scope="col">Fees</th>
<th width="164" class="bg1" scope="col">Apply</th>
</tr>
<?php
$i=0;
while($r1=mysql_fetch_array($q1))
{
$i++;

?>
<tr>
<th scope="row"><?php echo $i; ?></th>
<td><?php echo $r1['sport']; ?></td>
<td><?php echo $r1['duration']; ?></td>
<td><?php echo $r1['fees']; ?></td>
<td><?php echo '<a href="select.php?sid='.$r1['id'].'">Apply</a>'; ?></td>
</tr>
<?php
}
?>
</table>
<?php
}
else
{
?>
<p align="center" class="msg">No Information!!</p>
<?php
}
}
?>
<p>&nbsp;</p>
</body>
</html>
APPOINTMENT
<?php
session_start();
include("include/dbconnect.php");
extract($_REQUEST);
$uname=$_SESSION['uname'];

?>
<!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">

54
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><?php include("include/title.php"); ?></title>
<link rel="shortcut icon" href="img/icon.ico">

<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="favicon.ico">

<!-- Animate.css -->


<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<!-- Style -->
<link rel="stylesheet" href="css/style.css">

<!-- Modernizr JS -->


<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<!--<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-
awesome.min.css">-->

</head>

<body>
<?php include("include/link_user.php"); ?>
<div class="panel panel-default">
<div class="panel-heading" align="center"><!--<img src="img/header.jpg" width="1060"
height="276" />--></div>
<div class="panel-body">
<h3 align="center"></h3>
</div>
</div>
<!--start content area-->
<?php

if($_REQUEST['act']=="wrong")

55
{
?>
<div class="row">
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>

<div class="col-lg-4">
<div class="alert alert-warning">
<strong>Warning!</strong> This Username or Password Incorrect!
</div>
</div>
</div>
<?php
}
?>
<h2 align="center">Sport Appointment Status </h2>

<!--end content area-->


<?php

$q12=mysql_query("select * from apply where uname='$uname'");


?>
<table width="100%" border="1" align="center">
<tr>
<th width="42" class="bg1" scope="col">Sno</th>
<th width="159" class="bg1" scope="col">Sport</th>
<th width="164" class="bg1" scope="col">Duration</th>
<th width="164" class="bg1" scope="col">Fees</th>
<th width="164" class="bg1" scope="col">Date</th>
<th width="164" class="bg1" scope="col">Trainer</th>
<th width="164" class="bg1" scope="col">Appointment</th>
</tr>
<?php
$i=0;
while($r1=mysql_fetch_array($q12))
{
$i++;

?>
<tr>
<th scope="row"><?php echo $i; ?></th>
<td><?php echo $r1['sport']; ?></td>
<td><?php echo $r1['duration']; ?></td>
<td><?php echo $r1['fees']; ?></td>
<td><?php echo $r1['rdate']; ?></td>
<td><?php echo $r1['trainer']; ?></td>

56
<td><?php
if($r1['appoint']!="")
{
echo $r1['appoint'];
}
else
{
echo "Wait for Appointment";
}
?></td>
</tr>
<?php
}
?>
</table>

<p align="center">&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>
ADD SPORTS
<?php
session_start();
include("include/dbconnect.php");
extract($_REQUEST);

?>
<!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=iso-8859-1" />
<title><?php include("include/title.php"); ?></title>
<link rel="shortcut icon" href="img/icon.ico">
<style type="text/css">
<!--
.box {
background-color: #F3F3F3;
height: 270px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box1 {
background-color: #F3F3F3;
height: 100px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}

57
.box2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
padding:10px;
}
.box3 {
padding:10px;
}
.t1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bold;
color: #0066CC;
font-variant: small-caps;
text-transform: none;
}
.msg {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF0000;
}
.box4
{
width:250px;
height:35px;
}
-->
</style>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="favicon.ico">

<!-- Animate.css -->


<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<!-- Style -->
<link rel="stylesheet" href="css/style.css">

<!-- Modernizr JS -->

58
<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<link rel="shortcut icon" href="img/icon.ico">
<style type="text/css">
<!--
.box {
background-color: #F3F3F3;
height: 270px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box1 {
background-color: #F3F3F3;
height: 100px;
width: 270px;
border: 1px solid #A8A8A8;
padding:10px;
}
.box2 {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #333333;
padding:10px;
}
.box3 {
padding:10px;
}
.t1 {
font-family: Arial, Helvetica, sans-serif;
font-size: 24px;
font-weight: bold;
color: #0066CC;
font-variant: small-caps;
text-transform: none;
}
.msg {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #FF0000;
}
.box4
{
width:250px;
height:35px;
}
-->

59
</style>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">

<link rel="shortcut icon" href="favicon.ico">

<!-- Animate.css -->


<link rel="stylesheet" href="css/animate.css">
<!-- Icomoon Icon Fonts-->
<link rel="stylesheet" href="css/icomoon.css">
<!-- Simple Line Icons -->
<link rel="stylesheet" href="css/simple-line-icons.css">
<!-- Bootstrap -->
<link rel="stylesheet" href="css/bootstrap.css">
<!-- Owl Carousel -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<!-- Style -->
<link rel="stylesheet" href="css/style.css">

<!-- Modernizr JS -->


<script src="js/modernizr-2.6.2.min.js"></script>
<!-- FOR IE9 below -->
<!--[if lt IE 9]>
<script src="js/respond.min.js"></script>
<![endif]-->
<!--<link rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-
awesome.min.css">-->

<script language="javascript">
function validate()
{
if(document.form1.name.value=="")
{
alert("Enter the Name");
document.form1.name.focus();
return false;
}

if(document.form1.mobile.value=="")
{
alert("Enter the Mobile Number");
document.form1.mobile.focus();
return false;
}
if(isNaN(document.form1.mobile.value))
{

60
alert("Invaalid Mobile Number!");
document.form1.mobile.select();
return false;
}
if(document.form1.mobile.value.length!=10)
{
alert("Mobile Number must be 10 digits");
document.form1.mobile.select();
return false;
}

if(document.form1.email.value=="")
{
alert("Enter the E-mail");
document.form1.email.focus();
return false;
}

reEmail=/^[\w-|+|'|]+(\.[\w-|+|'|]+)*@([a-zA-Z0-9-]+(\.[a-zA-Z0-9-]+)*?\.[a-zA-Z]
{2,6}|(\d{1,3}\.){3}\d{1,3})(:\d{4})?$/
if(!(reEmail.test(document.form1.email.value))){
alert("E-Mail Invalid");
return false;
}
if(document.form1.uname.value=="")
{
alert("Enter the Username");
document.form1.uname.focus();
return false;
}
if(document.form1.pass.value=="")
{
alert("Enter the Password");
document.form1.pass.focus();
return false;
}
if(document.form1.repass.value=="")
{
alert("Enter the Re-type Password");
document.form1.repass.focus();
return false;
}
if(document.form1.repass.value!=document.form1.pass.value)
{
alert("New Password & Re-type password not equal!");
document.form1.repass.select();
return false;
}

61
return true;
}

</script>
</head>

<body>
<?php include("include/link_admin.php"); ?>
<div class="panel panel-default">
<div class="panel-heading" align="center"><span class="t1"></span></div>
<div class="panel-body">
<h3 align="center"></h3>
</div>
</div>
<!--start content area-->

<div class="row">
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on small


screens -->
</div>

<?php
if($_REQUEST['act']=="success")
{
?>
<div class="alert alert-success">
<strong>Added Success!</strong>
</div>
<?php
}
if($_REQUEST['act']=="wrong")
{
?>

<div class="alert alert-warning">


<strong>Warning!</strong>
</div>
<?php
}
?>

</div>

<div class="row">
<div class="col-lg-4">

62
<!-- A grey horizontal navbar that becomes vertical on small
screens -->
</div>

<div class="col-lg-4">
<div class="card">
<div class="card-header d-flex align-items-center">
<h2 class="h5 display display">
<h2>Sports Details</h2>
</h2>
</div>
<div class="card-block">
<p></p>
<form name="form1" method="post">

<div class="form-group">
<label>Sport</label>
<select name="sport" class="form-control">
<option value="">-Sports Game-</option>
<option>Foot Ball</option>
<option>Basket Ball</option>
<option>Cricket</option>
<option>Tennis</option>
</select>
</div>
<div class="form-group">
<label>Duration</label>
<input name="duration" type="text" class="form-control">
</div>

<div class="form-group">
<label>Fees</label>
<input type="text" name="fees" class="form-control">
</div>

<div class="form-group">
<input type="submit" name="btn" value="Register" class="btn btn-primary"
onclick="return validate()">
</div>
</form>
</div>
</div>

</div>

</div>
<!-- row end -->

<div class="row">

63
<div class="col-lg-4">

<!-- A grey horizontal navbar that becomes vertical on


small screens -->
</div>
<div class="col-lg-4">

</div>
</div>
<?php
$msg="";

if(isset($btn))
{

$max_qry = mysql_query("select max(id) maxid from sport");


$max_row = mysql_fetch_array($max_qry);
$id=$max_row['maxid']+1;
$rdate=date("d-m-Y");

$idt=explode("-",$dob);
$dob1=$idt[2]."-".$idt[1]."-".$idt[0];

$q1="insert into sport(id,sport,duration,fees)


values($id,'$sport','$duration','$fees')";
$q2=mysql_query($q1);
if($q2)
{

?>
<script language="javascript">
window.location.href="view_sport.php";
</script>
<?php
}
}
?>
<!--end content area-->
<p align="center" class="msg"><?php
if($msg!="")
{
echo $msg;
}
?></p>
<p>&nbsp;</p>
</body>
</html>

64
Screen Shots

65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
CONCLUSION AND FUTURE WORK

Conclusion
The objective of this project was to build a program for maintaining the details of all
sports person and match details for a sports club. “Sports Tournament Management System”
project which helps students to save a lot of time in searching for games being conducted in
various colleges. Our project provides sports person to get register from anywhere and
anytime. The system developed is able to meet all the basic requirements. It will provide the
facility to the user so that they can keep tracks of all the sports person performance. The
management of the whole club and the sports person will be also benefited by the proposed
system, as it will automate the whole supply procedure, which will reduce the workload. The
security of the system is also one of the prime concerns.
Future Work
The important thing is that the system should be flexible enough for future
modifications. The system has been factored into different modules to make system adapt to
the further changes. Every effort has been made to cover all user requirements and make it
user friendly.

1. Goal achieved: The System is able provide the interface to the user so that he can
replicate his desired data.

2. User friendliness: Though the most part of the system is supposed to act in the
background, efforts have been made to make the foreground interaction with user as
smooth as possible. Also the integration of the system with sports Management
project has been kept in mind throughout the development phase.

80
81

You might also like