summaryrefslogtreecommitdiff
path: root/http/pkle2018-test.php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2019-01-20 13:20:52 +0100
committeremkael <emkael@tlen.pl>2019-01-20 13:20:52 +0100
commit080dea366e57db032e1928019f7ea599f11dabea (patch)
tree4c5dcc0b577521d842ee65f5cd9ee96487a41ce8 /http/pkle2018-test.php
parent8227f1561781e8ed1b3acca140bb611559e25a98 (diff)
Detailed output structure
Diffstat (limited to 'http/pkle2018-test.php')
-rw-r--r--http/pkle2018-test.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/http/pkle2018-test.php b/http/pkle2018-test.php
index 3826d3a..9b056c1 100644
--- a/http/pkle2018-test.php
+++ b/http/pkle2018-test.php
@@ -68,11 +68,11 @@ function display() {
var sqlTeamy = ['UPDATE `addons` SET `mastr` = 0;'];
var pklHTML = ['<tr><td class="t">Miejsce</td><td class="t">&nbsp;&nbsp;&nbsp;PKL&nbsp;&nbsp;&nbsp;</td></tr>'];
for (var place = 1; place <= parseInt(document.getElementsByName('iuc')[0].value); place++) {
- sqlPary.push('UPDATE `dodatki` SET `pkl` = ' + response[place] + ' WHERE `miejsce` = ' + place + ';');
- sqlTeamy.push('UPDATE `addons` SET `mastr` = ' + response[place] + ' WHERE `place` = ' + place + ';');
- pklHTML.push('<tr><td class="t">' + place + '</td><td class="t">' + response[place] + '</td></tr>');
+ sqlPary.push('UPDATE `dodatki` SET `pkl` = ' + response.points[place] + ' WHERE `miejsce` = ' + place + ';');
+ sqlTeamy.push('UPDATE `addons` SET `mastr` = ' + response.points[place] + ' WHERE `place` = ' + place + ';');
+ pklHTML.push('<tr><td class="t">' + place + '</td><td class="t">' + response.points[place] + '</td></tr>');
}
- pklHTML.push('<tr><td class="p">SUMA PKL</td><td class="t">' + response['sum'] + '</td></tr>');
+ pklHTML.push('<tr><td class="p">SUMA PKL</td><td class="t">' + response.sum + '</td></tr>');
document.getElementById('outsql').innerHTML = sqlPary.join("\n");
document.getElementById('outsql2').innerHTML = sqlTeamy.join("\n");
document.getElementById("pkltable").innerHTML = pklHTML.join("");