This repository has been archived by the owner on Sep 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
508 lines (460 loc) · 27.2 KB
/
index.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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
<?php
//start the session
session_start();
//include configuration and functions files
include("include/configuration.php");
$conn = new mysqli(CONF_LOCATION, CONF_ADMINID, CONF_ADMINPASS);
/** Check connection */
if ($conn->connect_error) {
header("HTTP/1.1 500 Internal Server Error");
die("There was an error connecting to the Server");
}
$conn = new mysqli(CONF_LOCATION, CONF_ADMINID, CONF_ADMINPASS, CONF_DATABASE);
?>
<!DOCTYPE HTML>
<html lang="en">
<head>
<title> NHS Calendar-Maker - Newtown High School </title>
<meta name="Author" content="Devin Matte">
<meta name="msapplication-TileColor" content="#3A7BFF">
<meta name="msapplication-TileImage" content="favicon/ms-icon-144x144.png">
<meta name="theme-color" content="#3A7BFF">
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="apple-touch-icon" sizes="57x57" href="images/favicon/apple-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="images/favicon/apple-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/favicon/apple-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="images/favicon/apple-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/favicon/apple-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="images/favicon/apple-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="images/favicon/apple-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="images/favicon/apple-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="images/favicon/apple-icon-180x180.png">
<link rel="icon" type="image/gif" sizes="192x192" href="images/favicon/192x192.gif">
<link rel="icon" type="image/png" sizes="32x32" href="images/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="images/favicon/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/favicon/favicon-16x16.png">
<link rel="manifest" href="manifest.json">
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css"/><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css"/><![endif]-->
<link rel="stylesheet" href="assets/css/uikit.almost-flat.css"/>
<link rel="stylesheet" href="assets/css/components/datepicker.almost-flat.min.css"/>
<link rel='stylesheet' href='assets/fullcalendar/fullcalendar.min.css'/>
<link rel="stylesheet" href="assets/css/main.css"/>
<link rel="stylesheet" href="assets/css/calendar-maker.css"/>
<!-- Scripts -->
<script src="assets/fullcalendar/lib/jquery.min.js"></script>
<script src='assets/fullcalendar/lib/moment.min.js'></script>
<script src='assets/fullcalendar/fullcalendar.min.js'></script>
<script src="assets/js/uikit.min.js"></script>
<script src="assets/js/components/datepicker.min.js" async></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<!--[if lte IE 8]>
<script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="assets/js/main.js"></script>
<script>
(function(h,o,u,n,d) {
h=h[d]=h[d]||{q:[],onReady:function(c){h.q.push(c)}}
d=o.createElement(u);d.async=1;d.src=n
n=o.getElementsByTagName(u)[0];n.parentNode.insertBefore(d,n)
})(window,document,'script','https://www.datadoghq-browser-agent.com/datadog-rum-v3.js','DD_RUM')
DD_RUM.onReady(function() {
DD_RUM.init({
clientToken: 'pub856e9ffc2b02ecfa5ad8cf8d4c364b73',
applicationId: '56ac43b8-dc80-46e2-8377-760a21439e1d',
site: 'datadoghq.com',
service:'calendar-maker',
version: '2021-2022',
sampleRate: 100,
trackInteractions: true,
})
})
</script>
<script type="text/javascript">
<!--
function SetAllCheckBoxes(FormName, FieldName, CheckValue) {
if (!document.forms[FormName])
return;
var objCheckBoxes = document.forms[FormName].elements[FieldName];
if (!objCheckBoxes)
return;
var countCheckBoxes = objCheckBoxes.length;
if (!countCheckBoxes)
objCheckBoxes.checked = CheckValue;
else
// set the check value for all check boxes
for (var i = 0; i < countCheckBoxes; i++)
objCheckBoxes[i].checked = CheckValue;
}
// -->
</script>
<?php
if (isset($_POST['submitschedule'])){
//let's record the access information
//log access
$ip = $_SERVER['REMOTE_ADDR'];
$id = session_id();
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$scheduleraw = $_POST['period1'] . ":" . $_POST['period2'] . ":" . $_POST['period3'] . ":" . $_POST['period4'] . ":" . $_POST['period5'] . ":" . $_POST['period6'] . ":" . $_POST['period7'] . ":" . $_POST['period8'];
$scheduleraw = mysqli_real_escape_string($conn, strip_tags(trim($scheduleraw)));
$logquery = "INSERT into access_log values (NULL, DATE_ADD(NOW(), INTERVAL 2 HOUR), \"" . $id . "\",\"" . $ip . "\",\"" . $hostname . "\",\"" . $scheduleraw . "\")";
$conn->query($logquery);
//run through POST variable and get info from database
//first get active dates
$date_query = "select * from Days where Date between \"" . $_POST['startdate'] . "\" and \"" . $_POST['enddate'] . "\"";
$activedates = $conn->query($date_query);
$special_days = ["S", "SS", "SSS", "M1", "M2", "M3", "M4", "Y1", "Y2", "Y3", "Y4"];
$export_text = "";
$export_text = "Subject,Start Date,Start Time,End Date,End Time\r\n";
while ($single_date = $activedates->fetch_assoc()) {
for ($i = 1; $i < 9; $i++) {
$period = "period" . $i;
$day = "day" . $i;
if (isset($_POST[$period]) && (strlen($_POST[$period]) > 0)) {
$_POST[$period] = mysqli_real_escape_string($conn, strip_tags(trim($_POST[$period])));
$_POST[$period] = str_replace(",", "-", $_POST[$period]);
if (in_array($single_date['Day'], $special_days)) {
//get times from database
$specialget_query = "Select * from Bells where Day='{$single_date['Day']}' AND Type='{$single_date['Type']}' AND Period='{$i}'";
$specialget = $conn->query($specialget_query);
$specialgetrow = $specialget->fetch_array();
if (!is_null($specialgetrow['Start'])) {
$export_text .= $_POST[$period] . "," . $single_date['Date'] . "," . $specialgetrow['Start'] . "," . $single_date['Date'] . "," . $specialgetrow['End'] . "\r\n";
}
} else {
for ($j = 0; $j < 10; $j++) {
if (isset($_POST[$day][$j]) && (strlen($_POST[$day][$j]) > 0) && ($_POST[$day][$j] == $single_date['Day'])) {
$specialget_query2 = "Select * from Bells where Type='{$single_date['Type']}' AND Period='{$i}' AND Day='{$_POST[$day][$j]}'";
$specialget2 = $conn->query($specialget_query2);
$specialgetrow2 = $specialget2->fetch_array();
if (!is_null($specialgetrow2['Start'])) {
$export_text .= $_POST[$period] . "," . $single_date['Date'] . "," . $specialgetrow2['Start'] . "," . $single_date['Date'] . "," . $specialgetrow2['End'] . "\r\n";
}
}
}
}
}
}
}
//write to file as "calendar-unixTimecode.csv"
$filename = "exported/calendar-" . time() . ".csv";
$calfile = fopen($filename, "w");
fwrite($calfile, $export_text);
fclose($calfile);
$csv = file_get_contents($filename);
$array = array_map("str_getcsv", explode("\n", $csv));
$json = json_encode($array);
?>
<!--suppress JSUnresolvedVariable -->
<script>
<?php
echo "var phpjson = " . $json . ";\n";
?>
var json = [];
for (var i = 1; i < phpjson.length; i++) {
var title = phpjson[i][0];
var start_date = phpjson[i][1];
var start_time = phpjson[i][2];
var end_date = phpjson[i][3];
var end_time = phpjson[i][4];
json.push({
title: title,
start: start_date + "T" + start_time,
end: end_date + "T" + end_time
})
}
$(document).ready(function () {
$('#calendar').fullCalendar({
defaultView: 'agendaWeek',
businessHours: {
start: '08:00:00',
end: '14:32:00',
dow: [1, 2, 3, 4, 5]
},
minTime: '07:45:00',
maxTime: '14:45:00',
editable: false,
aspectRatio: 1.0,
height: "auto",
weekends: false,
allDaySlot: false,
events: json
})
});
</script>
</head>
<body>
<div id="wrapper">
<header id="header" class="alt">
<h1>Thanks for using the Newtown High School Calendar Generator</h1>
</header>
<!-- Nav -->
<nav id="nav">
<ul>
<li><a href="#download" class="active">Download</a></li>
<li><a href="#instructions">Instructions</a></li>
</ul>
</nav>
<!-- Main -->
<div id="main">
<!-- Introduction -->
<section id="download" class="main">
<div class="spotlight">
<div class="content">
<header class="major">
<h2>Download and View your new Calendar</h2>
</header>
<ul class="actions">
<li><a href="/<?php echo $filename; ?>"
class="button special icon fa-download">Download File</a></li>
</ul>
<div class="major" id="calendar"></div>
</div>
</div>
</section>
<section id="instructions" class="main">
<div class="spotlight">
<div class="content">
<header class="major">
<h2>Use Instructions</h2>
</header>
<h3>Here are instructions for creating a new calendar in Google Calendar and importing the CSV
file</h3>
<ul>
<li>Open <a href="https://calendar.google.com">Google Calendar</a></li>
<li>Click on the "gear" in the upper right corner and access "settings" </br> <img
src="images/settings.PNG" width="35%" border="0" alt=""></li>
<li>Click on the "Calendars" tab </br> <img src="images/calendartab.PNG" width="50%"
border="0" alt=""></li>
<li>Click on the "create new calendar" button </br> <img
src="images/createnewcalendar.PNG"
width="50%" border="0" alt=""></li>
<li>Create a new calendar by entering a calendar name and clicking on "Create Calendar"
(you
can import the file directly into your main calendar <em>but</em> if you create a
new
calendar you can always delete it or share it without affecting your other
events) </br>
<img src="images/createnewcalendar2.PNG" width="50%" border="0" alt=""></li>
<li>Return to calendar, then settings (under the gear), then calendar, and "import
calendar" </br> <img src="images/import.PNG" width="50%" border="0" alt=""></li>
<li>Select the CSV file that you downloaded, select your new calendar, and then click
"Import" </br> <img src="images/import2.PNG" width="50%" border="0" alt=""></li>
</ul>
</div>
</div>
</section>
</div>
</div>
<?php
} else {
?>
</head>
<body>
<!-- Wrapper -->
<div id="wrapper">
<!-- Header -->
<header id="header">
<span class="logo"><img src="images/logo.svg" width="10%" alt=""/></span>
<h1>Welcome to the Newtown High School Calendar Generator</h1>
<!-- Commented out until they take control again -->
<!-- <p>Maintained by NHS Technology Team</p> -->
</header>
<!-- Nav -->
<nav id="nav">
<ul>
<li><a href="#intro" class="active">Instructions</a></li>
<li><a href="#cta">Build Schedule</a></li>
</ul>
</nav>
<!-- Main -->
<div id="main">
<!-- Introduction -->
<section id="intro" class="main">
<div class="spotlight">
<div class="content">
<header class="major">
<h2>Welcome to the Newtown High School Calendar Generator</h2>
</header>
<p>This program will generate a CSV file (suitable for import to Google Calendar) that
recognizes
Letter Day Designations, Half Days and even Finals.</p>
<p>
How to use it:
<ul>
<li>Be creative. Do it in pieces and establish a calendar for each course or section to be
shared with others.
</li>
<li>In the "Start Date" field, enter the date you would like the calendar information to
begin
on. Appropriate format is YYYY-MM-DD.
</li>
<li>In the "End Date" field, enter the date you would like the calendar information to end
on.
Appropriate format is YYYY-MM-DD. (Perhaps you have semester courses and need to run
this
twice.)
</li>
<li>In the "Period # Class" field, enter the name of the course, the duty, or whatever other
"period regular" activity you have (do not include commas - commas will be replaced with
dashes).
</li>
<li>Leave all of the Letter boxes checked if this event occurs on every letter day (don't
worry
about days that drop - the program knows which letter day it is). If an event occurs
only on
specific Letter days (like science lab), just leave those boxes checked.
</li>
<li>Click "Submit Schedule". Your CSV file will be created and you will see instructions on
how
to set up your Google calendar
</li>
</ul>
</p>
</div>
</div>
</section>
<!-- Get Started -->
<section id="cta" class="main special">
<form name="schedule" id="schedule" action=<?php echo $_SERVER['PHP_SELF'] ?> method="post">
<div class="row uniform">
<div class="6u 12u$(small)">Start Date: <input
data-uk-datepicker="{minDate:'2021-08-29', maxDate:'2022-06-10'}" type=text
name='startdate' id='startdate'
size=50%
value='2021-08-29' tabindex=1></div>
<div class="6u$ 12u$(small)">End Date: <input
data-uk-datepicker="{minDate:'2021-08-29', maxDate:'2022-06-10'}" type=text
name='enddate' id='enddate' size=50%
value='2022-06-09' tabindex=2></div>
</div>
</br>
<h2><strong>Period 1 Class:</strong></h2>
<input type=text name='period1' id='period1' placeholder="Period 1 Class" size=25 tabindex=3/></br>
<input type="checkbox" id="A-1" checked name="day1[]" value="A"> <label for="A-1">A</label>
<input type="checkbox" id="B-1" checked name="day1[]" value="B"> <label for="B-1">B</label>
<input type="checkbox" id="C-1" checked name="day1[]" value="C"> <label for="C-1">C</label>
<input type="checkbox" id="D-1" checked name="day1[]" value="D"> <label for="D-1">D</label>
<input type="checkbox" id="E-1" checked name="day1[]" value="E"> <label for="E-1">E</label>
<input type="checkbox" id="F-1" checked name="day1[]" value="F"> <label for="F-1">F</label>
<input type="checkbox" id="G-1" checked name="day1[]" value="G"> <label for="G-1">G</label>
<input type="checkbox" id="H-1" checked name="day1[]" value="H"> <label for="H-1">H</label>
</br>
<h2><strong>Period 2 Class: </strong></h2>
<input type=text name='period2' id='period2' placeholder="Period 2 Class" size=25 tabindex=4></br>
<input type="checkbox" id="A-2" checked name="day2[]" value="A"> <label for="A-2">A</label>
<input type="checkbox" id="B-2" checked name="day2[]" value="B"> <label for="B-2">B</label>
<input type="checkbox" id="C-2" checked name="day2[]" value="C"> <label for="C-2">C</label>
<input type="checkbox" id="D-2" checked name="day2[]" value="D"> <label for="D-2">D</label>
<input type="checkbox" id="E-2" checked name="day2[]" value="E"> <label for="E-2">E</label>
<input type="checkbox" id="F-2" checked name="day2[]" value="F"> <label for="F-2">F</label>
<input type="checkbox" id="G-2" checked name="day2[]" value="G"> <label for="G-2">G</label>
<input type="checkbox" id="H-2" checked name="day2[]" value="H"> <label for="H-2">H</label>
</br>
<h2><strong>Period 3 Class: </strong></h2>
<input type=text name='period3' id='period3' placeholder="Period 3 Class" size=25 tabindex=5></br>
<input type="checkbox" id="A-3" checked name="day3[]" value="A"> <label for="A-3">A</label>
<input type="checkbox" id="B-3" checked name="day3[]" value="B"> <label for="B-3">B</label>
<input type="checkbox" id="C-3" checked name="day3[]" value="C"> <label for="C-3">C</label>
<input type="checkbox" id="D-3" checked name="day3[]" value="D"> <label for="D-3">D</label>
<input type="checkbox" id="E-3" checked name="day3[]" value="E"> <label for="E-3">E</label>
<input type="checkbox" id="F-3" checked name="day3[]" value="F"> <label for="F-3">F</label>
<input type="checkbox" id="G-3" checked name="day3[]" value="G"> <label for="G-3">G</label>
<input type="checkbox" id="H-3" checked name="day3[]" value="H"> <label for="H-3">H</label>
</br>
<h2><strong>Period 4 Class: </strong></h2>
<input type=text name='period4' id='period4' placeholder="Period 4 Class" size=25 tabindex=6></br>
<input type="checkbox" id="A-4" checked name="day4[]" value="A"> <label for="A-4">A</label>
<input type="checkbox" id="B-4" checked name="day4[]" value="B"> <label for="B-4">B</label>
<input type="checkbox" id="C-4" checked name="day4[]" value="C"> <label for="C-4">C</label>
<input type="checkbox" id="D-4" checked name="day4[]" value="D"> <label for="D-4">D</label>
<input type="checkbox" id="E-4" checked name="day4[]" value="E"> <label for="E-4">E</label>
<input type="checkbox" id="F-4" checked name="day4[]" value="F"> <label for="F-4">F</label>
<input type="checkbox" id="G-4" checked name="day4[]" value="G"> <label for="G-4">G</label>
<input type="checkbox" id="H-4" checked name="day4[]" value="H"> <label for="H-4">H</label>
</br>
<h2><strong>Period 5 Class: </strong></h2>
<input type=text name='period5' id='period5' placeholder="Period 5 Class" size=25 tabindex=7></br>
<input type="checkbox" id="A-5" checked name="day5[]" value="A"> <label for="A-5">A</label>
<input type="checkbox" id="B-5" checked name="day5[]" value="B"> <label for="B-5">B</label>
<input type="checkbox" id="C-5" checked name="day5[]" value="C"> <label for="C-5">C</label>
<input type="checkbox" id="D-5" checked name="day5[]" value="D"> <label for="D-5">D</label>
<input type="checkbox" id="E-5" checked name="day5[]" value="E"> <label for="E-5">E</label>
<input type="checkbox" id="F-5" checked name="day5[]" value="F"> <label for="F-5">F</label>
<input type="checkbox" id="G-5" checked name="day5[]" value="G"> <label for="G-5">G</label>
<input type="checkbox" id="H-5" checked name="day5[]" value="H"> <label for="H-5">H</label>
</br>
<h2><strong>Period 6 Class: </strong></h2>
<input type=text name='period6' id='period6' placeholder="Period 6 Class" size=25 tabindex=8> </br>
<input type="checkbox" id="A-6" checked name="day6[]" value="A"> <label for="A-6">A</label>
<input type="checkbox" id="B-6" checked name="day6[]" value="B"> <label for="B-6">B</label>
<input type="checkbox" id="C-6" checked name="day6[]" value="C"> <label for="C-6">C</label>
<input type="checkbox" id="D-6" checked name="day6[]" value="D"> <label for="D-6">D</label>
<input type="checkbox" id="E-6" checked name="day6[]" value="E"> <label for="E-6">E</label>
<input type="checkbox" id="F-6" checked name="day6[]" value="F"> <label for="F-6">F</label>
<input type="checkbox" id="G-6" checked name="day6[]" value="G"> <label for="G-6">G</label>
<input type="checkbox" id="H-6" checked name="day6[]" value="H"> <label for="H-6">H</label>
</br>
<h2><strong>Period 7 Class: </strong></h2>
<input type=text name='period7' id='period7' placeholder="Period 7 Class" size=25 tabindex=9></br>
<input type="checkbox" id="A-7" checked name="day7[]" value="A"> <label for="A-7">A</label>
<input type="checkbox" id="B-7" checked name="day7[]" value="B"> <label for="B-7">B</label>
<input type="checkbox" id="C-7" checked name="day7[]" value="C"> <label for="C-7">C</label>
<input type="checkbox" id="D-7" checked name="day7[]" value="D"> <label for="D-7">D</label>
<input type="checkbox" id="E-7" checked name="day7[]" value="E"> <label for="E-7">E</label>
<input type="checkbox" id="F-7" checked name="day7[]" value="F"> <label for="F-7">F</label>
<input type="checkbox" id="G-7" checked name="day7[]" value="G"> <label for="G-7">G</label>
<input type="checkbox" id="H-7" checked name="day7[]" value="H"> <label for="H-7">H</label>
</br>
<h2><strong>Period 8 Class: </strong></h2>
<input type=text name='period8' id='period8' placeholder="Period 8 Class" size=25 tabindex=10></br>
<input type="checkbox" id="A-8" checked name="day8[]" value="A"> <label for="A-8">A</label>
<input type="checkbox" id="B-8" checked name="day8[]" value="B"> <label for="B-8">B</label>
<input type="checkbox" id="C-8" checked name="day8[]" value="C"> <label for="C-8">C</label>
<input type="checkbox" id="D-8" checked name="day8[]" value="D"> <label for="D-8">D</label>
<input type="checkbox" id="E-8" checked name="day8[]" value="E"> <label for="E-8">E</label>
<input type="checkbox" id="F-8" checked name="day8[]" value="F"> <label for="F-8">F</label>
<input type="checkbox" id="G-8" checked name="day8[]" value="G"> <label for="G-8">G</label>
<input type="checkbox" id="H-8" checked name="day8[]" value="H"> <label for="H-8">H</label>
</br>
<input type="button"
onclick="SetAllCheckBoxes('schedule', 'day1[]', false);SetAllCheckBoxes('schedule', 'day2[]', false);SetAllCheckBoxes('schedule', 'day3[]', false);SetAllCheckBoxes('schedule', 'day4[]', false);SetAllCheckBoxes('schedule', 'day5[]', false);SetAllCheckBoxes('schedule', 'day6[]', false);SetAllCheckBoxes('schedule', 'day7[]', false);SetAllCheckBoxes('schedule', 'day8[]', false);"
value="Uncheck All"> <input type="button"
onclick="SetAllCheckBoxes('schedule', 'day1[]', true);SetAllCheckBoxes('schedule', 'day2[]', true);SetAllCheckBoxes('schedule', 'day3[]', true);SetAllCheckBoxes('schedule', 'day4[]', true);SetAllCheckBoxes('schedule', 'day5[]', true);SetAllCheckBoxes('schedule', 'day6[]', true);SetAllCheckBoxes('schedule', 'day7[]', true);SetAllCheckBoxes('schedule', 'day8[]', true);"
value="Check All">
</br></br>
<input type=submit id='submitschedule' name='submitschedule' value='Submit Schedule' tabindex=10>
</form>
<p>Currently Supporting Schedules for the 2021-2022 School Year</p>
</section>
</div>
<!-- Footer -->
<footer id="footer">
<p class="copyright">© 2014-<?php echo date("Y") ?> <a href="http://nhstech.us/">Newtown
High School Technology Team</a>
</br>
Design: <a href="https://github.com/devinmatte">Devin Matte</a> - Initial Design: <a
href="https://twitter.com/charlesdumais">Charles Dumais</a>
</br>
CSS Template: <a href="https://html5up.net">HTML5 UP</a>
</br>
<a href="https://github.com/NHSTechTeam/Calendar-Maker" title="GitHub" class="icon fa-github"><span
class="label">GitHub</span>
</a><?php
$commitHash = trim(exec('git log --pretty="%h" -n1 HEAD'));
$commitDate = new \DateTime(trim(exec('git log -n1 --pretty=%ci HEAD')));
$commitDate->setTimezone(new \DateTimeZone('UTC'));
echo " | <a href=\"https://github.com/NHSTechTeam/Calendar-Maker/commits/" . $commitHash . "\">" . $commitHash . "</a> ";
?>
</p>
</footer>
</div>
</body>
</html>
<?php
}
?>