0% found this document useful (0 votes)
2 views

PHP MICROPROJECT REPORT

The document presents a microproject report on a Gym Management System developed by a group of students under the guidance of a professor. The system aims to automate gym operations such as member registration, attendance tracking, and payments, enhancing efficiency and member experience. It includes program code and outlines the necessity of such a system in modern fitness facilities, emphasizing improved communication, resource utilization, and data-driven decision-making.

Uploaded by

ruturajpande41
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

PHP MICROPROJECT REPORT

The document presents a microproject report on a Gym Management System developed by a group of students under the guidance of a professor. The system aims to automate gym operations such as member registration, attendance tracking, and payments, enhancing efficiency and member experience. It includes program code and outlines the necessity of such a system in modern fitness facilities, emphasizing improved communication, resource utilization, and data-driven decision-making.

Uploaded by

ruturajpande41
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 38

A

MICROPROJECT REPORT
ON
“Gym Management System”

Submitted by –

Ms. Shaikh Naazmin Vasim


Ms. Kuldharan Shreya Narendra
Ms. Kuldharan Shruti Narendra
Mr. Pande Ruturaj Kiran

Guided by –
Prof. S. N. Dudhawade

DEPARTMENT OF COMPUTER ENGINEERING


ATES. FACULTY OF POLYTECHNIC, AKOLE.
2024-2025
CERTIFICATE
This is certifying that,

Ms. Shaikh Naazmin Vasim


Ms. Kuldharan Shruti Narendra
Ms. Kuldharan Shreya Narendra
Mr. Pande Ruturaj Kiran

Has satisfactorily carried out and completed the project report entitled
“Gym Management System”
It is submitted in the partial fulfillment of the prescribed syllabus of subject “Web
Based Application Development Using PHP” [22619] a micro project for First
Year Diploma in Computer Engineering for the academic year 2024-2025.

Prof. S. N. Dudhawade Prof. S. B. Deshmukh

Project Guide and Subject Teacher Head of Department

Prof. R. D. Palhade
Principal
ACKNOWLEDGEMENT

The satisfaction & the successful completion of any task would be


incomplete without the mention of people who made it possible because
“Success is the abstract of hard work & perseverance, but steadfast of all
is encouragement guidance”.

We have immense pleasure in expressing thanks to the Principal, Prof. R.


D. Palhade, for providing all the facilities for the successful completion of
the project.
We would like to express thanks to our HOD, Prof. S. B. Deshmukh
Department of Computer Engineering, who has guided us throughout the
completion of this project. With due respect, we thank our Guide Prof. R. S.
Dudhawade, Department of Computer Engineering, for his motivating
support, keen interest which kept our spirits alive although.
Finally, we would like to thank all the Teaching and Non-teaching staff and all
our friends who have rendered their support in the completion of this project
report.
Thank You,
INDEX

SR.NO TITLE
1. Introduction
2. Need of Gym Management

3. Program Code/Output
4. Conclusion
5. Reference
 INTRODUCTION

A Gym Management System is a software solution designed to streamline and


automate the various operations of a gym or fitness center. It helps gym owners,
managers, and staff efficiently manage tasks such as member registration, attendance
tracking, membership management, payments, scheduling classes, and more.

This system allows gym staff to focus more on providing excellent service to members
by reducing the manual work involved in handling daily operations. Additionally, it
provides gym members with an easy way to manage their memberships, book classes,
and track their fitness progress.

A Gym Management System (GMS) is a comprehensive software solution designed


to manage the various aspects of running a gym or fitness center. It integrates several
core functionalities into one platform, making it easier for gym owners, staff, and
members to interact and stay organized. In today's digital age, fitness businesses must
streamline their operations to keep up with the demand for efficiency, convenience, and
a great customer experience, and a GMS plays a key role in achieving this.

In this project, we are crafting a sophisticated and feature-packed Gym


Management System using the PHP programming language. Our goal is to
provide users with a comprehensive tool capable of handling Gym Operations
Our System is user – friendly

.
 Need of Gym Management

The gym management system described above is essential for several reasons:

1. Efficient Operations: It streamlines various administrative tasks such as member


registration, payment processing, and attendance tracking, thereby improving overall
operational efficiency.

2. Enhanced Member Experience: The system provides members with convenient


