Also removed related stuff

This commit is contained in:
phl0
2025-10-29 21:23:40 +01:00
parent f5ac9ee3a7
commit 577326eb47
2 changed files with 0 additions and 82 deletions

View File

@@ -2801,59 +2801,6 @@ class Logbook_model extends CI_Model {
return $query;
}
function cfd_get_all_qsos($fromdate, $todate) {
$binding = [];
$this->load->model('logbooks_model');
$logbooks_locations_array = $this->logbooks_model->list_logbook_relationships($this->session->userdata('active_station_logbook'));
// If date is set, we add it to the where-statement
if ($fromdate ?? '' != "") {
$from = " AND date(q.COL_TIME_ON) >= ?";
$binding[] = $fromdate;
} else {
$from = "";
}
if ($todate ?? '' != "") {
$till = " AND date(q.COL_TIME_ON) <= ?";
$binding[] = $todate;
} else {
$till = '';
}
$location_list = "'" . implode("','", $logbooks_locations_array) . "'";
$sql = "SELECT
dx.prefix,dx.name,
CASE
WHEN q.col_mode = 'CW' THEN 'C'
WHEN mo.qrgmode = 'DATA' THEN 'R'
WHEN mo.qrgmode = 'SSB' THEN 'F'
ELSE mo.qrgmode
END AS mode,q.col_band as band,
COUNT(1) as cnfmd
FROM " . $this->config->item('table_name') . " q
INNER JOIN
dxcc_entities dx ON (dx.adif = q.COL_DXCC)
INNER JOIN
adif_modes mo ON (mo.mode = q.COL_MODE)
inner join bands b on (b.band=q.COL_BAND)
WHERE
(q.COL_QSL_RCVD = 'Y'
OR q.COL_LOTW_QSL_RCVD = 'Y'
OR q.COL_EQSL_QSL_RCVD = 'Y')
AND q.station_id in (" . $location_list . ")
AND (b.bandgroup='hf' or b.band = '6m' or b.band = '160m') " . ($from ?? '') . " " . ($till ?? '') . "
GROUP BY dx.prefix,dx.name , CASE
WHEN q.col_mode = 'CW' THEN 'C'
WHEN mo.qrgmode = 'DATA' THEN 'R'
WHEN mo.qrgmode = 'SSB' THEN 'F'
ELSE mo.qrgmode
END,q.COL_BAND order by dx.prefix asc, q.col_band desc";
$query = $this->db->query($sql, $binding);
return $query;
}
function totals_year() {
$this->load->model('logbooks_model');

View File

@@ -1,29 +0,0 @@
<div class="container">
<br>
<h2>CFD</h2>
<div class="card">
<div class="card-header">
<?= sprintf(__("Export of CFD-File for DARC-Toplist (See %s)"), "<a href='https://dcl.darc.de/toplist' target='_blank'>https://dcl.darc.de/toplist</a>"); ?>
</div>
<div class="card-body">
<form class="form" action="<?php echo site_url('cfdexport/export'); ?>" method="post" enctype="multipart/form-data">
<div class="row">
<div class="mb-3 col-md-3">
<label for="from"><?= __("From date") . ": " ?></label>
<input name="from" id="from" type="date" class="form-control w-auto">
</div>
<div class="mb-3 col-md-3">
<label for="to"><?= __("To date") . ": " ?></label>
<input name="to" id="to" type="date" class="form-control w-auto">
</div>
</div>
<br>
<button type="submit" class="btn btn-primary mb-2" value="Export"><?= __("Export"); ?></button>
</form>
</div>
</div>
</div>