mirror of
https://github.com/ShaYmez/xlxd.git
synced 2024-12-22 17:45:49 -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)) {
|
while (($z < count($this->Flagarray[$j]['DXCC'])) && (!$FoundFlag)) {
|
||||||
if (trim($Prefix) == trim($this->Flagarray[$j]['DXCC'][$z])) {
|
if (trim($Prefix) == trim($this->Flagarray[$j]['DXCC'][$z])) {
|
||||||
$Image = $this->Flagarray[$j]['ISO'];
|
$Image = $this->Flagarray[$j]['ISO'];
|
||||||
|
$Name = $this->Flagarray[$j]['Country'];
|
||||||
$FoundFlag = true;
|
$FoundFlag = true;
|
||||||
}
|
}
|
||||||
$z++;
|
$z++;
|
||||||
@ -263,7 +264,7 @@ class xReflector {
|
|||||||
$Letters--;
|
$Letters--;
|
||||||
}
|
}
|
||||||
|
|
||||||
return strtolower($Image);
|
return array(strtolower($Image), $Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetModules() {
|
public function GetModules() {
|
||||||
|
@ -25,8 +25,9 @@ for ($i=0;$i<$Reflector->NodeCount();$i++) {
|
|||||||
<tr class="table-center">
|
<tr class="table-center">
|
||||||
<td>'.($i+1).'</td>
|
<td>'.($i+1).'</td>
|
||||||
<td>';
|
<td>';
|
||||||
if (file_exists("./img/flags/".$Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign()).".png")) {
|
list ($Flag, $Name) = $Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign());
|
||||||
echo '<img src="./img/flags/'.$Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign()).'.png" class="table-flag" alt="">';
|
if (file_exists("./img/flags/".$Flag.".png")) {
|
||||||
|
echo '<img src="./img/flags/'.$Flag.'.png" class="table-flag" alt="'.$Name.'" title="'.$Name.'">';
|
||||||
}
|
}
|
||||||
echo '</td>
|
echo '</td>
|
||||||
<td><a href="http://www.aprs.fi/'.$Reflector->Nodes[$i]->GetCallSign();
|
<td><a href="http://www.aprs.fi/'.$Reflector->Nodes[$i]->GetCallSign();
|
||||||
|
@ -24,8 +24,9 @@ for ($i=0;$i<$Reflector->StationCount();$i++) {
|
|||||||
echo '</td>
|
echo '</td>
|
||||||
<td>';
|
<td>';
|
||||||
|
|
||||||
if (file_exists("./img/flags/".$Reflector->GetFlag($Reflector->Stations[$i]->GetCallSign()).".png")) {
|
list ($Flag, $Name) = $Reflector->GetFlag($Reflector->Stations[$i]->GetCallSign());
|
||||||
echo '<img src="./img/flags/'.$Reflector->GetFlag($Reflector->Stations[$i]->GetCallSign()).'.png" class="table-flag" alt="">';
|
if (file_exists("./img/flags/".$Flag.".png")) {
|
||||||
|
echo '<img src="./img/flags/'.$Flag.'.png" class="table-flag" alt="'.$Name.'" title="'.$Name.'">';
|
||||||
}
|
}
|
||||||
echo '</td>
|
echo '</td>
|
||||||
<td><a href="https://www.qrz.com/db/'.$Reflector->Stations[$i]->GetCallsignOnly().'" class="pl" target="_blank">'.$Reflector->Stations[$i]->GetCallsignOnly().'</a></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