Change dashboard2 accordingly

This commit is contained in:
phl0 2017-06-12 14:34:37 +02:00
parent 41d2ae6ef4
commit 52e4e6bf3e
No known key found for this signature in database
GPG Key ID: 48EA1E640798CA9A
3 changed files with 9 additions and 6 deletions

View File

@ -254,6 +254,7 @@ class xReflector {
while (($z < count($this->Flagarray[$j]['DXCC'])) && (!$FoundFlag)) {
if (trim($Prefix) == trim($this->Flagarray[$j]['DXCC'][$z])) {
$Image = $this->Flagarray[$j]['ISO'];
$Name = $this->Flagarray[$j]['Country'];
$FoundFlag = true;
}
$z++;
@ -263,7 +264,7 @@ class xReflector {
$Letters--;
}
return strtolower($Image);
return array(strtolower($Image), $Name);
}
public function GetModules() {

View File

@ -25,8 +25,9 @@ for ($i=0;$i<$Reflector->NodeCount();$i++) {
<tr class="table-center">
<td>'.($i+1).'</td>
<td>';
if (file_exists("./img/flags/".$Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign()).".png")) {
echo '<img src="./img/flags/'.$Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign()).'.png" class="table-flag" alt="">';
list ($Flag, $Name) = $Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign());
if (file_exists("./img/flags/".$Flag.".png")) {
echo '<img src="./img/flags/'.$Flag.'.png" class="table-flag" alt="'.$Name.'" title="'.$Name.'">';
}
echo '</td>
<td><a href="http://www.aprs.fi/'.$Reflector->Nodes[$i]->GetCallSign();
@ -77,4 +78,4 @@ for ($i=0;$i<$Reflector->NodeCount();$i++) {
?>
</table>
</table>

View File

@ -24,8 +24,9 @@ for ($i=0;$i<$Reflector->StationCount();$i++) {
echo '</td>
<td>';
if (file_exists("./img/flags/".$Reflector->GetFlag($Reflector->Stations[$i]->GetCallSign()).".png")) {
echo '<img src="./img/flags/'.$Reflector->GetFlag($Reflector->Stations[$i]->GetCallSign()).'.png" class="table-flag" alt="">';
list ($Flag, $Name) = $Reflector->GetFlag($Reflector->Stations[$i]->GetCallSign());
if (file_exists("./img/flags/".$Flag.".png")) {
echo '<img src="./img/flags/'.$Flag.'.png" class="table-flag" alt="'.$Name.'" title="'.$Name.'">';
}
echo '</td>
<td><a href="https://www.qrz.com/db/'.$Reflector->Stations[$i]->GetCallsignOnly().'" class="pl" target="_blank">'.$Reflector->Stations[$i]->GetCallsignOnly().'</a></td>