0% found this document useful (0 votes)
29 views105 pages

Gym Management System Final Report

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)
29 views105 pages

Gym Management System Final Report

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/ 105

BANGALORE UNIVERSITY

A PROJECT REPORT
ON
“GYM MANAGEMENT SYSTEM”

Submitted in Practical fulfillment for the award of the degree


BACHELOR OF COMPUTER APPLICATION
Submitted by
HARSHITH M 208MSB7027

UNDER THE GUIDANCE OF


DR. KAVITHA R G
DEPARTMENT OF COMPUTER APPLICATION

RNS FIRST GRADE COLLEGE


NAAC ACCREDITED WITH “A” GRADE
Channasandra, Bengaluru- 560098

2022-23
RNS FIRST GRADE COLLEGE
NAAC ACCREDITED WITH “A” GRADE
Channasandra, Bangalore - 560098

CERTIFICATE

This is to certify that Harshith M (Register No. 208MSB7027) has successfully completed the
project titled “GYM MANAGEMENT SYSTEM” at RNS First Grade College under my
supervision and guidance in the fulfillment of requirements of VI semester, Bachelor of
Computer Applications of Bangalore University, Bangalore.

Signature of the Guide:

Head of the Department Principal

Signature of the Examiners: -

1)...........................

2).........................
ACKNOWLEDGEMENT

I express my deep sense of gratitude to my guide Dr. Kavitha R G, Department


of BCA for providing valuable suggestions and guidance during the
development, designing and implementation of the project, without which it
would not have been possible to complete the project.

I express my sincere thanks to our beloved Principal, Dr. Sudheer Pai K L, for
providing us all the facilities for laboratory and library.

I express my gratitude to our Vice Principal Prof. Shilpa Sarnad for her
continuous support and assistance during the course of my project.

I wish to reciprocate in full measure the kindness shown by Dr. Mohan S H,


Head of the Department who inspired us with his valuable suggestions in
successfully completing the project work.

I express my grateful thanks to all the staff members, Department of BCA for
their valuable assistance, encouragement and co-operation during this
wonderful learning experience.

Finally, I would like to express my sincere thanks to my parents and my friends


for the useful tips and moral support.
TABLE OF CONTENTS
CHAPTER – 1 INTRODUCTION

1.1 Aim
1.2 Existing system
1.3 Proposed System
1.4 Objective
1.5 Modules

CHAPTER – 2 SYSTEM ANALYSIS

2.1 Feasibility Study


2.1.1 Technical Feasibility
2.1.2 Economical Feasibility
2.1.3 Operational Feasibility
2.2 Software and Hardware Components

CHAPTER – 3 SOFTWARE COMPONENTS

3.1 Introduction to HTML


3.2 Introduction to PHP
3.3 Introduction to Apache server

CHAPTER – 4 SOFTWARE REQUIREMENTS

4.1 Definition
4.2 Function Requirements
4.3 Non-Function Requirements

CHAPTER – 5 SYSTEM DESIGN

5.1 Definition
5.2 Conceptual Design
5.3 Logical Design
5.4 Physical Design
5.5 E R Diagram
5.6 Methodology

CHAPTER – 6 SCREENSHOTS

6.1 Login Form


6.2 Admin Dashboard
6.3 Admin Dashboard
6.4 Announcement Form
6.5 Attendance Form
6.6 Customer Dashboard
6.7 Diet Form
6.8 Equipment Entry Form
6.9 Gym Equipment Form
6.10 Registered Members List Form
6.11 Customer’s Progress Form
6.12 Manage Gym Staff Form
6.13 Member’s Status Form
6.14 Member Entry Form
6.15 Payments Form
6.16 Staff Member’s Dashboard

CHAPTER – 7 CODING

CHAPTER – 8 SYSTEM TESTING

8.1 Testing
8.2 Unit Testing
8.3 Validation Testing
8.4 Performance Testing

CHAPTER – 9 FUTURE ENHANCEMENT

CHAPTER – 10 CONCLUSIONS

BIBLIOGRAPHY
GYM MANAGEMENT SYSTEM

INTRODUCTION

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 1


GYM MANAGEMENT SYSTEM

CHAPTER 1
INTRODUCTION

A fully functional project based on Gym Management System Project which uses
PHP Language with MySQL Database. It has a number of features that will allow
users to manage gym memberships, services, and daily records. This web
application’s concept is all clear. It’s the same as real-life scenarios and well-
implemented on it. the system helps to keep track of customers and track
activities with respect to their chosen services. Also, the system displays all the
available service packages. In addition, the system allows online registration for
the customers. Evidently, this project contains an admin panel with customer and
staff panels.

The Gym Management System is a comprehensive web application designed to


streamline and automate the operations of a fitness center or gym. It provides gym
owners, staff members, and clients with a user-friendly platform to manage
various aspects of their fitness journey.

With our Gym Management System, you can efficiently handle membership
management, class scheduling, trainer assignments, billing and payments,
attendance tracking, and much more. The system is built using PHP, a popular
server-side scripting language, known for its flexibility and wide community
support.

The Gym Management System is a powerful web-based application that allows


gym owners, staff members, and clients to efficiently manage various aspects of a
fitness center. This system leverages the capabilities of the Apache Server, widely
used and highly reliable web server software.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 2


GYM MANAGEMENT SYSTEM

1.1 AIM

The aim of a gym management system is to streamline and automate various


administrative and operational tasks involved in running a fitness center or gym.
The system aims to provide gym owners, staff members, and clients with a
comprehensive and user-friendly platform to manage and enhance their fitness
journey.
Here are some specific aims of a gym management system:
1. Efficient Membership Management: The system aims to simplify the
process of managing memberships by providing tools for creating and
maintaining member profiles, subscription plans, and renewal dates. It
helps keep track of member information, preferences, and history, ensuring
accurate and up-to-date records.
2. Effective Class and Schedule Management: The system aims to simplify
the scheduling and management of fitness classes, allowing gym owners
and staff to create and update class schedules, assign trainers, and monitor
class capacity. It aims to provide members with easy access to class
schedules, the ability to sign up or cancel classes, and receive notifications
for any changes or updates.
3. Streamlined Trainer Management: The system aims to optimize the
allocation and management of trainers. It provides tools to assign trainers to
specific classes or personal training sessions based on their availability,
qualifications, and member preferences. This helps ensure efficient
scheduling and allocation of resources.
4. Automated Billing and Payments: The system aims to automate billing
processes and generate invoices for membership fees, additional services,
or personal training sessions. It aims to provide multiple payment options,
track payment status, and send payment reminders to members,
streamlining the financial management of the gym.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 3


GYM MANAGEMENT SYSTEM

1.2 EXISTING SYSTEM

In the existing system the exams are done only manually but in proposed system we have
to computerize the exams using this application.
 Lack of security of data.
 More man power.
 Time consuming.
 Consumes large volume of pare work.
 Needs manual calculations.
 No direct role for the higher officials.

1.3 PROPOSED SYSTEM

The aim of proposed system is to develop a system of improved facilities. The


proposed system can overcome all the limitations of the existing system. The
system provides proper security and reduces the manual work.

 Security of data.

 Ensure data accuracy’s.

 Proper control of the higher officials.

 Minimize manual data entry.

 Minimum time needed for the various processing.

 Greater efficiency.

 Better service.

 User friendliness and interactive.

 Minimum time required.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 4


GYM MANAGEMENT SYSTEM

1.4 OBJECTIVES

 Client Acquisition
 Client Retention
 Managing Bookings and Scheduling Classes
 Email Marketing
 Billing Process Management

 Cost Reduction through Data

1.5 MODULES

The proposed project will have its main page and will be mainly divided into
partially dependent and partially independent modules as.

 Member Management

 Staff Management

 Billing and Payment

 Attendance Tracking

 Reporting and Analytics

 Access Control

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 5


GYM MANAGEMENT SYSTEM

SYSTEM ANALYSIS

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 6


GYM MANAGEMENT SYSTEM

CHAPTER 2
SYSTEM ANALYSIS

2.1. FEASIBILITY STUDY

The existing system is clearly understood. The next step is to conduct the
feasibility study, which is a high-level capsule version of the entire system
analysis and design process. The objective is to determine whether the proposed
system is feasible. The three tests of feasibility nave been coming out:

1. Technical feasibility

2. Economic feasibility

3. Operational feasibility

2.1.1 TECHNICAL FEASIBILITY

In technical feasibility study, one has to test whether the proposed system can
be developed using existing technology or not. It is planned to implement the
proposed system using Windows 2000 Professional, JSP and Apache Tomcat
Web Server.

The Organization already possesses the Windows 2000 Professional Operating


System. It is evident that the necessary hardware and software are available for

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 7


GYM MANAGEMENT SYSTEM

the development and implementation of the proposed system. Hence the


solution is technically feasible.

2.1.2 ECONOMICAL FEASIBILITY

As part of this, the costs and benefits associated with the proposed system are to
be compared and the project is economically feasible only if benefits outweigh
costs. The Organization has already its own satellite link, and a host of SUN
FIRE 6800 servers.

So, it need not invest newly for the internet connection and also the organization
initiated to use Open Source in project development, hence there is 0 additional
cost incurred for the tools that will be used.

2.1.3 OPERATIONL FEASIBILITY

This test of feasibility checks if the system works with least difficulties when it
is developed and installed. The technical staffs have sufficient knowledge of the
tools being used and the users need just to know how to access and run the
programs in the Apache Web Server. Hence it is concluded that the system is
operationally feasible.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 8


GYM MANAGEMENT SYSTEM

2.2 SOFTWARE AND HARDWARE REQUIREMENTS

