Cloudlog/application/views/eqsl/analysis.php

69 wiersze
2.2 KiB
PHP
Czysty Zwykły widok Historia

<?php
$custom_date_format = $this->session->userdata('user_date_format');
?>
2019-05-22 16:17:26 +00:00
<div class="container eqsl">
<div class="card">
<div class="card-header">
<h5 class="card-title"><?php echo $page_title; ?></h5>
<ul class="nav nav-tabs card-header-tabs">
<li class="nav-item">
<a class="nav-link active" href="<?php echo site_url('eqsl/import');?>">Download QSOs</a>
2019-05-22 16:17:26 +00:00
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo site_url('eqsl/Export');?>">Upload QSOs</a>
2019-05-22 16:17:26 +00:00
</li>
<li class="nav-item">
<a class="nav-link" href="<?php echo site_url('eqsl/tools');?>">Tools</a>
</li>
2023-05-10 19:36:46 +00:00
<li class="nav-item">
2023-05-21 20:50:30 +00:00
<a class="nav-link" href="<?php echo site_url('eqsl/download');?>">Download eQSL cards</a>
2023-05-10 19:36:46 +00:00
</li>
2019-05-22 16:17:26 +00:00
</ul>
</div>
<div class="card-body">
<?php $this->load->view('layout/messages'); ?>
<?php foreach ($eqsl_results as $import) { ?>
<h3><?php echo $import['name']; ?></h3>
<div class="alert alert-info" role="alert">
<?php echo $import['status']; ?>
</div>
<?php if (count($import['qsos']) > 0) { ?>
<table width="100%">
<tr class="titles">
<td>Date</td>
<td>Time</td>
<td>Call</td>
<td>Mode</td>
<td>Submode</td>
<td>Log Status</td>
<td>eQSL Status</td>
</tr>
<?php foreach ($import['qsos'] as $qso) { ?>
<tr>
<?php $timestamp = strtotime($qso['date']); ?>
<td><?php echo date($custom_date_format, $timestamp) ?></td>
<td><?php echo date('H:i', $timestamp); ?></td>
<?php if ($qso['status'] == "Found") { ?>
<td><a href="<?php echo site_url("eqsl/image/".$qso['qsoid']); ?>" data-fancybox="images" data-width="528" data-height="336"><?php echo $qso['call']; ?></a></td>
<?php } else { ?>
<td><?php echo $qso['call']; ?></td>
<?php } ?>
<td><?php echo $qso['mode']; ?></td>
<td><?php echo $qso['submode']; ?></td>
<td><?php echo $qso['status']; ?></td>
<td><?php echo $qso['eqsl_status']; ?></td>
</tr>
<?php } ?>
</table>
<?php } else { ?>
<p>There are no QSO confirmations waiting for you at eQSL.cc</p>
<?php } ?>
<?php } ?>
</div>
2019-05-22 16:17:26 +00:00
</div>
</div>