Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lookup on QRZCQ #3229

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions application/language/bulgarian/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

$lang['general_lookup_qrz'] = 'Lookup on QRZ.com';
$lang['general_lookup_hamqth'] = 'Lookup on HamQTH';
$lang['general_lookup_qrzcq'] = 'Lookup on QRZCQ';

$lang['general_total_distance'] = 'Общо разстояние';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

$lang['general_lookup_qrz'] = '在 QRZ.com 上查询';
$lang['general_lookup_hamqth'] = '在 HamQTH 上查询';
$lang['general_lookup_qrzcq'] = '在 QRZCQ 上查询';

$lang['general_total_distance'] = '总计距离';

Expand Down
1 change: 1 addition & 0 deletions application/language/czech/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

$lang['general_lookup_qrz'] = 'Lookup on QRZ.com';
$lang['general_lookup_hamqth'] = 'Lookup on HamQTH';
$lang['general_lookup_qrzcq'] = 'Lookup on QRZCQ';

$lang['general_total_distance'] = 'Celková vzdálenost';

Expand Down
1 change: 1 addition & 0 deletions application/language/dutch/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

$lang['general_lookup_qrz'] = 'Lookup on QRZ.com';
$lang['general_lookup_hamqth'] = 'Lookup on HamQTH';
$lang['general_lookup_qrzcq'] = 'Lookup on QRZCQ';

$lang['general_total_distance'] = 'Total Distance';

Expand Down
1 change: 1 addition & 0 deletions application/language/english/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

$lang['general_lookup_qrz'] = 'Lookup on QRZ.com';
$lang['general_lookup_hamqth'] = 'Lookup on HamQTH';
$lang['general_lookup_qrzcq'] = 'Lookup on QRZCQ';

$lang['general_total_distance'] = 'Total Distance';

Expand Down
1 change: 1 addition & 0 deletions application/language/finnish/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

$lang['general_lookup_qrz'] = 'Lookup on QRZ.com';
$lang['general_lookup_hamqth'] = 'Lookup on HamQTH';
$lang['general_lookup_qrzcq'] = 'Lookup on QRZCQ';

$lang['general_total_distance'] = 'Kokonaismatka';

Expand Down
1 change: 1 addition & 0 deletions application/language/french/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

$lang['general_lookup_qrz'] = "Rechercher sur QRZ.com";
$lang['general_lookup_hamqth'] = "Rechercher sur HamQTH";
$lang['general_lookup_qrzcq'] = "Rechercher sur QRZCQ";

$lang['general_total_distance'] = "Distance Totale";

Expand Down
1 change: 1 addition & 0 deletions application/language/german/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

$lang['general_lookup_qrz'] = 'Nachschlagen auf QRZ.com';
$lang['general_lookup_hamqth'] = 'Nachschlagen auf HamQTH';
$lang['general_lookup_qrzcq'] = 'Nachschlagen auf QRZCQ';

$lang['general_total_distance'] = 'Entfernung';

Expand Down
1 change: 1 addition & 0 deletions application/language/greek/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

$lang['general_lookup_qrz'] = 'Lookup on QRZ.com';
$lang['general_lookup_hamqth'] = 'Lookup on HamQTH';
$lang['general_lookup_qrzcq'] = 'Lookup on QRZCQ';

$lang['general_total_distance'] = 'Συνολική Απόσταση';

Expand Down
1 change: 1 addition & 0 deletions application/language/italian/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

$lang['general_lookup_qrz'] = 'Cerca su QRZ.com';
$lang['general_lookup_hamqth'] = 'Cerca su HamQTH';
$lang['general_lookup_qrzcq'] = 'Cerca su QRZCQ';

$lang['general_total_distance'] = 'Distanza Totale';

Expand Down
1 change: 1 addition & 0 deletions application/language/polish/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@

$lang['general_lookup_qrz'] = 'Lookup on QRZ.com';
$lang['general_lookup_hamqth'] = 'Lookup on HamQTH';
$lang['general_lookup_qrzcq'] = 'Lookup on QRZCQ';

$lang['general_total_distance'] = 'Suma odległości';

Expand Down
1 change: 1 addition & 0 deletions application/language/russian/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@

$lang['general_lookup_qrz'] = 'Поиск в QRZ.com';
$lang['general_lookup_hamqth'] = 'Поиск в HamQTH';
$lang['general_lookup_qrzcq'] = 'Поиск в QRZCQ';

$lang['general_total_distance'] = 'Суммарная дистанция';

Expand Down
1 change: 1 addition & 0 deletions application/language/spanish/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@

$lang['general_lookup_qrz'] = 'Buscar en QRZ.com';
$lang['general_lookup_hamqth'] = 'Buscar en HamQTH';
$lang['general_lookup_qrzcq'] = 'Buscar en QRZCQ';

