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

Fitness Documentation ORIGINAL

fitness management system

Uploaded by

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

Fitness Documentation ORIGINAL

fitness management system

Uploaded by

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

PROJECT REPORT

On

“Pure Fitnesse”

Submitted in partial fulfillment of

Bachelor of Computer Applications (BCA)

To

UTTARANCHAL UNIVERSITY

Under the guidance of: - Submitted by:-

Mr. Abhishek Kumar Pathak Mohit Singh Shah

Asst. Professor BCA 6th SEM

University Roll No. 160900031


Session: 2016-2019
ACKNOWLEDGEMENT

The satisfaction that accompanies that the successful completion of any task would be

incomplete without the mention of people whose ceaseless cooperation made it possible, whose

constant guidance and encouragement crown all efforts with success.

I am grateful to Director Dr. PRADEEP SURI, HOD Dr. SONAL SHARMA and our

project guide Mr. PRAVEEN SAINI for the guidance, inspiration and constructive suggestions

that helpful me in the preparation of this project.

I also thank my colleagues who have helped in successful completion of the project.

Student Name: Mohit Singh Shah

I
DECLARATION

I hereby declare that the project work entitled “Pure Fitnesse ” submitted to the
“Uttaranchal Institute of Management”, is a record of an original work done by me under the
guidance of “Mr. Abhishek Kumar Pathak” and this project work has not performed the basis for the
award of any Degree or diploma/ associate ship/fellowship and similar project if any.

DATE:

PLACE:

Signature
(Mohit Singh Shah)

II
CERTIFICATE OF ORIGINALITY

This is to certify that Mohit Singh Shah, student of 6th semester session 2016 - 2019, has
completed the Project Entitled:

“Pure Fitnesse” Using the PHP Language and MySQL database, under my guidance.

His work is satisfactory to be submitted for the fulfillment of award of degree of


BACHOLER OF COMPUTER APPLICATION.

Under the guidance of:

Mr. Abhishek Kumar Pathak


Asst. Professor
Dept. of computers application
Uttaranchal University, Dehradun

III
PURE FITNESSE
Address: Wing No. 7, Premnagar, Near Mitthiberi Road, Dehradun

Contact details: 8979241557

Dated:-30-03-2019

To,

The Head of Department,

Department of Computer Application,

Uttaranchal Institute of Management,

Dehradun

Subject: - Requisition for Consultancy

Respected ma’am,

We as Pure Fitnesse requests you to kindly provide us the consultancy


for the website of our Pure Fitnesse Center. A required detail for the website has
been attached with the application.

Thanking You,

Yours faithfully,

Pure Fitnesse

IV
Client Requirements:-

The main motive of the client is to promote his fitness center and to reduce
stress levels and improve thinking and focus with regular exercise.

The sub-requirements of the clients are as follows:-

 The website will mainly focus on yoga benefits but it also contains the
different program such as:-

 Meditation
 Calisthenics,
 HIIT (High Intensity Interval Training)
 Flexibility and Stability
 Body Weight Training

 A website should contain a signup/login facility, so whenever the user login


the page he/she will discover more details about the fitness center and all the
user data should be recorded in database.
 Registered user can see the batch timing and fees structure.
 All the detail of the exercise according to the age group should be shown on
the website.
 The users can put up their queries and give feedback about any exercise.
 The website also contains a contact module where a user can contact to the
fitness center.

V
Table of Contents

ACKNOWLEDGEMENT ............................................................................................................................. I
DECLARATION ........................................................................................................................................ II
CERTIFICATE OF ORIGINALITY ......................................................................................................... III
1. INTRODUCTION .................................................................................................................................... 1
2. OBJECTIVE ............................................................................................................................................. 2
3. SYSTEM ANALYSIS .............................................................................................................................. 3
3.1 Identification of need: ......................................................................................................................... 4
3.2 Preliminary Study:- ............................................................................................................................. 5
3.3 Feasibility Study ................................................................................................................................. 8
3.3.1. Technical Feasibility ................................................................................................................... 8
3.3.2. Economical Feasibility................................................................................................................ 8
3.3.3 Operational Feasibility ................................................................................................................. 9
3.4 Project Planning ................................................................................................................................ 10
3.5 Project Scheduling ............................................................................................................................ 11
3.5.1 Gantt Chart:- .............................................................................................................................. 11
3.5.2 Pert Chart:- ................................................................................................................................. 12
3.6 Software Requirements Specification (SRS) .................................................................................... 13
3.6.1 Hardware and Software Used .................................................................................................... 14
3.7 Software Engineering Paradigm Applied ......................................................................................... 15
3.8 Data Models ...................................................................................................................................... 16
3.8.1 Use Case Diagram:- ................................................................................................................... 16
3.8.2 Activity Diagram:- ..................................................................................................................... 17
3.8.3 Class Diagram:- ......................................................................................................................... 18
3.8.4 State Diagram:- .......................................................................................................................... 19
3.8.5 E-R Diagram:- ............................................................................................................................ 20
4. SYSTEM DESIGN ................................................................................................................................. 21
4.1 Modularization details:- .................................................................................................................... 21
4.2 Data Integrity and Constraints .......................................................................................................... 22
4.3 Database Design................................................................................................................................ 23
4.4 USER INTERFACE DESIGN .......................................................................................................... 25
5 TESTING ................................................................................................................................................. 34
5.1 Testing Techniques and Testing Reports .......................................................................................... 34
5.1.2 Software Testing:- ...................................................................................................................... 35
5.1.3 Testing Objectives:- ................................................................................................................... 36
5.2 Test Cases ......................................................................................................................................... 37
6 SYSTEM SECURITY MEASURES ....................................................................................................... 45
7 COST ESTIMATION OF THE PROJECT ............................................................................................. 46
8 REPORTS ................................................................................................................................................ 47
9 FUTURE SCOPE AND FURTHER ENHANCEMENT ........................................................................ 49
10 APPENDIX ............................................................................................................................................ 50
10.1 Coding ............................................................................................................................................. 50
10.2 Bibliography ................................................................................................................................. 123
LIST OF FIGURES

Figure no. Name of Figure Page No.

Figure 3.5.1 Gantt chart 11


Figure 3.5.2 Pert chart 12
Figure 3.8.1 Use case diagram 16
Figure 3.8.2 Activity diagram 17
Figure 3.8.3 Class diagram 18
Figure 3.8.4 State diagram 19
Figure 3.8.5 E-R diagram 20
Figure 4.4.1 Home page 25
Figure 4.4.2 Login page 26
Figure 4.4.3 SignUp page 27
Figure 4.4.4 Contact us 28
Figure 4.4.5 Add exercise 29
Figure 4.4.6 View/Delete exercise 30
Figure 4.4.7 Add diet chart 31
Figure 4.4.8 View/Delete user 32
Figure 4.4.9 Feedback 32
Figure 4.4.10 User update page 33
Figure 5.2.1 Input validation page 37
Figure 5.2.2 Invalid Input Page 38
Figure 5.2.3 Error message page 38
Figure 5.2.4 Page for mandatory details 39
Figure 5.2.5 Skipped field message 40
Figure 5.2.6 Feedback should be store in database 41
Figure 5.2.7 Details stored successfully 42
Figure 5.2.8 Exercise should be add, delete and view properly 42
Figure 5.2.9 Details are viewed successfully 43
Figure 5.2.10 Details are deleted successfully 43
Figure 5.2.11 User panel for updating details 44
Figure 5.2.12 User data is successfully updated 44
Figure 8.1 List of Users 47
Figure 8.2 List of Exercise 47
Figure 8.3 View Feedback 48
LIST OF TABLES

Table no. Name of Table Page No.

Table 1 Login Id And Password 23

Table 2 Feedback 23

Table 3 Exercises 24

Table 4 Diet Chart 24


1. INTRODUCTION

The PURE FITNESSE is a web based project for online users. The main objective of this
website is to reduce stress levels and improve thinking and concentration power with regular
exercise without any equipment. This website contains different fitness programs which improve
clients overall health and quality of life.

This website helps the user to tone their body from outside and it aims to develop the
habit of meditation among youngsters so that they can enjoy more peace of mind and self-
awareness, which is essential for a stress-free existence.

This website mainly focus on yoga benefits but it also contains the different program
such as Meditation, Calisthenics, HIIT, Flexibility and Stability and Body Weight Training. All
these programs are available for every age group person.

Admin has the authority to add fitness programs details. And he also has the right to edit
or delete or update/modify fitness programs to/from the list. Admin provides a unique username
and password for login. All the information’s are being saved in the database.

There is a login portal for users also from where they can have the free membership of
our website. The advantages of taking membership are that the user can briefly view the entire
program available in the website and also ask the questions related to fitness programs.

1
2. OBJECTIVE

The main objective of this website is to reduce stress levels and improve thinking and
focus with regular exercise without any equipment.

There are the following objectives of the PURE FITNESSE which is given below:-

 To be connected with user.


 It satisfies the user requirements.
 To provide good coaching and training facilities.
 To design a user friendly website.
 To design a secure website.
 To develop a portable and browser independent website.

2
3. SYSTEM ANALYSIS

System Analysis is a process by which we attribute process or goals to a human activity


determine how well those purpose are being achieved and specify the requirements of the various
tools and techniques that are to be used within the system performance are to be achieved.

System analysis is being done for the purpose of creation and development of the “Pure
Fitnesse” in which we need to study how it functions currently, what are the problems and what
are the requirements that the proposed system should meet. System analysis is conducted with
the following objectives in mind:

 Identify the customer’s need.


 Evaluate the system concept for feasibility.
 Perform economic and technical analysis.
 Allocate functions to hardware, software people, database and other system elements.
 Establish cost and schedule constraints.
 Create a system definition that forms the foundation for all the subsequent engineering
work

3
3.1 Identification of need:

Initially, we collected all the information, which is required to develop this website. Then
we studied the working of the current system which is done manually. It was not only taking
time, but also lacks accuracy. Security point of view the manual system was failed to hide the
information from any unauthorized staff or any outside person. Therefore, there was an urgent
requirement of such website which can fulfill all of its current as well as future requirements.
Furthermore, data handling was also posing a serious problem for them. We also noted the
limitation of that system which motivated them to have new system. With the help of these
documents we got basic ideas about the system as well as input output of the developed system.

The most important thing is to study system thoroughly. Here we are studying both
existing system and proposed system so that advantages & disadvantages of both the systems can
be understood. The first task was identifying how system can be computerized. Some analysis
and projections was done regarding changes to be made to the existing system. The new
developed system for Pure Fitnesse is simple without complexities.

4
3.2 Preliminary Study:-

Limitation of Existing System:

An existing system refers to the system that is maintained with hands till now. The gym
is working manually. The current system is time consuming and also it is very costly, because it
involves a lot of paperwork. To manually handle the system was very difficult task. But now-a-
days computerization made easy to work. The following are the reasons why the current system
should be computerized:

 To increase efficiency with reduced cost.


 To reduce the burden of paper work.
 To generate required reports easily.
 To reduce the lack of security of data.
 To reduce the manual calculations.
 Man power reduces.

5
Proposed System:

The online “Pure Fitnesse” is user-friendly website. This automated system makes all
functionality easier for both owner and customer. It is very simple in design and to implement.
The system requirements are very low.

So we are developing a website that eliminates the existing manual system.

Mainly the requirements of this website are categories into:

 Functional requirements
 Non-functional requirements

 Functional requirements of this project:

 Login

 User Management

 Contact

 Fitness Program

 Daily Update

 User Queries

 Feedback

6
 Non-Functional Requirements

 Portability

 Reliability

 Ease of Use

 Security

 Attractive and Interactive

 Provide Better Services

7
3.3 Feasibility Study

After doing the project, study and analyzing all the existing or required functionalities of
the system, the next task is to do the feasibility study for the project.

Feasibility study includes consideration of all the possible ways to provide a solution to
the given problem. The proposed solution should satisfy all the user requirements and should be
flexible enough so that future changes can be easily done based on the future upcoming
requirements.

3.3.1. Technical Feasibility

