-
Notifications
You must be signed in to change notification settings - Fork 0
/
attendance.php
205 lines (162 loc) · 9.68 KB
/
attendance.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
<?php
session_start();
include 'includes/dbConnection.php';
// for expired session
if (!$_SESSION["user_name_loggedIn_admin"]) {
$_SESSION["expired_session"] = "Your session has been expired, relog in!";
header("Location: index.php");
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="description" content="">
<meta name="author" content="">
<title> Admin - Dashboard</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="js/scripts.js"></script>
<?php include 'globalExternals/components.php'; ?>
<script>
$(document).ready(function() {
$(".validateForm").validationEngine(); /* {binded:false} */
$('.textarea').wysihtml5();
$(".dataTable").dataTable({
/* "language": {
"url": "dataTables.german.lang"
} */
});
$(".dob").datepicker({
maxDate: new Date(),
changeMonth: true,
changeYear: true,
yearRange: '-65:+0',
dateFormat: "MM d, yy"
});
$(".dob").datepicker($.datepicker.regional['en']);
$(".hasDatepicker,.datepick,.date,.mem_valid_from,.sell-date,.dob,.datepicker-days").datepicker({
language: "en",
changeMonth: true,
changeYear: true,
dateFormat: "MM d, yy"
});
$(".hasDatepicker,.datepick,.date,.mem_valid_from,.sell-date,.dob,.datepicker-days").datepicker($.datepicker.regional['en']);
$(".hasDatepicker,.datepick,.date,.mem_valid_from,.sell-date,.dob,.datepicker-days,.mem_valid_to").on('keydown', function() {
return false;
});
});
</script>
</head>
<body id="page-top" class="fixed-nav">
<?php include 'navigations/NavigationBar.php'; ?>
<div id="wrapper">
<div id="content-wrapper">
<div class="container-fluid">
<div id="reports-container">
<div class="content-wrapper" style="min-height: 1273px !important">
<script>
$(".body-overlay").css("display", "block");
$("body").css("overflow-y", "hidden");
</script>
<script>
$(document).ready(function() {
$(".date").datepicker("option", "dateFormat", "MM d, yy", "setDate", new Date("March 26, 2019"));
$(".date").datepicker("setDate", "March 1, 2019");
});
</script>
<section class="content">
<br>
<div class="col-md-12 box box-default">
<div class="box-header">
<section class="content-header">
<h1>
<i class="fa fa-plus"></i>
Member Attendance
</h1>
</section>
</div>
<hr>
<div class="box-body">
<form method="post" class="validateForm">
<input type="hidden" name="class_id" value="0">
<div class="form-group col-md-3">
<label class="control-label" for="curr_date">Date</label>
<input id="curr_date" class="form-control validate[required] date" type="text" value="March 1, 2019" name="curr_date">
</div>
<div class="form-group col-md-3">
<label for="class_id">Select Class</label>
<select name="class_id" class="validation[required] form-control" required="required">
<option value="">Select Class</option>
<option value="2" selected="selected">Aerobics Class</option>
<option value="3">HIT Class</option>
<option value="4">Cardio Class</option>
<option value="5">Pilates</option>
<option value="6">Zumba Class</option>
<option value="8">CrossFit M</option>
</select>
</div>
<div class="form-group col-md-3 button-possition">
<br>
<button type="button" class="btn btn-success" data-toggle="modal" data-target="#myModal"> View Attendance</button>
</div>
</form>
<div class="modal fade" id="myModal">
<div class="modal-dialog">
<div class="modal-content">
<div class="card card-register">
<div class="clearfix"> </div>
<hr>
<!-- ###################################################################### -->
<div class="clearfix"> </div>
<div class="panel-body">
<form method="post" class="form-horizontal">
<input type="hidden" name="class_id" value="2">
<input type="hidden" name="attendance_date" value="2019-03-01">
<br><br>
<div class="clearfix"> </div>
<div class="form-group">
<label class="radio-inline">
<input type="radio" name="status" value="Present" checked="checked">Present</label>
</div>
<div class="col-md-12">
<table class="table">
<thead>
<tr>
<th width="70px">Status</th>
<th>Photo</th>
<th width="250px">Member Name</th>
</tr>
</thead>
<tbody>
<tr>
<td class="checkbox_field"><span><input type="checkbox" class="checkbox1" name="attendance[]" value="3"></span></td>
<td> <i class="fa fa-user"></i></td>
<td><span>member name</span></td>
</tr>
</tbody>
</table>
</div>
<div class="col-sm-12">
<input type="submit" value="Save Attendance" name="save_attendance" class="btn btn-flat btn-success">
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- END -->
</div>
</div>
</section>
</div>
</div>
</div>
</div>
</div>
</body>
</html>