$lang['general_total_distance'] = 'Distancia total';

Expand Down
1 change: 1 addition & 0 deletions application/language/swedish/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@

$lang['general_lookup_qrz'] = 'Lookup on QRZ.com';
$lang['general_lookup_hamqth'] = 'Lookup on HamQTH';
$lang['general_lookup_qrzcq'] = 'Lookup on QRZCQ';

$lang['general_total_distance'] = 'Totalt avstånd';

Expand Down
1 change: 1 addition & 0 deletions application/language/turkish/general_words_lang.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@

$lang['general_lookup_qrz'] = "QRZ.com\'dan bak";
$lang['general_lookup_hamqth'] = "HamQTH\'den bak";
$lang['general_lookup_qrzcq'] = "QRZCQ\'dan bak";

$lang['general_total_distance'] = 'Topam mesafe';

Expand Down
5 changes: 3 additions & 2 deletions application/views/qso/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,15 @@

<!-- Callsign Input -->
<div class="row">
<div class="mb-3 col-md-9">
<div class="mb-3 col-md-8">
<label for="callsign"><?php echo lang('gen_hamradio_callsign'); ?></label><?php if ($this->optionslib->get_option('dxcache_url') != '') { ?>&nbsp;<i id="check_cluster" data-bs-toggle="tooltip" title="Search DXCluster for latest Spot" class="fas fa-search"></i> <?php } ?>
<input type="text" class="form-control" id="callsign" name="callsign" required>
<small id="callsign_info" class="badge text-bg-secondary"></small> <a id="lotw_link"><small id="lotw_info" class="badge text-bg-success"></small></a>
</div>
<div class="mb-3 col-md-3 align-self-center">
<div class="mb-3 col-md-4 align-self-center">
<small id="qrz_info" class="text-bg-secondary me-1"></small>
<small id="hamqth_info" class="text-bg-secondary me-1"></small>
<small id="qrzcq_info" class="text-bg-secondary me-1"></small>
</div>
</div>

Expand Down
6 changes: 5 additions & 1 deletion application/views/search/result.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,11 @@

<tr>
<td align="left">Callsign</td>
<td style="padding: 0.3em 0 0.3em 0.5em;" align="left"><?php echo str_replace("0", "&Oslash;", strtoupper($callsign['callsign'])); ?> <a target="_blank" href="https://www.qrz.com/db/<?php echo strtoupper($callsign['callsign']); ?>"><img style="vertical-align: baseline" width="16" height="16" src="<?php echo base_url(); ?>images/icons/qrz.png" alt="Lookup <?php echo strtoupper($callsign['callsign']); ?> on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/<?php echo strtoupper($callsign['callsign']); ?>"><img style="vertical-align: baseline" width="16" height="16" src="<?php echo base_url(); ?>images/icons/hamqth.png" alt="Lookup <?php echo strtoupper($callsign['callsign']); ?> on HamQTH"></a></td>
<td style="padding: 0.3em 0 0.3em 0.5em;" align="left"><?php echo str_replace("0", "&Oslash;", strtoupper($callsign['callsign'])); ?>
<a target="_blank" href="https://www.qrz.com/db/<?php echo strtoupper($callsign['callsign']); ?>"><img style="vertical-align: baseline" width="16" height="16" src="<?php echo base_url(); ?>images/icons/qrz.png" alt="Lookup <?php echo strtoupper($callsign['callsign']); ?> on QRZ.com"></a>
<a target="_blank" href="https://www.hamqth.com/<?php echo strtoupper($callsign['callsign']); ?>"><img style="vertical-align: baseline" width="16" height="16" src="<?php echo base_url(); ?>images/icons/hamqth.png" alt="Lookup <?php echo strtoupper($callsign['callsign']); ?> on HamQTH"></a>
<a target="_blank" href="https://www.qrzcq.com/call/<?php echo strtoupper($callsign['callsign']); ?>"><img style="vertical-align: baseline" width="16" height="16" src="<?php echo base_url(); ?>images/icons/qrzcq.png" alt="Lookup <?php echo strtoupper($callsign['callsign']); ?> on QRZCQ"></a>
</td>
</tr>

<tr>
Expand Down
2 changes: 2 additions & 0 deletions application/views/search/search_result_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,8 @@ function echo_table_col($row, $name)

<a class="dropdown-item" href="https://www.hamqth.com/<?php echo $row->COL_CALL; ?>" target="_blank"><i class="fas fa-question"></i><?php echo lang('general_lookup_hamqth'); ?></a>

<a class="dropdown-item" href="https://www.qrzcq.com/call/<?php echo $row->COL_CALL; ?>" target="_blank"><i class="fas fa-question"></i><?php echo lang('general_lookup_qrzcq'); ?></a>

