-
Notifications
You must be signed in to change notification settings - Fork 0
/
matchView.php
231 lines (202 loc) · 9.7 KB
/
matchView.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
<title>Simple Match Form</title>
<html lang="en">
<?php include('navbar.php'); ?>
<body class="bg-body">
<div class="card bg-light" style="margin: 25px; padding: 10px">
<div class="card-header">Match View</div>
<div class="card-header">Match: 1</div>
<div class="card-body">
<div style="display: flex; align-items: center; justify-content: space-around;">
<div>
<label for="teamSelection" class="form-label">Team</label>
<select id="teamSelection" class="form-select" aria-label="Select Team">
<option value="" selected>Select Team</option>
<option value="Blue1">Blue Team 1</option>
<option value="Blue2">Blue Team 2</option>
<option value="Blue3">Blue Team 3</option>
<option value="Red1">Red Team 1</option>
<option value="Red2">Red Team 2</option>
<option value="Red3">Red Team 3</option>
</select>
</div>
<div class="col-md-4">
<!-- Auto -->
<table class="table table-bordered" style="text-align: center;">
<thead>
<tr>
<th scope="col" colspan="3" style="text-align: center;">Charging Station (Auto)</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="checkNoneAuto" disabled>
<label class="form-check-label" for="checkNoneAuto" style="opacity: 1;">
None
</label>
</div>
</td>
<td>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="checkUnbalancedAuto" disabled>
<label class="form-check-label" for="checkUnbalancedAuto" style="opacity: 1;">
Unbalanced
</label>
</div>
</td>
<td>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="checkBalancedAuto" checked disabled>
<label class="form-check-label" for="checkBalancedAuto" style="opacity: 1;">
Balanced
</label>
</div>
</td>
</tr>
</tbody>
</table>
<!-- Teleop -->
<table class="table table-bordered" style="text-align: center;">
<thead>
<tr>
<th scope="col" colspan="3" style="text-align: center;">Charging Station (Teleop)</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="checkNoneTeleop" disabled>
<label class="form-check-label" for="checkNoneTeleop" style="opacity: 1;">
None
</label>
</div>
</td>
<td>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="checkUnbalancedTeleop" checked disabled>
<label class="form-check-label" for="checkUnbalancedTeleop" style="opacity: 1;">
Unbalanced
</label>
</div>
</td>
<td>
<div class="form-check">
<input class="form-check-input" type="checkbox" value="" id="checkBalancedTeleop" disabled>
<label class="form-check-label" for="checkBalancedTeleop" style="opacity: 1;">
Balanced
</label>
</div>
</td>
</tr>
</tbody>
</table>
<table class="table table-bordered" style="text-align: center;">
<thead>
<tr>
<th scope="col" colspan="3">
<label class="form-check-label" for="checkMobility" style="opacity: 1;">
Mobility?
</label>
<input class="form-check-input" type="checkbox" value="" id="checkMobility" checked disabled>
</th>
<th scope="col" colspan="3" style="text-align: center;">
<label class="form-check-label" for="checkDefense" style="opacity: 1;">
Defense?
</label>
<input class="form-check-input" type="checkbox" value="" id="checkDefense" checked disabled>
</th>
<th scope="col" colspan="3" style="text-align: center;">
<label class="form-check-label" for="checkDNP" style="opacity: 1;">
DNP?
</label>
<input class="form-check-input" type="checkbox" value="" id="checkDNP" disabled>
</th>
</tr>
</thead>
</table>
</div>
<div class="col-md-4">
<table class="table table-bordered" style="text-align: center;">
<thead>
<tr>
<th scope="col" style="text-align: center;"></th>
<th scope="col" style="text-align: center;">Cube</th>
<th scope="col" style="text-align: center;">Cone</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Level 1
</td>
<td>
1
</td>
<td>
2
</td>
</tr>
<tr>
<td>
Level 2
</td>
<td>
1
</td>
<td>
1
</td>
</tr>
<tr>
<td>
Level 3
</td>
<td>
2
</td>
<td>
3
</td>
</tr>
</tbody>
</table>
<canvas id="myChart"></canvas>
</div>
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<script>
const ctx = document.getElementById('myChart');
new Chart(ctx, {
type: 'bar',
data: {
labels: ["Level 1", "Level 2", "Level 3"],
datasets: [{
label: "Cones",
fillColor: "blue",
data: [1, 1, 1]
},
{
label: "Cubes",
fillColor: "red",
data: [2, 1, 3]
},
]
},
options: {
barValueSpacing: 1,
scales: {
y: {
beginAtZero: true,
max: 3,
}
}
}
});
</script>
</body>
<?php include("footer.php"); ?>
</html>