Check if grid worked on default band for callbook results

这个提交包含在:
phl0 2023-10-24 15:13:48 +02:00
父节点 c3daa32c5d
当前提交 3e7429d464
找不到此签名对应的密钥
GPG 密钥 ID: 48EA1E640798CA9A
共有 2 个文件被更改,包括 12 次插入2 次删除

查看文件

@ -919,6 +919,9 @@ function worked_grid_before($gridsquare, $type, $band, $mode)
}
$data['callsign'] = $this->qrz->search($id, $this->session->userdata('qrz_session_key'), $this->config->item('use_fullname'));
$CI = &get_instance();
$CI->load->model('logbook_model');
$data['grid_worked'] = $CI->logbook_model->check_if_grid_worked_in_logbook(strtoupper(substr($data['callsign']['gridsquare'],0,4)), 0, $this->session->userdata('user_default_band'));
} /*else {
// Lookup using hamli
$this->load->library('hamli');

查看文件

@ -5,7 +5,6 @@
<?php if(isset($callsign['callsign'])) { ?>
<h3>Callbook Search for <?php echo $id; ?></h3>
<table>
<tr>
@ -25,7 +24,15 @@
<tr>
<td style="padding: 0 0.3em 0 0;" align="left">Gridsquare</td>
<td style="padding: 0.3em 0 0.3em 0.5em;" align="left"><?php echo strtoupper($callsign['gridsquare']); ?></td>
<td style="padding: 0.3em 0 0.3em 0.5em;" align="left">
<?php
if ($grid_worked != 0) {
echo " <span data-toggle=\"tooltip\" title=\"Worked\" class=\"badge-success\" style=\"padding-left: 0.2em; padding-right: 0.2em;\">".strtoupper($callsign['gridsquare'])."</span>";
} else {
echo " <span data-toggle=\"tooltip\" title=\"Not Worked\" class=\"badge-danger\" style=\"padding-left: 0.2em; padding-right: 0.2em;\">".strtoupper($callsign['gridsquare'])."</span>";
}
?>
</td>
</tr>
</table>