tools to manage their memberships, book sessions, and interact with trainers, leading to
a better overall experience and higher satisfaction.

3. Improved Communication: Automated reminders and notifications help keep


members informed about important dates, events, and updates, fostering better
communication between the gym and its members.

4. Optimized Resource Utilization: By tracking member attendance and preferences,


the system helps gym owners allocate resources effectively, ensuring that facilities and
trainers are utilized to their full potential.

5. Data-Driven Decision Making: The system generates reports and analytics that
provide valuable insights into membership trends, revenue streams, and operational
performance, empowering gym owners to make informed decisions to drive business
growth.
6. Personalized Training: By allowing members to select preferred trainers during
registration and providing trainers with access to member profiles, the system enables
personalized training programs tailored to individual needs and goals.
7. Security and Compliance: The system ensures the security of member data and
compliance with privacy regulations through robust security measures such as user
authentication and data encryption.

8. Scalability and Flexibility : As the gym grows and evolves, the system can be easily
scaled up to accommodate increasing membership numbers and expanded services,
while remaining flexible enough to adapt to changing business requirements.

Overall, the gym management system is indispensable for modern fitness facilities
seeking to streamline operations, enhance member satisfaction, and drive business
success in a competitive market.
 Program Code
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<style type="text/css"> #inputbtn:hover{cursor:pointer;}
</style>
<body style="background:url('images/4.jpg'); background-size: cover;">
<div class="container-fluid" style="margin-top:60px;margin-bottom:60px;color:#34495E;">
<div class="row">
<div class="col-md-1"></div>
<div class="col-md-4">
<div class="card">
<img src="images/cardback.jpg" class="card-img-top">
<div class="card-body">
<center>
<h5>Admin Login</h5><br>
<form class="form-group" method="POST" action="admin-panel.php">
<div class="row">
<div class="col-md-4"><label>Username: </label></div>
<div class="col-md-8"><input type="text" name="username" class="form-control"
placeholder="enter username" required/></div><br><br>
<div class="col-md-4"><label>Password: </label></div>
<div class="col-md-8"><input type="password" class="form-control" name="password"
placeholder="enter password" required/></div><br><br><br>
</div>
<center><input type="submit" id="inputbtn" name="login_submit" value="Login"
class="btn btn-primary"></center>
</form>
</center>
</div>
</div>
</div>
<div class="col-md-7"></div>
</div>
</div>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-
KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN
" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"
integrity="sha384-
b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>

Admin-panel.php:

<!DOCTYPE html>
<?php

// php select option value from database

$hostname = "localhost";
$username = "root";
$password = "";
$databaseName = "loginsystem";

// connect to mysql database

$connect = mysqli_connect($hostname, $username, $password, $databaseName);

// mysql select query


$query = "SELECT * FROM `Trainer`";

// for method 1

$result1 = mysqli_query($connect, $query);


?>
<html>
<head>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
</head>
<body>

<div class="jumbotron" style="border-radius:0;background:url('images/3.jpg');background-


size:cover;height:400px;"></div>
<div class="container-fluid">
<div class="row">
<div class="col-md-3">
<div class="list-group">
<a href="" class="list-group-item active"
>Members</a>
<a href="trainer_details.php" class="list-group-item">Member details</a>
<a href="package.php" class="list-group-item">Package details</a>
<a href="payment.php" class="list-group-item">Payments</a>
</div>
<hr>
<div class="list-group">
<a href="trainer.php" class="list-group-item active">Trainer</a>
<a href="trainer.php" class="list-group-item active">Trainer details</a>
<a href="trainer.php" class="list-group-item active">Add new Trainer</a>
</div>
</div>
<div class="col-md-8">
<div class="card">

<div class="card-body" style="background-color:#3498DB;color:FFFFFF;">


<h3>Register new members</h3>
</div>
<div class="card-body"></div>
<form class="form-group" action="func.php" method="post">
<label>first name:</label>
<input type="text" name="fname" class="form-control"><br>
<label>last name:</label>
<input type="text" name="lname" class="form-control"><br>
<label>email</label>
<input type="text" name="email" class="form-control"><br>
<label>Member ID</label>
<input type="text" name="contact" class="form-control"><br>
<label>Trainer </label>
<select class="form-control" name="docapp">
<?php while($row1 = mysqli_fetch_array($result1)):;?>
<option value="<?php echo $row1[0];?>"><?php echo $row1[1];?></option>
<?php endwhile;?>