Software Requirement

 Frontend Tool: HTML, CSS, JavaScript & Php.


 Backend Tool: MySQL.
 Operating system: Windows 10.
 Server system: Apache.

Hardware Requirement

 Processor: Intel core i3 10th Gen


 Ram: 8GB
 Solid Disk: 256GB SSD
 Graphics: Intel UHD 630

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 9


GYM MANAGEMENT SYSTEM

SOFTWARE COMPONENTS

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 10


GYM MANAGEMENT SYSTEM

CHAPTER 3

SOFTWARE COMPONENTS

TECHNOLOGY USED

MySQL server is installed or required for the current system.

3.1 INTRODUCTION TO HTML

HTML, which stands for Hypertext Mark-up Language, is the standard mark-up
language used to create the structure and content of web pages. It provides a set
of tags or elements that define the various components of a webpage, such as
headings, paragraphs, images, links, and more.
HTML uses a simple and straightforward syntax, making it easy to learn and
understand. It is a key building block in web development, as it forms the
foundation for creating the structure and layout of a webpage.
HTML documents consist of a series of elements enclosed within opening and
closing tags. The opening tag indicates the start of an element, while the closing
tag denotes its end. Elements can also contain attributes, which provide
additional information about the element.

3.2 INTRODUCTION TO PHP

PHP, which stands for Hypertext Pre-processor, is a popular server-side


scripting language used primarily for web development. It is embedded within
HTML code and executed on the server before the resulting HTML is sent to
the client's web browser. PHP enables the creation of dynamic web pages and
the development of robust web applications.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 11


GYM MANAGEMENT SYSTEM

One of the key advantages of PHP is its ability to interact with databases,
making it well-suited for creating websites that involve data manipulation and
storage. It can seamlessly connect to various database systems, such as MySQL,
PostgreSQL, and Oracle, allowing you to retrieve, insert, update, and delete
data.

3.3 INTRODUCTION TO APACHE SERVER

The Apache HTTP Server commonly referred to as Apache, is one of the most
widely used open-source web server software in the world. It provides a reliable
and powerful platform for serving web pages and handling HTTP requests.
Originally developed in 1995, Apache has grown into a robust and feature-rich
web server that can be deployed on various operating systems, including
Windows, Linux, and macOS. It has a strong reputation for its stability,
performance, and security, making it a popular choice for hosting websites of all
sizes.
One of the key features of Apache is its modular architecture, which allows for
flexibility and extensibility. Apache's core functionality can be extended
through modules, enabling developers to add additional features and customize
the server's behavior based on specific needs. There are numerous modules
available that provide functionalities such as SSL/TLS encryption, URL
rewriting, caching, compression, and more.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 12


GYM MANAGEMENT SYSTEM

SOFTWARE REQUIREMENT
SPECIFICATION

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 13


GYM MANAGEMENT SYSTEM

CHAPTER 4

SOFTWARE REQUIREMENT SPECIFICATION

4.1 DEFINITION
A software requirements specification (SRS) is a description of a software
system to be developed. It lays out functional and non-functional requirements,
and may include a set of use cases that describe user interactions that the
software must provide.

It serves as a product validation check. The SRS also serves as the parent
document for testing and validation strategies that will be applied to the
requirements for verification.

SRS are typically developed during the first stages of "Requirements


Development '' which is the initial product of the development phase in which
information is gathered about what requirements are needed--and not. This
information-gathering stage can include onsite visits, questionnaires, surveys,
interviews, and perhaps a return-on-investment (ROI) analysis or needs analysis
of the customer or client's current business environment. The actual
specification, then, is written after the requirements have been gathered and
analyzed

Software requirements specification establishes the basis for an agreement


between customers and contractors or suppliers (in market-driven projects, these
roles may be played by the marketing and development divisions) on what the
software product is to do as well as what it is not expected to do. Software
requirements specification permits a rigorous assessment of requirements before
design can begin and reduces later redesign. It should also provide a realistic

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 14


GYM MANAGEMENT SYSTEM

basis for estimating product costs, risks, and schedules. Used appropriately,
software requirements specifications can help prevent software project failure.

The software requirements specification document enlists enough and necessary


requirements that are required for the project development. To derive the
requirements, the developer needs to have a clear and thorough understanding
of the products to be developed or being developed. This is achieved and
refined with detailed and continuous communications with the project team and
customer till the completion of the software.

4.2 FUNCTIONAL REQUIREMENTS

The International Institute of Business Analysis (IIBA) defines functional


requirements as product capabilities, or things that a product must do for Its
users. Functional requirement defines how software behaves to meet userneeds.

USER SIGN UP

 To enter into this site a user has to signup first.

 Requirements of signup are username, password etc.

 Username to Sign up.

 This prevents duplication of username.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 15


GYM MANAGEMENT SYSTEM

 Password is checked as per validation.

 Passwords are encrypted for user security.

USER LOGIN

• The system provides facility to the user to login into the system.

• Enter username and password. Users can either enter their


Username.

• Once logged in user can see the profile page.

USER REGISTRATION

 This is a user registration form.

 User Registration

USER LOGOUT

 The system provides the facility to logout from the site.

 Logout from the system.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 16


GYM MANAGEMENT SYSTEM

4.3 NON FUNCTIONAL REQUIREMENTS

The IIBA defines non-functional requirements as "the quality attributes, design


and Implementation constraints, and external Interfaces which a product must
nave.
A non-functional requirement is a statement of how a system must behave; it is
a constraint upon the system behavior.

Non-functional requirements specify all the remaining requirements not covered


by the functional requirements.

Non-functional requirements place restrictions on the product being developed,


the development process, and specify external constraints that the product must
meet.

PERFORMANCE REQUIREMENTS

 The system needs to be reliable

 The load time for the user interface screen shall take no longer than two
seconds.

SAFETY REQUIREMENTS

 The details need to be maintained properly.

 Users must be authenticated.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 17


GYM MANAGEMENT SYSTEM

 The database must be kept backed up.

SECURITY REQUIREMENTS

 After entering the password and user id the user can access his profile.

 The details of the user must be safe and secure.

 Sharing of details.

RELIABILTY

 Response time should be minimum.

 The software will be available only to authorized users.

MAINTAINABILITY

 The software is developed in PHP with MySQL.

 It is easy to maintain.

PORTIBILITY

 The Study Tweaks Forum shall run in any platform with web browser
support

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 18


GYM MANAGEMENT SYSTEM

SYSTEM DESIGN

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 19


GYM MANAGEMENT SYSTEM

CHAPTER 5

SYSTEM DESIGN

System design is a modeling process. It is a solution, how to approach creating a


new system.

5.1 DEFINITION

It can be defined as a transition from users view to programmer s or database


person s view. The design phase mainly depends on the detailed specification in
the feasibility study. The system design phase acts as a bridge between the
required specification and the implementation phase.

From a project management point of view software design is conducted in two


steps. Preliminary design is concerned with the transformation of requirements
into data and software architecture. Detailed design focuses on refinement to the
architectural representation that leads to detailed data structure and algorithmic
representation for software.

The major steps in the design phase are input design, output design, and dealing
with coding issues. The very first step is design of Input and output screen to the
client requirements. Next comes the various issues that should be dealt with
while coding and the code should be such that it should be compatible with the
real time environment and should be generic in nature. System design is a
process through which requirements are translated into a representation of
software. Initially the representation depicts a holistic view of software. System

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 20


GYM MANAGEMENT SYSTEM

design serves as the foundation for all software engineering and software
maintenance steps that follow.

We look the design process from three distinct perspectives;

• Conceptual Design

• Logical Design

• Physical Design

5.2 CONCEPTUAL DESIGN

Conceptual Design is the process of acquiring and evaluating, documenting and


then validating what the user envisions to be the business relation. It identifies
the user and business requirements of the application and leads to a business
solution as seen by the user. All applications are built to solve business
problems, and it is important to pay close attention to the principle that the
business needs to drive application development. At any point in the design
process, the current state of the design should be directly traceable to a business
problem and requirements.

To achieve this conceptual design is driven by developing usage scenarios.


These scenarios are a direct representation of the user's view of the solution to a
specific business problem. A conceptual view places the emphasis on solving a
business problem and deriving a solution that corresponds to the needs and
requirements of the users. It is based on deriving the behaviour of the solution
with a primary emphasis on the user. Beginning with an emphasis on the

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 21


GYM MANAGEMENT SYSTEM

activities of the business rather than aspects of software development,


underscores the fact that systems exist to serve the business

5.3 LOGICAL DESIGN

Logical Design derives business objects and their related services directly from
these usage scenarios. The logical view of the solution provides a basis for
evaluating different physical options. It also formalizes the solution for the
project team.

The idea of the application is that the system first emerges in logical design. Its
boundaries are business objects and it contains the system definition. Logical
design specifies the interfaces between the system and external entities, such as
users and other systems. Within a system there may be a number of subsystems,
and these boundaries are also specified.

Logical System Design consists of the following steps:

• Input/output Specifications
• File Specification
• Processing Specifications

5.4 PHYSICAL DESIGN

The purpose of Physical Design is to translate the logical design into a solution
that can be implemented effectively, according to performance, administration
and development process requirements. This physical view should correctly
implement the desired system behavior while meeting the constraints imposed
by the technology.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 22


GYM MANAGEMENT SYSTEM

In Physical Design, the perspective shifts from an abstraction of system


behavior to an Implementation of the behavior.

The idea of the application is that the system first emerges in logical design. Its
boundaries and business objects contain the system definition. Logical design
specifies the interfaces between the system and external entities, such as users
and other systems. Within a system there may be a number of subsystems, and
these boundaries are also specified.

Logical System Design consists of the following steps:

 Input/output Specifications
 File Specifications
 Processing Specification

The aim of physical design is to specify how to build portioned applications


