-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplayers.html
176 lines (137 loc) · 5.43 KB
/
players.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
{%extends "header.html"%}
{%block body%}
<code>{{ debug }}</code>
<form action="{{ url_for('players') }}" method="POST">
<script type="text/javascript">
function updateWeight(val) {
document.getElementById('weightspan').innerHTML=val;
}
</script>
<script type="text/javascript">
function updateHeight(val) {
document.getElementById('heightspan').innerHTML=val;
}
</script>
<script type="text/javascript">
function updateAge(val) {
document.getElementById('agespan').innerHTML=val;
}
</script>
<script type="text/javascript">
function updateAssists(val) {
document.getElementById('assistsspan').innerHTML=val;
}
</script>
<script type="text/javascript">
function updatePts(val) {
document.getElementById('ptsspan').innerHTML=val;
}
</script>
<script type="text/javascript">
function updatePim(val) {
document.getElementById('pimspan').innerHTML=val;
}
</script>
<div class="form-row text-danger font-weight-bold" >
<div class="form-group col-md-2">
<label for="pname">Player</label>
<select class="form-control form-control-sm" name="pname">
<option></option>
{% for player in pname_drop %}
<option>{{ player }}</option>
{%endfor%}
</select>
</div>
<div class="form-group col-md-2">
<label for="tmID">Team</label>
<select class="form-control form-control-sm" name="tmID">
<option></option>
{% for team in teamdrop %}
<option>{{ team }}</option>
{%endfor%}
</select>
</div>
<div class="form-group col-md-1">
<label for="lgID">League</label>
<select class="form-control form-control-sm" name="lgID" value="{{ lgID }}">
<option>ALL</option>
<option>WHA</option>
<option>NHL</option>
<option>WCHL</option>
<option>NHA</option>
<option>PCHA</option>
</select>
</div>
<div class="form-group col-md-1">
<label for="lgID">Season</label>
<select class="form-control form-control-sm" name="year">
<option></option>
{% for year1 in years %}
{% if year1 == year %}
<option selected="selected">{{ year1 }}</option>
{%else%}
<option >{{ year1 }}</option>
{%endif%}
{%endfor%}
</select>
</div>
<div class="form-group col-md-1">
<label for="position">Position</label>
<select class="form-control form-control-sm" name="position">
<option></option>
<option>D</option>
<option>L</option>
<option>R</option>
<option>C</option>
<option>G</option>
</select>
</div>
<div class="form-group col-md-1">
<label for="catch">Catch</label>
<select class="form-control form-control-sm" name="catch">
<option></option>
<option>L</option>
<option>R</option>
</select>
</div>
</div>
<div class="form-row" >
<div class="form-group col-md-3">
125<input type="range" name="weight" value='125' max='265' min='125' onchange="updateWeight(this.value);">265 <label for="weight">Weight >= <span id="weightspan"></span></label>
</div>
<div class="form-group col-md-3">
63 <input type="range" name="height" value='63' max='81' min='63' onchange="updateHeight(this.value);"> 81 <label for="height">Height >= <span id="heightspan"></span></label>
</div>
<div class="form-group col-md-3">
16 <input type="range" name="age" value='51' max='51' min='16' onchange="updateAge(this.value);"> 51 <label for="age">Age <= <span id="agespan"></span></label>
</div>
<div class="form-row" >
<div class="form-group col-md-2.5">
0 <input type="range" name="assists" value='0' max='163' min='0' onchange="updateAssists(this.value);">163<span id="assistsspan"></span>
</div>
<div class="form-group col-md-2.5">
0 <input type="range" name="pts" value='0' max='215' min='0' onchange="updatePts(this.value);">215<span id="ptsspan"></span>
</div>
<div class="form-group col-md-2.5">
0 <input type="range" name="pim" value='0' max='472' min='0' onchange="updatePim(this.value);">472<span id="pimspan"></span>
</div>
</div>
<input type="submit" value="Submit" class="btn btn-lg btn-danger">
</form>
<table class="table table-striped table-sm table-responsive header-fixed" style="display: block; max-height: 600px; overflow-y: auto; -ms-overflow-style: -ms-autohiding-scrollbar;">
<thead class="thead-light">
<tr class="table-dark">
<td scope="col">Name</td><td scope="col">League</td><td scope="col">Team</td><td scope="col">Season</td><td scope="col">Height</td><td scope="col">Weight</td><td scope="col">Shoot Catch</td><td scope="col">Postion</td><td scope="col">Age by Season</td><td scope="col">Games Played</td><td scope="col">Assists</td><td scope="col">Pts</td><td scope="col">PIM</td><td scope="col">PostGP</td><td scope="col">PostA</td><td scope="col">PostPts</td><td scope="col">PostPIM</td>
</tr>
</thead>
<tbody>
{% for row in table%}
<tr>
{% for d in row %}
<td>{{ d }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
{% endblock%}