0) {
$station_id = '';
$tablebody = '';
$requester = '';
$first = true;
$second = true;
foreach ($result as $qso) {
if ($station_id != $qso->station_id) {
if (!$first) {
write_table($tablebody);
$tablebody = '';
echo '
';
}
insert_station_data($qso);
$first = false;
}
if ($requester != $qso->requestcallsign) {
if (!$second) {
write_table($tablebody);
}
$second = false;
insert_requester($qso);
write_table_header();
$tablebody = '';
}
$tablebody .= insert_qso_data($qso);
$requester = $qso->requestcallsign;
$station_id = $qso->station_id;
}
write_table($tablebody);
echo '
';
} else {
echo 'No OQRS requests were found at this time.';
}
?>
Station id: station_id; ?>
Station callsign: station_callsign; ?>
Profile Name: station_profile_name; ?>
Country: station_country; ?>
Gridsquare: station_gridsquare; ?>
OQRS Request:
| Requester |
Time of request |
E-mail |
Note |
QSL route |
| requestcallsign ?> |
requesttime ?> |
email ?> |
note ?> |
qslroute; ?> |
id.'">
' . $qso->date . ' |
' . $qso->time . ' |
' . $qso->band . ' |
' . $qso->mode . ' |
|
|
|
';
return $tablebody;
}
function write_table_header() {
?>
| Date |
Time (UTC) |
Band |
Mode |
Check log |
Mark as done |
Delete |