from software components. The interaction of these components through
defined Interfaces results in the desired behavior of the system as a whole.
Physical design consists of the following steps:

1. Design the physical media

• Specify Input/output media.


• Design the database and specify backup procedures.
• Design physical information flows through the system.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 23


GYM MANAGEMENT SYSTEM

2. Plan the system implementation

• Prepare a conversion schedule target date.


• Determine training procedure, courses and timetable.

3. Device a test and implementation plan.

4. Specify any new Hardware/Software usage.

5. Update benefits, costs, and conversion date and system constraint.

5.5 DATA FLOW DIAGRAM

DATA FLOW

 A data flow diagram shows the logical flows of data through a transaction
processing system of an organization.

 They are primarily used in the systems development process as a tool for
analyzing an existing system.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 24


GYM MANAGEMENT SYSTEM

PROCESS:

Procedures or devices that use or transform data.

SOURCE OR DESTINATION OF DATA

 Source or destination of data, which may be people, organization or other


entities, interact with the system but are outside its boundary.

DATA SOURCE:

 A Data Source referenced by a process in the system.

Login
GYM
USER ADMIN
MANAGEMENT
SYSTEM

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 25


GYM MANAGEMENT SYSTEM

ZERO LEVEL DFD- GYM Management System

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 26


GYM MANAGEMENT SYSTEM

5.6 E-R DIAGRAM

ER-modeling is a data modeling technique used in software engineering to


produce a conceptual data model of an information system. Diagrams created
using this ER-modeling technique are called Entity-Relationship Diagrams, or
ER diagrams or ERDs. An entity relationship diagram (ERD) shows the
relationships of entity sets stored in a database. An entity in this context is a
component of data. In other words, ER diagrams illustrate the logical structure
of databases. Entities-relationship analysis uses three major abstractions to
describe data.

1) ENTITY
Entities are represented by rectangles. An entity is an object or concept about
which you want to store information.

2) ATTRIBUTE
Attributes are represented by ovals. A key attribute is the unique, distinguishing
Characteristic of the entity. For example, an employee's social security number
might be the employee's key attribute.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 27


GYM MANAGEMENT SYSTEM

3) RELATIONSHIP
Relationship is represented by diamond shapes, show how two entities share
information.

In some cases, entities can be self-linked. For example, employees can


supervise other employees.

Employee

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 28


GYM MANAGEMENT SYSTEM

4) MULTIVATED ATTRIBUTES
A multivalued attribute can have more than one value. For example, an
employee entity can have multiple skill values.

Attribute

5) DERIVED ATTRIBUTES
A derived attribute is based on another attribute. For example, an employee's
monthly salary is based on the employee’s annual salary.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 29


GYM MANAGEMENT SYSTEM

ER DIAGRAM

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 30


GYM MANAGEMENT SYSTEM

5.7 Methodology

A structured approach that uses procedures, techniques, tools and


documentation help to support and make possible the process of design is called
Design methodology.

A design methodology encapsulates various phases, each containing some


stages which guide the designer in the techniques suitable at each stage of the
project. A design methodology also helps the designer to plan, manage, control,
and evaluate database development and managing projects. Furthermore, it is a
planned approach for analyzing and model a group of requirements for a
database in a standardized and ordered manner.

In this design methodology, the process of constructing a model of the data is


used in an enterprise, independent of all physical considerations. The conceptual
database design phase starts with the formation of a conceptual data model of
the enterprise that is entirely independent of implementation details such as the
target DBMS, use of application programs, programming languages used,
hardware platform, performance issues, or any other physical deliberations.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 31


GYM MANAGEMENT SYSTEM

SCREENSHOTS

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 32


GYM MANAGEMENT SYSTEM

CHAPTER 6
SCREENSHOTS

6.1 LOGIN FORM

6.2 ADMIN DASHBOARD

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 33


GYM MANAGEMENT SYSTEM

6.3 ADMIN DASHBOARD

6.4 ANNOUNCEMENT FORM

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 34


GYM MANAGEMENT SYSTEM

6.5 ATTENDANCE FORM

6.6 CUSTOMER DASHBOARD

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 35


GYM MANAGEMENT SYSTEM

6.7 DIET FORM

6.8 EQUIPMENT ENTRY FORM

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 36


GYM MANAGEMENT SYSTEM

6.9 GYM EQUIPMENT FORM

6.10 REGISTERED MEMBERS LIST FORM

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 37


GYM MANAGEMENT SYSTEM

6.11 CUSTOMER’S PROGRESS FORM

6.12 MANAGE GYM STAFF FORM

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 38


GYM MANAGEMENT SYSTEM

6.13 MEMBER’S STATUS FORM

6.14 MEMBER ENTRY FORM

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 39


GYM MANAGEMENT SYSTEM

6.15 PAYMENTS FORM

6.16 STAFF MEMBER’S DASHBOARD

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 40


GYM MANAGEMENT SYSTEM

CODING

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 41


GYM MANAGEMENT SYSTEM

<?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:../index.php');
}
?>
<!-- Visit codeastro.com 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/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>

<!-- Visit codeastro.com for more projects -->


<!--sidebar-menu-->
<?php $page='staff-management'; include 'includes/sidebar.php'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i class="fas fa-home"></i> Home</a>
<a href="staffs.php">Staffs</a> <a href="staffs-entry.php" class="current">Staff Entry</a> </div>
<h1 class="text-center">GYM's Staff <i class="fas fa-users"></i></h1>
</div>

<form role="form" action="index.php" method="POST">


<?php

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 'dbcon.php';
//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'>";
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 42
GYM MANAGEMENT SYSTEM

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-member.php'>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='staffs.php'>Go Back</a> </div>";
echo"</div>";
echo"</div>";
echo"</div>";
echo"</div>";
echo"</div>";

}
// <!-- Visit codeastro.com for more projects -->
}else{
echo"<h3>YOU ARE NOT AUTHORIZED TO REDIRECT THIS PAGE. GO BACK to <a href='index.php'>
DASHBOARD </a></h3>";
}
?>
</form>
</div>
</div></div>

</div>
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}
</style><!-- Visit codeastro.com for more projects -->
<!--end-Footer-part-->
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.wizard.js"></script>
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 43
GYM MANAGEMENT SYSTEM

</body>
</html>

<?php
session_start();
if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!-- Visit codeastro.com 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/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!-- Visit codeastro.com for more projects -->

<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--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/sidebar.php'?>

<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.html" 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="index.php" 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"];
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 44
GYM MANAGEMENT SYSTEM

$totalamount = $amount * $quantity;

include 'dbcon.php';
//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='edit-equipment.php'>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='equipment.php'>Go Back</a> </div>";
echo"</div>";
echo"</div>";
echo"</div>";
echo"</div>";
echo"</div>";

}else{
echo"<h3>YOU ARE NOT AUTHORIZED TO REDIRECT THIS PAGE. GO BACK to <a href='index.php'>
DASHBOARD </a></h3>";
}

?>

<!-- Visit codeastro.com for more projects -->

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

<!--end-main-container-part-->

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 45


GYM MANAGEMENT SYSTEM

<!--Footer-part-->

<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}
</style>

<!--end-Footer-part-->
<!-- Visit codeastro.com for more projects -->
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></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) {

// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {

// if url is "-", it is this page -- reset the menu:


if (newURL == "-" ) {
resetMenu();
}
// else, send page to designated URL
else {
document.location.href = newURL;
}
}
}

// resets the menu selection upon entry to this page:


function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 46


GYM MANAGEMENT SYSTEM

<?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:../index.php');
}
?>
<!-- Visit codeastro.com 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/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->

<!-- Visit codeastro.com for more projects -->


<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--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-->

<!--sidebar-menu-->
<?php $page='announcement'; include 'includes/sidebar.php'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i class="fas fa-home"></i>
Home</a><a href="announcement.php" class="current">Announcements</a> </div>
<h1>Announcement</h1>
</div>
<div class="container-fluid">
<hr>
<a href="manage-announcement.php"><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="post-announcement.php" method="POST">
<div class="controls">
<textarea class="span12" name="message" rows="6" placeholder="Enter text ..."></textarea>
</div>
<div class="controls">
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 47
GYM MANAGEMENT SYSTEM

<h5><label for="Announce Date">Applied Date:


<input type="date" name="date"></h5> </label>
</div>
<div class="text-center">
<button type="submit" class="btn btn-info btn-large">Publish Now</button>
</div>
</form>
</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");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}
</style>
<!--end-Footer-part-->

<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
<script src="../js/wysihtml5-0.3.0.js"></script>
<script src="../js/bootstrap-wysihtml5.js"></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) {

// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {

// if url is "-", it is this page -- reset the menu:


if (newURL == "-" ) {
resetMenu();
}
// else, send page to designated URL
else {
document.location.href = newURL;
}
}
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 48
GYM MANAGEMENT SYSTEM

}
function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
<script>
$('.textarea_editor').wysihtml5();
</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:../index.php');
}
?>
<!-- Visit codeastro.com 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/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/uniform.css" />
<link rel="stylesheet" href="../css/select2.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>
<!-- Visit codeastro.com for more projects -->
<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--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 codeastro.com for more projects -->
<!--sidebar-menu-->
<?php $page="attendance"; include 'includes/sidebar.php'?>
<!--sidebar-menu-->

<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i class="fas fa-home"></i> Home</a>
<a href="attendance.php" 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">

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 49


GYM MANAGEMENT SYSTEM

<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'>

<table class='table table-bordered table-hover'>


<thead>
<tr>
<th>#</th>
<th>Fullname</th>
<th>Contact Number</th>
<th>Choosen Service</th>
<th>Action</th>
</tr>
</thead>

<?php include "dbcon.php";


