Vaishavi
Vaishavi
php session_start();
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!-- Visit codeastro.com for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
if(isset($_POST['fullname'])){
$fullname = $_POST["fullname"];
$username = $_POST["username"];
$password = $_POST["password"];
$email = $_POST["email"];
$address = $_POST["address"];
$designation = $_POST["designation"];
$gender = $_POST["gender"];
$contact = $_POST["contact"];
$password = md5($password); include 'dbcon.php';
//code after connection is successfull
$qry = "insert into
staffs(fullname,username,password,email,address,designation,gender,contact) values
('$fullname','$username','$password','$email','$address','$designation','$gender','
$contact')";
$result = mysqli_query($conn,$qry); //query executes
if(!$result){
echo"<div class='container-fluid'>";
}
// <!-- Visit codeastro.com for more projects -->
}else{
echo"<h3>YOU ARE NOT AUTHORIZED TO REDIRECT THIS PAGE. GO BACK to <a
href='index.php'> DASHBOARD </a></h3>";
}
?>
</div></div>
</form>
</div>
</div>
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
</body>
</html>
<?php session_start();
if(!isset($_SESSION['user_id'])){ header('location:../index.php');
}
?>
<!-- Visit codeastro.com for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!-- Visit codeastro.com for more projects -->
<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<!-- <div id="search">
<input type="hidden" placeholder="Search here..."/>
<button type="submit" class="tip-bottom" title="Search"><i class="fa-search fa-
white"></i></button>
</div> -->
<!--close-top-serch-->
<!--sidebar-menu-->
<?php $page='add-equip'; include 'includes/sidebar.php'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.html" title="Go to Home" class="tip-bottom"><i
class="fa fa-home"></i> Home</a>
<a href="#" class="tip-bottom">Manamge Members</a> <a href="#" class="current">Add
Members</a> </div>
<h1>Equipment Entry Form</h1>
</div>
<form role="form" action="index.php" method="POST">
<?php
if(isset($_POST['ename'])){
$name = $_POST["ename"];
$amount = $_POST["amount"];
$vendor = $_POST["vendor"];
$description = $_POST["description"];
$date = $_POST["date"];
$quantity = $_POST["quantity"];
$address = $_POST["address"];
$contact = $_POST["contact"];
include 'dbcon.php';
//code after connection is successfull
$qry = "insert into
equipment(name,description,amount,vendor,address,contact,date,quantity) values
('$name','$description','$totalamount','$vendor','$address','$contact','$date','$qu
antity')";
$result = mysqli_query($conn,$qry); //query executes
if(!$result){
echo"<div class='container-fluid'>"; echo"<div class='row-fluid'>"; echo"<div
class='span12'>"; echo"<div class='widget-box'>";
echo"<div class='widget-title'> <span class='icon'> <i class='fas fa-info'></i>
</span>"; echo"<h5>Error Message</h5>";
echo"</div>";
echo"<div class='widget-content'>"; echo"<div class='error_ex'>";
echo"<h1 style='color:maroon;'>Error 404</h1>"; echo"<h3>Error occured while
entering your details</h3>"; echo"<p>Please Try Again</p>";
echo"<a class='btn btn-warning btn-big' href='edit-equipment.php'>Go Back</a>
</div>"; echo"</div>";
echo"</div>"; echo"</div>"; echo"</div>";
echo"</div>";
}else {
}else{
echo"<h3>YOU ARE NOT AUTHORIZED TO REDIRECT THIS PAGE. GO BACK to <a
href='index.php'> DASHBOARD </a></h3>";
}
?>
</div></div>
</div>
</form>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<!--end-Footer-part-->
<!-- Visit codeastro.com for more projects -->
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value returned is a null string: function goPage
(newURL) {
// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {
// resets the menu selection upon entry to this page: function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>
<?php session_start();
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!-- Visit codeastro.com for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!--sidebar-menu-->
<?php $page='announcement'; include 'includes/sidebar.php'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i
class="fas fa-home"></i> Home</a><a href="announcement.php"
class="current">Announcements</a> </div>
<h1>Announcement</h1>
</div>
<div class="container-fluid">
<hr>
<a href="manage-announcement.php"><button class="btn btn-danger"
type="button">Manage Your Announcements</button></a>
<div class="row-fluid">
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="fas fa-align-justify"></i>
</span>
<h5>Make Announcements</h5>
</div>
<div class="widget-content">
<div class="control-group">
<form action="post-announcement.php" method="POST">
<div class="controls">
<textarea class="span12" name="message" rows="6" placeholder="Enter text
..."></textarea>
</div>
<div class="controls">
</div></div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
<script src="../js/wysihtml5-0.3.0.js"></script>
<script src="../js/bootstrap-wysihtml5.js"></script>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value returned is a null string: function goPage
(newURL) {
// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {
<?php session_start();
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!-- Visit codeastro.com for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/uniform.css" />
<link rel="stylesheet" href="../css/select2.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<!-- Visit codeastro.com for more projects -->
<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<!-- <div id="search">
<input type="hidden" placeholder="Search here..."/>
<button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-
white"></i></button>
</div> -->
<!--close-top-serch-->
<!-- Visit codeastro.com for more projects -->
<!--sidebar-menu-->
<?php $page="attendance"; include 'includes/sidebar.php'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i
class="fas fa-home"></i> Home</a>
<a href="attendance.php" class="current">Manage Attendance</a> </div>
<h1 class="text-center">Attendance List <i class="fas fa-calendar"></i></h1>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class='widget-box'>
<div class='widget-title'> <span class='icon'> <i class='fas fa-th'></i> </span>
<h5>Attendance Table</h5>
</div>
<div class='widget-content nopadding'>
<tbody>
<?php
$qry = "SELECT * FROM attendance WHERE curr_date = '$todays_date' AND user_id = '".
$row['user_id']."'";
$res = $conn->query($qry);
$num_count = mysqli_num_rows($res);
$row_exist = mysqli_fetch_array($res);
$curr_date = $row_exist['curr_date']; if($curr_date == $todays_date){
?>
<td>
<div class='text-center'><span class="label label-inverse"><?php echo
$row_exist['curr_date'];?> <?php echo
$row_exist['curr_time'];?></span></div>
<div class='text-center'><a href='actions/delete-attendance.php?id=<?php echo
$row['user_id'];?>'><button class='btn btn-danger'>Check Out <i class='fas fa-
clock'></i></button> </a></div>
</td>
<?php } else {
?>
<?php }
?>
</tbody>
<?php $cnt++; } ?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<!--end-Footer-part-->
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
</script>
</body>
</html>
<?php session_start();
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!-- Visit codeastro.com for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<!--Header-part-->
<div id="header">
<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<!-- <div id="search">
<input type="hidden" placeholder="Search here..."/>
<button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-
white"></i></button>
</div> -->
<!--close-top-serch-->
<!-- Visit codeastro.com for more projects -->
<!--sidebar-menu-->
<?php $page='manage-customer-progress'; include 'includes/sidebar.php'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i
class="fas fa-home"></i> Home</a>
<a href="customer-progress.php" class="current">Customer Progress</a> </div>
<h1 class="text-center">Update Customer's Progress <i class="fas
fa-signal"></i></h1>
</div>
<div class="container-fluid">
<hr>
<div class="row-fluid">
<div class="span12">
<div class='widget-box'>
<div class='widget-title'> <span class='icon'> <i class='fas fa-th'></i> </span>
<h5>Member's Table</h5>
<form id="custom-search-form" role="search" method="POST" action="search-result-
progress.php" class="form-search form-horizontal pull-right">
<div class="input-append span12">
<input type="text" class="search-query" placeholder="Search" name="search"
required>
<button type="submit" class="btn"><i class="fas fa-search"></i></button>
</div>
</form>
</div>
<?php
include "dbcon.php";
$qry="select * from members";
$cnt=1;
$result=mysqli_query($conn,$qry);
<th>Plan</th>
<th>Action</th>
</tr>
</thead>"; while($row=mysqli_fetch_array($result)){ echo"<tbody>
<td><div class='text-center'>".$cnt."</div></td>
<td><div class='text-center'>".$row['funame']."</div></td>
<td><div class='text-center'>".$row['services']."</div></td>
<td><div class='text-center'>".$row['plan']." Month/s</div></td>
<td><div class='text-center'><a href='update-progress.php?id=".
$row['user_id']."'><button class='btn btn-warning btn'> Update
Progress</button></a></div></td>
</tbody>";
$cnt++; }
?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<!--end-Footer-part-->
<style>
#custom-search-form { margin:0;
margin-top: 5px; padding: 0;
}
margin-bottom: 0;
-webkit-border-radius: 3px;
-moz-border-radius: 3px; border-radius: 3px;
}
#custom-search-form button {
border: 0;
background: none;
/** belows styles are working good */ padding: 2px 5px;
margin-top: 2px; position: relative; left: -28px;
/* IE7-8 doesn't have border-radius, so don't indent the padding */ margin-bottom:
0;
-webkit-border-radius: 3px;
-moz-border-radius: 3px; border-radius: 3px;
}
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
</body>
</html>
<?php session_start();
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!-- Visit codeastro.com for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!--sidebar-menu-->
<?php $page='update-equip'; include 'includes/sidebar.php'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i
class="fas fa-home"></i> Home</a>
<a href="#" class="current">Equipment List</a> </div>
<h1 class="text-center">Perfect Gym's Equipment List <i class="fas
fa-cogs"></i></h1>
</div>
<div class="container-fluid">
<hr>
<div class="row-fluid">
<div class="span12">
<div class='widget-box'>
<div class='widget-title'> <span class='icon'> <i class='fas fa-cogs'></i> </span>
<h5>Equipment table</h5>
</div>
<div class='widget-content nopadding'>
<?php
include "dbcon.php";
$qry="select * from equipment";
$cnt = 1;
$result=mysqli_query($conn,$qry);
echo"<tbody>
<td><div class='text-center'>".$cnt."</div></td>
<td><div class='text-center'>".$row['name']."</div></td>
<td><div class='text-center'>".$row['description']."</div></td>
<td><div class='text-center'>".$row['quantity']."</div></td>
<td><div class='text-center'>$".$row['amount']."</div></td>
<td><div class='text-center'>".$row['vendor']."</div></td>
<td><div class='text-center'>".$row['address']."</div></td>
<td><div class='text-center'>".$row['contact']."</div></td>
<td><div class='text-center'>".$row['date']."</div></td>
<td><div class='text-center'><a href='edit-equipmentform.php?id=".$row['id']."'><i
class='fas fa-edit'></i> Edit</a></div></td>
</tbody>";
$cnt++; }
?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<!--end-Footer-part-->
<!-- Visit codeastro.com for more projects -->
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value returned is a null string:
// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {
// resets the menu selection upon entry to this page: function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>
<?php session_start();
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
include "dbcon.php";
$qry="SELECT services, count(*) as number FROM members GROUP BY services";
$result=mysqli_query($con,$qry);
$qry="SELECT gender, count(*) as enumber FROM members GROUP BY gender";
$result3=mysqli_query($con,$qry);
$qry="SELECT designation, count(*) as snumber FROM staffs GROUP BY designation";
$result5=mysqli_query($con,$qry);
?>
<!-- Visit codeastro.com for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
rel='stylesheet' type='text/css'>
<script type="text/javascript"
src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript"> google.charts.load('current', {'packages':
['corechart']}); google.charts.setOnLoadCallback(drawChart); function drawChart()
{
var data = google.visualization.arrayToDataTable([ ['Services', 'Number'],
<?php
while($row = mysqli_fetch_array($result))
{
]);
var options = {
//is3D:true, pieHole: 0.4 ,
};
var chart = new google.visualization.PieChart(document.getElementById('piechart'));
chart.draw(data, options);
}
</script>
<!-- Visit codeastro.com for more projects -->
<script type="text/javascript"
src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript"> google.charts.load('current', {'packages':
['bar']}); google.charts.setOnLoadCallback(drawStuff);
function drawStuff() {
var data = new google.visualization.arrayToDataTable([ ['Services', 'Total
Numbers'],
// ["King's pawn (e4)", 44],
// ["Queen's pawn (d4)", 31],
// ["Knight to King 3 (Nf3)", 12],
// ["Queen's bishop pawn (c4)", 10],
// ['Other', 3]
<?php
$query="SELECT services, count(*) as number FROM members GROUP BY services";
$res=mysqli_query($con,$query); while($data=mysqli_fetch_array($res)){
$services=$data['services'];
$number=$data['number'];
?>
['<?php echo $services;?>',<?php echo $number;?>],
<?php
}
?>
]);
var options = {
// title: 'Chess opening moves', width: 710,
legend: { position: 'none' },
// chart: { title: 'Chess opening moves',
// subtitle: 'popularity by percentage' },
bars: 'vertical', // Required for Material Bar Charts. axes: {
x: {
0: { side: 'top', label: 'Total'} // Top x-axis.
}
},
bar: { groupWidth: "100%" }
};
</script>
function drawStuff() {
var data = new google.visualization.arrayToDataTable([ ['Terms', 'Total Amount',],
<?php
$query1 = "SELECT gender, SUM(amount) as numberone FROM members; ";
$rezz=mysqli_query($con,$query1); while($data=mysqli_fetch_array($rezz)){
$services='Earnings';
$numberone=$data['numberone'];
// $numbertwo=$data['numbertwo'];
?>
['<?php echo $services;?>',<?php echo $numberone;?>,],
<?php
}
?>
<?php
$query10 = "SELECT quantity, SUM(amount) as numbert FROM equipment";
$res1000=mysqli_query($con,$query10); while($data=mysqli_fetch_array($res1000)){
$expenses='Expenses';
$numbert=$data['numbert'];
?>
['<?php echo $expenses;?>',<?php echo $numbert;?>,],
<?php
}
?>
]);
var options = { width: "1050",
legend: { position: 'none' },
</script>
]);
var options = {
pieHole: 0.4,
};
<script>
google.charts.load("current", {packages:["corechart"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([ ['Designation', 'Number'],
<?php
while($row = mysqli_fetch_array($result5))
{
]);
var options = {
pieHole: 0.4,
};
<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--close-top-Header-menu-->
<!--main-container-part-->
<div id="content">
<!--breadcrumbs-->
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="You're right here" class="tip-
bottom"><i class="fa fa-home"></i> Home</a></div>
</div>
<!--End-breadcrumbs-->
<!--Action boxes-->
<div class="container-fluid">
<div class="quick-actions_homepage">
<ul class="quick-actions">
<li class="bg_ls span"> <a href="index.php" style="font-size: 16px;"> <i class="fas
fa-user-check"></i> <span class="label label-important"><?php
include'actions/dashboard-activecount.php'?></span> Active Members </a> </li>
<li class="bg_lo span3"> <a href="members.php" style="font-size: 16px;"> <i
class="fas fa-users"></i></i><span class="label label-important"><?php
include'dashboard-usercount.php'?></span> Registered Members</a> </li>
<li class="bg_lg span3"> <a href="payment.php" style="font-size: 16px;"> <i
class="fa fa-dollar-sign"></i> Total Earnings: $<?php include'income-count.php' ?
></a> </li>
<li class="bg_lb span2"> <a href="announcement.php" style="font-size: 16px;"> <i
class="fas fa-bullhorn"></i><span class="label label-important"><?php
include'actions/count-announcements.php'?></span>Announcements </a> </li>
<!--Chart-box-->
<div class="row-fluid">
<div class="widget-box">
<div class="widget-title bg_lg"><span class="icon"><i class="fas
fa-file"></i></span>
<h5>Services Report</h5>
</div>
<div class="widget-content" >
<div class="row-fluid">
<div class="span8">
<!-- <div id="piechart"></div> -->
<div id="top_x_div" style="width: 700px; height: 290px;"></div>
</div>
<div class="span4">
<ul class="site-stats">
<li class="bg_lh"><i class="fas fa-users"></i> <strong><?php include 'dashboard-
usercount.php';?></strong>
<small>Total Members</small></li>
<li class="bg_lg"><i class="fas fa-user-clock"></i> <strong><?php include
'actions/dashboard-staff- count.php';?></strong> <small>Staff Users</small></li>
<li class="bg_ls"><i class="fas fa-dumbbell"></i> <strong><?php include
'actions/count- equipments.php';?></strong> <small>Available
Equipments</small></li>
<li class="bg_ly"><i class="fas fa-file-invoice-dollar"></i> <strong>$<?php include
'actions/total- exp.php';?></strong> <small>Total Expenses</small></li>
<li class="bg_lr"><i class="fas fa-user-ninja"></i> <strong><?php include
'actions/count-trainers.php';?></strong>
<small>Active Gym Trainers</small></li>
<li class="bg_lb"><i class="fas fa-calendar-check"></i> <strong><?php include
'actions/count- attendance.php';?></strong> <small>Present Members</small></li>
</ul>
</div>
</div>
</div>
</div><!-- Visit codeastro.com for more projects -->
</div><!-- End of row-fluid -->
<div class="row-fluid">
<div class="widget-box">
<div class="widget-title bg_lg"><span class="icon"><i class="fas
fa-file"></i></span>
<h5>Earnings & Expenses Reports</h5>
</div>
<div class="widget-content" >
<div class="row-fluid">
<div class="span12">
<!-- <div id="piechart"></div> -->
<div id="top_y_div" style="width: 700px; height: 180px;"></div>
</div>
</div>
</div>
</div>
</div><!-- End of row-fluid -->
<div class="row-fluid">
<div class="span6">
<div class="widget-box">
<div class="widget-title bg_ly" data-toggle="collapse" href="#collapseG2"><span
class="icon"><i class="fas fa-chevron- down"></i></span>
<h5>Registered Gym Members by Gender: Overview</h5>
</div>
<div class="widget-content nopadding collapse in" id="collapseG2">
<ul class="recent-posts">
</ul>
</div>
</div>
</div>
<div class="span6">
<div class="widget-box">
<div class="widget-title bg_ly" data-toggle="collapse" href="#collapseG2"><span
class="icon"><i class="fas fa-chevron- down"></i></span>
<h5>Staff Members by Designation: Overview</h5>
</div>
<div class="widget-content nopadding collapse in" id="collapseG2">
<ul class="recent-posts">
<?php
include "dbcon.php";
$qry="SELECT * FROM announcements";
$result=mysqli_query($conn,$qry);
while($row=mysqli_fetch_array($result)){
echo"<div class='user-thumb'> <img width='70' height='40' alt='User'
src='../img/demo/av1.jpg'> </div>"; echo"<div class='article-post'>";
echo"<span class='user-info'> By: System Administrator / Date: ".$row['date']."
</span>"; echo"<p><a href='#'>".$row['message']."</a> </p>";
echo"</div>"; echo"</li>";
?>
</div>
<div class="span6">
<div class="widget-box">
<div class="widget-title"> <span class="icon"><i class="fas fa-tasks"></i></span>
<h5>Customer's To-Do Lists</h5>
</div>
<div class="widget-content">
<div class="todo">
<ul>
<?php
include "dbcon.php";
$qry="SELECT * FROM todo";
$result=mysqli_query($con,$qry); while($row=mysqli_fetch_array($result)){ ?>
<li class='clearfix'>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value returned is a null string: function goPage
(newURL) {
// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {
// resets the menu selection upon entry to this page: function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>
<?php session_start();
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!-- Visit codeastro.com for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!-- Visit codeastro.com for more projects -->
<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<!-- <div id="search">
<input type="hidden" placeholder="Search here..."/>
<button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-
white"></i></button>
</div> --><!-- Visit codeastro.com for more projects -->
<!--close-top-serch-->
<!--sidebar-menu-->
<?php $page="announcement"; include 'includes/sidebar.php'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i
class="fas fa-home"></i> Home</a><a href="announcement.php">Announcement</a> <a
href="#" class="current">Manage Announcement</a> </div>
<h1 class="text-center">Manage Announcement <i class="fas fa-bullhorn"></i></h1>
</div>
<div class="container-fluid">
<hr>
<div class="row-fluid">
<div class="span12">
<div class='widget-box'>
<div class='widget-title'> <span class='icon'> <i class='fas fa-bullhorn'></i>
</span>
<h5>Announcement table</h5>
</div>
<div class='widget-content nopadding'>
<?php
include "dbcon.php";
$qry="select * from announcements";
$cnt = 1;
$result=mysqli_query($conn,$qry);
echo"<tbody>
<td><div class='text-center'>".$cnt."</div></td>
<td><div class='text-center'>".$row['date']."</div></td>
<td><div class='text-center'>".$row['message']."</div></td>
<td><div class='text-center'><a href='actions/remove-announcement.php?id=".
$row['id']."' style='color:#F66;' ><i class='fas fa-trash'></i>
Remove</a></div></td>
</tbody>";
$cnt++; }
?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<!--end-Footer-part-->
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value returned is a null string: function goPage
(newURL) {
// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {
// if url is "-", it is this page -- reset the menu: if (newURL == "-" ) {
resetMenu();
}
// else, send page to designated URL else {
document.location.href = newURL;
}
}
}
// resets the menu selection upon entry to this page: function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>
<?php session_start();
if(!isset($_SESSION['user_id'])){ header('location:../index.php');
}
?>
<!-- Visit codeastro.com for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i
class="fas fa-home"></i> Home</a>
<div class='widget-box'>
<div class='widget-title'> <span class='icon'> <i class='fas fa-th'></i> </span>
<h5>Member's Payment table</h5>
<form id="custom-search-form" role="search" method="POST" action="search-
result.php" class="form-search form- horizontal pull-right">
<div class="input-append span12">
<input type="text" class="search-query" placeholder="Search" name="search"
required>
<button type="submit" class="btn"><i class="fas fa-search"></i></button>
</div>
</form>
</div>
<?php
include "dbcon.php";
$qry="SELECT * FROM members";
$cnt = 1;
$result=mysqli_query($conn,$qry);
?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<style>
#custom-search-form { margin:0;
margin-top: 5px; padding: 0;
}
margin-bottom: 0;
-webkit-border-radius: 3px;
-moz-border-radius: 3px; border-radius: 3px;
}
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value returned is a null string: function goPage
(newURL) {
// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {
// resets the menu selection upon entry to this page: function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>
<?php session_start();
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!-- Visit codeastro.com for more projects -->
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.html" title="Go to Home" class="tip-bottom"><i
class="fas fa-home"></i> Home</a>
<a href="#" class="current">Announcement</a> </div>
<h1>Announcement</h1>
</div>
<form role="form" action="index.php" method="POST">
<?php
if(isset($_POST['message'])){
$message = $_POST["message"];
$date = $_POST["date"];
include 'dbcon.php';
//code after connection is successfull
$qry = "insert into announcements(message,date) values ('$message','$date')";
$result = mysqli_query($conn,$qry); //query executes
if(!$result){
echo"<div class='container-fluid'>"; echo"<div class='row-fluid'>"; echo"<div
class='span12'>"; echo"<div class='widget-box'>";
echo"<div class='widget-title'> <span class='icon'> <i class='fas fa-info'></i>
</span>"; echo"<h5>Error Message</h5>";
echo"</div>";
echo"<div class='widget-content'>"; echo"<div class='error_ex'>";
echo"<h1 style='color:maroon;'>Error 404</h1>"; echo"<h3>Error occured while
entering your details</h3>"; echo"<p>Please Try Again</p>";
echo"<a class='btn btn-warning btn-big' href='edit-member.php'>Go Back</a> </div>";
echo"</div>";
echo"</div>"; echo"</div>";
echo"</div>"; echo"</div>";
}else {
echo("<script>location.href = 'index.php';</script>");
}
}else{
echo"<h3>YOU ARE NOT AUTHORIZED TO REDIRECT THIS PAGE. GO BACK to <a
href='index.php'> DASHBOARD </a></h3>";
}
?>
</div></div>
</div>
</form>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<!--end-Footer-part-->
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value returned is a null string: function goPage
(newURL) {
// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {
<?php session_start();
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!-- Visit codeastro.com for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/fontawesome.css" rel="stylesheet" />
<link href="../font-awesome/css/all.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<?php include 'includes/topheader.php'?>
<!--sidebar-menu-->
<?php $page='staff-management'; include 'includes/sidebar.php'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i
class="fas fa-home"></i> Home</a>
<a href="staffs.php">Staffs</a> <a href="staffs-entry.php" class="current">Staff
Entry</a> </div>
<h1 class="text-center">GYM's Staff Entry Form <i class="fas
fa-briefcase"></i></h1>
</div>
<div class="container-fluid"><hr>
<div class="row-fluid">
<div class="span12">
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="fas fa-briefcase"></i>
</span>
<h5>Staff Details</h5>
</div>
<div class="widget-content nopadding">
<form id="form-wizard" action="added-staffs.php" class="form-horizontal"
method="POST">
<div id="form-wizard-1" class="step">
<div class="control-group">
<label class="control-label">Enter Staff's Fullname</label>
<div class="controls">
<input id="fullname" type="text" name="fullname" required/>
</div>
</div>
<div class="control-group">
<label class="control-label">Enter a Username</label>
<div class="controls">
<input id="username" type="text" name="username" />
</div>
</div>
<div class="control-group">
<label class="control-label">Password</label>
<div class="controls">
<input id="password" type="password" name="password" />
</div>
</div>
<div class="control-group">
<label class="control-label">Confirm Password</label>
<div class="controls">
<input id="password2" type="password" name="password2" />
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">Address</label>
<div class="controls">
<input id="address" type="text" name="address" required/>
</div>
</div>
<div class="control-group">
<label class="control-label">Designation</label>
<div class="controls">
<select name="designation" id="designation">
<option value="Cashier">Cashier</option>
<option value="Trainer">Trainer</option>
<option value="GYM Assistant">GYM Assistant</option>
<option value="Front Desk Staff">Front Desk Staff</option>
<option value="Manager">Manager</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">Gender</label>
<div class="controls">
<select name="gender" id="gender">
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">Contact Number</label>
<div class="controls">
<input id="contact" type="number" name="contact" required/>
</div>
</div>
</div>
<div class="form-actions">
<input id="back" class="btn btn-primary" type="reset" value="Back" />
<input id="next" class="btn btn-primary" type="submit" value="Proceed Next Step" />
<div id="status"></div>
</div>
<div id="submitted"></div>
</form>
</div>
</div><!--end of widget box-->
</div><!--end of span 12 -->
</div>
</div>
</div>
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<?php session_start();
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<!--Header-part-->
<div id="header">
<h1><a href="index.php">Perfect Gym System</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<?php include '../includes/topheader.php'?>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<!-- <div id="search">
<input type="hidden" placeholder="Search here..."/>
<button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-
white"></i></button>
</div> -->
<!--close-top-serch-->
<!--sidebar-menu-->
<?php $page="reminder"; include '../includes/sidebar.php'?>
<!--sidebar-menu-->
<!--main-container-part-->
<div id="content">
<!--breadcrumbs-->
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="You're right here" class="tip-
bottom"><i class="icon-home"></i> Home</a></div>
</div>
<!--End-breadcrumbs-->
<!--Action boxes-->
<div class="container-fluid">
<!--End-Action boxes-->
<div class="row-fluid">
<div class="span12">
<?php
include "dbcon.php";
$qry="SELECT reminder FROM members WHERE user_id='".$_SESSION['user_id']."'";
$cnt = 1;
$result=mysqli_query($con,$qry);
while($row=mysqli_fetch_array($result)){ ?>
before your due dates. <br>IT IS IMPORTANT THAT YOU CLEAR YOUR DUES ON TIME IN
ORDER TO AVOID SERVICE DISRUPTIONS.</p>
<hr>
<p class="mb-0">We value you as our customer and look forward to continue serving
you in the future.</p>
</div>
<?php } }?>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<!--end-Footer-part-->
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value returned is a null string: function goPage
(newURL) {
// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {
// resets the menu selection upon entry to this page: function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/font-awesome.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<!--Header-part-->
<div id="header">
<h1><a href="index.php">Perfect Gym System</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<?php include '../includes/topheader.php'?>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<!-- <div id="search">
<input type="hidden" placeholder="Search here..."/>
<button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-
white"></i></button>
</div> -->
<!--close-top-serch-->
<!--sidebar-menu-->
<?php $page="dashboard"; include '../includes/sidebar.php'?>
<!--sidebar-menu-->
<!--main-container-part-->
<div id="content">
<!--breadcrumbs-->
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="You're right here" class="tip-
bottom"><i class="icon-home"></i> Home</a></div>
</div>
<!--End-breadcrumbs-->
<!--Action boxes-->
<div class="container-fluid">
<!--End-Action boxes-->
<div class="row-fluid">
<div class="span6">
<div class="widget-box">
<div class="widget-title"> <span class="icon"><i class="icon-time"></i></span>
<h5>My To-Do List</h5>
</div>
<div class="widget-content nopadding">
<?php
include "dbcon.php"; include "session.php";
$qry="SELECT * FROM todo WHERE user_id='".$_SESSION['user_id']."'";
$result=mysqli_query($con,$qry);
</tbody>";
}
?>
</table>
</div>
</div>
<div class="span6">
<div class="widget-box">
<div class="widget-title bg_ly" data-toggle="collapse" href="#collapseG2"><span
class="icon"><i class="icon-chevron- down"></i></span>
<h5>Gym Announcement</h5>
</div>
<div class="widget-content nopadding collapse in" id="collapseG2">
<ul class="recent-posts">
<li>
<?php
include "dbcon.php";
$qry="select * from announcements";
$result=mysqli_query($con,$qry);
while($row=mysqli_fetch_array($result)){
echo"</div>"; echo"</li>";
?>
<a href="announcement.php"><button class="btn btn-warning btn-mini">View
All</button></a>
</li>
</ul>
</div>
</div>
</div> <!-- end of announcement -->
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
.card {
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2); max-width: 460px;
margin: auto; text-align: center;
font-family: arial;
}
.title {
color: grey; font-size: 18px;
}
</style>
<!--end-Footer-part-->
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value returned is a null string: function goPage
(newURL) {
// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {
// resets the menu selection upon entry to this page: function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>
<?php session_start();
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!-- Visit codeastro.com for more projects -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System Admin</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/uniform.css" />
<link rel="stylesheet" href="../css/select2.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/font-awesome.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym Admin</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<?php include '../includes/header.php'?>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<!-- <div id="search">
<input type="hidden" placeholder="Search here..."/>
<button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-
white"></i></button>
</div> -->
<!--close-top-serch-->
<!--sidebar-menu-->
<?php $page="attendance"; include '../includes/sidebar.php'?>
<!--sidebar-menu-->
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i
class="icon-home"></i> Home</a>
<a href="attendance.php" class="current">Manage Attendance</a> </div>
<h1 class="text-center">Attendance List <i class="icon icon-calendar"></i></h1>
</div>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<div class='widget-box'>
<div class='widget-title'> <span class='icon'> <i class='icon-th'></i> </span>
<h5>Attendance Table</h5>
</div>
<div class='widget-content nopadding'>
<?php
include "dbcon.php";
date_default_timezone_set('Asia/Kathmandu');
//$current_date = date('Y-m-d h:i:s');
$current_date = date('Y-m-d h:i A');
$exp_date_time = explode(' ', $current_date);
$todays_date = $exp_date_time['0'];
$qry="SELECT * FROM members WHERE status = 'Active'";
$result=mysqli_query($conn,$qry);
$i=1;
$cnt = 1; while($row=mysqli_fetch_array($result)){ ?>
<tbody>
<?php
$qry = "select * from attendance where curr_date = '$todays_date' AND user_id = '".
$row['user_id']."'";
$res = $conn->query($qry);
$num_count = mysqli_num_rows($res);
$row_exist = mysqli_fetch_array($res);
$curr_date = $row_exist['curr_date']; if($curr_date == $todays_date){
?>
<td><div class='text-center'><span class="label label-inverse"><?php echo
$row_exist['curr_date'];?> <?php echo
$row_exist['curr_time'];?></span></div>
<div class='text-center'><a href='actions/delete-attendance.php?id=<?php echo
$row['user_id'];?>'><button class='btn btn-danger'>Check Out <i class='icon icon-
time'></i></button> </a></div>
</td>
<?php } else {
?>
<?php $cnt++; }
?>
</tbody>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<!--end-Footer-part-->
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
</script>
</body>
</html>
<?php session_start();
//the isset function to check username is already loged in and stored on the
session if(!isset($_SESSION['user_id'])){
header('location:../index.php');
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Gym System</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="../css/bootstrap.min.css" />
<link rel="stylesheet" href="../css/bootstrap-responsive.min.css" />
<link rel="stylesheet" href="../css/fullcalendar.css" />
<link rel="stylesheet" href="../css/matrix-style.css" />
<link rel="stylesheet" href="../css/matrix-media.css" />
<link href="../font-awesome/css/font-awesome.css" rel="stylesheet" />
<link rel="stylesheet" href="../css/jquery.gritter.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700,800'
rel='stylesheet' type='text/css'>
</head>
<body>
<!--Header-part-->
<div id="header">
<h1><a href="dashboard.html">Perfect Gym</a></h1>
</div>
<!--close-Header-part-->
<!--top-Header-menu-->
<?php include '../includes/header.php'?>
<!--close-top-Header-menu-->
<!--start-top-serch-->
<!-- <div id="search">
<input type="hidden" placeholder="Search here..."/>
<button type="submit" class="tip-bottom" title="Search"><i class="icon-search icon-
white"></i></button>
</div> -->
<!--close-top-serch-->
<!--sidebar-menu-->
<?php $page="staff"; include '../includes/sidebar.php'?>
<!--sidebar-menu-->
<?php
include 'dbcon.php';
$id=$_GET['id'];
$qry= "select * from staffs where user_id='$id'";
$result=mysqli_query($conn,$qry); while($row=mysqli_fetch_array($result)){
?>
<div id="content">
<div id="content-header">
<div id="breadcrumb"> <a href="index.php" title="Go to Home" class="tip-bottom"><i
class="icon-home"></i> Home</a>
<a href="staffs.php" class="tip-bottom">Staffs</a> <a href="edit-staff-form.php"
class="current">Edit Staff Records</a>
</div>
<h1 class="text-center">Update Staff's Detail <i class="icon
icon-briefcase"></i></h1>
</div>
<div class="container-fluid">
<hr>
<div class="row-fluid">
<div class="span6">
<div class="widget-box">
</div>
</div>
<div class="widget-content nopadding">
</div>
</div>
</div>
</div>
<div class="span6">
<div class="widget-box">
<div class="widget-title"> <span class="icon"> <i class="icon-align-justify"></i>
</span>
<h5>Staff-Details</h5>
</div>
<div class="widget-content nopadding">
<div class="form-horizontal">
<div class="control-group">
<label for="normal" class="control-label">Contact Number</label>
<div class="controls">
<input type="number" id="mask-phone" name="contact" value='<?php echo
$row['contact']; ?>' class="span8 mask
text">
<div class="control-group">
<label class="control-label">Designation</label>
<div class="controls">
<select name="designation" id="designation">
<option value="Cashier">Cashier</option>
<option value="Trainer">Trainer</option>
<option value="GYM Assistant">GYM Assistant</option>
<option value="Front Desk Staff">Front Desk Staff</option>
<option value="Manager">Manager</option>
</select>
</div>
</div>
</div>
</form>
</div>
<?php
}
?>
</div>
</div>
</div>
</div>
<div class="row-fluid">
</div>
</div>
<!--end-main-container-part-->
<!--Footer-part-->
<div class="row-fluid">
<div id="footer" class="span12"> <?php echo date("Y");?> © Developed By Naseeb
Bajracharya</a> </div>
</div>
<!--end-Footer-part-->
<script src="../js/excanvas.min.js"></script>
<script src="../js/jquery.min.js"></script>
<script src="../js/jquery.ui.custom.js"></script>
<script src="../js/bootstrap.min.js"></script>
<script src="../js/jquery.flot.min.js"></script>
<script src="../js/jquery.flot.resize.min.js"></script>
<script src="../js/jquery.peity.min.js"></script>
<script src="../js/fullcalendar.min.js"></script>
<script src="../js/matrix.js"></script>
<script src="../js/matrix.dashboard.js"></script>
<script src="../js/jquery.gritter.min.js"></script>
<script src="../js/matrix.interface.js"></script>
<script src="../js/matrix.chat.js"></script>
<script src="../js/jquery.validate.js"></script>
<script src="../js/matrix.form_validation.js"></script>
<script src="../js/jquery.wizard.js"></script>
<script src="../js/jquery.uniform.js"></script>
<script src="../js/select2.min.js"></script>
<script src="../js/matrix.popover.js"></script>
<script src="../js/jquery.dataTables.min.js"></script>
<script src="../js/matrix.tables.js"></script>
<script type="text/javascript">
// This function is called from the pop-up menus to transfer to
// a different page. Ignore if the value returned is a null string: function goPage
(newURL) {
// if url is empty, skip the menu dividers and reset the menu selection to default
if (newURL != "") {
// resets the menu selection upon entry to this page: function resetMenu() {
document.gomenu.selector.selectedIndex = 2;
}
</script>
</body>
</html>
<?php
$con = mysqli_connect("localhost","root","","gymnsb");
// Check connection
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
?><!-- Visit codeastro.com for more projects -->
</head>
<body>
<div id="loginbox">
<form id="loginform" method="POST" class="form-vertical" action="#">
<div class="control-group normal_text"> <h3><img src="img/icontest3.png" alt="Logo"
/></h3></div>
<div class="control-group">
<div class="controls">
<div class="main_input_box">
<span class="add-on bg_lg"><i class="fas fa-user-circle"></i></span><input
type="text" name="user" placeholder="Username" required/>
</div>
</div>
</div>
<div class="control-group">
<div class="controls">
<div class="main_input_box">
<span class="add-on bg_ly"><i class="fas fa-lock"></i></span><input type="password"
name="pass" placeholder="Password" required />
</div>
</div>
</div>
<div class="form-actions center">
<!-- <span class="pull-right"><a type="submit" href="index.html" class="btn btn-
success" /> Login</a></span> --
>
<!-- <input type="submit" class="button" title="Log In" name="login" value="Admin
Login"></input> -->
<button type="submit" class="btn btn-block btn-large btn-info" title="Log In"
name="login" value="Admin
Login">Admin Login</button>
</div>
</form>
<?php
if (isset($_POST['login']))
{
$username = mysqli_real_escape_string($con, $_POST['user']);
$password = mysqli_real_escape_string($con, $_POST['pass']);
$password = md5($password);
if ($num_row > 0)
{
$_SESSION['user_id']=$row['user_id']; header('location:admin/index.php');
}
else
{
}
}
?>
<div class="pull-left">
<a href="customer/index.php"><h6>Customer Login</h6></a>
</div>
<div class="pull-right">
<a href="staff/index.php"><h6>Staff Login</h6></a>
</div>
</div>
<script src="js/jquery.min.js"></script>
<script src="js/matrix.login.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/matrix.js"></script>
</body>
<!-- Visit codeastro.com for more projects -->
</html>