</select>
<input type="submit" class="btn btn-primary" name="pat_submit" value="Register"> <a
href="func.php" class="btn btn-light"></a>
</form>
</div>
</div>
</div>
<div class="col-md-1"></div>
</div>
<header>
<nav>
<div class="main-wrapper">
<div class="nav-login">
<?php
if (isset($_SESSION['u_id'])) {
echo '<form action="includes/index.php" method="POST">
<button type="submit" name="submit">logout</button>
</form>';
} else{
echo '<form action="includes/index.php"
method="POST">
</form>
<a href="index.php" class="btn btn-light" style="background-
color:#3498DB;color:FFFFFF">Logout</a>';

}?>
</div>
</div>
</nav>

</header>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>

</body>
</html>
Func.php:

<?php
$con=mysqli_connect("localhost","root","","loginsystem");
if(isset($_POST['login_submit'])){
$username=$_POST['username'];
$password=$_POST['password'];
$query="select * from logintb where username='$username' and password='$password'";
$result=mysqli_query($con,$query);
if(mysqli_num_rows($result)==1)
{
header("Location:admin-panel.php");

}
else
{
echo "<script>alert('error login')</script>";
echo "<script>window.open('admin-panel.php','_self')</script>";
}
}
if(isset($_POST['pat_submit']))
{
$fname=$_POST['fname'];
$lname=$_POST['lname'];
$email=$_POST['email'];
$contact=$_POST['contact'];
$docapp=$_POST['docapp'];
$query="insert into
doctorapp(fname,lname,email,contact,docapp)values('$fname','$lname','$email','$contact','$docapp')";
$result=mysqli_query($con,$query);
if($result)
{
echo "<script>alert('Member added.')</script>";
echo "<script>window.open('admin-panel.php','_self')</script>";
}
}
if(isset($_POST['tra_submit']))
{
$Trainer_id=$_POST['Trainer_id'];
$Name=$_POST['Name'];
$phone=$_POST['phone'];
$query="insert into Trainer(Trainer_id,Name,phone)values('$Trainer_id','$Name','$phone')";
$result=mysqli_query($con,$query);
if($result)
{
echo "<script>alert('Trainer added.')</script>";
echo "<script>window.open('admin-panel.php','_self')</script>";
}
}
if(isset($_POST['pay_submit']))
{
$Payment_id=$_POST['Payment_id'];
$Amount=$_POST['Amount'];
$customer_id=$_POST['customer_id'];
$payment_type=$_POST['payment_type'];
$customer_name=$_POST['customer_name'];
$query="insert into
Payment(Payment_id,Amount,customer_id,payment_type,customer_name)values('$Payment_id','$Amount
','$customer_id','$payment_type','$customer_name')";
$result=mysqli_query($con,$query);
if($result)
{
echo "<script>alert('Payment sucessfull.')</script>";
echo "<script>window.open('admin-panel.php','_self')</script>";
}
}
function
get_patient_details(){ global
$con;
$query="select * from doctorapp";
$result=mysqli_query($con,$query);
while ($row=mysqli_fetch_array($result)){
$fname=$row ['fname'];
$lname=$row['lname'];
$email=$row['email'];
$contact=$row['contact'];
$docapp=$row['docapp'];
echo "<tr>
<td>$fname</td>
<td>$lname</td>
<td>$email</td>
<td>$contact</td>
<td>$docapp</td>
</tr>";
}
}
function
get_package(){ global
$con;
$query="select * from Package";
$result=mysqli_query($con,$query);
while($row=mysqli_fetch_array($result)){
$Package_id=$row ['Package_id'];
$Package_name=$row['Package_name'];

$Amount=$row['Amount'];
echo"<tr>

<td>$Package_id</td>
<td>$Package_name</td>
<td>$Amount</td>

</tr>";

}
}
function
get_trainer(){ global
$con;
$query="select * from Trainer";
$result=mysqli_query($con,$query);
while($row=mysqli_fetch_array($result)){
$Trainer_id=$row ['Trainer_id'];
$Name=$row['Name'];
$phone=$row['phone'];
echo"<tr>
<td>$Trainer_id</td>
<td>$Name</td>
<td>$phone</td>

</tr>";

}
}
function
get_payment(){ global
$con;
$query="select * from Payment";
$result=mysqli_query($con,$query);
while($row=mysqli_fetch_array($result)){
$Payment_id=$row ['Payment_id'];
$Amount=$row['Amount'];
$payment_type=$row['payment_type'];
$customer_id=$row['customer_id'];
/*$customer_name=$row['customer_name'];*/
echo"<tr>
<td>$Payment_id</td>
<td>$Amount</td>
<td>$payment_type</td>
<td>$customer_id</td>

</tr>";

}
}

?>

Pacakge.php:
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<div class="jumbotron" style="background: url('images/2.jpg') no-repeat;background-size:
cover;height: 300px;"></div>

<div class="container">
<div class="card">
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="row">
<div class="col-md-1">
<a href="admin-panel.php" class="btn btn-light ">Go Back</a>
</div>
<div class="col-md-3"><h3>Pcakage Details</h3></div>
<div class="col-md-8">
<form class="form-group" action="patient_search.php" method="post">
<div class="row">
</form></div></div></div>
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th>Package ID </th>
<th>Package Name</th>
<th>Amounts</th>

</tr>";
}
}
function get_trainer(){ global
$con;
$query="select * from Trainer";
$result=mysqli_query($con,$query); while($row=mysqli_fetch_array($result)){
$Trainer_id=$row ['Trainer_id'];
$Name=$row['Name'];
$phone=$row['phone']; echo"<tr>
<td>$Trainer_id</td>
<td>$Name</td>
<td>$phone</td>

</tr>";
}
}
function get_payment(){ global
$con;
$query="select * from Payment";
$result=mysqli_query($con,$query); while($row=mysqli_fetch_array($result)){
$Payment_id=$row ['Payment_id'];
$Amount=$row['Amount'];
$payment_type=$row['payment_type'];
$customer_id=$row['customer_id'];
/*$customer_name=$row['customer_name'];*/
echo"<tr>
<td>$Payment_id</td>
<td>$Amount</td>
<td>$payment_type</td>
<td>$customer_id</td>
</tr>";

}
}