date_default_timezone_set('Asia/Kathmandu');
//$current_date = date('Y-m-d h:i:s');
$current_date = date('Y-m-d h:i A');
$exp_date_time = explode(' ', $current_date);
$todays_date = $exp_date_time['0'];
$qry="SELECT * FROM members WHERE status = 'Active'";
$result=mysqli_query($conn,$qry);
$i=1;
$cnt = 1;
while($row=mysqli_fetch_array($result)){ ?>

<tbody>

<td><div class='text-center'><?php echo $cnt; ?></div></td>


<td><div class='text-center'><?php echo $row['fullname']; ?></div></td>
<td><div class='text-center'><?php echo $row['contact']; ?></div></td>
<td><div class='text-center'><?php echo $row['services']; ?></div></td>

<!-- <span>count</span><br>CHECK IN</td> -->


<input type="hidden" name="user_id" value="<?php echo $row['id'];?>">

<?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/delete-attendance.php?id=<?php echo $row['user_id'];?>'><button class='btn
btn-danger'>Check Out <i class='fas fa-clock'></i></button> </a></div>
</td>

<?php } else {

?>

<td><div class='text-center'><a href='actions/check-attendance.php?id=<?php echo $row['user_id'];?>'><button


class='btn btn-info'>Check In <i class='fas fa-map-marker-alt'></i></button> </a></div></td>

<?php }
?>
</tbody>
<?php $cnt++; } ?>

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 50


GYM MANAGEMENT SYSTEM

</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");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}
</style>

<!--end-Footer-part-->

<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></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:../index.php');
}
?>
<!-- Visit codeastro.com 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/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 51
GYM MANAGEMENT SYSTEM

<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>


</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--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 codeastro.com for more projects -->
<!--sidebar-menu-->
<?php $page='manage-customer-progress'; include 'includes/sidebar.php'?>
<!--sidebar-menu-->

<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i class="fas fa-home"></i> Home</a>
<a href="customer-progress.php" 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-result-progress.php" 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>

<div class='widget-content nopadding'>

<!-- <form action="search-result.php" role="search" method="POST">


<div id="search">
<input type="text" placeholder="Search Here.." name="search"/>
<button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-white"></i></button>
</div>
</form> -->

<?php

include "dbcon.php";
$qry="select * from members";
$cnt=1;
$result=mysqli_query($conn,$qry);

echo"<table class='table table-bordered table-hover'>


<thead>
<tr>
<th>#</th>
<th>Fullname</th>
<th>Choosen Service</th>
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 52
GYM MANAGEMENT SYSTEM

<th>Plan</th>
<th>Action</th>
</tr>
</thead>";

while($row=mysqli_fetch_array($result)){

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='update-progress.php?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");?> &copy; 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 {
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 53
GYM MANAGEMENT SYSTEM

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/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></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:../index.php');
}
?>
<!-- Visit codeastro.com 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/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 54
GYM MANAGEMENT SYSTEM

</head>
<body>

<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->

<!-- Visit codeastro.com for more projects -->


<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--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-->

<!--sidebar-menu-->
<?php $page='update-equip'; include 'includes/sidebar.php'?>
<!--sidebar-menu-->

<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" 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 "dbcon.php";
$qry="select * from equipment";
$cnt = 1;
$result=mysqli_query($conn,$qry);

echo"<table class='table table-bordered table-hover'>


<thead>
<tr>
<th>#</th>
<th>E. Name</th>
<th>Description</th>
<th>Qty</th>
<th>Amount</th>
<th>Vendor</th>
<th>Address</th>
<th>Contact</th>
<th>Purchased Date</th>
<th>Action</th>
</tr>
</thead>";
// <!-- Visit codeastro.com for more projects -->
while($row=mysqli_fetch_array($result)){

echo"<tbody>
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 55
GYM MANAGEMENT SYSTEM

<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='edit-equipmentform.php?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");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}
</style>

<!--end-Footer-part-->
<!-- Visit codeastro.com for more projects -->
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></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:
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 56
GYM MANAGEMENT SYSTEM

function goPage (newURL) {

// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {

// if url is "-", it is this page -- reset the menu:


if (newURL == "-" ) {
resetMenu();
}
// else, send page to designated URL
else {
document.location.href = newURL;
}
}
}

// resets the menu selection upon entry to this page:


function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</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:../index.php');
}
include "dbcon.php";
$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 codeastro.com 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/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>

<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>


<script type="text/javascript">
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);
function drawChart()
{
var data = google.visualization.arrayToDataTable([
['Services', 'Number'],
<?php
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 57
GYM MANAGEMENT SYSTEM

while($row = mysqli_fetch_array($result))
{
echo "['".$row["services"]."', ".$row["number"]."],";
}
?>
]);
var options = {
//is3D:true,
pieHole: 0.4 ,

};
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
chart.draw(data, options);
}
</script>
<!-- Visit codeastro.com for more projects -->
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['bar']});
google.charts.setOnLoadCallback(drawStuff);

