-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsummer_camp_data_page.html
389 lines (318 loc) · 17.8 KB
/
summer_camp_data_page.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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Group 48.3 (database) webpage</title>
</head>
<body>
<h1>YRES Summer Camp Schedule Planner</h1>
<div id="row" style="display:flex;">
<div id="left-col" style="flex:50%;">
<!-- Inserts start here -->
<h2> Insertions: </h2>
<h3>Enter the details of a new user for the app.</h3>
<form id="user-input">
<div>
<label for="username">Username:</label>
<input type="text" id="username" name="username" required>
</div>
<div>
<label for="password">Password:</label>
<input type="text" id="password" name="password" required>
</div>
<div>
<input type="submit" id="submit-btn-user" value="Submit" required>
</div>
</form>
<h3>Enter the details of a student.</h3>
<form id="student-input">
<div>
<label for="first-name">First name:</label>
<input type="text" id="first-name" name="first_name" required>
</div>
<div>
<label for="last-name">Last name:</label>
<input type="text" id="last-name" name="last_name" required>
</div>
<div>
<label for="SID">Student Number:</label>
<input type="number" id="SID" name="SID" required>
</div>
<div>
<label for="grade">Academic grade:</label>
<input type="number" id="grade" name="grade" required>
</div>
<div>
<p>Gender:</p>
<input type="radio" id="male" name="gender" value="male" required>
<label for="male">Male</label>
<input type="radio" id="female" name="gender" value="female" required>
<label for="female">Female</label>
<input type="radio" id="other" name="gender" value="other" required>
<label for="other">Other</label>
</div>
<div>
<input type="submit" id="submit-btn-student" value="Submit" required>
</div>
</form>
<h3>Enter the details of any preferences for students to be apart/together (the students must have already both been inputted).</h3>
<h3>The first student number must be larger than the second.</h3>
<form id="student-preference">
<div>
<label for="first-pref-SID">First Student Number:</label>
<input type="number" id="first-pref-SID" name="first_pref_SID" required>
</div>
<div>
<label for="second-pref-SID">Second Student Number:</label>
<input type="number" id="second-pref-SID" name="second_pref_SID" required>
</div>
<div>
<p>Should they stay apart or together?:</p>
<input type="radio" id="apart" value='true' name="relationship" required>
<label for="apart">Apart</label>
<input type="radio" id="together" value='false' name="relationship" required>
<label for="together">Together</label>
</div>
<div>
<input type="submit" id="submit-btn-preference" value="Submit" required>
</div>
</form>
<h3>Enter the details of a room.</h3>
<form id="room-input">
<div>
<label for="room-num">Room Number:</label>
<input type="number" id="room-num" name="room_num" required>
</div>
<div>
<p>Room Type:</p>
<input type="radio" id="classroom" name="room_type" value="classroom" required>
<label for="classroom">Classroom</label>
<input type="radio" id="library" name="room_type" value="library" required>
<label for="library">Library</label>
<input type="radio" id="gym" name="room_type" value="gym" required>
<label for="gym">Gymnasium</label>
<input type="radio" id="outside" name="room_type" value="outside" required>
<label for="outside">Outside</label>
<input type="radio" id="computer" name="room_type" value="compLab" required>
<label for="computer">Computer Room</label>
</div>
<div>
<input type="submit" id="submit-btn-room" value="Submit" required>
</div>
</form>
<h3>Enter the details of a camp counselor.</h3>
<form id="counselor-input">
<div>
<label for="counselor-firstname">First Name:</label>
<input type="text" id="counselor-firstname" name="counselor_firstname" required>
</div>
<div>
<label for="counselor-lastname">Last Name:</label>
<input type="text" id="counselor-lastname" name="counselor_lastname" required>
</div>
<div>
<input type="submit" id="submit-btn-counselor" value="Submit" required>
</div>
</form>
<!-- Updates start here -->
<h2> Updates: </h2>
<h3>Enter the username of an existing user and the password to change it too.</h3>
<form id="user-update">
<div>
<label for="usernameUpdate">Username:</label>
<input type="text" id="usernameUpdate" name="usernameUpdate" required>
</div>
<div>
<label for="passwordUpdate"> Password:</label>
<input type="text" id="passwordUpdate" name="passwordUpdate" required>
</div>
<div>
<input type="submit" id="submit-btn-userUpdate" value="Submit" required>
</div>
</form>
<h3>Enter the SID of an existing student and their new details.</h3>
<form id="student-update">
<div>
<label for="SID-update">Student Number:</label>
<input type="number" id="SID-update" name="SID_update" required>
</div>
<div>
<label for="first-name-update">First name:</label>
<input type="text" id="first-name-update" name="first_name_update" required>
</div>
<div>
<label for="last-name-update">Last name:</label>
<input type="text" id="last-name-update" name="last_name_update" required>
</div>
<div>
<label for="gradeUpdate">Academic grade:</label>
<input type="number" id="gradeUpdate" name="gradeUpdate" required>
</div>
<div>
<p>Gender:</p>
<input type="radio" id="maleUpdate" name="genderUpdate" value="male" required>
<label for="maleUpdate">Male</label>
<input type="radio" id="femaleUpdate" name="genderUpdate" value="female" required>
<label for="femaleUpdate">Female</label>
<input type="radio" id="otherUpdate" name="genderUpdate" value="other" required>
<label for="otherUpdate">Other</label>
</div>
<div>
<input type="submit" id="submit-btn-student-update" value="Submit" required>
</div>
</form>
<h3>Enter the two SIDs of students with a preference already set, and the new way they should be placed.</h3>
<h3>The first student number must be larger than the second.</h3>
<form id="student-preference-update">
<div>
<label for="first-pref-SID-update">First Student Number:</label>
<input type="number" id="first-pref-SID-update" name="first_pref_SID_update" required>
</div>
<div>
<label for="second-pref-SID-update">Second Student Number:</label>
<input type="number" id="second-pref-SID-update" name="second_pref_SID_update" required>
</div>
<div>
<p>Should they stay apart or together?:</p>
<input type="radio" id="apartUpdate" value='true' name="relationshipUpdate" required>
<label for="apartUpdate">Apart</label>
<input type="radio" id="togetherUpdate" value='false' name="relationshipUpdate" required>
<label for="togetherUpdate">Together</label>
</div>
<div>
<input type="submit" id="submit-btn-preference-update" value="Submit" required>
</div>
</form>
<h3>Enter the number of an already inputted room, and the new details going forward for it.</h3>
<form id="room-update">
<div>
<label for="room-num-update">Room Number:</label>
<input type="number" id="room-num-update" name="room_num_update" required>
</div>
<div>
<p>Room Type:</p>
<input type="radio" id="classroomUpdate" name="room_type_update" value="classroom" required>
<label for="classroomUpdate">Classroom</label>
<input type="radio" id="libraryUpdate" name="room_type_update" value="library" required>
<label for="libraryUpdate">Library</label>
<input type="radio" id="gymUpdate" name="room_type_update" value="gym" required>
<label for="gymUpdate">Gymnasium</label>
<input type="radio" id="outsideUpdate" name="room_type_update" value="outside" required>
<label for="outsideUpdate">Outside</label>
<input type="radio" id="computerUpdate" name="room_type_update" value="compLab" required>
<label for="computerUpdate">Computer Room</label>
</div>
<div>
<input type="submit" id="submit-btn-room-update" value="Submit" required>
</div>
</form>
<h3>Enter the CID of an already inputted counselor (check inputted counselors if not sure), and their new details.</h3>
<form id="counselor-update">
<div>
<label for="CID-update">Counselor Number:</label>
<input type="number" id="CID-update" name="CID_update" required>
</div>
<div>
<label for="counselor-firstname-update">First Name:</label>
<input type="text" id="counselor-firstname-update" name="counselor_firstname_update" required>
</div>
<div>
<label for="counselor-lastname-update">Last Name:</label>
<input type="text" id="counselor-lastname-update" name="counselor_lastname_update" required>
</div>
<div>
<input type="submit" id="submit-btn-counselor-update" value="Submit" required>
</div>
</form>
<!-- Deletes start here -->
<h2> Deletions: </h2>
<h3>Enter the username of a user to be deleted.</h3>
<form id="user-delete">
<div>
<label for="usernameDelete">Username:</label>
<input type="text" id="usernameDelete" name="usernameDelete" required>
</div>
<div>
<input type="submit" id="submit-btn-user-delete" value="Submit" required>
</div>
</form>
<h3>Enter the SID of a student to be deleted.</h3>
<form id="student-delete">
<div>
<label for="SID-Delete">Student Number:</label>
<input type="number" id="SID-Delete" name="SID_Delete" required>
</div>
<div>
<input type="submit" id="submit-btn-student-delete" value="Submit" required>
</div>
</form>
<h3>Enter the SIDs of two students whose relative placement placement should be deleted.</h3>
<h3>The first student number must be larger than the second.</h3>
<form id="student-preference-delete">
<div>
<label for="first-pref-SID-delete">First Student Number:</label>
<input type="number" id="first-pref-SID-delete" name="first_pref_SID_delete" required>
</div>
<div>
<label for="second-pref-SID-delete">Second Student Number:</label>
<input type="number" id="second-pref-SID-delete" name="second_pref_SID_delete" required>
</div>
<div>
<input type="submit" id="submit-btn-preference-delete" value="Submit" required>
</div>
</form>
<h3>Enter the number of a room to be deleted.</h3>
<form id="room-delete">
<div>
<label for="room-num-delete">Room Number:</label>
<input type="number" id="room-num-delete" name="room_num_delete" required>
</div>
<div>
<input type="submit" id="submit-btn-room-delete" value="Submit" required>
</div>
</form>
<h3>Enter the CID of a camp counselor to be deleted (check inputted counselors if not sure of value).</h3>
<form id="counselor-delete">
<div>
<label for="CID-delete">Counselor Number:</label>
<input type="number" id="CID-delete" name="CID_delete" required>
</div>
<div>
<input type="submit" id="submit-btn-counselor-delete" value="Submit" required>
</div>
</form>
</div>
<!-- Selects start here -->
<div id="right-col" style="max-width:50%; flex:50%;">
<h2> Selections: </h2>
<form id="GetUsers">
<div>
<input type="submit" id="get-users" value="Get users" required>
</div>
</form>
<form id="GetStudents">
<div>
<input type="submit" id="get-students" value="Get students" required>
</div>
</form>
<form id="GetPreferences">
<div>
<input type="submit" id="get-preferences" value="Get preferences" required>
</div>
</form>
<form id="GetRooms">
<div>
<input type="submit" id="get-rooms" value="Get rooms" required>
</div>
</form>
<form id="GetCounselors">
<div>
<input type="submit" id="get-counselors" value="Get counselors" required>
</div>
</form>
<p id="returnedData" style="max-width:100%;"></p>
</div>
</div>
<script src="summer_camp_data.js"></script>
</body>
</html>