?>

Pacakge.php:
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0- beta/css/bootstrap.min.css"
integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<div class="jumbotron" style="background: url('images/2.jpg') no-repeat;background-size: cover;height:
300px;"></div>

<div class="container">
<div class="card">
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="row">
<div class="col-md-1">
<a href="admin-panel.php" class="btn btn-light ">Go Back</a>
</div>
<div class="col-md-3"><h3>Pcakage Details</h3></div>
<div class="col-md-8">
<form class="form-group" action="patient_search.php" method="post">
<div class="row">

</form></div></div></div>
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th>Package ID </th>
<th>Package Name</th>
<th>Amounts</th>

</tr>
</thead>
<tbody>
<?php get_package(); ?>
</tbody>
</table>

</div>
</div>
</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>
Payment.php:
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0- beta/css/bootstrap.min.css"
integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<div class="jumbotron" style="background: url('images/2.jpg') no-repeat;background-size: cover;height:
300px;"></div>
<div class="container">
<div class="card">
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="row">
<div class="col-md-1">
<a href="admin-panel.php" class="btn btn-light ">Go Back</a>

</div>
<div class="col-md-3"><h3>Payment Details</h3></div>
<div class="col-md-8">
<form class="form-group" action="patient_search.php" method="post">
<div class="row">

</form></div></div></div>
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th>Payment ID </th>
<th>Amount</th>
<th>Payment Type</th>
<th>Customer ID</th>
<!-- <th>Customer Name</th>-->

</tr>
</thead>
<tbody>
<?php get_payment(); ?>
</tbody>
</table>
<div class="card-body" style="background-color:#3498DB;color:FFFFFF;">
<h3>Make new Payment</h3>
</div>
<div class="card-body"></div>
<form class="form-group" action="func.php" method="post">
<label> Customer Name</label>
<input type="text" name="customer_name" class="form-control">
<label>Payment ID</label>
<input type="text" name="Payment_id" class="form-control"><br>

