added link to qrz.com on callsigns - configurable with setup.php to enable/disable

This commit is contained in:
dg9vh 2016-09-16 07:57:52 +00:00
parent 8161dad699
commit 54b23468d0
5 changed files with 20 additions and 4 deletions

View file

@ -34,7 +34,11 @@ for ($i = 0; ($i < $totalLH); $i++) {
echo"<tr>"; echo"<tr>";
echo"<td nowrap>$listElem[0]</td>"; echo"<td nowrap>$listElem[0]</td>";
echo"<td nowrap>$listElem[1]</td>"; echo"<td nowrap>$listElem[1]</td>";
echo"<td nowrap>".str_replace("0","&Oslash;",$listElem[2])."</td>"; if (constant("SHOWQRZ")) {
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","&Oslash;",$listElem[2])."</a></td>";
} else {
echo"<td nowrap>".str_replace("0","&Oslash;",$listElem[2])."</td>";
}
if (defined("ENABLEXTDLOOKUP")) { if (defined("ENABLEXTDLOOKUP")) {
echo "<td nowrap>".getName($listElem[2])."</td>"; echo "<td nowrap>".getName($listElem[2])."</td>";
} }

View file

@ -38,7 +38,11 @@ for ($i = 0; $i < count($localTXList); $i++) {
echo"<tr>"; echo"<tr>";
echo"<td nowrap>$listElem[0]</td>"; echo"<td nowrap>$listElem[0]</td>";
echo"<td nowrap>$listElem[1]</td>"; echo"<td nowrap>$listElem[1]</td>";
echo"<td nowrap>".str_replace("0","&Oslash;",$listElem[2])."</td>"; if (constant("SHOWQRZ")) {
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","&Oslash;",$listElem[2])."</a></td>";
} else {
echo"<td nowrap>".str_replace("0","&Oslash;",$listElem[2])."</td>";
}
if (defined("ENABLEXTDLOOKUP")) { if (defined("ENABLEXTDLOOKUP")) {
echo "<td class=\"nowrap\">".getName($listElem[2])."</td>"; echo "<td class=\"nowrap\">".getName($listElem[2])."</td>";
} }

View file

@ -160,6 +160,10 @@ include "include/tools.php";
<div class="input-group"> <div class="input-group">
<span class="input-group-addon" id="POWERONLINESTATE" style="width: 300px">State that signalizes online-state:</span> <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"> <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>
<div class="input-group"> <div class="input-group">
<span class="input-group-btn"> <span class="input-group-btn">

View file

@ -14,7 +14,11 @@ foreach ($lastHeard as $listElem) {
if ($listElem[6] == null) { if ($listElem[6] == null) {
echo"<td nowrap>$listElem[0]</td>"; echo"<td nowrap>$listElem[0]</td>";
echo"<td nowrap>$listElem[1]</td>"; echo"<td nowrap>$listElem[1]</td>";
echo"<td nowrap>".str_replace("0","&Oslash;",$listElem[2])."</td>"; if (constant("SHOWQRZ")) {
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[2]\">".str_replace("0","&Oslash;",$listElem[2])."</a></td>";
} else {
echo"<td nowrap>".str_replace("0","&Oslash;",$listElem[2])."</td>";
}
if (defined("ENABLEXTDLOOKUP")) { if (defined("ENABLEXTDLOOKUP")) {
echo "<td nowrap>".getName($listElem[2])."</td>"; echo "<td nowrap>".getName($listElem[2])."</td>";
} }

View file

@ -1,3 +1,3 @@
<?php <?php
define("VERSION", "20160915-2"); define("VERSION", "20160916-1");
?> ?>