<div class="dropdown-divider"></div>

<a class="dropdown-item" href="javascript:qso_delete(<?php echo $row->COL_PRIMARY_KEY; ?>, '<?php echo $row->COL_CALL; ?>')"><i class="fas fa-trash-alt"></i> <?php echo lang('general_delete_qso'); ?></a>
Expand Down
2 changes: 2 additions & 0 deletions application/views/view_log/partial/log_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ function echoQrbCalcLink($mygrid, $grid, $vucc) {

<a class="dropdown-item" href="https://www.hamqth.com/<?php echo $row->COL_CALL; ?>" target="_blank"><i class="fas fa-question"></i> <?php echo lang('general_lookup_hamqth'); ?></a>

<a class="dropdown-item" href="https://www.qrzcq.com/call/<?php echo $row->COL_CALL; ?>" target="_blank"><i class="fas fa-question"></i> <?php echo lang('general_lookup_qrzcq'); ?></a>

<div class="dropdown-divider"></div>

<a class="dropdown-item" href="javascript:qso_delete(<?php echo $row->COL_PRIMARY_KEY; ?>, '<?php echo $row->COL_CALL; ?>')"><i class="fas fa-trash-alt"></i> <?php echo lang('general_delete_qso'); ?></a>
Expand Down
7 changes: 6 additions & 1 deletion application/views/view_log/qso.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,12 @@

<tr>
<td><?php echo lang('gen_hamradio_callsign'); ?></td>
<td><b><?php echo str_replace("0","&Oslash;",strtoupper($row->COL_CALL)); ?></b> <a target="_blank" href="https://www.qrz.com/db/<?php echo strtoupper($row->COL_CALL); ?>"><img width="16" height="16" src="<?php echo base_url(); ?>images/icons/qrz.png" alt="Lookup <?php echo strtoupper($row->COL_CALL); ?> on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/<?php echo strtoupper($row->COL_CALL); ?>"><img width="16" height="16" src="<?php echo base_url(); ?>images/icons/hamqth.png" alt="Lookup <?php echo strtoupper($row->COL_CALL); ?> on HamQTH"></a> <a target="_blank" href="http://www.eqsl.cc/Member.cfm?<?php echo strtoupper($row->COL_CALL); ?>"><img width="16" height="16" src="<?php echo base_url(); ?>images/icons/eqsl.png" alt="Lookup <?php echo strtoupper($row->COL_CALL); ?> on eQSL.cc"></a></td>
<td><b><?php echo str_replace("0","&Oslash;",strtoupper($row->COL_CALL)); ?></b>
<a target="_blank" href="https://www.qrz.com/db/<?php echo strtoupper($row->COL_CALL); ?>"><img width="16" height="16" src="<?php echo base_url(); ?>images/icons/qrz.png" alt="Lookup <?php echo strtoupper($row->COL_CALL); ?> on QRZ.com"></a>
<a target="_blank" href="https://www.hamqth.com/<?php echo strtoupper($row->COL_CALL); ?>"><img width="16" height="16" src="<?php echo base_url(); ?>images/icons/hamqth.png" alt="Lookup <?php echo strtoupper($row->COL_CALL); ?> on HamQTH"></a>
<a target="_blank" href="http://www.eqsl.cc/Member.cfm?<?php echo strtoupper($row->COL_CALL); ?>"><img width="16" height="16" src="<?php echo base_url(); ?>images/icons/eqsl.png" alt="Lookup <?php echo strtoupper($row->COL_CALL); ?> on eQSL.cc"></a>
<a target="_blank" href="http://www.qrzcq.com/call/<?php echo strtoupper($row->COL_CALL); ?>"><img width="16" height="16" src="<?php echo base_url(); ?>images/icons/qrzcq.png" alt="Lookup <?php echo strtoupper($row->COL_CALL); ?> on QRZCQ"></a>
</td>
</tr>

<tr>
Expand Down
4 changes: 2 additions & 2 deletions assets/js/sections/logbookadvanced.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function updateRow(qso) {
cells.eq(c++).text(qso.de);
}
if (user_options.dx.show == "true"){
cells.eq(c++).html('<span class="qso_call"><a id="edit_qso" href="javascript:displayQso('+qso.qsoID+')"><span id="dx">'+qso.dx+'</span></a><span class="qso_icons">' + (qso.callsign == '' ? '' : ' <a href="https://lotw.arrl.org/lotwuser/act?act='+qso.callsign+'" target="_blank"><small id="lotw_info" class="badge bg-success'+qso.lotw_hint+'" data-bs-toggle="tooltip" title="LoTW User. Last upload was ' + qso.lastupload + '">L</small></a>') + ' <a target="_blank" href="https://www.qrz.com/db/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/qrz.png" alt="Lookup ' + qso.dx + ' on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/hamqth.png" alt="Lookup ' + qso.dx + ' on HamQTH"></a></span></span>');
cells.eq(c++).html('<span class="qso_call"><a id="edit_qso" href="javascript:displayQso('+qso.qsoID+')"><span id="dx">'+qso.dx+'</span></a><span class="qso_icons">' + (qso.callsign == '' ? '' : ' <a href="https://lotw.arrl.org/lotwuser/act?act='+qso.callsign+'" target="_blank"><small id="lotw_info" class="badge bg-success'+qso.lotw_hint+'" data-bs-toggle="tooltip" title="LoTW User. Last upload was ' + qso.lastupload + '">L</small></a>') + ' <a target="_blank" href="https://www.qrz.com/db/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/qrz.png" alt="Lookup ' + qso.dx + ' on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/hamqth.png" alt="Lookup ' + qso.dx + ' on HamQTH"></a> <a target="_blank" href="https://www.qrzcq.com/call/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/qrzcq.png" alt="Lookup ' + qso.dx + ' on QRZCQ"></a></span></span>');
}
if (user_options.mode.show == "true"){
cells.eq(c++).text(qso.mode);
Expand Down Expand Up @@ -133,7 +133,7 @@ function loadQSOTable(rows) {
data.push(qso.de);
}
if (user_options.dx.show == "true"){
data.push('<span class="qso_call"><a id="edit_qso" href="javascript:displayQso('+qso.qsoID+')"><span id="dx">'+qso.dx+'</span></a><span class="qso_icons">' + (qso.callsign == '' ? '' : ' <a href="https://lotw.arrl.org/lotwuser/act?act='+qso.callsign+'" target="_blank"><small id="lotw_info" class="badge bg-success'+qso.lotw_hint+'" data-bs-toggle="tooltip" title="LoTW User. Last upload was ' + qso.lastupload + ' ">L</small></a>') + ' <a target="_blank" href="https://www.qrz.com/db/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/qrz.png" alt="Lookup ' + qso.dx + ' on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/hamqth.png" alt="Lookup ' + qso.dx + ' on HamQTH"></a></span></span>');
data.push('<span class="qso_call"><a id="edit_qso" href="javascript:displayQso('+qso.qsoID+')"><span id="dx">'+qso.dx+'</span></a><span class="qso_icons">' + (qso.callsign == '' ? '' : ' <a href="https://lotw.arrl.org/lotwuser/act?act='+qso.callsign+'" target="_blank"><small id="lotw_info" class="badge bg-success'+qso.lotw_hint+'" data-bs-toggle="tooltip" title="LoTW User. Last upload was ' + qso.lastupload + ' ">L</small></a>') + ' <a target="_blank" href="https://www.qrz.com/db/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/qrz.png" alt="Lookup ' + qso.dx + ' on QRZ.com"></a> <a target="_blank" href="https://www.hamqth.com/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/hamqth.png" alt="Lookup ' + qso.dx + ' on HamQTH"></a> <a target="_blank" href="https://www.qrzcq.com/call/'+qso.dx+'"><img width="16" height="16" src="'+base_url+ 'images/icons/qrzcq.png" alt="Lookup ' + qso.dx + ' on QRZCQ"></a></span></span>');
}
if (user_options.mode.show == "true"){
data.push(qso.mode);
Expand Down
3 changes: 3 additions & 0 deletions assets/js/sections/qso.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,6 +489,7 @@ function reset_fields() {
$('#lotw_info').removeClass("lotw_info_orange");
$('#qrz_info').text("");
$('#hamqth_info').text("");
$('#qrzcq_info').text("");
$('#sota_info').text("");
$('#dxcc_id').val("");
$('#cqz').val("");
Expand Down Expand Up @@ -654,6 +655,8 @@ $("#callsign").focusout(function() {
$('#qrz_info').attr('title', 'Lookup '+callsign+' info on qrz.com');
$('#hamqth_info').html('<a target="_blank" href="https://www.hamqth.com/'+callsign+'"><img width="32" height="32" src="'+base_url+'images/icons/hamqth.com.png"></a>');
$('#hamqth_info').attr('title', 'Lookup '+callsign+' info on hamqth.com');
$('#qrzcq_info').html('<a target="_blank" href="https://www.qrzcq.com/call/'+callsign+'"><img width="32" height="32" src="'+base_url+'images/icons/qrzcq.com.png"></a>');
$('#qrzcq_info').attr('title', 'Lookup '+callsign+' info on qrzcq.com');

var $dok_select = $('#darc_dok').selectize();
var dok_selectize = $dok_select[0].selectize;
Expand Down
Binary file added images/icons/qrzcq.com.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/icons/qrzcq.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading