[QRZ Logbook] Added mark QSOs as uploaded.
这个提交包含在:
父节点
38e9c18b37
当前提交
256dddc1f6
共有 4 个文件被更改,包括 113 次插入 和 27 次删除
|
|
@ -110,8 +110,6 @@ class adif extends CI_Controller {
|
||||||
|
|
||||||
$data['qsos'] = $this->adif_data->export_custom($this->input->post('from'), $this->input->post('to'));
|
$data['qsos'] = $this->adif_data->export_custom($this->input->post('from'), $this->input->post('to'));
|
||||||
|
|
||||||
//$this->load->view('adif/import', $data);
|
|
||||||
|
|
||||||
foreach ($data['qsos']->result() as $qso)
|
foreach ($data['qsos']->result() as $qso)
|
||||||
{
|
{
|
||||||
$this->adif_data->mark_lotw_sent($qso->COL_PRIMARY_KEY);
|
$this->adif_data->mark_lotw_sent($qso->COL_PRIMARY_KEY);
|
||||||
|
|
@ -120,6 +118,24 @@ class adif extends CI_Controller {
|
||||||
$this->load->view('adif/mark_lotw', $data);
|
$this->load->view('adif/mark_lotw', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function mark_qrz() {
|
||||||
|
// Set memory limit to unlimited to allow heavy usage
|
||||||
|
ini_set('memory_limit', '-1');
|
||||||
|
|
||||||
|
$this->load->model('adif_data');
|
||||||
|
|
||||||
|
$data['qsos'] = $this->adif_data->export_custom($this->input->post('from'), $this->input->post('to'));
|
||||||
|
|
||||||
|
$this->load->model('logbook_model');
|
||||||
|
|
||||||
|
foreach ($data['qsos']->result() as $qso)
|
||||||
|
{
|
||||||
|
$this->logbook_model->mark_qrz_qsos_sent($qso->COL_PRIMARY_KEY);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->load->view('adif/mark_qrz', $data);
|
||||||
|
}
|
||||||
|
|
||||||
public function export_lotw()
|
public function export_lotw()
|
||||||
{
|
{
|
||||||
// Set memory limit to unlimited to allow heavy usage
|
// Set memory limit to unlimited to allow heavy usage
|
||||||
|
|
|
||||||
|
|
@ -119,31 +119,7 @@
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<br><br>
|
<br><br>
|
||||||
<h5>Logbook of The World</h5>
|
|
||||||
<p><span class="badge badge-warning">Warning</span> If a date range is not selected then all QSOs will be marked!</p>
|
|
||||||
<form class="form" action="<?php echo site_url('adif/mark_lotw'); ?>" method="post" enctype="multipart/form-data">
|
|
||||||
<p class="card-text">From date:</p>
|
|
||||||
<div class="row">
|
|
||||||
<div class="input-group date col-md-3" id="datetimepicker3" data-target-input="nearest">
|
|
||||||
<input name="from" type="text" placeholder="DD/MM/YYYY" class="form-control datetimepicker-input" data-target="#datetimepicker1"/>
|
|
||||||
<div class="input-group-append" data-target="#datetimepicker3" data-toggle="datetimepicker">
|
|
||||||
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<p class="card-text">To date:</p>
|
|
||||||
<div class="row">
|
|
||||||
<div class="input-group date col-md-3" id="datetimepicker4" data-target-input="nearest">
|
|
||||||
<input name="to" "totype="text" placeholder="DD/MM/YYYY" class="form-control datetimepicker-input" data-target="#datetimepicker2"/>
|
|
||||||
<div class="input-group-append" data-target="#datetimepicker4" data-toggle="datetimepicker">
|
|
||||||
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<br>
|
|
||||||
<button type="submit" class="btn btn-primary" value="Export">Mark QSOs as exported to LoTW</button>
|
|
||||||
</form>
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h5>Export Satellite-Only QSOs</h5>
|
<h5>Export Satellite-Only QSOs</h5>
|
||||||
<p><a href="<?php echo site_url('adif/exportsat'); ?>" title="Export All Satellite Contacts" target="_blank" class="btn btn-primary">Export All Satellite QSOs</a></p>
|
<p><a href="<?php echo site_url('adif/exportsat'); ?>" title="Export All Satellite Contacts" target="_blank" class="btn btn-primary">Export All Satellite QSOs</a></p>
|
||||||
|
|
@ -152,6 +128,68 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header">
|
||||||
|
Logbook Of The World
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<p><span class="badge badge-warning">Warning</span> If a date range is not selected then all QSOs will be marked!</p>
|
||||||
|
<form class="form" action="<?php echo site_url('adif/mark_lotw'); ?>" method="post" enctype="multipart/form-data">
|
||||||
|
<p class="card-text">From date:</p>
|
||||||
|
<div class="row">
|
||||||
|
<div class="input-group date col-md-3" id="datetimepicker3" data-target-input="nearest">
|
||||||
|
<input name="from" type="text" placeholder="DD/MM/YYYY" class="form-control datetimepicker-input" data-target="#datetimepicker1"/>
|
||||||
|
<div class="input-group-append" data-target="#datetimepicker3" data-toggle="datetimepicker">
|
||||||
|
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="card-text">To date:</p>
|
||||||
|
<div class="row">
|
||||||
|
<div class="input-group date col-md-3" id="datetimepicker4" data-target-input="nearest">
|
||||||
|
<input name="to" "totype="text" placeholder="DD/MM/YYYY" class="form-control datetimepicker-input" data-target="#datetimepicker2"/>
|
||||||
|
<div class="input-group-append" data-target="#datetimepicker4" data-toggle="datetimepicker">
|
||||||
|
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
<button type="submit" class="btn btn-primary" value="Export">Mark QSOs as exported to LoTW</button>
|
||||||
|
</form>
|
||||||
|
</div></div>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header">
|
||||||
|
QRZ Logbook
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<p><span class="badge badge-warning">Warning</span> If a date range is not selected then all QSOs will be marked!</p>
|
||||||
|
<form class="form" action="<?php echo site_url('adif/mark_qrz'); ?>" method="post" enctype="multipart/form-data">
|
||||||
|
<p class="card-text">From date:</p>
|
||||||
|
<div class="row">
|
||||||
|
<div class="input-group date col-md-3" id="datetimepicker5" data-target-input="nearest">
|
||||||
|
<input name="from" type="text" placeholder="DD/MM/YYYY" class="form-control datetimepicker-input" data-target="#datetimepicker1"/>
|
||||||
|
<div class="input-group-append" data-target="#datetimepicker5" data-toggle="datetimepicker">
|
||||||
|
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<p class="card-text">To date:</p>
|
||||||
|
<div class="row">
|
||||||
|
<div class="input-group date col-md-3" id="datetimepicker6" data-target-input="nearest">
|
||||||
|
<input name="to" "totype="text" placeholder="DD/MM/YYYY" class="form-control datetimepicker-input" data-target="#datetimepicker2"/>
|
||||||
|
<div class="input-group-append" data-target="#datetimepicker6" data-toggle="datetimepicker">
|
||||||
|
<div class="input-group-text"><i class="fa fa-calendar"></i></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
<button type="submit" class="btn btn-primary" value="Export">Mark QSOs as exported to QRZ Logbook</button>
|
||||||
|
</form>
|
||||||
|
</div></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,22 @@
|
||||||
|
<div class="container">
|
||||||
|
<br>
|
||||||
|
<?php if($this->session->flashdata('message')) { ?>
|
||||||
|
<!-- Display Message -->
|
||||||
|
<div class="alert-message error">
|
||||||
|
<p><?php echo $this->session->flashdata('message'); ?></p>
|
||||||
|
</div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<div class="card">
|
||||||
|
<div class="card-header">
|
||||||
|
QSOs marked
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<h3 class="card-title">Yay, it's done!</h3>
|
||||||
|
<p class="card-text">The QSOs are marked as exported to QRZ Logbook.</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
@ -20,4 +20,14 @@ $(function () {
|
||||||
$('#datetimepicker4').datetimepicker({
|
$('#datetimepicker4').datetimepicker({
|
||||||
format: 'DD/MM/YYYY',
|
format: 'DD/MM/YYYY',
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
$(function () {
|
||||||
|
$('#datetimepicker5').datetimepicker({
|
||||||
|
format: 'DD/MM/YYYY',
|
||||||
|
});
|
||||||
|
});
|
||||||
|
$(function () {
|
||||||
|
$('#datetimepicker6').datetimepicker({
|
||||||
|
format: 'DD/MM/YYYY',
|
||||||
|
});
|
||||||
});
|
});
|
||||||
正在加载…
在新工单中引用