wip
This commit is contained in:
1 parent
ec5109b1a9
commit
80ec31ddc2
1 file changed
+17
-6
@@ -430,14 +430,25 @@ class BoardDispatcher extends Component implements HasActions, HasSchemas, HasTa
|
|||||||
// "snt" => 0
|
// "snt" => 0
|
||||||
// "tsh" => 0
|
// "tsh" => 0
|
||||||
// "crd" => 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";
|
$copystring = implode("\t", $header) . "\n";
|
||||||
foreach ($this->sourceRecords as $row) {
|
foreach ($this->sourceRecords as $row) {
|
||||||
unset($row['id']);
|
$tmp = [];
|
||||||
unset($row['position_area']);
|
$tmp[] = $row['name'];
|
||||||
unset($row['player_color']);
|
$tmp[] = $row['preferred_foot'];
|
||||||
unset($row['timed_color']);
|
$tmp[] = $row['events_played'];
|
||||||
$copystring .= implode("\t", $row) . "\n";
|
$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`)");
|
$this->js("navigator.clipboard.writeText(`$copystring`)");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user