At first it’s necessary to check that the proposed system is technically feasible or not & to
determine the technology and skill necessary to carry out the project. If they are not available
then find out the solution to obtain them. So, after analyzing the technical portion, we came to
the conclusion that the hardware is available in our university and the software is open source
that we are using for the development of this website.

3.3.2. Economical Feasibility

This is very important aspect to be considered while developing a project. We decided


that the vendor has to give only the domain cost which is around 2000rs per year. Overall we
have estimate that the benefits the vendor is going to receive from the proposed system will
surely overcome the initial costs and the later on running cost for system

8
3.3.3 Operational Feasibility

This website is very easy to operate as it is made user friendly with the help of very
effective GUI tools. Main consideration is user’s easy access to all the functionality of the
application. Another main consideration is here is that whether the website owner is able to use
this website in proper form or not. So, Keeping all this in mind we will be creating such type of
website which give more facility to the owner of the website that he/she can operate his website
easily without any problem.

[1]

9
3.4 Project Planning

 Firstly we analyzed the current process of getting information from different users.

 Then we understand the needs and requirement for the development of such website that
could make this process faster, and easier to manage.

 According to the needs of the system we chose the language or platform for the
development of this system which we found out that bootstrap are suitable for such
project

 Then we decided the modules and sub-modules required for the system and the work to
be accomplished by each module.

 Then we created the blue print or the data models for the system.

 Then we created the front-end of the project in Bootstrap, JavaScript, PHP, and Html.

 Then we designed the database, tables and its attributes and designed back-end of the
system in MySql.

10
3.5 Project Scheduling

3.5.1 Gantt Chart:-

Table:-

Pivot Chart:-

[Figure 3.5.1]

11
3.5.2 Pert Chart:-

21 Analysis 10 Feasibility 13 Requirement and


Study Specification

Detail
10
Design

20
15 Testing Coding System Design Design

Unit Testing System Testing

Implementation
4

Normal Path (Black Line)

Critical Path (Red Line)

[Figure 3.5.2]

12
3.6 Software Requirements Specification (SRS)

Introduction

The following subsections of the SRS document provide an overview of the entire SRS.

A. Purpose

The purpose of the project is to provide that will handle all the necessary and minute
details easily and proper database security accordingly to the admin. This website will help the
admin to maintain the personal and financial details of the member.

B. Scope

The website will be used by the admin only. Only admin can add, update, delete or search
the programs. The data will be secured as it will be stored in the database.

C. Benefits

This application reduces the complexity, increase efficiency, increases accessibility and
saving time.

13
3.6.1 Hardware and Software Used

Minimum Hardware Required:


● Laptop/desktops
● RAM: 512 MB RAM or above
● Processor: Intel core2 duo or above
● Processing Speed: 1.0GHZ or above
● Hard Disk: 50 GB hard disk or above

Software Configuration:

Client:-
● Form design: HTML(version 4.01)
● Look design: CSS(version 2.0), Bootstrap
● Java Script

Server:-

● Coding: PHP(version 5.2.6), using Sublime Text 3


● Database: MySQL(Client version 5.0.51a)

Hardware Being Used:


● RAM: 8 GB RAM
● Processor: Intel Pentium
● Processor Speed: 1.0GHZ
● Hard Disk: 1 TB hard disk

14
3.7 Software Engineering Paradigm Applied

The software engineering paradigm applied in the system is Iterative waterfall model.
Firstly, requirement of the system were analyzed, what was needed to build the proposed system,
what were the initial requirements of the system was determined. Like, we need a website that
can be accessed from anywhere using the internet. All the requirements were already clearly
specified, what all functionalities needed to be provided like file uploading facilities, and
providing reviews to user etc.

Using Iterative waterfall model a schedule can be set with deadlines for each stage of
development like, Information Gathering, Analysis, system design, coding, etc. and a system can
proceed through the development process model phases one by one. So, this would help in
development of the system in the scheduled time.

Then the system was designed on the basis of the requirement determined in the analysis phase.
The design includes the different menus and options that will be displayed to the member for
selecting the different tasks. User section of the project should allow the users to view the
exercises, diets, supplements and also give the feedback on it.

Then we designed the database and the front end that will interact with the users

[2]

15
3.8 Data Models

3.8.1 Use Case Diagram:-

[Figure 3.8.1]

16
3.8.2 Activity Diagram:-

[Figure 3.8.2]

17
3.8.3 Class Diagram:-

[Figure 3.8.3]

18
3.8.4 State Diagram:-

[Figure 3.8.4]

19
3.8.5 E-R Diagram:-

[Figure 3.8.5]

[3]

20
4. SYSTEM DESIGN

4.1 Modularization details:-

 Login: This module will provide a facility to login into the website.
 Admin Login: Through this module admin can add new, update and delete
exercise as well as change the diet plans.
 User Login: Through this login module the user can get a clear picture of
the additional exercise and fitness program provided by our Pure Fitnesse
website.

 Contact: This module will provide contact details of admin.

 Fitness Program: This module will provide all fitness program information.

 Feedback: This module provides the feedback for a customer.

 Delete: If there is some records which no need to store then admin can delete his data
from the database.

 Update: Here previous records can be updated.

 Exit: This module allows the customer or admin to Logout the application.

21
4.2 Data Integrity and Constraints

The integrity of the data in the database is maintained through constraints. There as many type of
constraint on the attributes of the tables. For example each table in the database has its primary
key that has constraint NOT NULL and is ‘auto increment’ so that it generates automatically.
Every related table are assigned with foreign key to check the relation, that is foreign key in the
document details table that help in identifying that which user has uploaded which document.
[4]

22
4.3 Database Design

1. Login Id And Password

[Table 1]

2. Feedback

[Table 2]

23
3. Exercises

[Table 3]

4. Diet Chart

[Table 4]

24
4.4 USER INTERFACE DESIGN

It is generating the following records:-

(a.) Home Page: -

Our Pure Fittnesse website first activates the home page. Here user can get the overall
idea of the website.

[Figure 4.4.1]

25
(b.)Login Page:-

Through this page user can login to a website for additional detail and exercise according
to their age.

[Figure 4.4.2]

26
(c.)SignUp Page:

This page allows the user to signup in the website, only by entering the username, email,
password and the age. After clicking submit button their login id will be created.

[Figure 4.4.3]

27
(d.) Contact Us:

Here the user can contact with the website owner and also type their query in message
box. Their name, email, phone no. and the message will be store in database.

[Figure 4.4.4]

28
(e.) Add Exercise:

Here admin can add exercise name, exercise description, minimum age limit and
maximum age limit with the suitable exercise image. This helps the registered user to find the
exercise according to their age group.

[Figure 4.4.5]

29
(f.) View/Delete Exercise:
Here the admin can manage the existing exercise available in the site and accordingly
delete and add any particular exercise.

[Figure 4.4.6]

30
(g.) Add Diet Chart:

Here admin can add diet name, minimum age limit and maximum age limit with the
suitable diet image. This helps the registered user to find the diet according to their age group.

[Figure 4.4.7]

31
(h.) View/Delete User:
Here the admin can view the existing user and accordingly delete any user.

[Figure 4.4.8]

(i.) Feedback:
Here the admin can get access to the various feedbacks given by the different users.
Every feedback given will consist of the user’s name, email ID and phone number also.

[Figure 4.4.9]

32
(j.) User Update Page:
Here the user can update their details.

[Figure 4.4.10]

33
5 TESTING

5.1 Testing Techniques and Testing Reports

5.1.1 Unit Testing:-

Unit testing, also known as component testing refers to tests that verify the functionality

of a specific section of code, usually at the function level. In an object-oriented environment, this

is usually at the class level, and the minimal unit tests include the constructors and destructors.

These types of tests are usually written by developers as they work on code (white-box

style), to ensure that the specific function is working as expected. One function might have

multiple tests, to catch corner cases or other branches in the code. Unit testing alone cannot

verify the functionality of a piece of software, but rather is used to ensure that the building

blocks of the software work independently from each other.

Unit testing is a software development process that involves synchronized application of

a broad spectrum of defect prevention and detection strategies in order to reduce software

development risks, time, and costs. It is performed by the software developer or engineer during

the construction phase of the software development lifecycle. Rather than replace traditional QA

focuses, it augments it. Unit testing aims to eliminate construction errors before code is promoted

to QA; this strategy is intended to increase the quality of the resulting software as well as the

efficiency of the overall development and QA process.

34
Depending on the organization's expectations for software development, unit testing

might include static code analysis, data flow analysis, metrics analysis, peer code reviews, code

coverage analysis and other software verification practices.

5.1.2 Software Testing:-

The importance of software testing and its implication with respect to the software

quality cannot be overemphasized. Error may occur at the very inception of the process, where

the objectives may be erroneously or imperfectly specified, as well as in the design and

development stages. Because of human inability to perform and communicate with perfection,

the software development is accompanied by a quality assurance activity.




















35
5.1.3 Testing Objectives:-

 Testing is a process of executing a program with the intention of finding an error.

 A good test case is one that has a high probability of finding an as yet undiscovered error.

 A successful test is one that uncovers an as yet undiscovered error.

 Functionality of the entire module/forms.

 Validations for user input.

 Checking of the Coding standards to be maintained during coding.

 Testing the module with all the possible test data.

 Testing of the functionality involving all type of calculations etc.

 Commenting standard in the source files.

36
5.2 Test Cases

1. Only correct user can login

The username and password is case sensitive. The user is required to enter the details
carefully as shown below in the figure

[Figure 5.2.1]

37
If the user enters the wrong username and password as shown in below figure

[Figure 5.2.2]

Then the error message will be appear as shown in below figure

[Figure 5.2.3]

38
2. All the details should be filled.

All the details which is shown in below figure is mandatory to be filled

[Figure 5.2.4]

39
If the user skips any filled then a message is as shown in below figure and he/she is not
able to signup into the website.

[Figure 5.2.5]

40
3. Feedback should be successfully stored in database.

All the details shown below in the figure should be stored in the database.

[Figure 5.2.6]

41
The details are successfully stored in database.

[Figure 5.2.7]

4. Exercise details should be add, delete and view properly.

All the details shown below should be filled by admin to add, delete and view exercise.

[Figure 5.2.8]

42
After filling the fields the data is successfully shown in below figure.

[Figure 5.2.9]

Data is successfully deleted as shown in below figure.

[Figure 5.2.10]

43
5. User detail should be updated properly.

The user data is successfully updated after clicking on submitted button. As shown in
below figure.

[Figure 5.2.11]

The data is successfully updated.

[Figure 5.2.12]

44
6 SYSTEM SECURITY MEASURES

Secure and Robust Programming

Many system failures and security vulnerabilities arise at the programming level. These
can often be attributed to inadequate handling of exceptional situations, poor understanding of
the details of the programming language in use, incomplete descriptions of the interfaces
between components, and insufficient care in the treatment of concurrency and threading issues.

In this system a special care has been taken while performing the programming for the
software so that the software doesn’t get corrupted or meet any fatal error while running.

Data security and Privacy:

As increasing amounts of data are captured so keeping concerns about the treatment of
personal data database concept has been designed.

The application package takes care of the security and privacy aspect of its users. It provides its
user a secure place to store their confidential information or the data, without the fear of getting
mishandled.

In this system a unique number will be provided to the user for the security mechanism.

45
7 COST ESTIMATION OF THE PROJECT

In cocomo model two attribute are required.

1. Effort
2. Tdev (time development)

First of all we calculate the Effort.

In our project we have estimated to 5 KLOC (kilobyte line of code). There are two students
working on this project so our estimated cost would be.

Effort (E) =a1*(KLOC)*a2 (where the value of a1 and a2 are constant i.e, 2.4 and 1.05)

E=2.4*(5)*1.05

E=12.6

Now we have to calculate Tdev

Tdev (t) =b1*(E)*B2 (where the value of b1 is 2.5 and b2 is 0.38)

T=2.5*(12.6)*0.38

T (total deviation in months) = 11.97

Now finally we calculated the estimated cost i.e. T * Cost of one employee.

