removed redundant code

这个提交包含在:
Peter Goodhall 2025-04-18 11:02:22 +01:00
父节点 4407da4c22
当前提交 af60e40315
共有 3 个文件被更改,包括 60 次插入70 次删除

查看文件

@ -469,7 +469,6 @@ class Qrz extends CI_Controller {
$tableheaders .= "<td>Mode</td>"; $tableheaders .= "<td>Mode</td>";
$tableheaders .= "<td>QRZ QSL Received</td>"; $tableheaders .= "<td>QRZ QSL Received</td>";
$tableheaders .= "<td>QRZ Confirmed</td>"; $tableheaders .= "<td>QRZ Confirmed</td>";
$tableheaders .= "<td>Log Status</td>";
$tableheaders .= "</tr>"; $tableheaders .= "</tr>";
$table = ""; $table = "";

查看文件

@ -4931,7 +4931,6 @@ class Logbook_model extends CI_Model
$table .= "<td>" . $record['mode'] . "</td>"; $table .= "<td>" . $record['mode'] . "</td>";
$table .= "<td>" . $record['qsl_date'] . "</td>"; $table .= "<td>" . $record['qsl_date'] . "</td>";
$table .= "<td>" . ($record['qsl_rcvd'] == 'Y' ? '<span class="badge text-bg-success">Yes</span>' : '<span class="badge text-bg-danger">No</span>') . "</td>"; $table .= "<td>" . ($record['qsl_rcvd'] == 'Y' ? '<span class="badge text-bg-success">Yes</span>' : '<span class="badge text-bg-danger">No</span>') . "</td>";
$table .= "<td>" . $log_status . "</td>";
$table .= "</tr>"; $table .= "</tr>";
} }

查看文件

@ -1,4 +1,3 @@
<div class="container adif" id="qrz_export"> <div class="container adif" id="qrz_export">
<h2><?php echo $page_title; ?></h2> <h2><?php echo $page_title; ?></h2>
@ -52,9 +51,7 @@
echo '</tr>'; echo '</tr>';
} }
echo '</tfoot></table>'; echo '</tfoot></table>';
} else {
}
else {
echo '<div class="alert alert-danger" role="alert">Nothing found!</div>'; echo '<div class="alert alert-danger" role="alert">Nothing found!</div>';
} }
?> ?>
@ -63,14 +60,7 @@
<div class="tab-pane fade" id="import" role="tabpanel" aria-labelledby="home-tab"> <div class="tab-pane fade" id="import" role="tabpanel" aria-labelledby="home-tab">
<form class="form" action="<?php echo site_url('qrz/import_qrz'); ?>" method="post" enctype="multipart/form-data"> <form class="form" action="<?php echo site_url('qrz/import_qrz'); ?>" method="post" enctype="multipart/form-data">
<p><span class="badge text-bg-warning">Warning</span> If no startdate is given then all QSOs after last confirmation will be downloaded/updated!</p> Download QSOs from QRZ Logbook for all Locations<br>
<div class="row">
<div class="col-md-2">
<label for="from"><?php echo lang('gen_from_date') . ": " ?></label>
<input name="from" id="from" type="date" class="form-control w-auto">
</div>
</div>
<br>
<button type="submit" class="btn btn-sm btn-primary" value="Export">Download from QRZ Logbook</button> <button type="submit" class="btn btn-sm btn-primary" value="Export">Download from QRZ Logbook</button>
</form> </form>
</div> </div>
@ -81,7 +71,9 @@
<select name="station_profile" class="form-select mb-4 me-sm-4" style="width: 30%;"> <select name="station_profile" class="form-select mb-4 me-sm-4" style="width: 30%;">
<option disabled value="0">Select Station Location</option> <option disabled value="0">Select Station Location</option>
<?php foreach ($station_profiles->result() as $station) { ?> <?php foreach ($station_profiles->result() as $station) { ?>
<option <?php if ($station->station_active) { echo "selected "; } ?>value="<?php echo $station->station_id; ?>">Callsign: <?php echo $station->station_callsign; ?> (<?php echo $station->station_profile_name; ?>)</option> <option <?php if ($station->station_active) {
echo "selected ";
} ?>value="<?php echo $station->station_id; ?>">Callsign: <?php echo $station->station_callsign; ?> (<?php echo $station->station_profile_name; ?>)</option>
<?php } ?> <?php } ?>
</select> </select>
<p><span class="badge text-bg-warning">Warning</span> If a date range is not selected then all QSOs will be marked!</p> <p><span class="badge text-bg-warning">Warning</span> If a date range is not selected then all QSOs will be marked!</p>