mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Also removed related stuff
This commit is contained in:
@@ -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');
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user