Estimated cost = T* Cost of one employee (1000 per month)

=11.97*1000

=11,970

46
8 REPORTS

 List of Users

The Admin can View the user details.

[Figure 8.1]

List of Exercise

The admin can view/delete the exercise.

[Figure 8.2]

47
 View Feedback

The admin can view the feedback.

[Figure 8.3]

48
9 FUTURE SCOPE AND FURTHER
ENHANCEMENT

The project has been developed in a very short period of time and all efforts have been
taken so that this project is very efficient in its execution there still exists some scope of
improvement in our project. The following lists some of the enhancement that can be added
incorporate into the project.

Application of the project can be done more attractively. Database management and all
maintenance module can be updated which helps the administrator. More security measures can
be taken. There are also few features which can be integrated with this system to make it more
flexible. Below list shows the future points to be consider:

Real-time Chat BOT option for members and trainer, so that members can directly
enquiry theirs trainer on any time through the Chat BOT.

 Automated Fitness suggestion by enquiring the condition of the health.


 Real time Claim Processing Bot.
 Video conversation option for trainers and members.
 Online payment through face recognition.
 Barcode generation for membership card and using this, members can take entry to Gym.
 Finger print matching for taking entry to gym.

Exercise chart, diet chart, and supplement information can be added in future.

49
10 APPENDIX

10.1 Coding

/********************* Home Page************************/

<!DOCTYPE html>
<html lang="en">
<head>
<title>PureFitnesse &mdash;Fitness Website</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">
<link rel="stylesheet" href="fonts/icomoon/style.css">

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


<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet" href="css/jquery-ui.css">
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet" href="css/owl.theme.default.min.css">
<link rel="stylesheet" href="css/bootstrap-datepicker.css">
<link rel="stylesheet" href="css/animate.css">

<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">

<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">

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

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

</head>
<body>

<div class="site-wrap">

<div class="site-mobile-menu">
<div class="site-mobile-menu-header">
<div class="site-mobile-menu-close mt-3">
<span class="icon-close2 js-menu-toggle"></span>
</div>
</div>
<div class="site-mobile-menu-body"></div>
</div> <!-- .site-mobile-menu -->
<div class="site-navbar-wrap js-site-navbar bg-white">

50
<div class="container">
<div class="site-navbar bg-light">
<div class="py-1">
<div class="row align-items-center">
<div class="col-2">
<h2 class="mb-0 site-logo"><a href="index.html">PureFitnesse</a></h2>
</div>
<div class="col-10">
<nav class="site-navigation text-right" role="navigation">
<div class="container">

<div class="d-inline-block d-lg-none ml-md-0 mr-auto py-3"><a href="#" class="site-menu-toggle js-


menu-toggle"><span class="icon-menu h3"></span></a></div>
<ul class="site-menu js-clone-nav d-none d-lg-block">
<li class="active">
<a href="index.html">Home</a>
</li>
<li class="has-children">
<a href="#">Programs</a>
<ul class="dropdown arrow-top">
<li><a href="classes.html">Yoga Classes</a></li>
<li><a href="#">Bare Workout</a></li>
<li><a href="#">Peace of Mind</a></li>
<li class="has-children">
<a href="#">More</a>
<ul class="dropdown">
<li><a href="#">Yoga Dance</a></li>
<li><a href="#">Bare Workout</a></li>
<li><a href="#">Peace of Mind</a></li>

</ul>
</li>

</ul>
</li>
<li><a href="login.php">Login</a></li>
<li><a href="signup.php">Signup</a></li>
<li><a href="about.html">About Us</a></li>
<li><a href="contact.php">Contact</a></li>
</ul>
</div>
</nav>
</div>
</div>
</div>
</div>
</div>
</div>

<div class="slide-one-item home-slider owl-carousel"


<div class="site-blocks-cover overlay" style="background-image: url(images/1.jpg);" data-aos="fade" data-
stellar-background-ratio="0.5">
<div class="container">
<div class="row align-items-center justify-content-center">
<div class="col-md-7 text-center" data-aos="fade">
<h2 class="caption mb-2">Yoga for everybody</h2>

51
<h1 class="">Welcome To PureFitnesse</h1>

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

<div class="site-blocks-cover overlay" style="background-image: url(images/hero_2.jpg);" data-aos="fade"


data-stellar-background-ratio="0.5">
<div class="container">
<div class="row align-items-center justify-content-center">
<div class="col-md-7 text-center" data-aos="fade">
<h2 class="caption mb-2">Enjoy With Us</h2>
<h1 class="">Yoga &amp; Meditation</h1>
</div>
</div>
</div>
</div>
</div>

<div class="site-block-half d-flex" id="scroll">


<div class="image bg-image" style="background-image: url('images/img_1.jpg');"></div>
<div class="text">
<h2 class="font-family-serif">Welcome To PureFitnesse</h2>
<span class="caption d-block text-primary pl-0 mb-4">Hello there!</span>
<p class="mb-5">Welcome to our website. We mainly focuse on yoga benefits but it also contains the different
program such as Meditation, Calisthenics, HIIT, Flexibility and Stability and Body Weight Training</p>
<p><a href="#" class="btn btn-primary pill px-4 py-3 text-white">See More</a></p>

</div>
</div>

<div class="site-section bg-light">


<div class="container">
<div class="row">
<div class="col-md-6 mx-auto text-center mb-5 section-heading">
<h2 class="mb-5">Our Programs</h2>
</div>
</div>
<div class="row">
<div class="col-md-6 col-lg-4 mb-5">
<div class="program">
<a href="#" class="d-block mb-0 thumbnail"><img src="images/img_1.jpg" alt="Image" class="img-
fluid"></a>
<div class="program-body">
<h3 class="heading mb-2"><a href="#">Embrace Your Edge</a></h3>
<p><a href="#">Healthy Yoga</a> with <a href="#">Sohit Rawat</a></p>
<div class="span"><span class="mr-4"><span class="icon-schedule icon"></span> 20 min</span>
<span> <span class="icon-signal icon"></span> Beginner</span></div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4 mb-5">
<div class="program">
<a href="#" class="d-block mb-0 thumbnail"><img src="images/img_2.jpg" alt="Image" class="img-
fluid"></a>

52
<div class="program-body">
<h3 class="heading mb-2"><a href="#">Yoga to Build Resilience</a></h3>
<p><a href="#">Healthy Yoga</a> with <a href="#">Sohit Rawat</a></p>
<div class="span"><span class="mr-4"><span class="icon-schedule icon"></span> 20 min</span>
<span> <span class="icon-signal icon"></span> Advanced</span></div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4 mb-5">
<div class="program">
<a href="#" class="d-block mb-0 thumbnail"><img src="images/img_3.jpg" alt="Image" class="img-
fluid"></a>
<div class="program-body">
<h3 class="heading mb-2"><a href="#">Rise &amp; Shine</a></h3>
<p><a href="#">Power Yoga</a> with <a href="#">Sohit Rawat</a></p>
<div class="span"><span class="mr-4"><span class="icon-schedule icon"></span> 20 min</span>
<span> <span class="icon-signal icon"></span> Intermediate</span></div>
</div>
</div>
</div>

<div class="col-md-6 col-lg-4 mb-5">


<div class="program">
<a href="#" class="d-block mb-0 thumbnail"><img src="images/img_4.jpg" alt="Image" class="img-
fluid"></a>
<div class="program-body">
<h3 class="heading mb-2"><a href="#">Bend &amp; Stretch</a></h3>
<p><a href="#">Meditation Yoga</a> with <a href="#">Sohit Rawat</a></p>
<div class="span"><span class="mr-4"><span class="icon-schedule icon"></span> 20 min</span>
<span> <span class="icon-signal icon"></span> Beginner</span></div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4 mb-5">
<div class="program">
<a href="#" class="d-block mb-0 thumbnail"><img src="images/img_5.jpg" alt="Image" class="img-
fluid"></a>
<div class="program-body">
<h3 class="heading mb-2"><a href="#">Vinyasa Yoga</a></h3>
<p><a href="#">Meditation Yoga</a> with <a href="#">Sohit Rawat</a></p>
<div class="span"><span class="mr-4"><span class="icon-schedule icon"></span> 20 min</span>
<span> <span class="icon-signal icon"></span> Advanced</span></div>
</div>
</div>
</div>
<div class="col-md-6 col-lg-4 mb-5">
<div class="program">
<a href="#" class="d-block mb-0 thumbnail"><img src="images/img_6.jpg" alt="Image" class="img-
fluid"></a>
<div class="program-body">
<h3 class="heading mb-2"><a href="#">Barre Workout</a></h3>
<p><a href="#">Meditation Yoga</a> with <a href="#">Sohit Rawat</a></p>
<div class="span"><span class="mr-4"><span class="icon-schedule icon"></span> 20 min</span>
<span> <span class="icon-signal icon"></span> Beginner</span></div>
</div>
</div>

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

<div class="site-section">
<div class="container">
<div class="row align-items-center">
<div class="col-md-6 mb-5 mb-md-0">

<div class="img-border">
<iframe width="500" height="409" src="https://www.youtube.com/embed/QHqPVZBl-84"
frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
</a>
</div>

</div>
<div class="col-md-5 ml-auto">

<div class="section-heading text-left">


<h2 class="mb-5">Watch Video</h2>
</div>
<p class="mb-4"></p>
<p>
<a href="#" class="popup-youtube text-uppercase">Watch Video <span class="icon-arrow-right
small"></span></a></p>
</div>
</div>
</div>
</div>

<div class="site-section">
<div class="container">
<div class="row">
<div class="col-md-6 mx-auto text-center mb-5 section-heading">
<h2 class="mb-5">Yoga Features</h2>
</div>
</div>
<div class="row">
<div class="col-sm-6 col-md-4 col-lg-3">
<div class="text-center item">
<span class="flaticon-001-stone display-3 mb-3 d-block text-primary"></span>
<h2 class="h5">Peace of Mind</h2>
<p>Life is under no obligation to give you exactly what you expect</p>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<div class="text-center item">
<span class="flaticon-002-lotus display-3 mb-3 d-block text-primary"></span>
<h2 class="h5">Mindfullness</h2>
<p>Mindfulness is the basic human ability to be fully present</p>
</div>

54
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<div class="text-center item">
<span class="flaticon-003-meditation display-3 mb-3 d-block text-primary"></span>
<h2 class="h5">Meditation</h2>
<p>Yogis have been practicing dhyana (meditation) for millennia</p>
</div>
</div>
<div class="col-sm-6 col-md-4 col-lg-3">
<div class="text-center item">
<span class="flaticon-004-carpet display-3 mb-3 d-block text-primary"></span>
<h2 class="h5">Yoga Carpet</h2>
<p>The yoga mat is more than a tool employed by the yogi</p>
</div>
</div>

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

<div class="site-section">
<div class="">
<div class="row">
<div class="col-md-6 mx-auto text-center mb-5 section-heading">
<h2 class="mb-5">Our Gallery</h2>
</div>
</div>
<div class="row no-gutters">
<div class="col-md-6 col-lg-3">
<a href="images/img_1.jpg" class="image-popup img-opacity"><img src="images/img_1.jpg" alt="Image"
class="img-fluid"></a>
</div>
<div class="col-md-6 col-lg-3">
<a href="images/img_2.jpg" class="image-popup img-opacity"><img src="images/img_2.jpg" alt="Image"
class="img-fluid"></a>
</div>
<div class="col-md-6 col-lg-3">
<a href="images/img_3.jpg" class="image-popup img-opacity"><img src="images/img_3.jpg" alt="Image"
class="img-fluid"></a>
</div>
<div class="col-md-6 col-lg-3">
<a href="images/img_4.jpg" class="image-popup img-opacity"><img src="images/img_4.jpg" alt="Image"
class="img-fluid"></a>
</div>

<div class="col-md-6 col-lg-3">


