mirror of
https://github.com/ShaYmez/xlxd.git
synced 2024-12-22 17:45: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)) {
|
||||
if (trim($Prefix) == trim($this->Flagarray[$j]['DXCC'][$z])) {
|
||||
$Image = $this->Flagarray[$j]['ISO'];
|
||||
$Name = $this->Flagarray[$j]['Country'];
|
||||
$FoundFlag = true;
|
||||
}
|
||||
$z++;
|
||||
@ -275,7 +276,7 @@ class xReflector {
|
||||
}
|
||||
$Letters--;
|
||||
}
|
||||
return strtolower($Image);
|
||||
return array(strtolower($Image), $Name);
|
||||
}
|
||||
|
||||
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.'\';">
|
||||
<td align="center">'.($i+1).'</td>
|
||||
<td align="center">';
|
||||
if (file_exists("./img/flags/".$Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign()).".png")) {
|
||||
echo '<img src="./img/flags/'.$Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign()).'.png" height="15" />';
|
||||
list ($Flag, $Name) = $Reflector->GetFlag($Reflector->Nodes[$i]->GetCallSign());
|
||||
if (file_exists("./img/flags/".$Flag.".png")) {
|
||||
echo '<img src="./img/flags/'.$Flag.'.png" height="15" alt="'.$Name.'" title="'.$Name.'" />';
|
||||
}
|
||||
echo '</td>
|
||||
<td><a href="http://www.aprs.fi/'.$Reflector->Nodes[$i]->GetCallSign();
|
||||
|
@ -135,8 +135,9 @@ for ($i=0;$i<$Reflector->StationCount();$i++) {
|
||||
echo '</td>
|
||||
<td align="center" width="60">';
|
||||
|
||||
if (file_exists("./img/flags/".$Reflector->GetFlag($Reflector->Stations[$i]->GetCallSign()).".png")) {
|
||||
echo '<img src="./img/flags/'.$Reflector->GetFlag($Reflector->Stations[$i]->GetCallSign()).'.png" height="15" />';
|
||||
list ($Flag, $Name) = $Reflector->GetFlag($Reflector->Stations[$i]->GetCallSign());
|
||||
if (file_exists("./img/flags/".$Flag.".png")) {
|
||||
echo '<img src="./img/flags/'.$Flag.'.png" height="15" alt="'.$Name.'" title="'.$Name.'" />';
|
||||
}
|
||||
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>
|
||||
|
Loading…
Reference in New Issue
Block a user