Gym Management System Project Report
Gym Management System Project Report
“GYM MANAGEMENT”
SUBMITTED FOR PARTIAL FULLFILMENT OF THE REQUIREMENT FOR
I would like also express my sincere regards to Prof. R.P Gupta (HOD, MCA) and
my faculties who give me moral support that is most beneficial at the moment when
I worked atmy Major project.
I would like to express my sincere regard to Prof. R.P GUPTA (HOD, MCA) who
gave me chance of selection of my project and also for his constant encouragement
and timely suggestion during all academic sessions, his support and encouragement
during all the academic years.
I am great thankful to all staff members for their constant and generous help and kind
co -operation and valuable suggestion during the project work.
I am sure that this project has given me an edge, a firm grounding and has prepared
me to take new challenging jobs in future.
4. EXISTING SYSTEM
5. PROPOSED SYSTEM
6. MODULE LIST
7. ARCHITECTURE DIAGRAMS
8. USECASE DIAGRAMS
9. WORKFLOW DIAGRAMS
10. CONCLUSION
AIM OF THE PROJECT
➢ In many Gyms, the payment receipts are in paper format. So, it is very difficult
for both gym members to keep all the paper receipts safely and to gym trainer to
keep reminding for the fee receipts.
➢ Sometimes it creates a trouble when members lost their receipts. The other
problem that can be faced by a gym
owner is that if he/she wants to inform any message related to working or non-working
days of gym, manually
sending message become difficult. If there is online application available these
problems can be solved.
➢ So, I am developing an application to overcome some of these issues. So this
project can be helpful for both gym
owner as well as for gym members.
➢ In this application all receipts are store in a digital format, so there are no issues
of losing any confidential receipts.
This application will also notify the user (gym members) about their fees and also
notifies the gym owner about the
payment clearance.
➢ This application can be elaborated by providing supplement store, diet
information, personal training etc. every
member handle the diet maintenance with once registration and also provide a
personal training for each and every
members.
OBJECTIVE OF THIS PROJECT
The objective of this system is to digitalize and create an automated system. The
system will perform the task like
adding the new member to the gym, removing the member or keeping the payments
records and other stuff
required in managing the gym properly.
1. Automating the existing system.
2. Reducing time taken to enter client and staff data.
3. To centralize the management of the gym and fitness centre.
4. Reduce data loss in the manual system already in place.
5. Reduce the cost of maintenance of the gym and data storage and reducing the
space occupied the files being used.
6. Make data retrieval easy and reduce time wasted when manually searching for data.
7. Reduce data redundancy. Redundancy is the repetition of similar data in the system.
Redundancy occurs when data is updated so there occurs more than one copy of data
I which consumes a lot of space.
SOFTWARE AND HARDWARE REQUIREMENTS
HARDWARE REQUIREMENTS:
• Processor : intel 3
• Motherboard : intel 915gvsr chipset board
• Ram : 1 gb ddr2 ram
• Hard disk drive : 160 gb
SOFTWARE REQUIREMENTS:
The gym is working manually. The current system is time consuming and also it is very
costly, because it involves a lot of paperwork. To manually handle the system was very
difficult task. But now-a-days computerization made easy to work. The following are
the reasons why the current system should be
computerized:
• To increase efficiency with reduced cost.
• To reduce the burden of paper work.
• To save time management for recording details of each and every member and
employee.
• To generate required reports easily.
1. The proposed system is highly secured, because for login the system it requires
the username and password which is different for each department therefore
providing each department a different view of the customer information.
2. It provides wide range of certain criteria in each window the client is working
for better and quicker solution.
3. It maintains report for all criteria and transactions.
4. Manages member information separately for all bill information separately
for considering the requirement of gym.
5. Stores information about regular products.
6. Diet recommendation
MODULE LIST
ADMINISTRATOR
➢ Login
➢ Add Member
➢ Update/Delete Members
➢ Create Bills
➢ Assign Fee Package
➢ Assign Notification for monthly
➢ Report export
➢ Supplement store
➢ Diet Details
USER
➢ Login
➢ View Bill Receipts
➢ View bill notification
➢ View diet
➢ View attendance
➢ View schedule
CHAT BOT
WORKFLOW DIAGRAMS
CODING
<?php
session_start()
;
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../[Link]');
}
?>
<!-- Visit [Link] for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link href="../font-awesome/css/[Link]" rel="stylesheet" />
<link href="../font-awesome/css/[Link]" rel="stylesheet" />
<link href='[Link] rel='stylesheet'
type='text/css'>
</head>
<body>
<!--Header-part-->
<div id="header">
<h1><a href="[Link]">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<?php include 'includes/[Link]'?>
if(isset($_POST['fullname'])){
$fullname = $_POST["fullname"];
$username = $_POST["username"];
$password = $_POST["password"];
$email = $_POST["email"];
$address = $_POST["address"];
$designation = $_POST["designation"];
$gender = $_POST["gender"];
$contact = $_POST["contact"];
$password =
md5($password);
include
'[Link]';
//code after connection is successfull
$qry = "insert into
staffs(fullname,username,password,email,address,designation,gender,contact) values
('$fullname','$username','$password','$email','$address','$designation','$gender','$contact')
";
$result = mysqli_query($conn,$qry); //query executes
if(!$result){
echo"<div class='container-fluid'>";
echo"<div class='row-
fluid'>"; echo"<div
class='span12'>";
echo"<div class='widget-
box'>";
echo"<div class='widget-title'> <span class='icon'> <i class='fas fa-
info'></i> </span>"; echo"<h5>Error Message</h5>";
echo"</div>";
echo"<div class='widget-
content'>"; echo"<div
class='error_ex'>";
echo"<h1 style='color:maroon;'>Error
404</h1>"; echo"<h3>Error occured while
submitting your details</h3>";
echo"<p>Please Try Again</p>";
echo"<a class='btn btn-warning btn-big' href='edit-
[Link]'>Go Back</a> </div>"; echo"</div>";
echo"</div>";
echo"</div>";
echo"</div>";
echo"</div>";
}else {
echo"<div
class='container-fluid'>";
echo"<div class='row-
fluid'>"; echo"<div
class='span12'>";
echo"<div class='widget-
box'>";
echo"<div class='widget-title'> <span class='icon'> <i class='fas fa-
info'></i> </span>"; echo"<h5>Message</h5>";
echo"</div>";
echo"<div class='widget-
content'>"; echo"<div
class='error_ex'>";
echo"<h1>Success</h1>";
echo"<h3>Staff details has been added!</h3>";
echo"<p>The requested staff details are added to database. Please click
the button to go back.</p>"; echo"<a class='btn btn-inverse btn-big'
href='[Link]'>Go Back</a> </div>";
echo"</div>";
echo"</div>";
echo"</div>";
echo"</div>";
echo"</div>";
}
// <!-- Visit [Link] for more projects -->
}else{
echo"<h3>YOU ARE NOT AUTHORIZED TO REDIRECT THIS PAGE. GO BACK to
<a href='[Link]'> DASHBOARD </a></h3>";
}
?> </div></div>
</body>
</html>
<?php
session_start()
;
if(!isset($_SESSION['user_id']))
{ header('location:../[Link]');
}
?>
<!-- Visit [Link] for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link href="../font-awesome/css/[Link]" rel="stylesheet" />
<link href="../font-awesome/css/[Link]" rel="stylesheet" />
<link rel="stylesheet" href="../css/[Link]" />
<link href='[Link] rel='stylesheet'
type='text/css'>
</head>
<body>
<!--Header-part-->
<div id="header">
<h1><a href="[Link]">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!-- Visit [Link] for more projects -->
<!--top-Header-menu-->
<?php include 'includes/[Link]'?>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<!-- <div id="search">
<input type="hidden" placeholder="Search here..."/>
<button type="submit" class="tip-bottom" title="Search"><i class="fa-search fa-
white"></i></button>
</div> -->
<!--close-top-serch-->
<!--sidebar-menu-->
<?php $page='add-equip'; include 'includes/[Link]'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="[Link]" title="Go to Home" class="tip-bottom"><i
class="fa fa-home"></i> Home</a>
<a href="#" class="tip-bottom">Manamge Members</a> <a href="#" class="current">Add
Members</a> </div>
<h1>Equipment Entry Form</h1>
</div>
<form role="form" action="[Link]" method="POST">
<?php
if(isset($_POST['ename'])){
$name = $_POST["ename"];
$amount = $_POST["amount"];
$vendor = $_POST["vendor"];
$description = $_POST["description"];
$date = $_POST["date"];
$quantity = $_POST["quantity"];
$address = $_POST["address"];
$contact = $_POST["contact"];
$totalamount = $amount *
$quantity; include
'[Link]';
//code after connection is successfull
$qry = "insert into
equipment(name,description,amount,vendor,address,contact,date,quantity) values
('$name','$description','$totalamount','$vendor','$address','$contact','$date','$quantity')";
$result = mysqli_query($conn,$qry); //query executes
if(!$result){
echo"<div class='container-
fluid'>"; echo"<div
class='row-fluid'>";
echo"<div
class='span12'>";
echo"<div class='widget-
box'>";
echo"<div class='widget-title'> <span class='icon'> <i class='fas
fa-info'></i> </span>"; echo"<h5>Error Message</h5>";
echo"</div>";
echo"<div class='widget-
content'>"; echo"<div
class='error_ex'>";
echo"<h1 style='color:maroon;'>Error
404</h1>"; echo"<h3>Error occured while
entering your details</h3>";
echo"<p>Please Try Again</p>";
echo"<a class='btn btn-warning btn-big' href='[Link]'>Go
Back</a> </div>"; echo"</div>";
echo"</
div>";
echo"</div
>";
echo"</div
>";
echo"</div>";
}else {
echo"<div class='container-
fluid'>"; echo"<div
class='row-fluid'>";
echo"<div
class='span12'>";
echo"<div class='widget-
box'>";
echo"<div class='widget-title'> <span class='icon'> <i class='fas fa-info'></i>
</span>"; echo"<h5>Message</h5>";
echo"</div>";
echo"<div class='widget-
content'>"; echo"<div
class='error_ex'>";
echo"<h1>Success</h1>";
echo"<h3>Equipment record has been added!</h3>";
echo"<p>The requested details are added. Please click the
button to go back.</p>"; echo"<a class='btn btn-inverse btn-
big' href='[Link]'>Go Back</a> </div>";
echo"</
div>";
echo"</di
v>";
echo"</
div>";
echo"</div
>";
echo"</div>";
}
}else{
echo"<h3>YOU ARE NOT AUTHORIZED TO REDIRECT THIS PAGE. GO BACK to <a
href='[Link]'> DASHBOARD </a></h3>";
}
?>
</form>
</div>
</div></
div>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<style>
#footer
{ color:
white;
}
</style>
<!--end-Footer-part-->
<!-- Visit [Link] for more projects -->
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value
returned is a null string: function goPage
(newURL) {
<!--Header-part-->
<div id="header">
<h1><a href="[Link]">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!--sidebar-menu-->
<?php $page='announcement'; include 'includes/[Link]'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="[Link]" title="Go to Home" class="tip-bottom"><i
class="fas fa-home"></i> Home</a><a href="[Link]"
class="current">Announcements</a> </div>
<h1>Announcement</h1>
</div>
<div class="container-fluid">
<hr>
<a href="[Link]"><button class="btn btn-danger"
type="button">Manage Your Announcements</button></a>
<div class="row-fluid">
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="fas fa-align-justify"></i>
</span>
<h5>Make Announcements</h5>
</div>
<div class="widget-content">
<div class="control-group">
<form action="[Link]" method="POST">
<div class="controls">
<textarea class="span12" name="message" rows="6" placeholder="Enter text
..."></textarea>
</div>
<div class="controls">
</div></div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<style>
#footer
{ color:
white;
}
</style>
<!--end-Footer-part-->
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value
returned is a null string: function goPage
(newURL) {
<?php
session_start()
;
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../[Link]');
}
?>
<!-- Visit [Link] for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link href="../font-awesome/css/[Link]" rel="stylesheet" />
<link href="../font-awesome/css/[Link]" rel="stylesheet" />
<link href='[Link] rel='stylesheet'
type='text/css'>
</head>
<body>
<!-- Visit [Link] for more projects -->
<!--Header-part-->
<div id="header">
<h1><a href="[Link]">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<?php include 'includes/[Link]'?>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<!-- <div id="search">
<input type="hidden" placeholder="Search here..."/>
<button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-
white"></i></button>
</div> -->
<!--close-top-serch-->
<!-- Visit [Link] for more projects -->
<!--sidebar-menu-->
<?php $page="attendance"; include 'includes/[Link]'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="[Link]" title="Go to Home" class="tip-bottom"><i
class="fas fa-home"></i> Home</a>
<a href="[Link]" class="current">Manage Attendance</a> </div>
<h1 class="text-center">Attendance List <i class="fas fa-calendar"></i></h1>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class='widget-box'>
<div class='widget-title'> <span class='icon'> <i class='fas fa-th'></i> </span>
<h5>Attendance Table</h5>
</div>
<div class='widget-content nopadding'>
<tbody>
<?php
$qry = "SELECT * FROM attendance WHERE curr_date = '$todays_date' AND
user_id = '".$row['user_id']."'";
$res = $conn->query($qry);
$num_count = mysqli_num_rows($res);
$row_exist = mysqli_fetch_array($res);
$curr_date =
$row_exist['curr_date'];
if($curr_date == $todays_date){
?>
<td>
<div class='text-center'><span class="label label-inverse"><?php echo
$row_exist['curr_date'];?> <?php echo
$row_exist['curr_time'];?></span></div>
<div class='text-center'><a href='actions/[Link]?id=<?php echo
$row['user_id'];?>'><button class='btn btn-danger'>Check Out <i class='fas fa-
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<style>
#footer
{ color:
white;
}
</style>
<!--end-Footer-part-->
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
</script>
</body>
</html>
<?php
session_start()
;
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../[Link]');
}
?>
<!-- Visit [Link] for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link href="../font-awesome/css/[Link]" rel="stylesheet" />
<link href="../font-awesome/css/[Link]" rel="stylesheet" />
<link rel="stylesheet" href="../css/[Link]" />
<link href='[Link] rel='stylesheet'
type='text/css'>
</head>
<body>
<!--Header-part-->
<h1><a href="[Link]">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<?php include 'includes/[Link]'?>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<!-- <div id="search">
<input type="hidden" placeholder="Search here..."/>
<button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-
white"></i></button>
</div> -->
<!--close-top-serch-->
<!-- Visit [Link] for more projects -->
<!--sidebar-menu-->
<?php $page='manage-customer-progress'; include 'includes/[Link]'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="[Link]" title="Go to Home" class="tip-bottom"><i
class="fas fa-home"></i> Home</a>
<a href="[Link]" class="current">Customer Progress</a> </div>
<h1 class="text-center">Update Customer's Progress <i class="fas fa-signal"></i></h1>
</div>
<div class="container-fluid">
<hr>
<div class="row-fluid">
<div class="span12">
<div class='widget-box'>
<div class='widget-title'> <span class='icon'> <i class='fas fa-th'></i> </span>
<h5>Member's Table</h5>
<form id="custom-search-form" role="search" method="POST" action="search-
[Link]" class="form-search form-horizontal pull-right">
<div class="input-append span12">
<input type="text" class="search-query" placeholder="Search" name="search"
required>
<button type="submit" class="btn"><i class="fas fa-search"></i></button>
</div>
</form>
</div>
<?php
include "[Link]";
$qry="select * from members";
$cnt=1;
$result=mysqli_query($conn,$qry);
<th>Plan</th>
<th>Action</th>
</tr>
</thead>";
while($row=mysqli_fetch_array($re
sult)){ echo"<tbody>
<td><div class='text-center'>".$cnt."</div></td>
<td><div class='text-center'>".$row['funame']."</div></td>
<td><div class='text-center'>".$row['services']."</div></td>
<td><div class='text-center'>".$row['plan']." Month/s</div></td>
<td><div class='text-center'><a href='[Link]?id=".
$row['user_id']."'><button class='btn btn-warning btn'> Update
Progress</button></a></div></td>
</tbody>";
$cnt++; }
?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<style>
#footer
{ color:
white;
}
</style>
<!--end-Footer-part-->
<style>
#custom-search-
form {
margin:0;
margin-top:
5px; padding:
0;}
#custom-search-form
.search-query
{ padding-right: 3px;
padding-right:
4px \9;
padding-left:
3px; padding-
left: 4px \9;
/* IE7-8 doesn't have border-radius, so don't indent the padding */
margin-bottom: 0;
-webkit-border-radius: 3px;
-moz-border-
radius: 3px;
border-radius:
3px;
}
#custom-search-form button {
border: 0;
background: none;
/** belows styles are
working good */ padding:
2px 5px;
margin-top:
2px;
position:
relative;
left: -28px;
/* IE7-8 doesn't have border-radius, so don't
indent the padding */ margin-bottom: 0;
-webkit-border-radius: 3px;
-moz-border-
radius: 3px;
border-radius:
3px;
}
.search-query:focus
+ button { z-index:
3;
}
</style>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
</body>
</html>
<?php
session_start()
;
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../[Link]');
}
?>
<!-- Visit [Link] for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link href="../font-awesome/css/[Link]" rel="stylesheet" />
<link href="../font-awesome/css/[Link]" rel="stylesheet" />
<link rel="stylesheet" href="../css/[Link]" />
<link href='[Link] rel='stylesheet'
type='text/css'>
</head>
<body>
<!--Header-part-->
<div id="header">
<h1><a href="[Link]">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!--sidebar-menu-->
<?php $page='update-equip'; include 'includes/[Link]'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="[Link]" title="Go to Home" class="tip-bottom"><i
class="fas fa-home"></i> Home</a>
<a href="#" class="current">Equipment List</a> </div>
<h1 class="text-center">Perfect Gym's Equipment List <i class="fas fa-cogs"></i></h1>
</div>
<div class="container-fluid">
<hr>
<div class="row-fluid">
<div class="span12">
<div class='widget-box'>
<div class='widget-title'> <span class='icon'> <i class='fas fa-cogs'></i> </span>
<h5>Equipment table</h5>
</div>
<div class='widget-content nopadding'>
<?php
include "[Link]";
$qry="select * from equipment";
$cnt = 1;
$result=mysqli_query($conn,$qry);
echo"<tbody>
<td><div class='text-center'>".$cnt."</div></td>
<td><div class='text-center'>".$row['name']."</div></td>
<td><div class='text-center'>".$row['description']."</div></td>
<td><div class='text-center'>".$row['quantity']."</div></td>
<td><div class='text-center'>$".$row['amount']."</div></td>
<td><div class='text-center'>".$row['vendor']."</div></td>
<td><div class='text-center'>".$row['address']."</div></td>
<td><div class='text-center'>".$row['contact']."</div></td>
<td><div class='text-center'>".$row['date']."</div></td>
<td><div class='text-center'><a href='[Link]?id=".$row['id']."'><i
class='fas fa-edit'></i> Edit</a></div></td>
</tbody>";
$cnt++; }
?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<style>
#footer
{ color:
white;
}
</style>
<!--end-Footer-part-->
<!-- Visit [Link] for more projects -->
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script src="../js/[Link]"></script>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value returned is a null string:
function goPage (newURL) {
<?php
session_start()
;
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../[Link]');
}
include "[Link]";
$qry="SELECT services, count(*) as number FROM members GROUP BY services";
$result=mysqli_query($con,$qry);
$qry="SELECT gender, count(*) as enumber FROM members GROUP BY gender";
$result3=mysqli_query($con,$qry);
$qry="SELECT designation, count(*) as snumber FROM staffs GROUP BY designation";
$result5=mysqli_query($con,$qry);
?>
<!-- Visit [Link] for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link rel="stylesheet" href="../css/[Link]" />
<link href="../font-awesome/css/[Link]" rel="stylesheet" />
<link href="../font-awesome/css/[Link]" rel="stylesheet" />
<link rel="stylesheet" href="../css/[Link]" />
<link href='[Link] rel='stylesheet'
type='text/css'>
<script type="text/javascript" src="[Link]
<script type="text/javascript">
[Link]('current',
{'packages':['corechart']});
[Link](dra
wChart); function drawChart()
{
var data =
[Link]
e([ ['Services', 'Number'],
<?php
0: { side: 'top', label: 'Total'} // Top x-axis.
}
},
bar: { groupWidth: "100%" }
};
</script>
while($row = mysqli_fetch_array($result))
{
echo "['".$row["services"]."', ".$row["number"]."],";
}
?>
]);
var options = {
//is3D:true,
pieHole:
0.4 ,
};
var chart = new
[Link]([Link]('piechart'));
[Link](data, options);
}
</script>
<!-- Visit [Link] for more projects -->
<script type="text/javascript" src="[Link]
<script type="text/javascript">
[Link]('current',
{'packages':['bar']});
[Link](
drawStuff);
function drawStuff() {
var data = new
[Link]([
['Services', 'Total Numbers'],
// ["King's pawn (e4)", 44],
// ["Queen's pawn (d4)", 31],
// ["Knight to King 3 (Nf3)", 12],
// ["Queen's bishop pawn (c4)", 10],
// ['Other', 3]
<?php
$query="SELECT services, count(*) as number FROM members GROUP BY
services";
$res=mysqli_query($con,$query);
while($data=mysqli_fetch_array($re
s)){
$services=$data['services'];
$number=$data['number'];
?>
['<?php echo $services;?>',<?php echo $number;?>],
<?php
}
?>
]);
var options = {
// title: 'Chess opening
moves', width: 710,
legend: { position: 'none' },
// chart: { title: 'Chess opening moves',
// subtitle: 'popularity by percentage' },
bars: 'vertical', // Required for
Material Bar Charts. axes: {
x: {<button type="submit" class="btn"><i class="fas fa-search"></i></button>
</div>
</form>
</div>
<?php
include "[Link]";
$qry="SELECT * FROM members";
$cnt = 1;
$result=mysqli_query($conn,$qry);
OUTPUT SCREEN SHOTS
CONCLUSION