function drawStuff() {
var data = new google.visualization.arrayToDataTable([
['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($res)){
$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: {
0: { side: 'top', label: 'Total'} // Top x-axis.
}
},
bar: { groupWidth: "100%" }
};

var chart = new google.charts.Bar(document.getElementById('top_x_div'));


chart.draw(data, options);
};

</script>

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 58


GYM MANAGEMENT SYSTEM

<script type="text/javascript">
google.charts.load('current', {'packages':['bar']});
google.charts.setOnLoadCallback(drawStuff);

function drawStuff() {
var data = new google.visualization.arrayToDataTable([
['Terms', 'Total Amount',],

<?php
$query1 = "SELECT gender, SUM(amount) as numberone FROM members; ";

$rezz=mysqli_query($con,$query1);
while($data=mysqli_fetch_array($rezz)){
$services='Earnings';
$numberone=$data['numberone'];
// $numbertwo=$data['numbertwo'];
?>
['<?php echo $services;?>',<?php echo $numberone;?>,],
<?php
}
?>

<?php
$query10 = "SELECT quantity, SUM(amount) as numbert FROM equipment";
$res1000=mysqli_query($con,$query10);
while($data=mysqli_fetch_array($res1000)){
$expenses='Expenses';
$numbert=$data['numbert'];

?>
['<?php echo $expenses;?>',<?php echo $numbert;?>,],
<?php
}
?>

]);

var options = {

width: "1050",
legend: { position: 'none' },

bars: 'horizontal', // Required for Material Bar Charts.


axes: {
x: {
0: { side: 'top', label: 'Total'} // Top x-axis.
}
},
bar: { groupWidth: "100%" }
};

var chart = new google.charts.Bar(document.getElementById('top_y_div'));


chart.draw(data, options);
};

</script>

<script type="text/javascript">
google.charts.load("current", {packages:["corechart"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Gender', 'Number'],
<?php
while($row = mysqli_fetch_array($result3))
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 59
GYM MANAGEMENT SYSTEM

{
echo "['".$row["gender"]."', ".$row["enumber"]."],";
}
?>
]);

var options = {

pieHole: 0.4,
};

var chart = new google.visualization.PieChart(document.getElementById('donutchart'));


chart.draw(data, options);
}
</script>

<script>
google.charts.load("current", {packages:["corechart"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Designation', 'Number'],
<?php
while($row = mysqli_fetch_array($result5))
{
echo "['".$row["designation"]."', ".$row["snumber"]."],";
}
?>
]);

var options = {

pieHole: 0.4,
};

var chart = new google.visualization.PieChart(document.getElementById('donutchart2022'));


chart.draw(data, options);
}
</script>
</head>
<body>

<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--close-top-Header-menu-->

<!-- Visit codeastro.com for more projects -->


<!--sidebar-menu-->
<?php $page='dashboard'; include 'includes/sidebar.php'?>
<!--sidebar-menu-->

<!--main-container-part-->
<div id="content">
<!--breadcrumbs-->
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="You're right here" class="tip-bottom"><i class="fa fa-home"></i>
Home</a></div>
</div>
<!--End-breadcrumbs-->

<!--Action boxes-->
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 60
GYM MANAGEMENT SYSTEM

<div class="container-fluid">
<div class="quick-actions_homepage">
<ul class="quick-actions">
<li class="bg_ls span"> <a href="index.php" style="font-size: 16px;"> <i class="fas fa-user-check"></i> <span
class="label label-important"><?php include'actions/dashboard-activecount.php'?></span> Active Members </a> </li>
<li class="bg_lo span3"> <a href="members.php" style="font-size: 16px;"> <i class="fas fa-users"></i></i><span
class="label label-important"><?php include'dashboard-usercount.php'?></span> Registered Members</a> </li>
<li class="bg_lg span3"> <a href="payment.php" style="font-size: 16px;"> <i class="fa fa-dollar-sign"></i> Total
Earnings: $<?php include'income-count.php' ?></a> </li>
<li class="bg_lb span2"> <a href="announcement.php" style="font-size: 16px;"> <i class="fas fa-bullhorn"></i><span
class="label label-important"><?php include'actions/count-announcements.php'?></span>Announcements </a> </li>

<!-- <li class="bg_ls span2"> <a href="buttons.html"> <i class="fas fa-tint"></i> Buttons</a> </li>
<li class="bg_ly span3"> <a href="form-common.html"> <i class="fas fa-th-list"></i> Forms</a> </li>
<li class="bg_lb span2"> <a href="interface.html"> <i class="fas fa-pencil"></i>Elements</a> </li> -->
<!-- <li class="bg_lg"> <a href="calendar.html"> <i class="fas fa-calendar"></i> Calendar</a> </li>
<li class="bg_lr"> <a href="error404.html"> <i class="fas fa-info-sign"></i> Error</a> </li> -->
<!-- Visit codeastro.com for more projects -->
</ul>
</div>
<!--End-Action boxes-->

<!--Chart-box-->
<div class="row-fluid">
<div class="widget-box">
<div class="widget-title bg_lg"><span class="icon"><i class="fas fa-file"></i></span>
<h5>Services Report</h5>
</div>
<div class="widget-content" >
<div class="row-fluid">
<div class="span8">
<!-- <div id="piechart"></div> -->
<div id="top_x_div" style="width: 700px; height: 290px;"></div>
</div>
<div class="span4">
<ul class="site-stats">
<li class="bg_lh"><i class="fas fa-users"></i> <strong><?php include 'dashboard-usercount.php';?></strong>
<small>Total Members</small></li>
<li class="bg_lg"><i class="fas fa-user-clock"></i> <strong><?php include 'actions/dashboard-staff-
count.php';?></strong> <small>Staff Users</small></li>
<li class="bg_ls"><i class="fas fa-dumbbell"></i> <strong><?php include 'actions/count-
equipments.php';?></strong> <small>Available Equipments</small></li>
<li class="bg_ly"><i class="fas fa-file-invoice-dollar"></i> <strong>$<?php include 'actions/total-
exp.php';?></strong> <small>Total Expenses</small></li>
<li class="bg_lr"><i class="fas fa-user-ninja"></i> <strong><?php include 'actions/count-trainers.php';?></strong>
<small>Active Gym Trainers</small></li>
<li class="bg_lb"><i class="fas fa-calendar-check"></i> <strong><?php include 'actions/count-
attendance.php';?></strong> <small>Present Members</small></li>
</ul>
</div>
</div>
</div>
</div><!-- Visit codeastro.com for more projects -->
</div><!-- End of row-fluid -->

<div class="row-fluid">
<div class="widget-box">
<div class="widget-title bg_lg"><span class="icon"><i class="fas fa-file"></i></span>
<h5>Earnings & Expenses Reports</h5>
</div>
<div class="widget-content" >
<div class="row-fluid">
<div class="span12">
<!-- <div id="piechart"></div> -->
<div id="top_y_div" style="width: 700px; height: 180px;"></div>
</div>

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 61


GYM MANAGEMENT SYSTEM

</div>
</div>
</div>
</div><!-- End of row-fluid -->

<div class="row-fluid">
<div class="span6">
<div class="widget-box">
<div class="widget-title bg_ly" data-toggle="collapse" href="#collapseG2"><span class="icon"><i class="fas fa-chevron-
down"></i></span>
<h5>Registered Gym Members by Gender: Overview</h5>
</div>
<div class="widget-content nopadding collapse in" id="collapseG2">
<ul class="recent-posts">

<div id="donutchart" style="width: 600px; height: 300px;"></div>

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

<div class="span6">
<div class="widget-box">
<div class="widget-title bg_ly" data-toggle="collapse" href="#collapseG2"><span class="icon"><i class="fas fa-chevron-
down"></i></span>
<h5>Staff Members by Designation: Overview</h5>
</div>
<div class="widget-content nopadding collapse in" id="collapseG2">
<ul class="recent-posts">

<div id="donutchart2022" style="width: 600px; height: 300px;"></div>


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

<!--End-Chart-box--> <!-- Visit codeastro.com for more projects -->


<!-- <hr/> -->
<div class="row-fluid">
<div class="span6">
<div class="widget-box">
<div class="widget-title bg_ly" data-toggle="collapse" href="#collapseG2"><span class="icon"><i class="fas fa-chevron-
down"></i></span>
<h5>Gym Announcement</h5>
</div>
<div class="widget-content nopadding collapse in" id="collapseG2">
<ul class="recent-posts">
<li>

<?php

include "dbcon.php";
$qry="SELECT * FROM announcements";
$result=mysqli_query($conn,$qry);

while($row=mysqli_fetch_array($result)){
echo"<div class='user-thumb'> <img width='70' height='40' alt='User' src='../img/demo/av1.jpg'> </div>";
echo"<div class='article-post'>";
echo"<span class='user-info'> By: System Administrator / Date: ".$row['date']." </span>";
echo"<p><a href='#'>".$row['message']."</a> </p>";

echo"</div>";
echo"</li>";
?>
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 62
GYM MANAGEMENT SYSTEM

<a href="manage-announcement.php"><button class="btn btn-warning btn-mini">View All</button></a>


</li>
</ul>
</div>
</div><!-- Visit codeastro.com for more projects -->

</div>
<div class="span6">

<div class="widget-box">
<div class="widget-title"> <span class="icon"><i class="fas fa-tasks"></i></span>
<h5>Customer's To-Do Lists</h5>
</div>
<div class="widget-content">
<div class="todo">
<ul>
<?php

include "dbcon.php";
$qry="SELECT * FROM todo";
$result=mysqli_query($con,$qry);

while($row=mysqli_fetch_array($result)){ ?>

<li class='clearfix'>

<div class='txt'> <?php echo $row["task_desc"]?> <?php if ($row["task_status"] == "Pending") { echo '<span
class="by label label-info">Pending</span>';} else { echo '<span class="by label label-success">In Progress</span>';
}?></div>

<?php }
echo"</li>";
echo"</ul>";
?>
</div>
</div>
</div>

</div>

</div> <!-- End of ToDo List Bar -->


</div><!-- End of Announcement Bar -->
</div><!-- End of container-fluid -->
</div><!-- End of content-ID -->

<!--end-main-container-part-->

<!--Footer-part-->

<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}

#piechart {
width: 800px;
height: 280px;
margin-left:auto;
margin-right:auto;
}
</style>

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 63


GYM MANAGEMENT SYSTEM

<!--end-Footer-part-->

<script src="../js/excanvas.min.js"></script> <!-- Visit codeastro.com for more projects -->


<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<!-- <script src="../js/matrix.interface.js"></script> -->
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></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) {

// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {

// if url is "-", it is this page -- reset the menu:


if (newURL == "-" ) {
resetMenu();
}
// else, send page to designated URL
else {
document.location.href = newURL;
}
}
}

// resets the menu selection upon entry to this page:


function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</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:../index.php');
}
?>
<!-- Visit codeastro.com 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/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 64
GYM MANAGEMENT SYSTEM

<link rel="stylesheet" href="../css/fullcalendar.css" />


<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!-- Visit codeastro.com for more projects -->

<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--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> --><!-- Visit codeastro.com for more projects -->
<!--close-top-serch-->

<!--sidebar-menu-->
<?php $page="announcement"; include 'includes/sidebar.php'?>
<!--sidebar-menu-->

<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i class="fas fa-home"></i>
Home</a><a href="announcement.php">Announcement</a> <a href="#" class="current">Manage Announcement</a> </div>
<h1 class="text-center">Manage Announcement <i class="fas fa-bullhorn"></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-bullhorn'></i> </span>
<h5>Announcement table</h5>
</div>
<div class='widget-content nopadding'>

<?php

include "dbcon.php";
$qry="select * from announcements";
$cnt = 1;
$result=mysqli_query($conn,$qry);

echo"<table class='table table-bordered table-hover'>


<thead>
<tr>
<th>#</th>
<th>Date</th>
<th>Message</th>
<th>Manage</th>
</tr>
</thead>";

while($row=mysqli_fetch_array($result)){

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 65


GYM MANAGEMENT SYSTEM

echo"<tbody>

<td><div class='text-center'>".$cnt."</div></td>
<td><div class='text-center'>".$row['date']."</div></td>
<td><div class='text-center'>".$row['message']."</div></td>
<td><div class='text-center'><a href='actions/remove-announcement.php?id=".$row['id']."' style='color:#F66;' ><i
class='fas fa-trash'></i> Remove</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");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}
</style>

<!--end-Footer-part-->

<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></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) {

// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 66
GYM MANAGEMENT SYSTEM

// if url is "-", it is this page -- reset the menu:


if (newURL == "-" ) {
resetMenu();
}
// else, send page to designated URL
else {
document.location.href = newURL;
}
}
}

// resets the menu selection upon entry to this page:


function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>

<?php
session_start();
if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!-- Visit codeastro.com 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/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part--><!-- Visit codeastro.com for more projects -->


<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu--><!-- Visit codeastro.com for more projects -->


<?php include 'includes/topheader.php'?>
<!--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-->

<!--sidebar-menu-->
<?php $page='payment'; include 'includes/sidebar.php'?>
<!--sidebar-menu-->

<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i class="fas fa-home"></i> Home</a>
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 67
GYM MANAGEMENT SYSTEM

<a href="payment.php" class="current">Payments</a> </div>


<h1 class="text-center">Registered Member's Payment <i class="fas fa-group"></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 Payment table</h5>
<form id="custom-search-form" role="search" method="POST" action="search-result.php" 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>

<div class='widget-content nopadding'>

<!-- <form action="search-result.php" role="search" method="POST">


<div id="search">
<input type="text" placeholder="Search Here.." name="search"/>
<button type="submit" class="tip-bottom" title="Search"><i class="fas fa-search fa-white"></i></button>
</div>
</form> -->

<?php

include "dbcon.php";
$qry="SELECT * FROM members";
$cnt = 1;
$result=mysqli_query($conn,$qry);

echo"<table class='table table-bordered data-table table-hover'>


<thead>
<tr>
<th>#</th>
<th>Member</th>
<th>Last Payment Date</th>
<th>Amount</th>
<th>Choosen Service</th>
<th>Plan</th>
<th>Action</th>
<th>Remind</th>
</tr>
</thead>";

