2020-08-13 16:24:07 +00:00
|
|
|
<div class="container lotw">
|
2020-08-22 21:26:04 +00:00
|
|
|
<br>
|
2021-01-11 16:05:15 +00:00
|
|
|
<a class="btn btn-outline-primary btn-sm float-right" href="<?php echo site_url('/lotw/import'); ?>" role="button"><i class="fas fa-cloud-download-alt"></i> <?php echo $this->lang->line('lotw_btn_lotw_import'); ?></a>
|
|
|
|
<h2><?php echo $this->lang->line('lotw_title'); ?></h2>
|
2020-08-13 16:24:07 +00:00
|
|
|
|
|
|
|
<!-- Card Starts -->
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2021-01-11 16:05:15 +00:00
|
|
|
<a class="btn btn-outline-success btn-sm float-right" href="<?php echo site_url('/lotw/cert_upload'); ?>" role="button"><i class="fas fa-cloud-upload-alt"></i> <?php echo $this->lang->line('lotw_btn_upload_certificate'); ?></a><i class="fab fa-expeditedssl"></i> <?php echo $this->lang->line('lotw_title_available_cert'); ?>
|
2020-08-13 16:24:07 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
|
|
|
<?php if(isset($error)) { ?>
|
|
|
|
<div class="alert alert-danger" role="alert">
|
|
|
|
<?php echo $error; ?>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
2020-08-17 16:02:54 +00:00
|
|
|
<?php if(isset($_SESSION['Success'])) { ?>
|
|
|
|
<div class="alert alert-success" role="alert">
|
|
|
|
<?php echo $_SESSION['Success']; ?>
|
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
2020-08-13 16:24:07 +00:00
|
|
|
<?php if ($lotw_cert_results->num_rows() > 0) { ?>
|
|
|
|
|
|
|
|
<div class="table-responsive">
|
|
|
|
<table class="table table-hover">
|
|
|
|
<thead class="thead-light">
|
|
|
|
<tr>
|
2021-01-11 16:05:15 +00:00
|
|
|
<th scope="col"><?php echo $this->lang->line('gen_hamradio_callsign'); ?></th>
|
|
|
|
<th scope="col"><?php echo $this->lang->line('gen_hamradio_dxcc'); ?></th>
|
|
|
|
<th scope="col"><?php echo $this->lang->line('lotw_date_created'); ?></th>
|
|
|
|
<th scope="col"><?php echo $this->lang->line('lotw_date_expires'); ?></th>
|
|
|
|
<th scope="col"><?php echo $this->lang->line('lotw_status'); ?></th>
|
|
|
|
<th scope="col"><?php echo $this->lang->line('lotw_options'); ?></th>
|
2020-08-13 16:24:07 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
|
|
|
|
<tbody>
|
|
|
|
|
|
|
|
<?php foreach ($lotw_cert_results->result() as $row) { ?>
|
|
|
|
<tr>
|
|
|
|
<td><?php echo $row->callsign; ?></td>
|
2020-08-17 16:02:54 +00:00
|
|
|
<td><?php echo ucfirst($row->cert_dxcc); ?></td>
|
|
|
|
<td><?php
|
|
|
|
$valid_form = strtotime( $row->date_created );
|
|
|
|
$new_valid_from = date($this->config->item('qso_date_format'), $valid_form );
|
|
|
|
echo $new_valid_from; ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php
|
|
|
|
$valid_to = strtotime( $row->date_expires );
|
|
|
|
$new_valid_to = date($this->config->item('qso_date_format'), $valid_to );
|
|
|
|
echo $new_valid_to; ?>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<?php $current_date = date('Y-m-d H:i:s'); ?>
|
|
|
|
|
|
|
|
<?php if ($current_date <= $row->date_expires) { ?>
|
2021-01-11 16:05:15 +00:00
|
|
|
<span class="badge badge-success"><?php echo $this->lang->line('lotw_valid'); ?></span>
|
2020-08-17 16:02:54 +00:00
|
|
|
<?php } else { ?>
|
2021-01-11 16:05:15 +00:00
|
|
|
<span class="badge badge-dark"><?php echo $this->lang->line('lotw_expired'); ?></span>
|
2020-08-17 16:02:54 +00:00
|
|
|
<?php } ?>
|
2020-08-17 16:09:00 +00:00
|
|
|
|
|
|
|
<?php if ($row->last_upload) { ?>
|
|
|
|
<span class="badge badge-success"><?php echo $row->last_upload; ?></span>
|
|
|
|
<?php } else { ?>
|
2021-01-11 16:05:15 +00:00
|
|
|
<span class="badge badge-warning"><?php echo $this->lang->line('lotw_not_synced'); ?></span>
|
2020-08-17 16:09:00 +00:00
|
|
|
<?php } ?>
|
2020-08-17 16:02:54 +00:00
|
|
|
</td>
|
|
|
|
<td>
|
2021-01-11 16:05:15 +00:00
|
|
|
<a class="btn btn-outline-danger btn-sm" href="<?php echo site_url('lotw/delete_cert/'.$row->lotw_cert_id); ?>" role="button"><i class="far fa-trash-alt"></i> <?php echo $this->lang->line('lotw_btn_delete'); ?></a>
|
2020-08-17 16:02:54 +00:00
|
|
|
</td>
|
2020-08-13 16:24:07 +00:00
|
|
|
</tr>
|
|
|
|
<?php } ?>
|
2020-08-17 16:02:54 +00:00
|
|
|
|
2020-08-13 16:24:07 +00:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php } else { ?>
|
|
|
|
<div class="alert alert-info" role="alert">
|
2021-01-11 16:05:15 +00:00
|
|
|
<?php echo $this->lang->line('lotw_no_certs_uploaded'); ?>
|
2020-08-13 16:24:07 +00:00
|
|
|
</div>
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- Card Ends -->
|
|
|
|
|
2020-09-02 13:48:13 +00:00
|
|
|
<br>
|
|
|
|
|
|
|
|
<!-- Card Starts -->
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2021-01-11 16:05:15 +00:00
|
|
|
<?php echo $this->lang->line('lotw_title_information'); ?>
|
2020-09-02 13:48:13 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="card-body">
|
2021-01-11 16:05:15 +00:00
|
|
|
<p><a class="btn btn-outline-success" href="<?php echo site_url('lotw/lotw_upload'); ?>"><?php echo $this->lang->line('lotw_btn_manual_sync'); ?></a></p>
|
2020-09-02 13:48:13 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-08-13 16:24:07 +00:00
|
|
|
</div>
|