<a href="images/img_4.jpg" class="image-popup img-opacity"><img src="images/img_4.jpg" alt="Image"
class="img-fluid"></a>
</div>
<div class="col-md-6 col-lg-3">
<a href="images/img_5.jpg" class="image-popup img-opacity"><img src="images/img_5.jpg" alt="Image"
class="img-fluid"></a>
</div>

55
<div class="col-md-6 col-lg-3">
<a href="images/img_6.jpg" class="image-popup img-opacity"><img src="images/img_6.jpg" alt="Image"
class="img-fluid"></a>
</div>
<div class="col-md-6 col-lg-3">
<a href="images/img_7.jpg" class="image-popup img-opacity"><img src="images/img_7.jpg" alt="Image"
class="img-fluid"></a>
</div>

<div class="col-md-6 col-lg-3">


<a href="images/img_1.jpg" class="image-popup img-opacity"><img src="images/img_1.jpg" alt="Image"
class="img-fluid"></a>
</div>
<div class="col-md-6 col-lg-3">
<a href="images/img_2.jpg" class="image-popup img-opacity"><img src="images/img_2.jpg" alt="Image"
class="img-fluid"></a>
</div>
<div class="col-md-6 col-lg-3">
<a href="images/img_3.jpg" class="image-popup img-opacity"><img src="images/img_3.jpg" alt="Image"
class="img-fluid"></a>
</div>
<div class="col-md-6 col-lg-3">
<a href="images/img_4.jpg" class="image-popup img-opacity"><img src="images/img_4.jpg" alt="Image"
class="img-fluid"></a>
</div>

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

<footer class="site-footer">
<div class="container">

<div class="row">
<div class="col-md-4">
<h3 class="footer-heading mb-4 text-white">About</h3>
<p>We mainly focuse on yoga benefits but it also contains the different program such as Meditation,
Calisthenics, HIIT, Flexibility and Stability and Body Weight Training</p>
<p><a href="about.html" class="btn btn-primary pill text-white px-4">Read More</a></p>
</div>
<div class="col-md-6">
<div class="row">
<div class="col-md-6">
<h3 class="footer-heading mb-4 text-white">Quick Menu</h3>
<ul class="list-unstyled">
<li><a href="#">About</a></li>
<li><a href="#">Features</a></li>
<li><a href="#">Approach</a></li>
<li><a href="#">Events</a></li>
<li><a href="#">Classes</a></li>
<li><a href="#">Careers</a></li>
</ul>
</div>

56
<div class="col-md-6">
<h3 class="footer-heading mb-4 text-white">Ministries</h3>
<ul class="list-unstyled">
<li><a href="#">Yoga for Health</a></li>
<li><a href="#">Yoga for Resilience</a></li>
<li><a href="#">Yoga Class</a></li>
<li><a href="#">Meditation</a></li>
<li><a href="#">Mind Balance</a></li>
</ul>
</div>
</div>
</div>

<div class="col-md-2">
<div class="col-md-12"><h3 class="footer-heading mb-4 text-white">Social Icons</h3></div>
<div class="col-md-12">
<p>
<a href="#" class="pb-2 pr-2 pl-0"><span class="icon-facebook"></span></a>
<a href="#" class="p-2"><span class="icon-twitter"></span></a>
<a href="#" class="p-2"><span class="icon-instagram"></span></a>
<a href="#" class="p-2"><span class="icon-vimeo"></span></a>
</p>
</div>
</div>
</div>
<div class="row pt-5 mt-5 text-center">
<div class="col-md-12">
<p>

Copyright &copy; All Rights Reserved |

</p>
</div>

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

<script src="js/jquery-3.3.1.min.js"></script>
<script src="js/jquery-migrate-3.0.1.min.js"></script>
<script src="js/jquery-ui.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.stellar.min.js"></script>
<script src="js/jquery.countdown.min.js"></script>
<script src="js/jquery.magnific-popup.min.js"></script>
<script src="js/bootstrap-datepicker.min.js"></script>
<script src="js/aos.js"></script>
<script src="js/mediaelement-and-player.min.js"></script>

<script src="js/main.js"></script>

57
<script>

document.addEventListener('DOMContentLoaded', function() {
var mediaElements = document.querySelectorAll('video, audio'), total = mediaElements.length;

for (var i = 0; i < total; i++) {


new MediaElementPlayer(mediaElements[i], {
pluginPath: 'https://cdn.jsdelivr.net/npm/[email protected]/build/',
shimScriptAccess: 'always',
success: function () {
var target = document.body.querySelectorAll('.player'), targetTotal = target.length;
for (var j = 0; j < targetTotal; j++) {
target[j].style.visibility = 'visible';
}
}
});
}
});
</script>

</body>
</html>

