136 lines
4.3 KiB
HTML
136 lines
4.3 KiB
HTML
<f:asset.script identifier="watterrangliste">
|
|
|
|
function render_gesamt(data, row) {
|
|
if(row.head == 1)
|
|
return '<td class="paarlaufheader">'+ data+ '</td>'
|
|
else
|
|
return '<td>'+ data+ '</td>'
|
|
}
|
|
$("#grid_paarlauf").jsGrid({
|
|
height: "auto",
|
|
width: "100%",
|
|
|
|
heading: true,
|
|
filtering: false,
|
|
inserting: false,
|
|
editing: false,
|
|
selecting: true,
|
|
sorting: true,
|
|
paging: false,
|
|
pageLoading: false,
|
|
|
|
noDataContent: ' Athleten wählen ',
|
|
|
|
loadIndication: true,
|
|
loadIndicationDelay: 500,
|
|
loadMessage: " Bitte, warten... ",
|
|
loadShading: true,
|
|
|
|
fields: [
|
|
{
|
|
title: '<img src="typo3conf/ext/watten/Resources/Public/Icons/User.svg" class="iconsize"><div class="xsmall">Kontrahenten</div>',
|
|
name: "teams",
|
|
type: "text",
|
|
width: "30%",
|
|
css: "firstcolumn",
|
|
cellRenderer: render_gesamt,
|
|
},
|
|
{
|
|
title: '<img src="typo3conf/ext/watten/Resources/Public/Icons/Hashtag.svg" class="iconsize"><div class="xsmall">Spiele</div>',
|
|
name: "spiele",
|
|
type: "text",
|
|
width: "6.5%",
|
|
css: "bold",
|
|
cellRenderer: render_gesamt
|
|
},
|
|
{
|
|
title: '<img src="typo3conf/ext/watten/Resources/Public/Icons/Thump-up.svg" class="iconsize"><div class="xsmall">Gesamt</div>',
|
|
name: "siege",
|
|
type: "text",
|
|
width: "6.5%",
|
|
css:"greenbold",
|
|
cellRenderer: render_gesamt
|
|
},
|
|
{
|
|
title: '<img src="typo3conf/ext/watten/Resources/Public/Icons/Thump-down.svg" class="iconsize"><div class="xsmall">Gesamt</div>',
|
|
name: "verloren",
|
|
type: "text",
|
|
width: "6.5%",
|
|
css:"rotbold",
|
|
cellRenderer: render_gesamt
|
|
},
|
|
{
|
|
title: '<img src="typo3conf/ext/watten/Resources/Public/Icons/Thump-up.svg" class="iconsize"><div class="xsmall">Siege</div>',
|
|
name: "sn",
|
|
type: "text",
|
|
width: "6.5%",
|
|
cellRenderer: render_gesamt
|
|
},
|
|
{
|
|
title: '<img src="typo3conf/ext/watten/Resources/Public/Icons/Thump-up.svg" class="iconsize"><div class="xsmall">Schneider</div>',
|
|
name: "ss",
|
|
type: "text",
|
|
width: "6.5%",
|
|
cellRenderer: render_gesamt
|
|
},
|
|
{
|
|
title: '<img src="typo3conf/ext/watten/Resources/Public/Icons/Thump-up.svg" class="iconsize"><div class="xsmall">R-Schneider</div>',
|
|
name: "srs",
|
|
type: "text",
|
|
width: "6.5%",
|
|
cellRenderer: render_gesamt
|
|
},
|
|
{
|
|
title: '<img src="typo3conf/ext/watten/Resources/Public/Icons/Gstrichen-win.svg" class="iconsize"><div class="xsmall">Gstrichen</div>',
|
|
name: "sg",
|
|
type: "text",
|
|
width: "6.5%",
|
|
cellRenderer: render_gesamt
|
|
},
|
|
{
|
|
title: '<img src="typo3conf/ext/watten/Resources/Public/Icons/Thump-down.svg" class="iconsize"><div class="xsmall">Verloren</div>',
|
|
name: "vn",
|
|
type: "text",
|
|
width: "6.5%",
|
|
cellRenderer: render_gesamt
|
|
},
|
|
{
|
|
title: '<img src="typo3conf/ext/watten/Resources/Public/Icons/Thump-down.svg" class="iconsize"><div class="xsmall">Schneider</div>',
|
|
name: "vs",
|
|
type: "text",
|
|
width: "6.5%",
|
|
cellRenderer: render_gesamt
|
|
},
|
|
{
|
|
title: '<img src="typo3conf/ext/watten/Resources/Public/Icons/Thump-down.svg" class="iconsize"><div class="xsmall">R-Schneider</div>',
|
|
name: "vrs",
|
|
type: "text",
|
|
width: "6.5%",
|
|
cellRenderer: render_gesamt
|
|
},
|
|
{
|
|
title: '<img src="typo3conf/ext/watten/Resources/Public/Icons/Gstrichen-lose.svg" class="iconsize"><div class="xsmall">Gstrichen</div>',
|
|
name: "vg",
|
|
type: "text",
|
|
width: "6.5%",
|
|
cellRenderer: render_gesamt },
|
|
]
|
|
});
|
|
$(function() {
|
|
$.ajax({
|
|
url: "../index.php",
|
|
type: "GET",
|
|
data: {
|
|
application: "loadpaarlaufer",
|
|
tournament: $( "#tournament_paarlauf" ).val(),
|
|
teilnehmer_id: $( "#tournament_teilnehmer" ).val()
|
|
},
|
|
dataType : "json"
|
|
})
|
|
.done(function( response ) {
|
|
$("#grid_paarlauf").jsGrid({ data: response });
|
|
})
|
|
});
|
|
</f:asset.script>
|
|
<div id="grid_paarlauf"
|
|
class="pure-table"></div> |