Summe & gm pro Spieler
This commit is contained in:
parent
196fc337e0
commit
85d2cf4be2
|
@ -43,7 +43,8 @@ if(!empty($protocol)) {
|
||||||
'datum' => $res['datetime'][$i],
|
'datum' => $res['datetime'][$i],
|
||||||
'gold' => (int)str_replace('.', '', $res['gm'][$i]),
|
'gold' => (int)str_replace('.', '', $res['gm'][$i]),
|
||||||
'amt' => $res['amt'][$i],
|
'amt' => $res['amt'][$i],
|
||||||
'laeufer' => $laeufer
|
'laeufer' => $laeufer,
|
||||||
|
'a' => (int)str_replace('.', '', $res['gm'][$i]) / (count($laeufer) + 1)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -45,7 +45,8 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Datum</th>
|
<th>Datum</th>
|
||||||
<th>Goldmünzen</th>
|
<th>Summe</th>
|
||||||
|
<th>à Spieler</th>
|
||||||
<th>Amtsteher</th>
|
<th>Amtsteher</th>
|
||||||
<th>Läufer</th>
|
<th>Läufer</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -55,6 +56,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td style="vertical-align: top">{{ $tmp['datum'] }}</td>
|
<td style="vertical-align: top">{{ $tmp['datum'] }}</td>
|
||||||
<td style="vertical-align: top">{{ $tmp['gold'] }} gm</td>
|
<td style="vertical-align: top">{{ $tmp['gold'] }} gm</td>
|
||||||
|
<td style="vertical-align: top">{{ $tmp['a'] }} gm</td>
|
||||||
<td style="vertical-align: top">{{ $tmp['amt'] }}</td>
|
<td style="vertical-align: top">{{ $tmp['amt'] }}</td>
|
||||||
<td style="vertical-align: top">{{ implode(', ', $tmp['laeufer']) }}</td>
|
<td style="vertical-align: top">{{ implode(', ', $tmp['laeufer']) }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -97,7 +99,7 @@
|
||||||
for(let entry of vm.list) {
|
for(let entry of vm.list) {
|
||||||
// fill vmlist
|
// fill vmlist
|
||||||
const tr = document.createElement('tr');
|
const tr = document.createElement('tr');
|
||||||
tr.innerHTML = `<td>${entry.datum}</td><td>${entry.gold} gm</td><td>${entry.amt}</td><td>${entry.laeufer.join(', ')}</td>`;
|
tr.innerHTML = `<td>${entry.datum}</td><td>${entry.gold} gm</td><td>${entry.a} gm</td><td>${entry.amt}</td><td>${entry.laeufer.join(', ')}</td>`;
|
||||||
vmlist.insertAdjacentElement('beforeend', tr);
|
vmlist.insertAdjacentElement('beforeend', tr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user