Ero sivun ”Widget:LeväseurantataulukkoALL” versioiden välillä
Järvi-meriwikistä
Rivi 161: | Rivi 161: | ||
output += '<thead><tr>'; | output += '<thead><tr>'; | ||
output += '<th class="headerSort" style="text-align: left;"></th>'; | output += '<th class="headerSort" style="text-align: left;"></th>'; | ||
− | output += '<th class="headerSort" style="text-align: left;">Vesistö</th>'; | + | output += '<th class="headerSort" style="text-align: left;">Vesistö</th>'; |
+ | output += '<th class="headerSort" style="text-align: left;">Nimi</th>'; | ||
output += '<th class="headerSort" style="text-align: left;">Päävesistö</th>'; | output += '<th class="headerSort" style="text-align: left;">Päävesistö</th>'; | ||
− | |||
output += '<th class="headerSort" style="text-align: left;">Kunta</th>'; | output += '<th class="headerSort" style="text-align: left;">Kunta</th>'; | ||
Rivi 190: | Rivi 190: | ||
} | } | ||
output += '<td class="smwtype_wpg"><a href="' + resultArr[c].wBodyUrl + '">' + resultArr[c].wBody + '</a></td>'; | output += '<td class="smwtype_wpg"><a href="' + resultArr[c].wBodyUrl + '">' + resultArr[c].wBody + '</a></td>'; | ||
− | |||
− | |||
nimi = resultArr[c].site; | nimi = resultArr[c].site; | ||
Rivi 203: | Rivi 201: | ||
} | } | ||
output += '<td class="smwtype_wpg">' + nimi + '</td>'; | output += '<td class="smwtype_wpg">' + nimi + '</td>'; | ||
+ | |||
+ | basinNr = resultArr[c].basin.split( '(' )[1] + resultArr[c].basin.split( ')' )[0]; | ||
+ | output += '<td data-sort-value="' + basinNr + '" class="smwtype_qty">' + resultArr[c].basin + '</td>'; | ||
+ | |||
output += '<td class="smwtype_wpg"><a href="' + resultArr[c].munUrl + '">' + resultArr[c].mun + '</a></td>'; | output += '<td class="smwtype_wpg"><a href="' + resultArr[c].munUrl + '">' + resultArr[c].mun + '</a></td>'; | ||
for (var d = minWeek; d < (maxWeek+1); d++) { | for (var d = minWeek; d < (maxWeek+1); d++) { |