-
Notifications
You must be signed in to change notification settings - Fork 5
/
Leader_Model.html
175 lines (156 loc) · 5.44 KB
/
Leader_Model.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
{% include "header.html" %}
<div style =' margin-left: 0% ; margin-top: 130px; margin-right: 0%; margin-bottom: 0px; color:black; overflow-y:hidden; overflow-x:hidden;' >
<center>
<h1>Leaderboard</h1>
<br>
<b> Select Table: </b>
<form action = "/switchboard/" method = "get">
<select name = 'Sort_by' onchange="this.form.submit();">
<option value= '0' > Model Average </option>
<option value= '1' > Test Case </option>
<option value= '2' > Scenario </option>
</select>
</form>
</center>
<br><br><br>
<div style ='padding-left:25px'>
<table border = "1" style = " font-size:15px; width:1000px" bgcolor = '#FFFF99'>
<tr style ='color:white;background-color:navy'>
<th style= 'height:50px'> <form name ='data' action = "/model_inst_sort/">
<Input type = 'hidden' name = "instname" value ='{{sortlst.0}}'>
<Input type = 'hidden' name = "modelname" value ='{{sortlst.1}}'>
<Input type = 'hidden' name = "avgrating" value ='{{sortlst.2}}'>
<Input type = 'hidden' name = "tstcomplete" value ='{{sortlst.3}}'>
<Input type = 'hidden' name = "page" value ='model_leader'>
<button type = 'submit' style ='font-size:17px;border:0px;
background-color:navy;color:white;cursor:pointer'>
Institution Name
{% if sortlst.0 == '1' %} ^ {% endif %}
{% if sortlst.0 == '2' %} v {% endif %}
{% if sortlst.0 == '0' %} - {% endif %}
</button>
</form>
</th>
<th style= 'height:50px'> <form name ='data' action = "/model_name_sort/">
<Input type = 'hidden' name = "instname" value ='{{sortlst.0}}'>
<Input type = 'hidden' name = "modelname" value ='{{sortlst.1}}'>
<Input type = 'hidden' name = "avgrating" value ='{{sortlst.2}}'>
<Input type = 'hidden' name = "tstcomplete" value ='{{sortlst.3}}'>
<Input type = 'hidden' name = "page" value ='model_leader'>
<button type = 'submit' style ='font-size:17px;border:0px; background-color:navy;color:white;cursor:pointer'>
Model Name
{% if sortlst.1 == '1' %} ^ {% endif %}
{% if sortlst.1 == '2' %} v {% endif %}
{% if sortlst.1 == '0' %} - {% endif %}
</button> </form>
</th>
<th style= 'height:50px'> <form name ='data' action = "/model_rtg_sort/">
<Input type = 'hidden' name = "instname" value ='{{sortlst.0}}'>
<Input type = 'hidden' name = "modelname" value ='{{sortlst.1}}'>
<Input type = 'hidden' name = "avgrating" value ='{{sortlst.2}}'>
<Input type = 'hidden' name = "tstcomplete" value ='{{sortlst.3}}'>
<Input type = 'hidden' name = "page" value ='model_leader'>
<button type = 'submit' style ='font-size:17px;border:0px; background-color:navy;color:white;cursor:pointer'>
Average Rating*
{% if sortlst.2 == '1' %} ^ {% endif %}
{% if sortlst.2 == '2' %} v {% endif %}
{% if sortlst.2 == '0' %} - {% endif %}
</button> </form>
</th>
<th style= 'height:50px'>
<form name ='data' action = "/model_tstscomp_sort/">
<Input type = 'hidden' name = "instname" value ='{{sortlst.0}}'>
<Input type = 'hidden' name = "modelname" value ='{{sortlst.1}}'>
<Input type = 'hidden' name = "avgrating" value ='{{sortlst.2}}'>
<Input type = 'hidden' name = "tstcomplete" value ='{{sortlst.3}}'>
<Input type = 'hidden' name = "page" value ='model_leader'>
<button type = 'submit' style ='font-size:17px;border:0px; background-color:navy;color:white;cursor:pointer'>
Tests Completed**
{% if sortlst.3 == '1' %} ^ {% endif %}
{% if sortlst.3 == '2' %} v {% endif %}
{% if sortlst.3 == '0' %} - {% endif %}
</button>
</form>
</th>
</tr>
{% for i in Scorelist %}
<tr style = " font-size:12px" >
<td>
<center>
<form action ='/Account_Profile/' name = 'inputform1'>
<input type = 'hidden' name ='Account' value = '{{i.4}}'>
<button type = 'submit'
style ='border:0px; background-color:#FFFF99;
color:blue; cursor:pointer'>
<u><b> {{i.0}} </b></u> </button>
</form>
</center>
</td>
<td>
<center>
<form action ='/model_Profile/' name = 'inputform2'>
<input type = 'hidden' name ='Account' value = '{{i.4}}'>
<input type = 'hidden' name ='Model' value = '{{i.1}}'>
<button type = 'submit' style ='border:0px; background-color:#FFFF99;color:blue;cursor:pointer'> <u><b> {{i.1}} </b></u> </button>
</form>
</center>
</td>
{% if i.7 %}
<td>
<p align='center'>
{{i.2}} [{{i.5}} - {{i.6}}]
</p>
</td>
<td>
<p style ='color:red', align='center'>
{{i.3}}
</p>
</td>
{% else %}
<td>
<p style =' font-size:15px', align="center">
<b>{{i.2}} [{{i.5}} - {{i.6}}]</b>
</p>
</td>
<td>
<p style =' font-size:15px', align='center'>
<b>{{i.3}}</b>
</p>
</td>
{% endif %}
</tr>
{% endfor %}
</table>
</div>
<center>
<br/>
*Ranges for N>1 are 95% confidence intervals of the mean.<br/>
**Red numbers indicate N<11.
<br/>
<br/>
<br/>
{% if superuser %}
<form action = "/admin_account/"
method = "get"
name = "Return to Account Menu">
<button name = "Return To Account Menu"
type = "submit"
value = "HTML">
Return To Admin Menu
</button>
</form>
{% else %}
<form action = "/account/"
method = "get"
name = "Return to Account Menu">
<button name = "Return To Account Menu"
type = "submit"
value = "HTML">
Return To Account Menu
</button>
</form>
{% endif %}
</center>
<br/>
</div>
{% include "footer.html" %}