From 1e7ead44dfe6c09ec8f3367e85c1849156e0ff90 Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 15 Feb 2019 21:24:43 +0300 Subject: KMP support in calculator form --- http/pkle2018-test.php | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/http/pkle2018-test.php b/http/pkle2018-test.php index c236c0d..ca8882a 100644 --- a/http/pkle2018-test.php +++ b/http/pkle2018-test.php @@ -90,6 +90,7 @@ function sendit(form) { over39_boards: parseInt(form.rozdan.value) } var tourtypes = ['tk', 'to', 'tp', 'ok', 'ok1', 'ot', 'gp', 'gg']; + tourtypes[101] = 'kmp'; params['manual[players_coefficient]'] = parseFloat(form.zaw.value); params['manual[min_points]'] = parseInt(form['min' + (8-params.tournament_rank) + (params.over39_boards ? '_' : '')].value); params['manual[tournament_weight]'] = parseInt(form['r' + tourtypes[params.tournament_rank] + (params.over39_boards ? '_' : '')].value); @@ -188,7 +189,9 @@ function submitit(ev){ OTP:
Regionalny:
Okręgowy:
- Klubowy: + Klubowy: + +

@@ -197,7 +200,8 @@ function submitit(ev){


- + + OTP∗∗∗∗:
OTP∗∗∗:
@@ -206,7 +210,9 @@ function submitit(ev){ OTP:
Regionalny:
Okręgowy:
- Klubowy: + Klubowy: + +

@@ -215,7 +221,8 @@ function submitit(ev){


- + + PKL za 1 m = śr.WK×WAGA + il.zaw×WSP @@ -246,7 +253,8 @@ function submitit(ev){


- +
+ UCZESTNIKÓW

W zależności od typu
ilość indywidualistów,
par lub teamów
-- cgit v1.2.3