mirror of
https://github.com/ShaYmez/xlxd.git
synced 2024-12-22 09:31:14 -05:00
Change dashboard2 accordingly
This commit is contained in:
parent
41d2ae6ef4
commit
52e4e6bf3e
@ -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() {
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user