while($row=mysqli_fetch_array($result)){ ?>

<tbody>

<td><div class='text-center'><?php echo $cnt;?></div></td>


<td><div class='text-center'><?php echo $row['fullname']?></div></td>
<td><div class='text-center'><?php echo($row['paid_date'] == 0 ? "New Member" : $row['paid_date'])?></div></td>

<td><div class='text-center'><?php echo '$'.$row['amount']?></div></td>


<td><div class='text-center'><?php echo $row['services']?></div></td>
<td><div class='text-center'><?php echo $row['plan']." Month/s"?></div></td>
<td><div class='text-center'><a href='user-payment.php?id=<?php echo $row['user_id']?>'><button class='btn btn-
success btn'><i class='fas fa-dollar-sign'></i> Make Payment</button></a></div></td>
<td><div class='text-center'><a href='sendReminder.php?id=<?php echo $row['user_id']?>'><button class='btn btn-
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 68
GYM MANAGEMENT SYSTEM

danger btn' <?php echo($row['reminder'] == 1 ? "disabled" : "")?>>Alert</button></a></div></td>


</tbody>
<?php $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");?> &copy; 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;
}

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 69


GYM MANAGEMENT SYSTEM

.search-query:focus + button {
z-index: 3;
}
</style>

<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></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) {

// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {

// if url is "-", it is this page -- reset the menu:


if (newURL == "-" ) {
resetMenu();
}
// else, send page to designated URL
else {
document.location.href = newURL;
}
}
}

// resets the menu selection upon entry to this page:


function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</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:../index.php');
}
?>
<!-- Visit codeastro.com for more projects -->
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 70
GYM MANAGEMENT SYSTEM

<link rel="stylesheet" href="../css/bootstrap.min.css" />


<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu--><!-- Visit codeastro.com for more projects -->


<?php include 'includes/topheader.php'?>
<!--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-->

<!--sidebar-menu-->
<?php include 'includes/sidebar.php'?>
<!--sidebar-menu-->

<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.html" title="Go to Home" class="tip-bottom"><i class="fas fa-home"></i> Home</a>
<a href="#" class="current">Announcement</a> </div>
<h1>Announcement</h1>
</div>
<form role="form" action="index.php" method="POST">
<?php

if(isset($_POST['message'])){
$message = $_POST["message"];
$date = $_POST["date"];

include 'dbcon.php';
//code after connection is successfull
$qry = "insert into announcements(message,date) values ('$message','$date')";
$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='edit-member.php'>Go Back</a> </div>";
echo"</div>";
echo"</div>";
echo"</div>";
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 71
GYM MANAGEMENT SYSTEM

echo"</div>";
echo"</div>";
}else {
echo("<script>location.href = 'index.php';</script>");
}

}else{
echo"<h3>YOU ARE NOT AUTHORIZED TO REDIRECT THIS PAGE. GO BACK to <a href='index.php'>
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");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}
</style>

<!--end-Footer-part-->

<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></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) {

// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 72


GYM MANAGEMENT SYSTEM

// if url is "-", it is this page -- reset the menu:


if (newURL == "-" ) {
resetMenu();
}
// else, send page to designated URL
else {
document.location.href = newURL;
}
}
}

// resets the menu selection upon entry to this page:


function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</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:../index.php');
}
?>
<!-- Visit codeastro.com 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/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>

<!--sidebar-menu-->
<?php $page='staff-management'; include 'includes/sidebar.php'?>
<!--sidebar-menu-->

<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i class="fas fa-home"></i> Home</a>
<a href="staffs.php">Staffs</a> <a href="staffs-entry.php" class="current">Staff Entry</a> </div>
<h1 class="text-center">GYM's Staff Entry Form <i class="fas fa-briefcase"></i></h1>
</div>
<div class="container-fluid"><hr>
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 73
GYM MANAGEMENT SYSTEM

<div class="widget-title"> <span class="icon"> <i class="fas fa-briefcase"></i> </span>


<h5>Staff Details</h5>
</div>
<div class="widget-content nopadding">
<form id="form-wizard" action="added-staffs.php" class="form-horizontal" method="POST">
<div id="form-wizard-1" class="step">

<div class="control-group">
<label class="control-label">Enter Staff's Fullname</label>
<div class="controls">
<input id="fullname" type="text" name="fullname" required/>
</div>
</div>

<div class="control-group">
<label class="control-label">Enter a Username</label>
<div class="controls">
<input id="username" type="text" name="username" />
</div>
</div>

<div class="control-group">
<label class="control-label">Password</label>
<div class="controls">
<input id="password" type="password" name="password" />
</div>
</div>

<div class="control-group">
<label class="control-label">Confirm Password</label>
<div class="controls">
<input id="password2" type="password" name="password2" />
</div>
</div>
</div>

<div id="form-wizard-2" class="step">


<div class="control-group">
<label class="control-label">Email ID</label>
<div class="controls">
<input id="email" type="text" name="email" required/>
</div>
</div>

<div class="control-group">
<label class="control-label">Address</label>
<div class="controls">
<input id="address" type="text" name="address" required/>
</div>
</div>

<div class="control-group">
<label class="control-label">Designation</label>
<div class="controls">
<select name="designation" id="designation">
<option value="Cashier">Cashier</option>
<option value="Trainer">Trainer</option>
<option value="GYM Assistant">GYM Assistant</option>
<option value="Front Desk Staff">Front Desk Staff</option>
<option value="Manager">Manager</option>
</select>
</div>
</div>

<div class="control-group">
<label class="control-label">Gender</label>
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 74
GYM MANAGEMENT SYSTEM

<div class="controls">
<select name="gender" id="gender">
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</div>
</div>

<div class="control-group">
<label class="control-label">Contact Number</label>
<div class="controls">
<input id="contact" type="number" name="contact" required/>
</div>
</div>

</div>

<div class="form-actions">
<input id="back" class="btn btn-primary" type="reset" value="Back" />
<input id="next" class="btn btn-primary" type="submit" value="Proceed Next Step" />
<div id="status"></div>
</div>
<div id="submitted"></div>
</form>
</div>
</div><!--end of widget box-->
</div><!--end of span 12 -->
</div>
</div>
</div>
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}
</style>
<!--end-Footer-part-->
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.wizard.js"></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:../index.php');
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 75
GYM MANAGEMENT SYSTEM

<link rel="stylesheet" href="../css/matrix-style.css" />


<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/font-awesome.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
<h1><a href="index.php">Perfect Gym System</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<?php include '../includes/topheader.php'?>
<!--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-->
<!--sidebar-menu-->
<?php $page="reminder"; include '../includes/sidebar.php'?>
<!--sidebar-menu-->

<!--main-container-part-->
<div id="content">
<!--breadcrumbs-->
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="You're right here" class="tip-bottom"><i class="icon-home"></i>
Home</a></div>
</div>
<!--End-breadcrumbs-->

<!--Action boxes-->
<div class="container-fluid">

<!--End-Action boxes-->

<div class="row-fluid">

<div class="span12">

<?php

include "dbcon.php";
$qry="SELECT reminder FROM members WHERE user_id='".$_SESSION['user_id']."'";
$cnt = 1;
$result=mysqli_query($con,$qry);

while($row=mysqli_fetch_array($result)){ ?>

<?php if($row['reminder'] == '1') { ?>

<div class="alert alert-danger" role="alert">


<h4 class="alert-heading">ALERT</h4>
<p>This is to notify you that your current membership program is going to expire soon. Please clear up your payments
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 76
GYM MANAGEMENT SYSTEM

before your due dates. <br>IT IS IMPORTANT THAT YOU CLEAR YOUR DUES ON TIME IN ORDER TO AVOID
SERVICE DISRUPTIONS.</p>
<hr>
<p class="mb-0">We value you as our customer and look forward to continue serving you in the future.</p>
</div>

<?php } else { ?>

<div class="alert alert-success" role="alert">


<h4 class="alert-heading">NO REMINDERS YET!</h4>
</div>

<?php } }?>

</div>

</div><!-- End of row-fluid -->


</div><!-- End of container-fluid -->
</div><!-- End of content-ID -->

<!--end-main-container-part-->

<!--Footer-part-->

<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}
</style>

<!--end-Footer-part-->

<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></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) {

// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 77


GYM MANAGEMENT SYSTEM

// if url is "-", it is this page -- reset the menu:


if (newURL == "-" ) {
resetMenu();
}
// else, send page to designated URL
else {
document.location.href = newURL;
}
}
}

// resets the menu selection upon entry to this page:


function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>

<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/font-awesome.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
<h1><a href="index.php">Perfect Gym System</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<?php include '../includes/topheader.php'?>
<!--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-->
<!--sidebar-menu-->
<?php $page="dashboard"; include '../includes/sidebar.php'?>
<!--sidebar-menu-->

<!--main-container-part-->
<div id="content">
<!--breadcrumbs-->
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="You're right here" class="tip-bottom"><i class="icon-home"></i>
Home</a></div>
</div>
<!--End-breadcrumbs-->

<!--Action boxes-->
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 78
GYM MANAGEMENT SYSTEM

<div class="container-fluid">

<!--End-Action boxes-->

<div class="row-fluid">

<div class="span6">

<div class="widget-box">
<div class="widget-title"> <span class="icon"><i class="icon-time"></i></span>
<h5>My To-Do List</h5>
</div>
<div class="widget-content nopadding">

<?php
include "dbcon.php";
include "session.php";
$qry="SELECT * FROM todo WHERE user_id='".$_SESSION['user_id']."'";
$result=mysqli_query($con,$qry);

echo"<table class='table table-striped table-bordered'>


