Web M&M
https://mam.matfyz.cz
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
3.1 KiB
70 lines
3.1 KiB
<table class='vysledkovka'>
|
|
<tr class='border-b'>
|
|
<th class='border-r'>#
|
|
<th class='border-r'>Jméno
|
|
{% for p in problemy %}
|
|
<th class='border-r' id="problem{{ forloop.counter }}">{# <a href="{{ p.verejne_url }}"> #}{{ p.kod_v_rocniku }}{# </a> #}
|
|
|
|
{# TODELETE #}
|
|
{% for podproblemy in podproblemy_iter.next %}
|
|
<th class='border-r podproblem{{ forloop.parentloop.counter }} podproblem'>{# <a href="{{ podproblemy.verejne_url }}"> #}{{ podproblemy.kod_v_rocniku }}{# </a> #}
|
|
{% endfor %}
|
|
{# TODELETE #}
|
|
|
|
{% endfor %}
|
|
{% if ostatni %}<th class='border-r'>Ostatní {% endif %}
|
|
|
|
{# TODELETE #}
|
|
{% for podproblemy in podproblemy_iter.next %}
|
|
<th class='border-r podproblem{{ problemy.len }} podproblem'>{# <a href="{{ podproblemy.verejne_url }}"> #}{{ podproblemy.kod_v_rocniku }}{# </a> #}
|
|
{% endfor %}
|
|
{# TODELETE #}
|
|
|
|
|
|
<th class='border-r'>Za číslo
|
|
<th class='border-r'>Za ročník
|
|
<th class='border-r'>Odjakživa
|
|
{% for rv in radky_vysledkovky %}
|
|
<tr>
|
|
<td class='border-r'>{% autoescape off %}{{ rv.poradi }}{% endautoescape %}
|
|
<th class='border-r'>
|
|
{% if rv.titul %}
|
|
{{ rv.titul }}<sup>MM</sup>
|
|
{% endif %}
|
|
{{ rv.resitel.osoba.plne_jmeno }}
|
|
{% for b in rv.body_problemy_sezn %}
|
|
<td class='border-r'>{{ b }}
|
|
|
|
{# TODELETE #}
|
|
{% for body_podproblemu in rv.body_podproblemy_iter.next %}
|
|
<td class='border-r podproblem{{ forloop.parentloop.counter }} podproblem'>{{ body_podproblemu }}
|
|
{% endfor %}
|
|
{# TODELETE #}
|
|
|
|
{% endfor %}
|
|
<td class='border-r'>{{ rv.body_cislo }}
|
|
<td class='border-r'><b>{{ rv.body_rocnik }}</b>
|
|
<td class='border-r'>{{ rv.body_celkem_odjakziva }}
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
<p>Po kliknutí na políčko v záhlaví tabulky se u daného problému zobrazí (/skryje) detailní rozpis, za které podproblémy řešitelé dostali body.</p>
|
|
|
|
{# TODELETE #}
|
|
<script>
|
|
{% for p in problemy %}
|
|
diplayed{{ forloop.counter }} = false;
|
|
$(".podproblem{{ forloop.counter }}").css("display", "none")
|
|
$("#problem{{ forloop.counter }}")[0].addEventListener('click', podproblem{{ forloop.counter }});
|
|
function podproblem{{ forloop.counter }}(event) {
|
|
diplayed{{ forloop.counter }} = !diplayed{{ forloop.counter }};
|
|
if (diplayed{{ forloop.counter }}) {
|
|
$(".podproblem{{ forloop.counter }}").css("display", "");
|
|
} else {
|
|
$(".podproblem{{ forloop.counter }}").css("display", "none");
|
|
}
|
|
}
|
|
{% endfor %}
|
|
</script>
|
|
{# TODELETE #}
|
|
|