-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
95 lines (95 loc) · 2.69 KB
/
index.html
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
<!doctype html>
<html>
<head>
<meta charset='utf-8'>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-serialize-object/2.5.0/jquery.serialize-object.min.js"></script>
<script>
$(() => {
var $form = $('#form')
var url = 'https://script.google.com/macros/u/0/s/AKfycbx8MH9-0EGHYYupVG2R-gu-co5aVfRoEpKObdzCw0IE20h-Z4zO/exec'
$('#submit').on('click', function(e) {
e.preventDefault();
var jqxhr = $.ajax({
url: url,
method: "GET",
dataType: "json",
data: $form.serializeObject()
}).success(
// do something
);
})
})
</script>
</head>
<body>
<h3>Auxiliary Services Absence & Payroll Report</h3>
<form method='post'>
<table border='0' padding='1'>
<tr>
<td>Payroll Period Begins:</td>
<td><input type='date' name='begin'></td>
</tr>
<tr>
<td>Payroll Period Ends:</td>
<td><input type='date' name='end'></td>
</tr>
<tr>
<td>Employee Name:</td>
<td><input type='text' name='name'></td>
</tr>
<tr>
<td>Employee ID#:</td>
<td><input type='number' name='id'></td>
</tr>
</table>
<table>
<tr>
<th>Date</th>
<th>Hours</th>
</tr>
<tr>
<td><input type='date' name='day0'></td>
<td><input type='number' name='hours0' min='0' max='20' step='0.5'></td>
</tr>
<tr>
<td><input type='date' name='day1'></td>
<td><input type='number' name='hours1' min='0' max='20' step='0.5'></td>
</tr>
<tr>
<td><input type='date' name='day2'></td>
<td><input type='number' name='hours2' min='0' max='20' step='0.5'></td>
</tr>
<tr>
<td><input type='date' name='day3'></td>
<td><input type='number' name='hours3' min='0' max='20' step='0.5'></td>
</tr>
<tr>
<td><input type='date' name='day4'></td>
<td><input type='number' name='hours4' min='0' max='20' step='0.5'></td>
</tr>
<tr>
<td><input type='date' name='day5'></td>
<td><input type='number' name='hours5' min='0' max='20' step='0.5'></td>
</tr>
<tr>
<td><input type='date' name='day6'></td>
<td><input type='number' name='hours6' min='0' max='20' step='0.5'></td>
</tr>
<tr>
<td><input type='date' name='day7'></td>
<td><input type='number' name='hours7' min='0' max='20' step='0.5'></td>
</tr>
<tr>
<td><input type='date' name='day8'></td>
<td><input type='number' name='hours8' min='0' max='20' step='0.5'></td>
</tr>
<tr>
<td><input type='date' name='day9'></td>
<td><input type='number' name='hours9' min='0' max='20' step='0.5'></td>
</tr>
</table>
<input id='submit' type='submit' name='submit' value='Submit'>
</form>
</body>
</html>