<thead>
<tr>
<th>Description</th>
<th>Status</th>
<th>Opts</th>
</tr>
</thead>";
while($row=mysqli_fetch_array($result)){
echo"<tbody>
<tr>
<td class='taskDesc'><a href='to-do.php'><i class='icon-plus-sign'></i></a>".$row['task_desc']."</td>
<td class='taskStatus'><span class='in-progress'>".$row['task_status']."</span></td>
<td class='taskOptions'><a href='update-todo.php?id=".$row['id']."' class='tip-top' data-original-title='Update'><i
class='icon-edit'></i></a> <a href='actions/remove-todo.php?id=".$row['id']."' class='tip-top' data-original-title='Done'><i
class='icon-ok'></i></a></td>
</tr>

</tbody>";
}
?>

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

</div> <!-- End of ToDo List Bar -->

<div class="span6">
<div class="widget-box">
<div class="widget-title bg_ly" data-toggle="collapse" href="#collapseG2"><span class="icon"><i class="icon-chevron-
down"></i></span>
<h5>Gym Announcement</h5>
</div>
<div class="widget-content nopadding collapse in" id="collapseG2">
<ul class="recent-posts">
<li>

<?php

include "dbcon.php";
$qry="select * from announcements";
$result=mysqli_query($con,$qry);

while($row=mysqli_fetch_array($result)){
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 79
GYM MANAGEMENT SYSTEM

echo"<div class='user-thumb'> <img width='70' height='40' alt='User' src='../img/demo/av1.jpg'> </div>";


echo"<div class='article-post'>";
echo"<span class='user-info'> By: System Administrator / Date: ".$row['date']." </span>";
echo"<p><a href='#'>".$row['message']."</a> </p>";

echo"</div>";
echo"</li>";
?>
<a href="announcement.php"><button class="btn btn-warning btn-mini">View All</button></a>
</li>
</ul>
</div>
</div>
</div> <!-- end of announcement -->

</div><!-- End of row-fluid -->


</div><!-- End of container-fluid -->
</div><!-- End of content-ID -->

<!--end-main-container-part-->

<!--Footer-part-->

<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}

.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
max-width: 460px;
margin: auto;
text-align: center;
font-family: arial;
}

.title {
color: grey;
font-size: 18px;
}

</style>

<!--end-Footer-part-->

<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 80
GYM MANAGEMENT SYSTEM

<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></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) {

// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {

// if url is "-", it is this page -- reset the menu:


if (newURL == "-" ) {
resetMenu();
}
// else, send page to designated URL
else {
document.location.href = newURL;
}
}
}

// resets the menu selection upon entry to this page:


function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</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:../index.php');
}
?>
<!-- Visit codeastro.com 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/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/uniform.css" />
<link rel="stylesheet" href="../css/select2.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/font-awesome.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 81


GYM MANAGEMENT SYSTEM

<!--top-Header-menu-->
<?php include '../includes/header.php'?>

<!--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-->
<!--sidebar-menu-->
<?php $page="attendance"; include '../includes/sidebar.php'?>
<!--sidebar-menu-->

<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
<a href="attendance.php" class="current">Manage Attendance</a> </div>
<h1 class="text-center">Attendance List <i class="icon icon-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='icon-th'></i> </span>
<h5>Attendance Table</h5>
</div>
<div class='widget-content nopadding'>

<?php

include "dbcon.php";

echo"<table class='table table-bordered'>


<thead>
<tr>
<th>#</th>
<th>Fullname</th>
<th>Contact Number</th>
<th>Choosen Service</th>
<th>Action</th>
</tr>
</thead>";

date_default_timezone_set('Asia/Kathmandu');
//$current_date = date('Y-m-d h:i:s');
$current_date = date('Y-m-d h:i A');
$exp_date_time = explode(' ', $current_date);
$todays_date = $exp_date_time['0'];
$qry="SELECT * FROM members WHERE status = 'Active'";
$result=mysqli_query($conn,$qry);
$i=1;
$cnt = 1;

while($row=mysqli_fetch_array($result)){ ?>

<tbody>

<td><div class='text-center'><?php echo $cnt; ?></div></td>


<td><div class='text-center'><?php echo $row['fullname']; ?></div></td>
<td><div class='text-center'><?php echo $row['contact']; ?></div></td>
<td><div class='text-center'><?php echo $row['services']; ?></div></td>

<!-- <span>count</span><br>CHECK IN</td> -->


<input type="hidden" name="user_id" value="<?php echo $row['id'];?>">
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 82
GYM MANAGEMENT SYSTEM

<?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/delete-attendance.php?id=<?php echo $row['user_id'];?>'><button class='btn
btn-danger'>Check Out <i class='icon icon-time'></i></button> </a></div>
</td>

<?php } else {

?>

<td><div class='text-center'><a href='actions/check-attendance.php?id=<?php echo $row['user_id'];?>'><button


class='btn btn-info'>Check In <i class='icon icon-map-marker'></i></button> </a></div></td>

<?php $cnt++; }

?>

</tbody>

<?php } ?>

</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");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}
</style>

<!--end-Footer-part-->

<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>

</script>
</body>
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 83
GYM MANAGEMENT SYSTEM

</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:../index.php');
}
?>

<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/font-awesome.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>
</head>
<body>

<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym</a></h1>
</div>
<!--close-Header-part-->

<!--top-Header-menu-->
<?php include '../includes/header.php'?>
<!--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-->
<!--sidebar-menu-->
<?php $page="staff"; include '../includes/sidebar.php'?>

<!--sidebar-menu-->

<?php
include 'dbcon.php';
$id=$_GET['id'];
$qry= "select * from staffs where user_id='$id'";
$result=mysqli_query($conn,$qry);
while($row=mysqli_fetch_array($result)){
?>

<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i class="icon-home"></i> Home</a>
<a href="staffs.php" class="tip-bottom">Staffs</a> <a href="edit-staff-form.php" class="current">Edit Staff Records</a>
</div>
<h1 class="text-center">Update Staff's Detail <i class="icon icon-briefcase"></i></h1>
</div>
<div class="container-fluid">
<hr>
<div class="row-fluid">
<div class="span6">
<div class="widget-box">
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 84
GYM MANAGEMENT SYSTEM

<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>


<h5>Staff-Details</h5>
</div>
<div class="widget-content nopadding">

<form action="edit-staff-req.php" method="POST" class="form-horizontal">


<div class="control-group">
<label class="control-label">Full Name :</label>
<div class="controls">
<input type="text" class="span11" name="fullname" value='<?php echo $row['fullname']; ?>' />
</div>
</div>
<div class="control-group">
<label class="control-label">Username :</label>
<div class="controls">
<input type="text" class="span11" name="username" value='<?php echo $row['username']; ?>' />
</div>
</div>
<div class="control-group">
<label class="control-label">Password :</label>
<div class="controls">
<input type="password" class="span11" name="password" disabled="" placeholder="**********" />
<span class="help-block">Note: Only the members are allowed to change their password until and unless it's an
emergency.</span>
</div>
</div>
<div class="control-group">
<label class="control-label">Gender :</label>
<div class="controls">
<input type="text" class="span11" name="gender" value='<?php echo $row['gender']; ?>' />
</div>
</div>

</div>

<div class="widget-content nopadding">


<div class="form-horizontal">

</div>
<div class="widget-content nopadding">

</div>

</div>
</div>

</div>

<div class="span6">
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i> </span>
<h5>Staff-Details</h5>
</div>
<div class="widget-content nopadding">
<div class="form-horizontal">
<div class="control-group">
<label for="normal" class="control-label">Contact Number</label>
<div class="controls">
<input type="number" id="mask-phone" name="contact" value='<?php echo $row['contact']; ?>' class="span8 mask
text">
<span class="help-block blue span8">(999) 999-9999</span>
</div>
</div>
<div class="control-group">
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 85
GYM MANAGEMENT SYSTEM

<label class="control-label">Address :</label>


<div class="controls">
<input type="text" class="span11" name="address" value='<?php echo $row['address']; ?>' />
</div>
</div>

<div class="control-group">
<label class="control-label">Designation</label>
<div class="controls">
<select name="designation" id="designation">
<option value="Cashier">Cashier</option>
<option value="Trainer">Trainer</option>
<option value="GYM Assistant">GYM Assistant</option>
<option value="Front Desk Staff">Front Desk Staff</option>
<option value="Manager">Manager</option>
</select>
</div>
</div>

</div>

<div class="form-actions text-center">


<!-- user's ID is hidden here -->
<input type="hidden" name="id" value="<?php echo $row['user_id'];?>">
<button type="submit" class="btn btn-success">Update Staff Details</button>
</div>

</form>

</div>
<?php
}
?>

</div>

</div>
</div>

</div>

<div class="row-fluid">

</div>
</div>

<!--end-main-container-part-->

<!--Footer-part-->

<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> &copy; Developed By Naseeb Bajracharya</a> </div>
</div>

<style>
#footer {
color: white;
}
</style>

<!--end-Footer-part-->

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 86


GYM MANAGEMENT SYSTEM

<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></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) {

// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {

// if url is "-", it is this page -- reset the menu:


if (newURL == "-" ) {
resetMenu();
}
// else, send page to designated URL
else {
document.location.href = newURL;
}
}
}

// resets the menu selection upon entry to this page:


function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>

<?php
$con = mysqli_connect("localhost","root","","gymnsb");

// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?><!-- Visit codeastro.com for more projects -->

<?php session_start();
include('dbcon.php'); ?>
<!DOCTYPE html>
<html lang="en">
<!-- Visit codeastro.com for more projects -->
<head>
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 87
GYM MANAGEMENT SYSTEM

<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/bootstrap.min.css" />
<link rel="stylesheet" href="css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="css/matrix-style.css" />
<link rel="stylesheet" href="css/matrix-login.css" />
<link href="font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="font-awesome/css/all.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800' rel='stylesheet' type='text/css'>

</head>

<body>