<label>Amount</label>
<input type="text" name="Amount" class="form-control"><br>
<label>Customer ID</label>
<input type="text" name="customer_id" class="form-control"><br>
<!-- <label>Customer Name</label>
<input type="text" name="customer_name" class="form-control"><br>-->
<label>Payment Type</label>

<input type="text" name="payment_type" class="form-control"><br>


<input type="submit" class="btn btn-primary" name="pay_submit" value="PAY">
</div>

</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>
Signup.php:
<?php
include_once 'header.php';
?>

<section class="main-container">
<div class="main-wrapper">
<h2>signup</h2>
<form class="signup-form" action="includes/signup.inc.php" method="POST">
<input type="text" name="first" placeholder="firstname">
<input type="text" name="last" placeholder="lastname">
<input type="text" name="email" placeholder="e-mail">
<input type="text" name="uid" placeholder="username">

<input type="password" name="pwd" placeholder="password">


<button type="submit" name="submit">sign up</button>
</form>
</div>
</section>
<?php
include_once 'footer.php';
?>

input, select {
vertical-align:middle;

html, body, div, span, object, iframe,


h1, h2, h3, h4, h5, h6, p, blockquote, pre, abbr, address, cite, code,
del, dfn, em, img, ins, kbd, q, samp, small, strong, sub, sup, var,
b, i,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, figcaption, figure, footer, header,
hgroup, menu, nav, section, sum time, mark, audio, video {
margin:0; padding:0; border:0; outline:0;
font-size:100%; vertical-align:baseline;
background:transparent;
}
mary,

/*my code*/
.main-
wrapper{ margin: 0 auto; width: 1000px;
}
a{
text-decoration: none;
}

body{
background-color: #ccc;
}

header nav{
width: 100%; height: 60px;
background-color: #fff;

body {
line-height:1;
}

}
header nav ul
{ float:left;

article,aside,details,figcaption,figure, footer,header,hgroup,menu,nav,section {
display:block;
}

header nav ul li{ float:left;


list-style:none;

nav ul {
list-style:none;
}
blockquote, q
{ quotes:none;
}

}
header nav ul li a
{ font-family: arial; font-size: 20 px;
color: #111;
line-height: 63px;

blockquote:before, blockquote:after, q:before, q:after {


content:''; content:none;
}
a

}
header .nav-login
{ float: right;
}
vertical-align:baseline; background:transparent;

{ margin:
0;
padding:0;
font-size:100%;

ader .nav-login form


{ float: left;
padding-top: 15px;
}
}
</tr>
</thead>
<tbody>
<?php get_package(); ?>
</tbody>
</table>

</div>
</div>
</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>
Payment.php:
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<div class="jumbotron" style="background: url('images/2.jpg') no-repeat;background-size:
cover;height: 300px;"></div>

<div class="container">
<div class="card">
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="row">
<div class="col-md-1">
<a href="admin-panel.php" class="btn btn-light ">Go Back</a>
</div>
<div class="col-md-3"><h3>Payment Details</h3></div>
<div class="col-md-8">
<form class="form-group" action="patient_search.php" method="post">
<div class="row">

</form></div></div></div>
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th>Payment ID </th>
<th>Amount</th>
<th>Payment Type</th>
<th>Customer ID</th>
<!-- <th>Customer Name</th>-->

</tr>
</thead>

<tbody>
<?php get_payment(); ?>
</tbody>
</table>
<div class="card-body" style="background-color:#3498DB;color:FFFFFF;">
<h3>Make new Payment</h3>
</div>
<div class="card-body"></div>
<form class="form-group" action="func.php" method="post">
<label> Customer Name</label>
<input type="text" name="customer_name" class="form-control">
<label>Payment ID</label>
<input type="text" name="Payment_id" class="form-control"><br>

<label>Amount</label>
<input type="text" name="Amount" class="form-control"><br>
<label>Customer ID</label>
<input type="text" name="customer_id" class="form-control"><br>
<!-- <label>Customer Name</label>
<input type="text" name="customer_name" class="form-control"><br>-->
<label>Payment Type</label>

<input type="text" name="payment_type" class="form-control"><br>


<input type="submit" class="btn btn-primary" name="pay_submit" value="PAY">
</div>
</div>
</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js"
integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>

Signup.php:
<?php
include_once 'header.php';
?>

<section class="main-container">
<div class="main-wrapper">
<h2>signup</h2>
<form class="signup-form" action="includes/signup.inc.php" method="POST">
<input type="text" name="first" placeholder="firstname">
<input type="text" name="last" placeholder="lastname">
<input type="text" name="email" placeholder="e-mail">
<input type="text" name="uid" placeholder="username">

<input type="password" name="pwd" placeholder="password">


<button type="submit" name="submit">sign up</button>
</form>
</div>
</section>
<?php
include_once 'footer.php';
?>
Style.css: input, select {
vertical-align:middle;
}
html, body, div, span, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, /*my code*/
abbr, address, cite, code,
.main-
del, dfn, em, img, ins, kbd, q, samp,
small, strong, sub, sup, var, wrapper{ margin: 0
b, i, auto; width:
dl, dt, dd, ol, ul, li, 1000px;
fieldset, form, label, legend, }
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, figcaption, a{
text-decoration: none;
figure, footer, header, hgroup, menu, nav, }
section, sum time, mark, audio, video { mary,
margin:0; body{
padding:0; background-color: #ccc;
border:0; }
outline:0;
font-size:100%; header nav{
vertical- width:
align:baseline; 100%;
background:transparent; height: 60px;
} background-color: #fff;

body { }
line-height:1;
} header nav ul
{ float:left;
article,aside,details,figcaption,figure, }
footer,header,hgroup,menu,nav,section {
display:block;
} header nav ul
li{
float:left;
list-style:none;
nav ul { }
list-style:none;
} header nav ul li a
{ font-family:
blockquote, q arial; font-
{ quotes:none; size: 20 px;
} color: #111;
line-height: 63px;
blockquote:before, blockquote:after,
q:before, q:after { a
content:'';
content:none;
}
} er .nav-login
{ float: right;
h }
e vertical-align:baseline;
a background:transparent;
d
{ margin:
0;
padding:0;
font-size:100%;
/* change colours to suit your needs */
ins {
background-color:#ff9;
color:#000;
text-decoration:none;

/* change colours to suit your needs */


mark {
background-color:#ff9;
color:#000;
font-style:italic;
font-
weight:bold;
}

del {
text-decoration: line-through;
}

abbr[title], dfn[title] {
border-bottom:1px dotted;
cursor:help;
}

table {
border-collapse:collapse;
border-spacing:0;
}

/* change border colour to suit your needs */


hr {
display:block;
height:1px;
border:0;
border-top:1px solid #cccccc;
margin:1em 0;
padding:0;
}
height: 30px;
padding: 0px
10px; margin-
right: 10px;
border: none;
background-color:
#ccc; font-family:
arial;
font-size: 14px;
color: #111;
line-height: 30px;;
}
.main-container h2{ font-family: arial; font-size: 40px; color:
#111;
line-height: 50px; text-align: center;

/* signup.php*/

.signup-form
{ width: 400px; margin: 0 auto; padding-top: 30px;
}

.signup-form input {

width: 90%; height: 40px; padding: 0px 5%;


margin-bottom: 4px; border: none; background-color: #fff; font-family: arial;
font-size: 16px; color: #111;
line-height: 40px;
}

.signup-form button
{ display: block; margin: 0 auto;
width: 30%; height: 40px; border: none;
background-color: #222; font-family: arial;
font-size: 20px; color: #fff; cursor: pointer;
}

.signup-form button:hover
{ background-color: #111;

}
header .nav-login form button
{ float: left;
width: 60px; height:
30px; margin-right:
10px; border: none;
background-color:
#f3f3f3; font-family:
arial;
font-size: 14px;
color: #111;
cursor: pointer;

header .nav-login form button:hover

{ background-color: #ccc;
}

header .nav-login a
{ display: block;
width:30px;
height: 30px;
border: none;
float: left;
background-color:
#fff; font-family: arial;
font-size: 16px;
color: #111;
line-height: 63px;
cursor: pointer;
}

.main-
container{ padding
-top: 40px;
}

Trainer_details.php
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<div class="jumbotron" style="background: url('images/2.jpg') no-repeat;background-size: cover;height:
300px;"></div>

<div class="container">
<div class="card">
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="row">
<div class="col-md-1">
<a href="admin-panel.php" class="btn btn-light ">Go Back</a>
</div>
<div class="col-md-3"><h3>Members Details</h3></div>
<div class="col-md-8">
<form class="form-group" action="trainer_search.php" method="post">
<div class="row">
<div class="col-md-10"><input type="text" name="search" class="form-control" placeholder="enter
contact"></div>
<div class="col-md-2"><input type="submit" name="patient_search_submit" class="btn btn-light"
value="Search"> </div></div>
</form></div></div></div>
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>
<th>First Name</th>
<th>Last Name</th>
<th>Email id</th>
<th>Member ID</th>
<th>Trainer ID</th>
</tr>
</thead>
<tbody>
<?php get_patient_details(); ?>
</tbody>
</table>
</div>
</div>
</div) >
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>
Trainer_search.php
<html>
<head>
<title>Patient details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<?php
include("func.php");
if(isset($_POST['patient_search_submit']))
{
$contact=$_POST['search'];
$query="select * from doctorapp where contact='$contact'";
$result=mysqli_query($con,$query);
echo "<div class='container-fluid' style='margin-top:50px;'>
<div class'card'>
<div class='card-body'><a href='trainer_details.php' class='btn brn-light'>Go Back</a></div>
<img src='images/1.jpg'>
<table class='table table-hover'>
<thead>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Email id</th>
<th>Contact</th>
<th>Trainer ID</th>
</tr>
</thead>
<tbody>
</div></div>";
while ($row=mysqli_fetch_array($result)){
$fname=$row ['fname'];
$lname=$row['lname'];
$email=$row['email'];
$contact=$row['contact'];
$docapp=$row
['docapp']; echo " <tr>
<td>$fname</td>
<td>$lname</td>
<td>$email</td>
<td>$contact</td>
<td>$docapp</td>
</tr>";
}
echo "</tbody></table></div></div></div>";
}
?>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</body>
</html>

Trainer.php
<!DOCTYPE html>
<?php include("func.php");?>
<html>
<head>
<title>Members details</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-
beta/css/bootstrap.min.css" integrity="sha384-
/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M"
crossorigin="anonymous">
</head>
<body>
<div class="jumbotron" style="background: url('images/2.jpg') no-repeat;background-size: cover;height:
300px;"></div>

<div class="container">
<div class="card">
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="row">
<div class="col-md-1">
<a href="admin-panel.php" class="btn btn-light ">Go Back</a>
</div>
<div class="col-md-3"><h3> Trainer Information</h3></div>
<div class="col-md-8">
<form class="form-group" action="patient_search.php" method="post">
<div class="row">

</form></div></div></div>
<div class="card-body" style="background-color:#3498DB;color:#ffffff;">
<div class="card-body">
<table class="table table-hover">
<thead>
<tr>

<th>Trainer ID</th>
<th>Name</th>
<th>Phone</th>

</tr>
</thead>
<tbody>
<?php get_trainer(); ?>
</tbody>
</table>
<div class="card-body" style="background-color:#3498DB;color:FFFFFF;">
<h3>Register new Trainer</h3>
</div>
<div class="card-body"></div>
<form class="form-group" action="func.php" method="post">
<label>Trainer ID</label>
<input type="text" name="Trainer_id" class="form-control"><br>
<label>Name</label>
<input type="text" name="Name" class="form-control"><br>
<label>Phone</label>
<input type="text" name="phone" class="form-control"><br>
<input type="submit" class="btn btn-primary" name="tra_submit" value="Register">
</div>
</div>
</div>

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-
h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1"
crossorigin="anonymous"></script>
</div>
</body>
</html>
Dbh.inc.php:

<?php

$dbServername = "localhost";
$dbUsername = "root";
$dbPassword = "";
$dbName = "loginsystem";

$conn = mysqli_connect($dbServername, $dbUsername, $dbPassword, $dbName);


 Output
 Database Table
 CONCLUSION

In conclusion, our Gym Management System in PHP represents


a commitment to providing Gyms with a robust and dynamic tool
for all their operations. our System is designed to be a versatile
companion in both everyday Operations.
 REFRENCE

https://www.scribd.com/document/542328046/PHP-Final-
Micro-Project-UPDATED

https://www.scribd.com/document/139226193/PhP-
Project-Report

https://openai.com/index/chatgpt/

You might also like