added link to qrz.com on callsigns - configurable with setup.php to enable/disable
This commit is contained in:
parent
8161dad699
commit
54b23468d0
5 changed files with 20 additions and 4 deletions
|
@ -34,7 +34,11 @@ for ($i = 0; ($i < $totalLH); $i++) {
|
|||
echo"<tr>";
|
||||
echo"<td nowrap>$listElem[0]</td>";
|
||||
echo"<td nowrap>$listElem[1]</td>";
|
||||
echo"<td nowrap>".str_replace("0","Ø",$listElem[2])."</td>";
|
||||
if (constant("SHOWQRZ")) {
|
||||
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a></td>";
|
||||
} else {
|
||||
echo"<td nowrap>".str_replace("0","Ø",$listElem[2])."</td>";
|
||||
}
|
||||
if (defined("ENABLEXTDLOOKUP")) {
|
||||
echo "<td nowrap>".getName($listElem[2])."</td>";
|
||||
}
|
||||
|
|
|
@ -38,7 +38,11 @@ for ($i = 0; $i < count($localTXList); $i++) {
|
|||
echo"<tr>";
|
||||
echo"<td nowrap>$listElem[0]</td>";
|
||||
echo"<td nowrap>$listElem[1]</td>";
|
||||
echo"<td nowrap>".str_replace("0","Ø",$listElem[2])."</td>";
|
||||
if (constant("SHOWQRZ")) {
|
||||
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a></td>";
|
||||
} else {
|
||||
echo"<td nowrap>".str_replace("0","Ø",$listElem[2])."</td>";
|
||||
}
|
||||
if (defined("ENABLEXTDLOOKUP")) {
|
||||
echo "<td class=\"nowrap\">".getName($listElem[2])."</td>";
|
||||
}
|
||||
|
|
|
@ -160,6 +160,10 @@ include "include/tools.php";
|
|||
<div class="input-group">
|
||||
<span class="input-group-addon" id="POWERONLINESTATE" style="width: 300px">State that signalizes online-state:</span>
|
||||
<input type="text" value="<?php echo constant("POWERONLINESTATE") ?>" name="POWERONLINESTATE" class="form-control" placeholder="1" aria-describedby="POWERONLINESTATE">
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon" id="SHOWQRZ" style="width: 300px">Show link to QRZ.com on Callsigns</span>
|
||||
<div class="panel-body"><input type="checkbox" name="SHOWQRZ" <?php if (constant("SHOWQRZ")) echo "checked" ?>></div>
|
||||
</div>
|
||||
<div class="input-group">
|
||||
<span class="input-group-btn">
|
||||
|
|
|
@ -14,7 +14,11 @@ foreach ($lastHeard as $listElem) {
|
|||
if ($listElem[6] == null) {
|
||||
echo"<td nowrap>$listElem[0]</td>";
|
||||
echo"<td nowrap>$listElem[1]</td>";
|
||||
echo"<td nowrap>".str_replace("0","Ø",$listElem[2])."</td>";
|
||||
if (constant("SHOWQRZ")) {
|
||||
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","Ø",$listElem[2])."</a></td>";
|
||||
} else {
|
||||
echo"<td nowrap>".str_replace("0","Ø",$listElem[2])."</td>";
|
||||
}
|
||||
if (defined("ENABLEXTDLOOKUP")) {
|
||||
echo "<td nowrap>".getName($listElem[2])."</td>";
|
||||
}
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
<?php
|
||||
define("VERSION", "20160915-2");
|
||||
define("VERSION", "20160916-1");
|
||||
?>
|
||||
|
|
Loading…
Reference in a new issue