Fitness Documentation ORIGINAL
Fitness Documentation ORIGINAL
On
“Pure Fitnesse”
To
UTTARANCHAL UNIVERSITY
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
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
I also thank my colleagues who have helped in successful completion of the project.
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.
III
PURE FITNESSE
Address: Wing No. 7, Premnagar, Near Mitthiberi Road, Dehradun
Dated:-30-03-2019
To,
Dehradun
Respected ma’am,
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 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
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
Table 2 Feedback 23
Table 3 Exercises 24
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:-
2
3. SYSTEM ANALYSIS
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:
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:-
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:
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.
Functional requirements
Non-functional requirements
Login
User Management
Contact
Fitness Program
Daily Update
User Queries
Feedback
6
Non-Functional Requirements
Portability
Reliability
Ease of Use
Security
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.
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.
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
Table:-
Pivot Chart:-
[Figure 3.5.1]
11
3.5.2 Pert Chart:-
Detail
10
Design
20
15 Testing Coding System Design Design
Implementation
4
[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
Software Configuration:
Client:-
● Form design: HTML(version 4.01)
● Look design: CSS(version 2.0), Bootstrap
● Java Script
Server:-
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
[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
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.
Fitness Program: This module will provide all fitness program information.
Delete: If there is some records which no need to store then admin can delete his data
from the database.
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
[Table 1]
2. Feedback
[Table 2]
23
3. Exercises
[Table 3]
4. Diet Chart
[Table 4]
24
4.4 USER INTERFACE DESIGN
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
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
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
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
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,
35
5.1.3 Testing Objectives:-
A good test case is one that has a high probability of finding an as yet undiscovered error.
36
5.2 Test Cases
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]
[Figure 5.2.3]
38
2. All the details should 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]
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]
[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]
[Figure 5.2.12]
44
6 SYSTEM SECURITY MEASURES
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.
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
1. Effort
2. Tdev (time development)
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
T=2.5*(12.6)*0.38
Now finally we calculated the estimated cost i.e. T * Cost of one employee.
=11.97*1000
=11,970
46
8 REPORTS
List of Users
[Figure 8.1]
List of Exercise
[Figure 8.2]
47
View 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.
Exercise chart, diet chart, and supplement information can be added in future.
49
10 APPENDIX
10.1 Coding
<!DOCTYPE html>
<html lang="en">
<head>
<title>PureFitnesse —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="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.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">
</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>
51
<h1 class="">Welcome To PureFitnesse</h1>
</div>
</div>
</div>
</div>
</div>
</div>
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 & 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>
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="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>
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>
</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>
</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;
</body>
</html>
[5
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'";
$row = mysqli_fetch_array($result);
$_SESSION['uname'] = $username;
if($username == 'admin'){
58
header('location:admin_panel.php');
}else{
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>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">
<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">
</head>
<body>
<div class="site-wrap">
<div class="site-mobile-menu">
<div class="site-mobile-menu-header">
</div>
</div>
<div class="site-mobile-menu-body"></div>
<div class="container">
<div class="py-1">
<div class="col-2">
</div>
<div class="col-10">
<div class="container">
60
<li class="">
<a href="index.html">Home</a>
</li>
<li class="has-children">
<a href="#">Programs</a>
<li class="has-children">
<a href="classes.html">More</a>
<ul class="dropdown">
</ul>
</li>
</ul>
</li>
<li><a href="signup.php">Signup</a></li>
<li><a href="#">Contact</a></li>
</ul>
</div>
</nav>
</div>
</div>
61
</div>
</div>
</div>
</div>
<div class="container">
<h1 class="">Login</h1>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
62
</div>
</div>
<div class="col-md-12">
</div>
</div>
<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">
<br>
<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="container">
<div class="row">
</div>
</div>
<div class="row">
</div>
</div>
<h2 class="h5">Mindfullness</h2>
</div>
</div>
<h2 class="h5">Meditation</h2>
64
<p>Yogis have been practicing dhyana (meditation) for millennia</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="container">
<div class="row">
<div class="col-md-4">
<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>
</div>
<div class="col-md-6">
<div class="row">
<div class="col-md-6">
<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">
<ul class="list-unstyled">
<li><a href="#">Meditation</a></li>
</ul>
</div>
</div>
</div>
<div class="col-md-2">
<div class="col-md-12">
<p>
</p>
</div>
</div>
</div>
66
<div class="row pt-5 mt-5 text-center">
<div class="col-md-12">
<p>
</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(){
},3000);
});
document.addEventListener('DOMContentLoaded', function() {
new MediaElementPlayer(mediaElements[i], {
pluginPath: 'https://cdn.jsdelivr.net/npm/[email protected]/build/',
shimScriptAccess: 'always',
success: function () {
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>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">
</head>
<body>
70
<div class="site-wrap">
<div class="site-mobile-menu">
<div class="site-mobile-menu-header">
</div>
</div>
<div class="site-mobile-menu-body"></div>
<div class="container">
<div class="py-1">
<div class="col-2">
</div>
<div class="col-10">
<div class="container">
<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="#"></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><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>
</div>
</div>
</div>
<div class="container">
<div class="row">
</div>
</div>
73
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-12">
74
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
</div>
</div>
<div class="row">
</div>
</div>
<h2 class="h5">Mindfullness</h2>
</div>
75
</div>
<h2 class="h5">Meditation</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="container">
<div class="row">
<div class="col-md-4">
<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>
</div>
<div class="col-md-6">
<div class="row">
76
<div class="col-md-6">
<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">
<ul class="list-unstyled">
<li><a href="#">Meditation</a></li>
</ul>
</div>
</div>
</div>
<div class="col-md-2">
<div class="col-md-12">
<p>
77
<a href="#" class="p-2"><span class="icon-vimeo"></span></a>
</p>
</div>
</div>
</div>
<div class="col-md-12">
<p>
</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(){
},3000);
});
document.addEventListener('DOMContentLoaded', function() {
new MediaElementPlayer(mediaElements[i], {
pluginPath: 'https://cdn.jsdelivr.net/npm/[email protected]/build/',
shimScriptAccess: 'always',
success: function () {
target[j].style.visibility = 'visible';
});
});
</script>
79
</body>
</html>
[7]
/*********************Database Connectivity************************/
<?php
if(isset($_GET['id'])){
$id = $_GET['id'];
require_once 'config.php';
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>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">
</head>
<body>
<div class="site-wrap">
<div class="site-mobile-menu">
<div class="site-mobile-menu-header">
81
</div>
</div>
<div class="site-mobile-menu-body"></div>
<div class="container">
<div class="py-1">
<div class="col-2">
</div>
<div class="col-10">
<div class="container">
<li class="active">
<a href="admin_panel.php">Home</a>
</li>
<li >
</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');
?>
<?php
83
include_once 'config.php';
$msg = "";
if (isset($_POST['submit'])) {
$name = $_POST['name'];
$desc = $_POST['desc'];
$image = $_FILES['image']['name'];
$minage = $_POST['minage'];
$maxage = $_POST['maxage'];
$target = "images/".basename($image);
// execute query
mysqli_query($db, $sql);
move_uploaded_file($_FILES['image']['tmp_name'], $target);
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<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="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">
</head>
<style type="text/css">
.main{
margin: 5% 10%;
</style>
<body>
<span class="navbar-toggler-icon"></span>
</button>
85
<ul class="navbar-nav">
</li>
</li>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
</ul>
</div>
</nav>
<section class="main">
<div class="form-group">
86
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
</form>
</section>
</body>
</html>
<?php
87
if(isset($_GET['id'])){
$id = $_GET['id'];
require_once 'config.php';
if(mysqli_query($db,$sql)){
echo "<script>alert('done')</script>";
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>View Exercise</title>
</head>
<style type="text/css">
</style>
<body>
<span class="navbar-toggler-icon"></span>
</button>
<ul class="navbar-nav">
88
</li>
<li class="nav-item">
</li>
</li>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
</ul>
</div>
</nav>
<div class="container">
<?php
include("config.php");
session_start();
89
if(isset($_SESSION['uname'])){
if($_SESSION['uname'] != 'admin'){
header('location:login.php');
}else{
?>
<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
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 "</tr>";
echo "</table>";
mysqli_close($db);
?>
</div>
</body>
</html>
include_once 'config.php';
$msg = "";
if (isset($_POST['submit'])) {
$name = $_POST['name'];
91
// Get image name
$image = $_FILES['image']['name'];
$minage = $_POST['minage'];
$maxage = $_POST['maxage'];
$target = "images/".basename($image);
// 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>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">
92
<link rel="stylesheet" href="css/owl.carousel.min.css">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">
</head>
<style type="text/css">
.main{
margin: 5% 10%;
</style>
<body>
<span class="navbar-toggler-icon"></span>
</button>
<ul class="navbar-nav">
</li>
93
<li class="nav-item active">
</li>
<li class="nav-item">
</li>
</li>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
</ul>
</div>
</nav>
<section class="main">
<div class="form-group">
</div>
<div class="form-group">
94
<input type="number" class="form-control" id="exampleFormControlInput3" name="minage"
placeholder="Minimum Age limit">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
</form>
</section>
</body>
</html>
/*********************Contact Us************************/
<?php
if(isset($_POST['submit'])){
$fname = $_POST['fname'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['message'];
include_once 'config.php';
if(mysqli_query($db,$sql)){
echo "<script>alert('done')</script>";
95
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">
</head>
<body>
96
<div class="site-wrap">
<div class="site-mobile-menu">
<div class="site-mobile-menu-header">
</div>
</div>
<div class="site-mobile-menu-body"></div>
<div class="container">
<div class="py-1">
<div class="col-2">
</div>
<div class="col-10">
<div class="container">
<li class="">
<a href="index.html">Home</a>
</li>
<li class="has-children">
97
<a href="#">Programs</a>
<li class="has-children">
<a href="classes.html">More</a>
<ul class="dropdown">
</ul>
</li>
</ul>
</li>
<li><a href="login.php">Login</a></li>
<li><a href="signup.php">Signup</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>
</div>
</div>
</div>
<div class="container">
<div class="row">
</div>
</div>
<div class="col-md-12">
99
</div>
</div>
</div>
</div>
<div class="col-md-12">
</div>
</div>
<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">
100
<p class="mb-4">Wing No-7, Near Power House Premnagar, Dehradun</p>
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
</div>
</div>
<div class="row">
</div>
</div>
<h2 class="h5">Mindfullness</h2>
101
<p>Mindfulness is the basic human ability to be fully present</p>
</div>
</div>
<h2 class="h5">Meditation</h2>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer class="site-footer">
<div class="container">
<div class="row">
<div class="col-md-4">
<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>
</div>
102
<div class="col-md-6">
<div class="row">
<div class="col-md-6">
<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">
<ul class="list-unstyled">
<li><a href="#">Meditation</a></li>
</ul>
</div>
</div>
</div>
<div class="col-md-2">
<div class="col-md-12">
<p>
103
<a href="#" class="p-2"><span class="icon-twitter"></span></a>
</p>
</div>
</div>
</div>
<div class="col-md-12">
<p>
</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() {
new MediaElementPlayer(mediaElements[i], {
pluginPath: 'https://cdn.jsdelivr.net/npm/[email protected]/build/',
shimScriptAccess: 'always',
success: function () {
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;
}else
echo $sql;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<link href="https://fonts.googleapis.com/css?family=Playfair+Display:400,700|Work+Sans:300,400,700"
rel="stylesheet">
106
<link rel="stylesheet" href="css/magnific-popup.css">
<link rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/[email protected]/build/mediaelementplayer.min.css">
</head>
<body>
<div class="site-wrap">
<div class="site-mobile-menu">
<div class="site-mobile-menu-header">
</div>
</div>
<div class="site-mobile-menu-body"></div>
<div class="container">
107
<div class="py-1">
<div class="col-2">
</div>
<div class="col-10">
<div class="container">
<li class="active">
<a href="user_panel.php">User</a>
</li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
</nav>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<?php
108
include_once 'config.php';
$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>
<div class="form-group">
<label for="exampleFormControlInput1">Username</label>
</div>
<div class="form-group">
<label for="exampleFormControlInput2">Email</label>
</div>
<div class="form-group">
<label for="exampleFormControlInput3">Password</label>
</div>
<div class="form-group">
<label for="exampleFormControlFile4">Age</label>
</div>
109
<div class="form-group">
<label for="exampleFormControlInput5">Address</label>
</div>
<div class="form-group">
</div>
<div class="form-group">
</div>
</form>
</div>
</div>
</div>
</body>
</html>
/*********************User Exercise************************/
<?php
if(isset($_GET['id'])){
$id = $_GET['id'];
require_once 'config.php';
if(mysqli_query($db,$sql)){
echo "<script>alert('done')</script>";
?>
110
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>View Exercise</title>
</head>
<style type="text/css">
</style>
<body>
<span class="navbar-toggler-icon"></span>
</button>
<ul class="navbar-nav">
</li>
</li>
<li class="nav-item">
</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
$row1 = mysqli_fetch_array($result1);
while($test = mysqli_fetch_array($result2))
echo"<div class='col-md-12'>";
echo"<div><h3>".$test['name']."</h3></div>";
echo $test['desc']."</p></div></div>";
}else{
header('location:login.php');
112
}
mysqli_close($db);
?>
</div>
</div>
</body>
</html>
<?php
if(isset($_GET['id'])){
$id = $_GET['id'];
require_once 'config.php';
if(mysqli_query($db,$sql)){
echo "<script>alert('done')</script>";
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>View Diet</title>
</head>
113
<style type="text/css">
</style>
<body>
<span class="navbar-toggler-icon"></span>
</button>
<ul class="navbar-nav">
</li>
<li class="nav-item">
</li>
</li>
<li class="nav-item">
</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
$row1 = mysqli_fetch_array($result1);
while($test = mysqli_fetch_array($result2))
echo"<div class='col-md-12'>";
echo"<div><h3>".$test['name']."</h3></div>";
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';
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>
</head>
<style type="text/css">
</style>
<body>
116
<span class="navbar-toggler-icon"></span>
</button>
<ul class="navbar-nav">
</li>
</li>
<li class="nav-item">
</li>
</li>
</li>
</li>
<li class="nav-item">
</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");
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 "</tr>";
mysqli_close($db);
?>
118
</table>
</div>
</body>
</html>
/*********************Feedback************************/
<?php
if(isset($_GET['id'])){
$id = $_GET['id'];
include_once 'config.php';
if(mysqli_query($db,$sql)){
echo "<script>alert('done')</script>";
?>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Feedback</title>
</head>
<style type="text/css">
</style>
<body>
119
<a class="navbar-brand" href="#">Admin</a>
<span class="navbar-toggler-icon"></span>
</button>
<ul class="navbar-nav">
</li>
</li>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
<li class="nav-item">
</li>
</li>
<li class="nav-item">
</li>
</ul>
</div>
</nav>
120
<div class="container">
<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");
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 "</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:
at 11:23 pm)
123