[Cabrillo export] Added serial + exchange to output

这个提交包含在:
Andreas 2023-04-14 14:53:53 +02:00
父节点 01c342f393
当前提交 e9dad1d12c

查看文件

@ -1,5 +1,6 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
// Format according to https://wwrof.org/cabrillo/cabrillo-qso-data/
class Cabrilloformat {
public function header($contest_id, $callsign, $claimed_score,
@ -123,7 +124,19 @@ class Cabrilloformat {
$time = str_replace(":","",$time);
// Format according to https://wwrof.org/cabrillo/cabrillo-qso-data/
if ($qso->COL_STX_STRING != "") {
if($qso->COL_SRX_STRING != "") {
$rx_string = $qso->COL_SRX_STRING;
} else {
$rx_string = "--";
}
return "QSO: ".sprintf("%6s", $freq)." ".$mode." ".$time." ".sprintf("%-13s", $qso->station_callsign)." ".sprintf("%3s", $qso->COL_RST_SENT)." ".sprintf("%-6s", sprintf("%03d", $qso->COL_STX))." ".$qso->COL_STX_STRING . " " .sprintf("%-13s", $qso->COL_CALL)." ".sprintf("%3s", $qso->COL_RST_RCVD)." ".sprintf("%-6s", sprintf("%03d", $qso->COL_SRX))." " . $rx_string . " 0\n";
} else {
return "QSO: ".sprintf("%6s", $freq)." ".$mode." ".$time." ".sprintf("%-13s", $qso->station_callsign)." ".sprintf("%3s", $qso->COL_RST_SENT)." ".sprintf("%-6s", sprintf("%03d", $qso->COL_STX))." ".sprintf("%-13s", $qso->COL_CALL)." ".sprintf("%3s", $qso->COL_RST_RCVD)." ".sprintf("%-6s", sprintf("%03d", $qso->COL_SRX))." 0\n";
}
}
}