<div id="loginbox">
<form id="loginform" method="POST" class="form-vertical" action="#">
<div class="control-group normal_text"> <h3><img src="img/icontest3.png" alt="Logo" /></h3></div>
<div class="control-group">
<div class="controls">
<div class="main_input_box">
<span class="add-on bg_lg"><i class="fas fa-user-circle"></i></span><input type="text" name="user"
placeholder="Username" required/>
</div>
</div>
</div>
<div class="control-group">
<div class="controls">
<div class="main_input_box">
<span class="add-on bg_ly"><i class="fas fa-lock"></i></span><input type="password" name="pass"
placeholder="Password" required />
</div>
</div>
</div>
<div class="form-actions center">
<!-- <span class="pull-right"><a type="submit" href="index.html" class="btn btn-success" /> Login</a></span> --
>
<!-- <input type="submit" class="button" title="Log In" name="login" value="Admin Login"></input> -->
<button type="submit" class="btn btn-block btn-large btn-info" title="Log In" name="login" value="Admin
Login">Admin Login</button>
</div>
</form>
<?php
if (isset($_POST['login']))
{
$username = mysqli_real_escape_string($con, $_POST['user']);
$password = mysqli_real_escape_string($con, $_POST['pass']);

$password = md5($password);

$query = mysqli_query($con, "SELECT * FROM admin WHERE password='$password' and


username='$username'");
$row = mysqli_fetch_array($query);
$num_row = mysqli_num_rows($query);

if ($num_row > 0)
{
$_SESSION['user_id']=$row['user_id'];
header('location:admin/index.php');

}
else
{
echo "<div class='alert alert-danger alert-dismissible' role='alert'>
Invalid Username and Password
<button type='button' class='close' data-dismiss='alert' aria-label='Close'>
<span aria-hidden='true'>&times;</span>
</button>
</div>";
DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 88
GYM MANAGEMENT SYSTEM

}
}
?>
<div class="pull-left">
<a href="customer/index.php"><h6>Customer Login</h6></a>
</div>

<div class="pull-right">
<a href="staff/index.php"><h6>Staff Login</h6></a>
</div>

</div>

<script src="js/jquery.min.js"></script>
<script src="js/matrix.login.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/matrix.js"></script>
</body>
<!-- Visit codeastro.com for more projects -->
</html>

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 89


GYM MANAGEMENT SYSTEM

SYSTEM TESTING AND REPORT

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 90


GYM MANAGEMENT SYSTEM

CHAPTER 8

SYSTEM TESTING AND REPORT

8.1 TESTING

System testing involves unit testing, integration testing, white-box testing,


black-box testing. Strategies for integration of software components into a
functional product include the bottom-up strategy, the top-down strategy, and
the sandwich strategy. Careful planning and scheduling are required to ensure
that modules that will be available for integration into evolving software
products when needed are performed for the proposed system before the system
is ready for user acceptance testing.

8.1.1 UNIT TESTING

Instead of testing the system as a whole, Unit testing focuses on the modules
that make up the system. Each module is taken up individually and tested for
correctness in coding and logic.

8.1.2 VALIDATION TESTING

Validation testing can be defined as many, but a single definition is that


validation succeeds when the software functions in a manner that can be
reasonably expected by the customer. Validation refers to the process of using
the software in a live environment to find errors. During the course of validation
systems may occur and the software will be changed.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 91


GYM MANAGEMENT SYSTEM

8.1.3 PERFORMANCE TESTING

In software engineering, performance testing is testing that is performed, from


one perspective, to determine how fast some aspect of a system performs under
a particular workload. It can also serve to validate and verify other quality
attributes of the system, such as scalability, reliability and resource usage.
Performance testing is a subset of Performance engineering, an emerging
computer science practice which strives to build performance into the design
and architecture of a system, prior to the onset of actual coding effort.

Performance testing can serve different purposes. It can demonstrate that the
system meets Performance criteria. It can compare two systems to find which
performs better. Or it can measure what parts of the system or workload cause
the system to perform badly. In the diagnostic case, software engineers use tools
such as profilers to measure what parts of a device or software contribute most
to the poor performance or to establish throughput levels (and thresholds) for
maintaining acceptable response time. It is critical to the cost Performance of a
new system; the performance test efforts begin at the inception of the
development project and extend through to deployment. The later a
performance defect is detected, the higher the cost of remediation. This is true
in the case of functional testing, but even more so with performance testing, due
to the end-to-end nature of its scope.

In performance testing, it is often crucial (and often difficult to arrange) for the
test conditions to be similar to the expected actual use. This is, however, not
entirely possible in actual practice. The reason is that production systems have a
random nature of the workload and while the test workloads do their best to
mimic what may happen in the production environment, it is impossible to
exactly replicate this workload variability - except in the simplest system.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 92


GYM MANAGEMENT SYSTEM

FUTURE ENHANCEMENT

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 93


GYM MANAGEMENT SYSTEM

CHAPTER 9

FUTURE ENHANCEMENT

In the future, there are several potential enhancements that could be implemented in
a gym management system to improve its functionality and user experience. Here
are a few ideas:

1. Mobile Application: Develop a dedicated mobile application for the gym


management system, allowing members to access their accounts, book classes
or equipment, track their progress, and receive personalized workout
recommendations directly on their smartphones. This mobile app could also
integrate with wearable fitness devices to provide real-time tracking and
analysis of users' fitness data.

2. Virtual Classes and Training: Incorporate virtual classes and training sessions
into the gym management system. This feature would enable members to join
live or pre-recorded fitness classes from the comfort of their homes or while
traveling. It could include a video streaming platform, interactive chat
features, and the ability to track attendance and engagement.

3. Personalized Workouts: Implement an advanced algorithm that generates


personalized workout plans for each member based on their fitness goals,
preferences, and historical data. The system could consider factors like
previous workout performance, body composition, and individual schedules to
create tailored programs that optimize results.

4. Integration with Health Apps and Devices: Integrate the gym management
system with popular health and fitness apps, such as MyFitnessPal or Apple
Health, to enable seamless data synchronization. This integration would allow
members to track their nutrition, sleep patterns, and other health metrics in one
central location, providing a comprehensive overview of their overall well-
being.

5. Automated Equipment Tracking: Equip the gym with IoT (Internet of Things)
sensors or RFID tags to track equipment usage and availability. Members can
check the real-time status of equipment through the gym management system,
reducing waiting times and improving the overall efficiency of equipment
usage.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 94


GYM MANAGEMENT SYSTEM

6. Gamification and Challenges: Introduce gamification elements and challenges


within the gym management system to increase member engagement and
motivation. This could include leaderboards, badges, rewards, and friendly
competitions, fostering a sense of community and encouraging members to
reach their fitness goals.

7. Enhanced Analytics and Reporting: Improve the analytics and reporting


capabilities of the system to provide gym owners and managers with
comprehensive insights into the gym's performance, member trends, and
revenue streams. Advanced reporting features could include financial reports,
attendance statistics, class popularity, and member retention rates.

8. Online Payment and Membership Management: Streamline the payment


process by allowing members to make online payments directly through the
gym management system. Additionally, offer flexible membership options,
such as day passes or multi-visit packages, to cater to different preferences and
lifestyles.

9. Enhanced Communication Channels: Implement chatbot functionality or AI-


powered virtual assistants within the gym management system to provide
instant support and answer common questions from members. This feature
could also facilitate communication between trainers and members, enabling
trainers to provide guidance and answer workout-related queries remotely.

10. Social Integration: Integrate social media platforms within the gym
management system to allow members to share their achievements, progress
photos, and workout updates with their social network. This social integration
can foster a sense of community, encourage accountability, and attract
potential new members.

These are just a few potential enhancements for a gym management system in the
future. The specific features implemented would depend on the gym's goals,
budget, and the needs of its members.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 95


GYM MANAGEMENT SYSTEM

CONCLUSION

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 96


GYM MANAGEMENT SYSTEM

CONCLUSION
I would like to admit that there was a lot of effort involved in developing the
software/report ready. The completion time for the report was as long as that of
the program.

My project is only a humble venture to satisfy the needs in an Institution.


Several user-friendly coding has also been adopted. This package shall prove to
be a powerful package in satisfying all the requirements of the users.

The objective of software planning is to provide a framework that enables the


manager to make reasonable estimates made within a frame at the beginning of
the software project and should be updated regularly as the project progresses.

I thank everyone who helped and guided in developing software. I am very


much obliged to my parents and blessings of god and my beloved lectures.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 97


GYM MANAGEMENT SYSTEM

Achievements Expected Through the Project

1. Compared to the existing system, it performs at a faster pace.

2. System gives better feedback.

3. Timely and accurate information is available.

4. The system provides greater processing speed consistency.

5. Provides high security to the system and hence unauthorized users can be
prevented

6. Forms are very user friendly.

7. Ease of operation.

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 98


GYM MANAGEMENT SYSTEM

BIBLIOGRAPHY

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 99


GYM MANAGEMENT SYSTEM

BIBLIOGRAPHY

REFERANCE BOOK

1. HTML and CSS Quick start Guide


2. A Beginner’s Guide to HTML, CSS, JavaScript, and Web Graphics
3. HTML and CSS: Design and Build Websites
4. Learning PHP, MySQL & JavaScript
5. Software Engineering.
6. Database management system.
7. MySQL for beginners
8. MySQL Database System design
9. Design Patterns: Elements of Reusable Object-Oriented Software
10. PHP and MySQL Web Development

WEBSITE

 http://www.w3school.com
 http://www.codeacademy.com
 http://github.com
 www.codeastro.com
 www.slideshare.net
 www.enggroom.com
 www.Projectsgeek.com
 https://projectabstracts.com/bca-mini-project-topics-and-ideas

DEPARTMENT OF COMPUTER APPLICATIONS, RNSFGC 100

You might also like