This commit is contained in:
salam committed 2026-09-10 19:11:43 +02:00
1 parent ec5109b1a9
commit 80ec31ddc2
1 file changed
+17 -6
+17 -6
View File
@@ -430,14 +430,25 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
// "snt" => 0
// "tsh" => 0
// "crd" => 0
$header = ['name', 'position pre', 'foot', 'events', 'average min', 'position', 'on field', 'gls', 'fls', 'ofs', 'snt', 'tsh', 'crd'];
$header = ['name', 'foot', 'events', 'average min', 'position', 'on field', 'gls', 'fls', 'ofs', 'snt', 'tsh', 'crd'];
$copystring = implode("\t", $header) . "\n";
foreach ($this->sourceRecords as $row) {
unset($row['id']);
unset($row['position_area']);
unset($row['player_color']);
unset($row['timed_color']);
$copystring .= implode("\t", $row) . "\n";
$tmp = [];
$tmp[] = $row['name'];
$tmp[] = $row['preferred_foot'];
$tmp[] = $row['events_played'];
$tmp[] = $row['everage_minutes'];
if ($row['position'])
$tmp[] = $row['position'];
else
$tmp[] = $row['player_position'];
$tmp[] = $row['gls'];
$tmp[] = $row['fls'];
$tmp[] = $row['ofs'];
$tmp[] = $row['tsh'];
$tmp[] = $row['crd'];
$copystring .= implode("\t", $tmp) . "\n";
}
$this->js("navigator.clipboard.writeText(`$copystring`)");
}