[5

/********************* Login Page************************/


<?php

session_start();

if(!isset($_SESSION['uname'])){

if (isset($_POST['submit'])) {

$username = $_POST['username'];

$password = $_POST['password'];

include 'config.php';

$sql = "SELECT * from users where uname = '$username' and pwd = '$password'";

$result = mysqli_query($db,$sql)or die("Error");

$row = mysqli_fetch_array($result);

if($row["uname"]==$username && $row["pwd"]==$password){

$_SESSION['uname'] = $username;

if($username == 'admin'){

58
header('location:admin_panel.php');

}else{

echo '<script>alert("Logged in Successfully");</script>';

header('location:user_panel.php');

else

echo '<script>alert("Sorry, your credentials are not valid, Please try again.");</script>';

?>

<!DOCTYPE html>

<html lang="en">

<head>

<title>PureFitnesse &mdash;Fitness Website </title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">

<link rel="stylesheet" href="fonts/icomoon/style.css">

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

<link rel="stylesheet" href="css/magnific-popup.css">

<link rel="stylesheet" href="css/jquery-ui.css">

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

<link rel="stylesheet" href="css/owl.theme.default.min.css">

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

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

<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">

59
<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">

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

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

</head>

<body>

<div class="site-wrap">

<div class="site-mobile-menu">

<div class="site-mobile-menu-header">

<div class="site-mobile-menu-close mt-3">

<span class="icon-close2 js-menu-toggle"></span>

</div>

</div>

<div class="site-mobile-menu-body"></div>

</div> <!-- .site-mobile-menu -->

<div class="site-navbar-wrap js-site-navbar bg-white">

<div class="container">

<div class="site-navbar bg-light">

<div class="py-1">

<div class="row align-items-center">

<div class="col-2">

<h2 class="mb-0 site-logo"><a href="index.html">PureFitnesse</a></h2>

</div>

<div class="col-10">

<nav class="site-navigation text-right" role="navigation">

<div class="container">

<div class="d-inline-block d-lg-none ml-md-0 mr-auto py-3"><a href="#" class="site-menu-toggle js-


menu-toggle"><span class="icon-menu h3"></span></a></div>

<ul class="site-menu js-clone-nav d-none d-lg-block">

60
<li class="">

<a href="index.html">Home</a>

</li>

<li class="has-children">

<a href="#">Programs</a>

<ul class="dropdown arrow-top">

<li><a href="#">Yoga Dance</a></li>

<li><a href="#">Bare Workout</a></li>

<li><a href="#">Peace of Mind</a></li>

<li class="has-children">

<a href="classes.html">More</a>

<ul class="dropdown">

<li><a href="#">Yoga Dance</a></li>

<li><a href="#">Bare Workout</a></li>

<li><a href="#">Peace of Mind</a></li>

</ul>

</li>

</ul>

</li>

<li class="active"><a href="login.php">Login</a></li>

<li><a href="signup.php">Signup</a></li>

<li><a href="#">About Us</a></li>

<li><a href="#">Contact</a></li>

</ul>

</div>

</nav>

</div>

</div>

61
</div>

</div>

</div>

</div>

<div class="site-blocks-cover overlay" style="background-image: url(images/2.jpg);" data-aos="fade" data-


stellar-background-ratio="0.5">

<div class="container">

<div class="row align-items-center justify-content-center">

<div class="col-md-7 text-center" data-aos="fade">

<h2 class="caption mb-2">Stay Connected</h2>

<h1 class="">Login</h1>

</div>

</div>

</div>

</div>

<div class="site-section site-section-sm" id="scrollTo">

<div class="container">

<div class="row">

<div class="col-md-12 col-lg-8 mb-5">

<form action="" class="p-5 bg-white" method="POST">

<div class="row form-group">

<div class="col-md-12 mb-3 mb-md-0">

<label class="font-weight-bold" for="Username">Username</label>

<input type="text" id="Username" name="username" class="form-control" placeholder="Username"


required>

62
</div>

</div>

<div class="row form-group">

<div class="col-md-12">

<label class="font-weight-bold" for="email">Password</label>

<input type="Password" id="Password" name="password" class="form-control"


placeholder="Password" required>

</div>

</div>

<!--<p class="mb-3"><a href="#">Forget password</a></p>

<div class="row form-group">

<div class="col-md-12">

<input type="submit" name="submit" value="login" class="btn btn-primary pill text-white px-5 py-2">

</div>

</div>

</form>

</div>

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

<div class="p-4 mb-3 bg-white">

<br>

<h3 class="h3 text-black mb-3">New Member</h3>

<div class="row form-group">

<div class="col-md-12">

<br>

<a href="signup.php" value="Sign Up" class="btn btn-primary pill text-white px-5 py-2">Sign Up</a>

</div>

</div>

</div>

63
</div>

</div>

</div>

</div>

<div class="site-section bg-light">

<div class="container">

<div class="row">

<div class="col-md-6 mx-auto text-center mb-5 section-heading">

<h2 class="mb-5">Yoga Features</h2>

</div>

</div>

<div class="row">

<div class="col-sm-6 col-md-4 col-lg-3">

<div class="text-center item">

<span class="flaticon-001-stone display-3 mb-3 d-block text-primary"></span>

<h2 class="h5">Peace of Mind</h2>

<p>Life is under no obligation to give you exactly what you expect</p>

</div>

</div>

<div class="col-sm-6 col-md-4 col-lg-3">

<div class="text-center item">

<span class="flaticon-002-lotus display-3 mb-3 d-block text-primary"></span>

<h2 class="h5">Mindfullness</h2>

<p>Mindfulness is the basic human ability to be fully present</p>

</div>

</div>

<div class="col-sm-6 col-md-4 col-lg-3">

<div class="text-center item">

<span class="flaticon-003-meditation display-3 mb-3 d-block text-primary"></span>

<h2 class="h5">Meditation</h2>

64
<p>Yogis have been practicing dhyana (meditation) for millennia</p>

</div>

</div>

<div class="col-sm-6 col-md-4 col-lg-3">

<div class="text-center item">

<span class="flaticon-004-carpet display-3 mb-3 d-block text-primary"></span>

<h2 class="h5">Yoga Carpet</h2>

<p>The yoga mat is more than a tool employed by the yogi</p>

</div>

</div>

</div>

</div>

</div>

<footer class="site-footer">

<div class="container">

<div class="row">

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

<h3 class="footer-heading mb-4 text-white">About</h3>

<p>We mainly focuse on yoga benefits but it also contains the different program such as Meditation,
Calisthenics, HIIT, Flexibility and Stability and Body Weight Training.</p>

<p><a href="#" class="btn btn-primary pill text-white px-4">Read More</a></p>

</div>

<div class="col-md-6">

<div class="row">

<div class="col-md-6">

<h3 class="footer-heading mb-4 text-white">Quick Menu</h3>

<ul class="list-unstyled">

<li><a href="#">About</a></li>

<li><a href="#">Features</a></li>

65
<li><a href="#">Approach</a></li>

<li><a href="#">Events</a></li>

<li><a href="#">Classes</a></li>

<li><a href="#">Careers</a></li>

</ul>

</div>

<div class="col-md-6">

<h3 class="footer-heading mb-4 text-white">Ministries</h3>

<ul class="list-unstyled">

<li><a href="#">Yoga for Health</a></li>

<li><a href="#">Yoga for Resilience</a></li>

<li><a href="#">Yoga Class</a></li>

<li><a href="#">Meditation</a></li>

<li><a href="#">Mind Balance</a></li>

</ul>

</div>

</div>

</div>

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

<div class="col-md-12"><h3 class="footer-heading mb-4 text-white">Social Icons</h3></div>

<div class="col-md-12">

<p>

<a href="#" class="pb-2 pr-2 pl-0"><span class="icon-facebook"></span></a>

<a href="#" class="p-2"><span class="icon-twitter"></span></a>

<a href="#" class="p-2"><span class="icon-instagram"></span></a>

<a href="#" class="p-2"><span class="icon-vimeo"></span></a>

</p>

</div>

</div>

</div>

66
<div class="row pt-5 mt-5 text-center">

<div class="col-md-12">

<p>

Copyright &copy; All Rights Reserved |

</p>

</div?

</div>

</div>

</footer>

</div>

<script src="js/jquery-3.3.1.min.js"></script>

<script src="js/jquery-migrate-3.0.1.min.js"></script>

<script src="js/jquery-ui.js"></script>

<script src="js/popper.min.js"></script>

<script src="js/bootstrap.min.js"></script>

<script src="js/owl.carousel.min.js"></script>

<script src="js/jquery.stellar.min.js"></script>

<script src="js/jquery.countdown.min.js"></script>

<script src="js/jquery.magnific-popup.min.js"></script>

<script src="js/bootstrap-datepicker.min.js"></script>

<script src="js/aos.js"></script>

<script src="js/mediaelement-and-player.min.js"></script>

<script src="js/main.js"></script>

<script>

67
$(document).ready(function(){

setTimeout(function(){

$('html, body').animate({ scrollTop: $('#scrollTo').offset().top}, 3000);

},3000);

});

document.addEventListener('DOMContentLoaded', function() {

var mediaElements = document.querySelectorAll('video, audio'), total = mediaElements.length;

for (var i = 0; i < total; i++) {

new MediaElementPlayer(mediaElements[i], {

pluginPath: 'https://cdn.jsdelivr.net/npm/[email protected]/build/',

shimScriptAccess: 'always',

success: function () {

var target = document.body.querySelectorAll('.player'), targetTotal = target.length;

for (var j = 0; j < targetTotal; j++) {

target[j].style.visibility = 'visible';

});

});

</script>

</body>

</html>

<?php

}else{

68
if($_SESSION['uname'] == 'admin'){

header('location:admin_panel.php');

else{

header('location:user_panel.php');

?>

[6]

/*********************SignUp Page************************/
<?php

include 'config.php';

if(isset($_POST['submit'])){

$uname = $_POST['uname'];

$pwd = $_POST['pwd'];

$email = $_POST['email'];

$age = $_POST['age'];

$address = $_POST['address'];

$mobile = $_POST['mobile'];

$sql = "INSERT into users(uname, email, pwd, age, address, mob) values('$uname', '$email', '$pwd', '$age',
'$address', $mobile)";

echo "<script>alert('".$sql."');</script>";

if(mysqli_query($db,$sql)){

echo "<script>alert('done')</script>";

69
?><!DOCTYPE html>

<html lang="en">

<head>

<title>PureFitnesse &mdash;Fitness Website </title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">

<link rel="stylesheet" href="fonts/icomoon/style.css">

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

<link rel="stylesheet" href="css/magnific-popup.css">

<link rel="stylesheet" href="css/jquery-ui.css">

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

<link rel="stylesheet" href="css/owl.theme.default.min.css">

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

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

<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">

<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">

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

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

</head>

<body>

70
<div class="site-wrap">

<div class="site-mobile-menu">

<div class="site-mobile-menu-header">

<div class="site-mobile-menu-close mt-3">

<span class="icon-close2 js-menu-toggle"></span>

</div>

</div>

<div class="site-mobile-menu-body"></div>

</div> <!-- .site-mobile-menu -->

<div class="site-navbar-wrap js-site-navbar bg-white">

<div class="container">

<div class="site-navbar bg-light">

<div class="py-1">

<div class="row align-items-center">

<div class="col-2">

<h2 class="mb-0 site-logo"><a href="index.html">PureFitnesse</a></h2>

</div>

<div class="col-10">

<nav class="site-navigation text-right" role="navigation">

<div class="container">

<div class="d-inline-block d-lg-none ml-md-0 mr-auto py-3"><a href="#" class="site-menu-toggle js-


menu-toggle"><span class="icon-menu h3"></span></a></div>

<ul class="site-menu js-clone-nav d-none d-lg-block">

<li class="">

<a href="index.html">Home</a>

</li>

<li class="has-children">

<a href="#">Programs</a>

71
<ul class="dropdown arrow-top">

<li><a href="#">Yoga Classes</a></li>

<li><a href="#"></a></li>

<li><a href="#"></a></li>

<li class="has-children">

<a href="classes.html">More</a>

<ul class="dropdown">

<li><a href="#"></a></li>

<li><a href="#"></a></li>

<li><a href="#"></a></li>

</ul>

</li>

</ul>

</li>

<li><a href="login.php">Login</a></li>

<li class="active"><a href="signup.php">SignUp</a></li>

<li><a href="about.html">About Us</a></li>

<li><a href="contact.php">Contact</a></li>

</ul>

</div>

</nav>

</div>

</div>

</div>

</div>

</div>

</div>

72
<div class="site-blocks-cover overlay" style="background-image: url(images/2.jpg);" data-aos="fade" data-
stellar-background-ratio="0.5">

<div class="container">

<div class="row align-items-center justify-content-center">

<div class="col-md-7 text-center" data-aos="fade">

<h2 class="caption mb-2">Create Account</h2>

<h1 class="">Sign Up</h1>

</div>

</div>

</div>

</div>

<div class="site-section site-section-sm" id="scrollTo">

<div class="container">

<div class="row">

<div class="col-md-12 col-lg-8 mb-5">

<form action="" class="p-5 bg-white" method="POST">

<div class="row form-group">

<div class="col-md-12 mb-3 mb-md-0">

<label class="font-weight-bold" for="Username">Username</label>

<input type="text" id="Username" name="uname" class="form-control" placeholder="Username"


required>

</div>

</div>

<div class="row form-group">

<div class="col-md-12 mb-3 mb-md-0">

<label class="font-weight-bold" for="Email">Email</label>

<input type="Email" id="Email" name="email" class="form-control" placeholder="Email" required>

73
</div>

</div>

<div class="row form-group">

<div class="col-md-12 mb-3 mb-md-0">

<label class="font-weight-bold" for="Password">Password</label>

<input type="Password" id="Password" name="pwd" class="form-control" placeholder="Password"


required>

</div>

</div>

<div class="row form-group">

<div class="col-md-12 mb-3 mb-md-0">

<label class="font-weight-bold" for="age">Age</label>

<input type="number" id="age" name="age" class="form-control" placeholder="Age" required>

</div>

</div>

<div class="row form-group">

<div class="col-md-12 mb-3 mb-md-0">

<label class="font-weight-bold" for="Address">Address</label>

<input type="text" id="Address" name="address" class="form-control" placeholder="Address"


required>

</div>

</div>

<div class="row form-group">

<div class="col-md-12 mb-3 mb-md-0">

<label class="font-weight-bold" for="mobile">Mobile No</label>

<input type="number" id="mobile" name="mobile" class="form-control" placeholder="Mobile Number"


required>

</div>

</div>

<div class="row form-group">

<div class="col-md-12">

<input type="submit" name="submit" class="btn btn-primary pill text-white px-5 py-2">

74
</div>

</div>

</form>

</div>

</div>

</div>

</div>

<div class="site-section bg-light">

<div class="container">

<div class="row">

<div class="col-md-6 mx-auto text-center mb-5 section-heading">

<h2 class="mb-5">Yoga Features</h2>

</div>

</div>

<div class="row">

<div class="col-sm-6 col-md-4 col-lg-3">

<div class="text-center item">

<span class="flaticon-001-stone display-3 mb-3 d-block text-primary"></span>

<h2 class="h5">Peace of Mind</h2>

<p>Life is under no obligation to give you exactly what you expect</p>

</div>

</div>

<div class="col-sm-6 col-md-4 col-lg-3">

<div class="text-center item">

<span class="flaticon-002-lotus display-3 mb-3 d-block text-primary"></span>

<h2 class="h5">Mindfullness</h2>

<p>Mindfulness is the basic human ability to be fully present</p>

</div>

75
</div>

<div class="col-sm-6 col-md-4 col-lg-3">

<div class="text-center item">

<span class="flaticon-003-meditation display-3 mb-3 d-block text-primary"></span>

<h2 class="h5">Meditation</h2>

<p>Yogis have been practicing dhyana (meditation) for millennia</p>

</div>

</div>

<div class="col-sm-6 col-md-4 col-lg-3">

<div class="text-center item">

<span class="flaticon-004-carpet display-3 mb-3 d-block text-primary"></span>

<h2 class="h5">Yoga Carpet</h2>

<p>The yoga mat is more than a tool employed by the yogi</p>

</div>

</div>

</div>

</div>

</div>

<footer class="site-footer">

<div class="container">

<div class="row">

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

<h3 class="footer-heading mb-4 text-white">About</h3>

<p>We mainly focuse on yoga benefits but it also contains the different program such as Meditation,
Calisthenics, HIIT, Flexibility and Stability and Body Weight Training.</p>

<p><a href="#" class="btn btn-primary pill text-white px-4">Read More</a></p>

</div>

<div class="col-md-6">

<div class="row">

76
<div class="col-md-6">

<h3 class="footer-heading mb-4 text-white">Quick Menu</h3>

<ul class="list-unstyled">

<li><a href="#">About</a></li>

<li><a href="#">Features</a></li>

<li><a href="#">Approach</a></li>

<li><a href="#">Events</a></li>

<li><a href="#">Classes</a></li>

<li><a href="#">Careers</a></li>

</ul>

</div>

<div class="col-md-6">

<h3 class="footer-heading mb-4 text-white">Ministries</h3>

<ul class="list-unstyled">

<li><a href="#">Yoga for Health</a></li>

<li><a href="#">Yoga for Resilience</a></li>

<li><a href="#">Yoga Class</a></li>

<li><a href="#">Meditation</a></li>

<li><a href="#">Mind Balance</a></li>

</ul>

</div>

</div>

</div>

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

<div class="col-md-12"><h3 class="footer-heading mb-4 text-white">Social Icons</h3></div>

<div class="col-md-12">

<p>

<a href="#" class="pb-2 pr-2 pl-0"><span class="icon-facebook"></span></a>

<a href="#" class="p-2"><span class="icon-twitter"></span></a>

<a href="#" class="p-2"><span class="icon-instagram"></span></a>

77
<a href="#" class="p-2"><span class="icon-vimeo"></span></a>

</p>

</div>

</div>

</div>

<div class="row pt-5 mt-5 text-center">

<div class="col-md-12">

<p>

Copyright &copy; All Rights Reserved |

</p>

</div>

</div>

</div>

</footer>

</div>

<script src="js/jquery-3.3.1.min.js"></script>

<script src="js/jquery-migrate-3.0.1.min.js"></script>

<script src="js/jquery-ui.js"></script>

<script src="js/popper.min.js"></script>

<script src="js/bootstrap.min.js"></script>

<script src="js/owl.carousel.min.js"></script>

<script src="js/jquery.stellar.min.js"></script>

<script src="js/jquery.countdown.min.js"></script>

<script src="js/jquery.magnific-popup.min.js"></script>

<script src="js/bootstrap-datepicker.min.js"></script>

<script src="js/aos.js"></script>

<script src="js/mediaelement-and-player.min.js"></script>

78
<script src="js/main.js"></script>

<script>

$(document).ready(function(){

setTimeout(function(){

$('html, body').animate({ scrollTop: $('#scrollTo').offset().top}, 3000);

},3000);

});

document.addEventListener('DOMContentLoaded', function() {

var mediaElements = document.querySelectorAll('video, audio'), total = mediaElements.length;

for (var i = 0; i < total; i++) {

new MediaElementPlayer(mediaElements[i], {

pluginPath: 'https://cdn.jsdelivr.net/npm/[email protected]/build/',

shimScriptAccess: 'always',

success: function () {

var target = document.body.querySelectorAll('.player'), targetTotal = target.length;

for (var j = 0; j < targetTotal; j++) {

target[j].style.visibility = 'visible';

});

});

</script>

79
</body>

</html>

[7]

/*********************Database Connectivity************************/

<?php

if(isset($_GET['id'])){

$id = $_GET['id'];

require_once 'config.php';

$sql = 'DELETE from exercise where id = '.$id;

if(mysqli_query($db,$sql)){

echo "<script>alert('done')</script>";

?>

[8]

/*********************Admin Panel************************/
<?php

session_start();

if(isset($_SESSION['uname'])){

if($_SESSION['uname'] == 'admin'){

?>

<!DOCTYPE html>

<html lang="en">

80
<head>

<title>PureFitnesse &mdash;Fitness Website </title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">

<link rel="stylesheet" href="fonts/icomoon/style.css">

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

<link rel="stylesheet" href="css/magnific-popup.css">

<link rel="stylesheet" href="css/jquery-ui.css">

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

<link rel="stylesheet" href="css/owl.theme.default.min.css">

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

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

<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">

<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">

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

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

</head>

<body>

<div class="site-wrap">

<div class="site-mobile-menu">

<div class="site-mobile-menu-header">

<div class="site-mobile-menu-close mt-3">

<span class="icon-close2 js-menu-toggle"></span>

81
</div>

</div>

<div class="site-mobile-menu-body"></div>

</div> <!-- .site-mobile-menu -->

<div class="site-navbar-wrap js-site-navbar bg-white" style="background: #1f2730!important;">

<div class="container">

<div class="site-navbar bg-light">

<div class="py-1">

<div class="row align-items-center">

<div class="col-2">

<h2 class="mb-0 site-logo"><a href="index.html">Admin Panel</a></h2>

</div>

<div class="col-10">

<nav class="site-navigation text-right" role="navigation">

<div class="container">

<div class="d-inline-block d-lg-none ml-md-0 mr-auto py-3"><a href="#" class="site-menu-toggle js-


menu-toggle"><span class="icon-menu h3"></span></a></div>

<ul class="site-menu js-clone-nav d-none d-lg-block">

<li class="active">

<a href="admin_panel.php">Home</a>

</li>

<li><a href="addex.php">Add Exercise</a></li>

<li><a href="delex.php">View/Delete Exercise</a></li>

<li >

<li><a href="diet.php">Add Diet Chart</a></li>

<li><a href="view_users.php">View Users</a>

</li>

<li><a href="feed.php">Feedbacks</a></li>

<li><a href="logout.php">Logout</a></li>

82
</ul>

</div>

</nav>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

</body>

</html>

<?php

else{

header('location:login.php');

else{

header('location:login.php');

?>

/********************* Add Exercise************************/

<?php

83
include_once 'config.php';

// Initialize message variable

$msg = "";

// If upload button is clicked ...

if (isset($_POST['submit'])) {

$name = $_POST['name'];

$desc = $_POST['desc'];

// Get image name

$image = $_FILES['image']['name'];

$minage = $_POST['minage'];

$maxage = $_POST['maxage'];

// image file directory

$target = "images/".basename($image);

$sql = "INSERT INTO exercise VALUES ('','$name', '$desc','$image','$minage','$maxage')";

// execute query

mysqli_query($db, $sql);

move_uploaded_file($_FILES['image']['tmp_name'], $target);

?>

<!DOCTYPE html>

<html lang="en">

<head>

<title>PureFitnesse &mdash;Fitness Website </title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">

84
<link rel="stylesheet" href="fonts/icomoon/style.css">

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

<link rel="stylesheet" href="css/magnific-popup.css">

<link rel="stylesheet" href="css/jquery-ui.css">

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

<link rel="stylesheet" href="css/owl.theme.default.min.css">

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

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

<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">

<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">

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

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

</head>

<style type="text/css">

.main{

margin: 5% 10%;

</style>

<body>

<nav class="navbar navbar-expand-lg navbar-dark bg-dark">

<a class="navbar-brand" href="#">Admin</a>

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-


controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">

<span class="navbar-toggler-icon"></span>

</button>

<div class="collapse navbar-collapse" id="navbarNav">

85
<ul class="navbar-nav">

<li class="nav-item ">

<a class="nav-link" href="admin_panel.php">Home </a>

</li>

<li class="nav-item active">

<a class="nav-link" href="addex.php">Add Exercise</a>

</li>

<li class="nav-item">

<a class="nav-link" href="delex.php">View/Delete Exercise</a>

</li>

<li class="nav-item">

<a class="nav-link" href="diet.php">Add Diet Chart</a>

</li>

<li class="nav-item">

<a class="nav-link" href="view_users.php">View Users</a>

</li>

<li class="nav-item">

<a class="nav-link " href="feed.php">Feedback</a>

</li>

<li class="nav-item">

<a class="nav-link" href="logout.php">Logout</a>

</li>

</ul>

</div>

</nav>

<section class="main">

<form action="" method="POST" enctype="multipart/form-data">

<div class="form-group">

<label for="exampleFormControlInput1">Exercise Name</label>

<input type="text" class="form-control" id="exampleFormControlInput1" name="name" placeholder="Exercise


Name">

86
</div>

<div class="form-group">

<label for="exampleFormControlInput2">Exercise Description</label>

<input type="text" class="form-control" id="exampleFormControlInput2" name="desc" placeholder="Exercise


Description">

</div>

<div class="form-group">

<label for="exampleFormControlInput3">Minimum age Limit</label>

<input type="number" class="form-control" id="exampleFormControlInput3" name="minage"


placeholder="Minimum Age limit">

</div>

<div class="form-group">

<label for="exampleFormControlInput4">Maximum age Limit</label>

<input type="number" class="form-control" id="exampleFormControlInput4" name="maxage"


placeholder="Maximum Age limit">

</div>

<div class="form-group">

<label for="exampleFormControlFile1">Example file input</label>

<input type="file" class="form-control-file" name="image" id="exampleFormControlFile1">

</div>

<div class="form-group">

<input type="submit" value="Submit" name="submit" class="btn btn-dark">

</div>

</form>

</section>

</body>

</html>

/********************* Delete Exercise************************/

<?php

87
if(isset($_GET['id'])){

$id = $_GET['id'];

require_once 'config.php';

$sql = 'DELETE from exercise where id = '.$id;

if(mysqli_query($db,$sql)){

echo "<script>alert('done')</script>";

?>

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>View Exercise</title>

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

</head>

<style type="text/css">

</style>

<body>

<nav class="navbar navbar-expand-lg navbar-dark bg-dark">

<a class="navbar-brand" href="#">Admin</a>

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-


controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">

<span class="navbar-toggler-icon"></span>

</button>

<div class="collapse navbar-collapse" id="navbarNav">

<ul class="navbar-nav">

<li class="nav-item ">

<a class="nav-link" href="admin_panel.php">Home </a>

88
</li>

<li class="nav-item">

<a class="nav-link" href="addex.php">Add Exercise</a>

</li>

<li class="nav-item active">

<a class="nav-link" href="delex.php">View/Delete Exercise</a>

</li>

<li class="nav-item">

<a class="nav-link" href="diet.php">Add Diet Chart</a>

</li>

<li class="nav-item">

<a class="nav-link" href="view_users.php">View Users</a>

</li>

<li class="nav-item">

<a class="nav-link " href="feed.php">Feedback</a>

</li>

<li class="nav-item">

<a class="nav-link" href="logout.php">Logout</a>

</li>

</ul>

</div>

</nav>

<div class="container">

<?php

include("config.php");

session_start();

89
if(isset($_SESSION['uname'])){

if($_SESSION['uname'] != 'admin'){

echo "<script>alert('You are not authorized to access this page')</script>";

header('location:login.php');

}else{

?>

<table class="table table-bordered">

<thead>

<tr>

<th>ID</th>

<th>Exercise Name</th>

<th>Exercise Description</th>

<th>Exercise Image</th>

<th>Minimum Age</th>

<th>Maximum Age</th>

</tr>

</thead>

<tbody>

<tr>

<?php

$result = mysqli_query($db,"SELECT * FROM exercise");

while($test = mysqli_fetch_array($result))

$id = $test['id'];

echo"<td>".$test['id']."</td>";

echo"<td>".$test['name']."</td>";

echo"<td>".$test['desc']."</td>";

echo"<td>".$test['image']."</td>";

90
if(isset($_SESSION['uname'])){

if($_SESSION['uname'] == 'admin'){

echo"<td>".$test['minage']."</td>";

echo"<td>".$test['maxage']."</td>";

echo "<td><a href='delex.php?id=".$test['id']."'><button type='button'


name='delete' class='btn btn-dark'>Delete</button></a></td>";

echo "</tr>";

echo "</table>";

mysqli_close($db);

?>

</div>

</body>

</html>

/********************* Add Diet Chart************************/


<?php

include_once 'config.php';

// Initialize message variable

$msg = "";

// If upload button is clicked ...

if (isset($_POST['submit'])) {

$name = $_POST['name'];

91
// Get image name

$image = $_FILES['image']['name'];

$minage = $_POST['minage'];

$maxage = $_POST['maxage'];

// image file directory

$target = "images/".basename($image);

$sql = "INSERT INTO diet VALUES ('$image','$minage','$maxage','','$name')";

// execute query

if(mysqli_query($db, $sql)){

echo "string";

else

echo $sql;

move_uploaded_file($_FILES['image']['tmp_name'], $target);

?>

<!DOCTYPE html>

<html lang="en">

<head>

<title>PureFitnesse &mdash;Fitness Website </title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">

<link rel="stylesheet" href="fonts/icomoon/style.css">

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

<link rel="stylesheet" href="css/magnific-popup.css">

<link rel="stylesheet" href="css/jquery-ui.css">

92
<link rel="stylesheet" href="css/owl.carousel.min.css">

<link rel="stylesheet" href="css/owl.theme.default.min.css">

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

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

<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">

<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">

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

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

</head>

<style type="text/css">

.main{

margin: 5% 10%;

</style>

<body>

<nav class="navbar navbar-expand-lg navbar-dark bg-dark">

<a class="navbar-brand" href="#">Admin</a>

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-


controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">

<span class="navbar-toggler-icon"></span>

</button>

<div class="collapse navbar-collapse" id="navbarNav">

<ul class="navbar-nav">

<li class="nav-item ">

<a class="nav-link" href="admin_panel.php">Home </a>

</li>

93
<li class="nav-item active">

<a class="nav-link" href="addex.php">Add Exercise</a>

</li>

<li class="nav-item">

<a class="nav-link" href="delex.php">View/Delete Exercise</a>

</li>

<li class="nav-item active">

<a class="nav-link" href="diet.php">Add Diet Chart</a>

</li>

<li class="nav-item">

<a class="nav-link" href="view_users.php">View Users</a>

</li>

<li class="nav-item">

<a class="nav-link " href="feed.php">Feedback</a>

</li>

<li class="nav-item">

<a class="nav-link" href="logout.php">Logout</a>

</li>

</ul>

</div>

</nav>

<section class="main">

<form action="" method="POST" enctype="multipart/form-data">

<div class="form-group">

<label for="exampleFormControlInput1">Diet Name</label>

<input type="text" class="form-control" id="exampleFormControlInput1" name="name" placeholder="Exercise


Name">

</div>

<div class="form-group">

<label for="exampleFormControlInput3">Minimum age Limit</label>

94
<input type="number" class="form-control" id="exampleFormControlInput3" name="minage"
placeholder="Minimum Age limit">

</div>

<div class="form-group">

<label for="exampleFormControlInput4">Maximum age Limit</label>

<input type="number" class="form-control" id="exampleFormControlInput4" name="maxage"


placeholder="Maximum Age limit">

</div>

<div class="form-group">

<label for="exampleFormControlFile1">Example file input</label>

<input type="file" class="form-control-file" name="image" id="exampleFormControlFile1">

</div>

<div class="form-group">

<input type="submit" value="Submit" name="submit" class="btn btn-dark">

</div>

</form>

</section>

</body>

</html>

/*********************Contact Us************************/

<?php

if(isset($_POST['submit'])){

$fname = $_POST['fname'];

$email = $_POST['email'];

$phone = $_POST['phone'];

$message = $_POST['message'];

$sql = 'INSERT into feed values("","'.$fname.'","'.$email.'","'.$phone.'","'.$message.'")';

include_once 'config.php';

if(mysqli_query($db,$sql)){

echo "<script>alert('done')</script>";

95
}

?>

<!DOCTYPE html>

<html lang="en">

<head>

<title>PureFitnesse &mdash;Fitness Website </title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">

<link rel="stylesheet" href="fonts/icomoon/style.css">

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

<link rel="stylesheet" href="css/magnific-popup.css">

<link rel="stylesheet" href="css/jquery-ui.css">

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

<link rel="stylesheet" href="css/owl.theme.default.min.css">

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

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

<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">

<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">

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

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

</head>

<body>

96
<div class="site-wrap">

<div class="site-mobile-menu">

<div class="site-mobile-menu-header">

<div class="site-mobile-menu-close mt-3">

<span class="icon-close2 js-menu-toggle"></span>

</div>

</div>

<div class="site-mobile-menu-body"></div>

</div> <!-- .site-mobile-menu -->

<div class="site-navbar-wrap js-site-navbar bg-white">

<div class="container">

<div class="site-navbar bg-light">

<div class="py-1">

<div class="row align-items-center">

<div class="col-2">

<h2 class="mb-0 site-logo"><a href="index.html">PureFitnesse</a></h2>

</div>

<div class="col-10">

<nav class="site-navigation text-right" role="navigation">

<div class="container">

<div class="d-inline-block d-lg-none ml-md-0 mr-auto py-3"><a href="#" class="site-menu-toggle js-


menu-toggle"><span class="icon-menu h3"></span></a></div>

<ul class="site-menu js-clone-nav d-none d-lg-block">

<li class="">

<a href="index.html">Home</a>

</li>

<li class="has-children">

97
<a href="#">Programs</a>

<ul class="dropdown arrow-top">

<li><a href="classes.html">Yoga Classes</a></li>

<li><a href="classes.html">Bare Workout</a></li>

<li><a href="classes.html">Peace of Mind</a></li>

<li class="has-children">

<a href="classes.html">More</a>

<ul class="dropdown">

<li><a href="classes.html">Yoga Dance</a></li>

<li><a href="classes.html">Bare Workout</a></li>

<li><a href="classes.html">Peace of Mind</a></li>

</ul>

</li>

</ul>

</li>

<li><a href="login.php">Login</a></li>

<li><a href="signup.php">Signup</a></li>

<li ><a href="about.html">About Us</a></li>

<li class="active"><a href="contact.html">Contact</a></li>

</ul>

</div>

</nav>

</div>

</div>

</div>

</div>

</div>

</div>

98
<div class="site-blocks-cover overlay" style="background-image: url(images/2.jpg);" data-aos="fade" data-
stellar-background-ratio="0.5">

<div class="container">

<div class="row align-items-center justify-content-center">

<div class="col-md-7 text-center" data-aos="fade">

<h2 class="caption mb-2">Get In Touch</h2>

<h1 class="">Contact Us</h1>

</div>

</div>

</div>

</div>

<div class="site-section site-section-sm">

<div class="container">

<div class="row">

<div class="col-md-12 col-lg-8 mb-5">

<form action="" class="p-5 bg-white" method="POST">

<div class="row form-group">

<div class="col-md-12 mb-3 mb-md-0">

<label class="font-weight-bold" for="fullname">Full Name</label>

<input type="text" id="fullname" class="form-control" name="fname" placeholder="Full Name"


required>

</div>

</div>

<div class="row form-group">

<div class="col-md-12">

<label class="font-weight-bold" for="email">Email</label>

<input type="email" id="email" class="form-control" name="email" placeholder="Email Address"


required>

99
</div>

</div>

<div class="row form-group">

<div class="col-md-12 mb-3 mb-md-0">

<label class="font-weight-bold" for="phone">Mobile Number</label>

<input type="text" id="phone" class="form-control" name="phone" placeholder="Mobile Number #"


required>

</div>

</div>

<div class="row form-group mb-4">

<div class="col-md-12">

<label class="font-weight-bold" for="message">Message</label>

<textarea name="message" id="message" cols="30" rows="5" class="form-control" placeholder="Say


hello to us" required></textarea>

</div>

</div>

<div class="row form-group">

<div class="col-md-12">

<input type="submit" name="submit" value="Send Message" class="btn btn-primary pill text-white px-5
py-2">

</div>

</div>

</form>

</div>

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

<div class="p-4 mb-3 bg-white">

<h3 class="h5 text-black mb-3">Contact Info</h3>

<p class="mb-0 font-weight-bold">Address</p>

100
<p class="mb-4">Wing No-7, Near Power House Premnagar, Dehradun</p>

<p class="mb-0 font-weight-bold">Mobile Number</p>

<p class="mb-4"><a href="#">+91 8979241557</a></p>

<p class="mb-0 font-weight-bold">Email Address</p>

<p class="mb-0"><a href="#">[email protected]</a></p>

</div>

</div>

</div>

</div>

</ <div class="site-section bg-light">

<div class="container">

<div class="row">

<div class="col-md-6 mx-auto text-center mb-5 section-heading">

<h2 class="mb-5">Yoga Features</h2>

</div>

</div>

<div class="row">

<div class="col-sm-6 col-md-4 col-lg-3">

<div class="text-center item">

<span class="flaticon-001-stone display-3 mb-3 d-block text-primary"></span>

<h2 class="h5">Peace of Mind</h2>

<p>Life is under no obligation to give you exactly what you expect</p>

</div>

</div>

<div class="col-sm-6 col-md-4 col-lg-3">

<div class="text-center item">

<span class="flaticon-002-lotus display-3 mb-3 d-block text-primary"></span>

<h2 class="h5">Mindfullness</h2>

101
<p>Mindfulness is the basic human ability to be fully present</p>

</div>

</div>

<div class="col-sm-6 col-md-4 col-lg-3">

<div class="text-center item">

<span class="flaticon-003-meditation display-3 mb-3 d-block text-primary"></span>

<h2 class="h5">Meditation</h2>

<p>Yogis have been practicing dhyana (meditation) for millennia</p>

</div>

</div>

<div class="col-sm-6 col-md-4 col-lg-3">

<div class="text-center item">

<span class="flaticon-004-carpet display-3 mb-3 d-block text-primary"></span>

<h2 class="h5">Yoga Carpet</h2>

<p>The yoga mat is more than a tool employed by the yogi</p>

</div>

</div>

</div>

</div>

</div>

<footer class="site-footer">

<div class="container">

<div class="row">

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

<h3 class="footer-heading mb-4 text-white">About</h3>

<p>We mainly focuse on yoga benefits but it also contains the different program such as Meditation,
Calisthenics, HIIT, Flexibility and Stability and Body Weight Training.</p>

<p><a href="#" class="btn btn-primary pill text-white px-4">Read More</a></p>

</div>

102
<div class="col-md-6">

<div class="row">

<div class="col-md-6">

<h3 class="footer-heading mb-4 text-white">Quick Menu</h3>

<ul class="list-unstyled">

<li><a href="#">About</a></li>

<li><a href="#">Features</a></li>

<li><a href="#">Approach</a></li>

<li><a href="#">Events</a></li>

<li><a href="#">Classes</a></li>

<li><a href="#">Careers</a></li>

</ul>

</div>

<div class="col-md-6">

<h3 class="footer-heading mb-4 text-white">Ministries</h3>

<ul class="list-unstyled">

<li><a href="#">Yoga for Health</a></li>

<li><a href="#">Yoga for Resilience</a></li>

<li><a href="#">Yoga Class</a></li>

<li><a href="#">Meditation</a></li>

<li><a href="#">Mind Balance</a></li>

</ul>

</div>

</div>

</div>

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

<div class="col-md-12"><h3 class="footer-heading mb-4 text-white">Social Icons</h3></div>

<div class="col-md-12">

<p>

<a href="#" class="pb-2 pr-2 pl-0"><span class="icon-facebook"></span></a>

103
<a href="#" class="p-2"><span class="icon-twitter"></span></a>

<a href="#" class="p-2"><span class="icon-instagram"></span></a>

<a href="#" class="p-2"><span class="icon-vimeo"></span></a>

</p>

</div>

</div>

</div>

<div class="row pt-5 mt-5 text-center">

<div class="col-md-12">

<p>

Copyright &copy; All Rights Reserved |

</p>

</div>

</div>

</div>

</footer>

</div>

<script src="js/jquery-3.3.1.min.js"></script>

<script src="js/jquery-migrate-3.0.1.min.js"></script>

<script src="js/jquery-ui.js"></script>

<script src="js/popper.min.js"></script>

<script src="js/bootstrap.min.js"></script>

<script src="js/owl.carousel.min.js"></script>

<script src="js/jquery.stellar.min.js"></script>

<script src="js/jquery.countdown.min.js"></script>

<script src="js/jquery.magnific-popup.min.js"></script>

<script src="js/bootstrap-datepicker.min.js"></script>

104
<script src="js/aos.js"></script>

<script src="js/mediaelement-and-player.min.js"></script>

<script src="js/main.js"></script>

<script>

document.addEventListener('DOMContentLoaded', function() {

var mediaElements = document.querySelectorAll('video, audio'), total = mediaElements.length;

for (var i = 0; i < total; i++) {

new MediaElementPlayer(mediaElements[i], {

pluginPath: 'https://cdn.jsdelivr.net/npm/[email protected]/build/',

shimScriptAccess: 'always',

success: function () {

var target = document.body.querySelectorAll('.player'), targetTotal = target.length;

for (var j = 0; j < targetTotal; j++) {

target[j].style.visibility = 'visible';

});

});

</script>

</body>

</html>

105
/*********************User Panel************************/
<?php

session_start();

if(isset($_POST['submit'])){

$uname = $_POST['uname'];

$email = $_POST['email'];

$password = $_POST['password'];

$age = $_POST['age'];

$address = $_POST['address'];

$mobile = $_POST['mobile'];

include_once 'config.php';

$sql = "UPDATE users SET uname = '".$uname."',email = '".$email."', pwd = '".$password."', age = '".$age."',
address ='".$address."', mob = ".$mobile." WHERE uname = '".$_SESSION['uname']."'";

if (mysqli_query($db,$sql)) {

$_SESSION['uname'] = $uname;

echo "<script>alert('updated');window.location = 'user_panel.php';</script>";

}else

echo $sql;

?>

<!DOCTYPE html>

<html lang="en">

<head>

<title>PureFitnesse &mdash;Fitness Website </title>

<meta charset="utf-8">

<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">

<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">

<link rel="stylesheet" href="fonts/icomoon/style.css">

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

106
<link rel="stylesheet" href="css/magnific-popup.css">

<link rel="stylesheet" href="css/jquery-ui.css">

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

<link rel="stylesheet" href="css/owl.theme.default.min.css">

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

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

<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">

<link rel="stylesheet" href="fonts/flaticon/font/flaticon.css">

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

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

</head>

<body>

<div class="site-wrap">

<div class="site-mobile-menu">

<div class="site-mobile-menu-header">

<div class="site-mobile-menu-close mt-3">

<span class="icon-close2 js-menu-toggle"></span>

</div>

</div>

<div class="site-mobile-menu-body"></div>

</div> <!-- .site-mobile-menu -->

<div class="site-navbar-wrap js-site-navbar bg-white" style="background: #1f2730!important;">

<div class="container">

<div class="site-navbar bg-light">

107
<div class="py-1">

<div class="row align-items-center">

<div class="col-2">

<h2 class="mb-0 site-logo"><a href="index.html">User Panel</a></h2>

</div>

<div class="col-10">

<nav class="site-navigation text-right" role="navigation">

<div class="container">

<div class="d-inline-block d-lg-none ml-md-0 mr-auto py-3"><a href="#" class="site-menu-toggle js-


menu-toggle"><span class="icon-menu h3"></span></a></div>

<ul class="site-menu js-clone-nav d-none d-lg-block">

<li class="active">

<a href="user_panel.php">User</a>

</li>

<li><a href="user_exercise.php">View Exercise</a></li>

<li><a href="user_diet.php">View Diet</a></li>

<li><a href="logout.php">Logout</a></li>

</ul>

</div>

</nav>

</div>

</div>

</div>

</div>

</div>

</div>

</div>

<div class="container" style="top:150px; position: relative;">

<div class="row">

<div class="col-12">

<?php

108
include_once 'config.php';

$sql = 'SELECT * from users where uname = "'.$_SESSION['uname'].'"';

$result = mysqli_query($db,$sql);

if(!$result)

echo $sql;

$row = mysqli_fetch_array($result);

if(!isset($row)){

echo "<script>alert('".$sql."')</script>";

?>

<h1>Edit Details</h1>

<form action="" method="POST" enctype="multipart/form-data">

<div class="form-group">

<label for="exampleFormControlInput1">Username</label>

<input type="text" class="form-control" id="exampleFormControlInput1" name="uname" value="<?php


echo $row['uname'];?>">

</div>

<div class="form-group">

<label for="exampleFormControlInput2">Email</label>

<input type="email" class="form-control" id="exampleFormControlInput2" name="email" value="<?php


echo $row['email'];?>">

</div>

<div class="form-group">

<label for="exampleFormControlInput3">Password</label>

<input type="text" class="form-control" id="exampleFormControlInput3" name="password" value="<?php


echo $row['pwd'];?>">

</div>

<div class="form-group">

<label for="exampleFormControlFile4">Age</label>

<input type="number" class="form-control-file" name="age" id="exampleFormControlFile4"


value="<?php echo $row['age'];?>">

</div>

109
<div class="form-group">

<label for="exampleFormControlInput5">Address</label>

<input type="text" class="form-control" id="exampleFormControlInput5" name="address" value="<?php


echo $row['address'];?>">

</div>

<div class="form-group">

<label for="exampleFormControlFile6">Mobile No</label>

<input type="number" class="form-control-file" name="mobile" id="exampleFormControlFile6"


value="<?php echo $row['mob'];?>">

</div>

<div class="form-group">

<input type="submit" value="Submit" name="submit" class="btn btn-dark">

</div>

</form>

</div>

</div>

</div>

</body>

</html>

/*********************User Exercise************************/

<?php

if(isset($_GET['id'])){

$id = $_GET['id'];

require_once 'config.php';

$sql = 'DELETE from exercise where id = '.$id;

if(mysqli_query($db,$sql)){

echo "<script>alert('done')</script>";

?>

110
<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>View Exercise</title>

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

</head>

<style type="text/css">

</style>

<body>

<nav class="navbar navbar-expand-lg navbar-dark bg-dark">

<a class="navbar-brand" href="#">User</a>

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-


controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">

<span class="navbar-toggler-icon"></span>

</button>

<div class="collapse navbar-collapse" id="navbarNav">

<ul class="navbar-nav">

<li class="nav-item ">

<a class="nav-link" href="user_panel.php">User Panel</a>

</li>

<li class="nav-item active">

<a class="nav-link" href="">View Exercise</a>

</li>

<li class="nav-item">

<a class="nav-link" href="logout.php">Logout</a>

</li>

</ul>

111
</div>

</nav>

<div class="container">

<div class="row">

<?php

include("config.php");

session_start();

if(isset($_SESSION['uname'])){

if($_SESSION['uname'] != 'admin'){

?>

<?php

$result1 = mysqli_query($db,"SELECT age FROM users where uname =


'".$_SESSION['uname']."'");

$row1 = mysqli_fetch_array($result1);

$result2 = mysqli_query($db,"SELECT * FROM exercise where minage <= ".$row1['age']." and


maxage >= ".$row1['age']);

while($test = mysqli_fetch_array($result2))

echo"<div class='col-md-12'>";

echo"<div><h3>".$test['name']."</h3></div>";

echo"<div><p><img src='images/".$test['image']."' style='float:left;margin-


right:15px;'>";

echo $test['desc']."</p></div></div>";

}else{

header('location:login.php');

112
}

mysqli_close($db);

?>

</div>

</div>

</body>

</html>

/*********************User Diet Chart************************/

<?php

if(isset($_GET['id'])){

$id = $_GET['id'];

require_once 'config.php';

$sql = 'DELETE from exercise where id = '.$id;

if(mysqli_query($db,$sql)){

echo "<script>alert('done')</script>";

?>

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>View Diet</title>

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

</head>

113
<style type="text/css">

</style>

<body>

<nav class="navbar navbar-expand-lg navbar-dark bg-dark">

<a class="navbar-brand" href="#">User</a>

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-


controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">

<span class="navbar-toggler-icon"></span>

</button>

<div class="collapse navbar-collapse" id="navbarNav">

<ul class="navbar-nav">

<li class="nav-item ">

<a class="nav-link" href="user_panel.php">User Panel</a>

</li>

<li class="nav-item">

<a class="nav-link" href="user_exercise.php">View Exercise</a>

</li>

<li class="nav-item active">

<a class="nav-link" href="">View Diet</a>

</li>

<li class="nav-item">

<a class="nav-link" href="logout.php">Logout</a>

</li>

</ul>

</div>

</nav>

<div class="container">

<div class="row">

114
<?php

include("config.php");

session_start();

if(isset($_SESSION['uname'])){

if($_SESSION['uname'] != 'admin'){

?>

<?php

$result1 = mysqli_query($db,"SELECT age FROM users where uname =


'".$_SESSION['uname']."'");

$row1 = mysqli_fetch_array($result1);

$result2 = mysqli_query($db,"SELECT * FROM diet where minage <= ".$row1['age']." and


maxage >= ".$row1['age']);

while($test = mysqli_fetch_array($result2))

echo"<div class='col-md-12'>";

echo"<div><h3>".$test['name']."</h3></div>";

echo"<div><p><img src='images/".$test['image']."' style='float:left;margin-


right:15px;'>";

echo "</p></div></div>";

}else{

header('location:login.php');

mysqli_close($db);

?>

</div>

</div>

</body>

115
</html>

/*********************User Details************************/
<?php

if(isset($_GET['id'])){

$id = $_GET['id'];

include_once 'config.php';

$sql = 'DELETE from users where id = '.$id;

if(mysqli_query($db,$sql)){

echo "<script>alert('".$sql."')</script>";

header('location:view_users.php');

?>

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Users</title>

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

</head>

<style type="text/css">

</style>

<body>

<nav class="navbar navbar-expand-lg navbar-dark bg-dark">

<a class="navbar-brand" href="#">Admin</a>

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-


controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">

116
<span class="navbar-toggler-icon"></span>

</button>

<div class="collapse navbar-collapse" id="navbarNav">

<ul class="navbar-nav">

<li class="nav-item ">

<a class="nav-link" href="admin_panel.php">Home </a>

</li>

<li class="nav-item ">

<a class="nav-link" href="addex.php">Add Exercise</a>

</li>

<li class="nav-item">

<a class="nav-link" href="delex.php">View/Delete Exercise</a>

</li>

<li class="nav-item ">

<a class="nav-link" href="diet.php">Add Diet Chart</a>

</li>

<li class="nav-item active">

<a class="nav-link" href="view_users.php">View Users</a>

</li>

<li class="nav-item ">

<a class="nav-link " href="feed.php">Feedback</a>

</li>

<li class="nav-item">

<a class="nav-link" href="logout.php">Logout</a>

</li>

</ul>

</div>

</nav>

<div class="container">

117
<table class="table table-bordered">

<thead>

<tr>

<th>ID</th>

<th>Name</th>

<th>Email</th>

<th>Age</th>

</tr>

</thead>

<tbody>

<tr>

<?php

include("config.php");

$result = mysqli_query($db,"SELECT * FROM users");

while($test = mysqli_fetch_array($result))

$id = $test['id'];

if($id!=4){

echo"<td>".$test['id']."</td>";

echo"<td>".$test['uname']."</td>";

echo"<td>".$test['email']."</td>";

echo"<td>".$test['age']."</td>";

echo "<td><a href='view_users.php?id=".$test['id']."'><button type='button' name='delete' class='btn btn-


dark'>Delete</button></a></td>";

echo "</tr>";

mysqli_close($db);

?>

118
</table>

</div>

</body>

</html>

/*********************Feedback************************/
<?php

if(isset($_GET['id'])){

$id = $_GET['id'];

include_once 'config.php';

$sql = 'DELETE from exercise where id = '.$id;

if(mysqli_query($db,$sql)){

echo "<script>alert('done')</script>";

?>

<!doctype html>

<html>

<head>

<meta charset="utf-8">

<title>Feedback</title>

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

</head>

<style type="text/css">

</style>

<body>

<nav class="navbar navbar-expand-lg navbar-dark bg-dark">

119
<a class="navbar-brand" href="#">Admin</a>

<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-


controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">

<span class="navbar-toggler-icon"></span>

</button>

<div class="collapse navbar-collapse" id="navbarNav">

<ul class="navbar-nav">

<li class="nav-item ">

<a class="nav-link" href="admin_panel.php">Home </a>

</li>

<li class="nav-item ">

<a class="nav-link" href="addex.php">Add Exercise</a>

</li>

<li class="nav-item">

<a class="nav-link" href="delex.php">View/Delete Exercise</a>

</li>

<li class="nav-item">

<a class="nav-link" href="diet.php">Add Diet Chart</a>

</li>

<li class="nav-item">

<a class="nav-link" href="view_users.php">View Users</a>

</li>

<li class="nav-item active">

<a class="nav-link " href="feed.php">Feedback</a>

</li>

<li class="nav-item">

<a class="nav-link" href="logout.php">Logout</a>

</li>

</ul>

</div>

</nav>

120
<div class="container">

<table class="table table-bordered">

<thead>

<tr>

<th>ID</th>

<th>Full Name</th>

<th>Email</th>

<th>Phone</th>

<th>Message</th>

</tr>

</thead>

<tbody>

<tr>

<?php

include("config.php");

$result = mysqli_query($db,"SELECT * FROM feed");

while($test = mysqli_fetch_array($result))

$id = $test['id'];

echo"<td>".$test['id']."</td>";

echo"<td>".$test['fname']."</td>";

echo"<td>".$test['email']."</td>";

echo"<td>".$test['phone']."</td>";

echo"<td>".$test['message']."</td>";

//echo "<td><a href='delex.php?id=".$test['id']."'><button type='button' name='delete' class='btn btn-


dark'>Delete</button></a></td>";

echo "</tr>";

121
mysqli_close($db);

?>

</table>

</div>

</body>

</html>

/*********************Logout************************/

<?php

session_start();

unset($_SESSION["uname"]);

header("Location:login.php");

122
10.2 Bibliography

Books Referred:

[1] Pankaj Jalote, Integrated Approach to Software Engineering, Preface to the Third Edition,
Page no.:- 123-135.

[2] Wiley, Software Engineering Principles and Practice, Third Edition, Page no.:- 50-53.

[3] B.S. Ainapure, Object Oriented Modeling and Design, First Edition, Page no.:- 100-120.

[4] McGraw, Database System Concept, Six Edition, Page no.:- 70-72

Websites Referred:

[5] “Bootstrap’s JavaScript Modal Plugin”, https://getbootstrap.com/docs/4.0/component/modal/,


(Last accessed: 20/03/2019 at 08:23 pm)

[6] “Bootstrap Validation https://mdbootstrap.com/docs/jquery/forms/validation/, (Last accessed:


20/03/2019 at 10:23 pm)

[7] “Navbar”, https://getbootstrap.com/docs/4.0/components/navbar/,(Last accessed: 20/03/2019

at 11:23 pm)

[8] “Database Connectivity”, https://www.tutorialspoint.com/mysql/mysql-connection.htm/


(Last accessed: 21/04/2019 at 4:44 pm)

123

You might also like