mirror of
https://github.com/ShaYmez/xlxd.git
synced 2024-12-23 01:55:49 -05:00
Add country name as tooltip
This commit is contained in:
parent
4f5e24b157
commit
41d2ae6ef4
@ -267,6 +267,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++;
|
||||||
@ -275,7 +276,7 @@ class xReflector {
|
|||||||
}
|
}
|
||||||
$Letters--;
|
$Letters--;
|
||||||
}
|
}
|
||||||
return strtolower($Image);
|
return array(strtolower($Image), $Name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function GetModules() {
|
public function GetModules() {
|
||||||
|
@ -29,8 +29,9 @@ for ($i=0;$i<$Reflector->NodeCount();$i++) {
|
|||||||
<tr height="30" bgcolor="'.$odd.'" onMouseOver="this.bgColor=\'#FFFFCA\';" onMouseOut="this.bgColor=\''.$odd.'\';">
|
<tr height="30" bgcolor="'.$odd.'" onMouseOver="this.bgColor=\'#FFFFCA\';" onMouseOut="this.bgColor=\''.$odd.'\';">
|
||||||
<td align="center">'.($i+1).'</td>
|
<td align="center">'.($i+1).'</td>
|
||||||
<td align="center">';
|
<td align="center">';
|
||||||
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" height="15" />';
|
if (file_exists("./img/flags/".$Flag.".png")) {
|
||||||
|
echo '<img src="./img/flags/'.$Flag.'.png" height="15" 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();
|
||||||
|
@ -135,8 +135,9 @@ for ($i=0;$i<$Reflector->StationCount();$i++) {
|
|||||||
echo '</td>
|
echo '</td>
|
||||||
<td align="center" width="60">';
|
<td align="center" width="60">';
|
||||||
|
|
||||||
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" height="15" />';
|
if (file_exists("./img/flags/".$Flag.".png")) {
|
||||||
|
echo '<img src="./img/flags/'.$Flag.'.png" height="15" alt="'.$Name.'" title="'.$Name.'" />';
|
||||||
}
|
}
|
||||||
echo '</td>
|
echo '</td>
|
||||||
<td width="75"><a href="https://www.qrz.com/db/'.$Reflector->Stations[$i]->GetCallsignOnly().'" class="pl" target="_blank">'.$Reflector->Stations[$i]->GetCallsignOnly().'</a></td>
|
<td width="75"><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