To start the thread rolling here is a screenshot of my Aircraft Details window.
The values in the top pale blue section (yours may be yellow but you can change this in Display Settings) are part of the BaseStation window and these cannot be changed.
The first user section shows two aircraft pictures - in my case these are both taken from my hard drive rather than from a link to an external web site. This option is only suitable for users with their own photo collection. If you don't have this I would suggest you look at further examples posted here with code that links to external aviation sites.
The second Aircraft Data section shows eight values in two columns - Mode S code, Registration, Serial No, Country, Callsign, Type, ICAO Code and Operator.
The third section is a Route field but this will only work if you are running either the Flight Display or Aircraft Display programs - see the forum Resources section for details.
The fourth section shows the airline logo and the country flag. The airline logo is triggered by the aircraft callsign as we cannot use the OprFlagCode in the XSL.
The fifth section shows several links to useful web pages.
The final section is the User Notes data from the SQB database. In the screenshot this is red but the code given below will give a blue section. Colour can be changed but this needs a modification to the Basestation.CSS file.
The code for the above display is as follows but read the notes at the end of this thread for changes you may need to make.
- Code: Select all
<?xml version="1.0" encoding="iso8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<link rel="stylesheet" href="basestation.css" type="text/css"/>
</head>
<body>
<xsl:variable name="AirlineICAO" select="substring(//currentflight/callsign,1,3)"/>
<meta http-equiv="refresh" content="5"/>
<xsl:variable name="C_Flag">
<xsl:choose>
<xsl:when test="contains(//transmission/country,'_')='true'">
<xsl:value-of select="translate(substring-before(//transmission/country,'_'),' ','_')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="translate(//transmission/country,' ','_')"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<table>
<tr>
<td>
<div class="entrybox">
<table width="450">
<tr>
<td width="200" height="150">
<img src="C:\Kinetic\Pictures\{//regdata/registration}.gif" width="200" height="133" border="0" />
</td>
<td width="200" >
<img src="C:\Kinetic\Pictures\{//regdata/registration}-1.gif" width="200" height="133" border="0" />
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table>
<tr>
<td>
<div class="entrybox">
<table width="450">
<tr>
<td width="90">
<span class="entrycaption"><font color="Navy">ModeS Code : </font></span>
</td>
<td width="115">
<span class="entrydata"><font color="Blue"><xsl:apply-templates select="//transmission/modes"/></font></span>
</td>
<td width="30">
<span class="entrycaption"><font color="Navy">Callsign : </font></span>
</td>
<td width="180">
<span class="entrydata"><font color="Blue"><xsl:apply-templates select="//currentflight/callsign"/></font></span>
</td>
</tr>
<tr>
<td>
<span class="entrycaption"><font color="Navy">Registration : </font></span>
</td>
<td>
<span class="entrydata"><font color="Blue"><xsl:apply-templates select="//regdata/registration"/></font></span>
</td>
<td>
<span class="entrycaption"><font color="Navy">Type : </font></span>
</td>
<td>
<span class="entrydata"><font color="Blue"><xsl:apply-templates select="//regdata/type"/></font></span>
</td>
</tr>
<tr>
<td>
<span class="entrycaption"><font color="Navy">ICAO : </font></span>
</td>
<td>
<span class="entrydata"><font color="Blue"><xsl:apply-templates select="//regdata/ICAOTypeCode"/></font></span>
</td>
<td>
<span class="entrycaption"><font color="Navy">Serial No : </font></span>
</td>
<td>
<span class="entrydata"><font color="Blue"><xsl:apply-templates select="//regdata/serialno"/></font></span>
</td>
</tr>
<tr>
<td>
<span class="entrycaption"><font color="Navy">Country : </font></span>
</td>
<td>
<span class="entrydata"><font color="Blue"><xsl:apply-templates select="//transmission/country"/></font></span>
</td>
<td>
<span class="entrycaption"><font color="Navy">Operator : </font></span>
</td>
<td>
<span class="entrydata"><font color="Blue"><xsl:apply-templates select="//regdata/registeredowners"/></font></span>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table>
<tr>
<td>
<div class="entrybox">
<table width="450">
<tr>
<td>
<span class="entrycaption"><font color="Navy">Route :Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â </font></span>
<span class="entrydata"><font color="Blue"><xsl:apply-templates select="//regdata/popularname"/></font></span>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table>
<tr>
<td>
<div class="entrybox">
<table width="450">
<tr>
<td width="80">
<span class="entrycaption"><font color="Navy">Opr Logo : </font></span>
</td>
<td width="105">
<img src="C:\Programs\Kinetic\OperatorFlags\{$AirlineICAO}.bmp" width="85" height="20" border="0" />
</td>
<td width="90">
<span class="entrycaption"><font color="Navy">Country Flag : </font></span>
</td>
<td width="115">
<img src="C:\Programs\Kinetic\BMPFlags\{$C_Flag}.bmp" width="40" height="20" border="0" />
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table>
<tr>
<td>
<div class="entrybox">
<table width="450">
<tr>
<td width="200">
<a href="http://dm.airliners.net/search/photo.search?sort_order=photo_id%20DESC&first_this_page=0&page_limit=30&&regsearch={//regdata/registration}&thumbnails=noinfo" target="new">
<span class="entrycaption">Airliners.net search : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
<td width="200">
<a href="http://www.planepictures.net/netsearch4.cgi?stype=reg&srng=2&srch={//regdata/registration}&offset=0&range=10" target="new">
<span class="entrycaption">Planepictures.net search : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
</tr>
<tr>
<td width="200">
<a href="http://www.jetphotos.net/showphotos.php?offset=0&where=search|-2|-2|-2|-2|{//regdata/registration}|15|1|||||||-2|-2|-2|-2|||15|1||-2|-2||||reg|1||||||-2|||1|||||||&newdisplay=8" target="new">
<span class="entrycaption">Jetphotos.net search: <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
<td width="200">
<a href="http://www.airframes.org/reg/{translate(//regdata/registration,'ABCDEFGHIJKLMNOPQRSTUVWXYZ','abcdefghijklmnopqrstuvwxyz')}" target="new">
<span class="entrycaption">Airframes.org Search : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<table>
<tr>
<td>
<div class="entrybox">
<table width="450">
<tr>
<td>
<span class="entrycaption"><font color="Maroon">Note : </font></span>
<span class="entrydata"><font color="maroon"><B><xsl:apply-templates select="//user/notes"/></B></font></span>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Notes:
The picture links are to GIF files stored on my hard drive at C:\Kinetic\Pictures. You may need to change the path to your own picture storage folder.
The code expects each picture to have a filename of
registration.gif or
registration-1.gif e.g.
G-THOM.gif and
G-THOM-1.gif. If you use JPG files change the code suffix to show this.
The code does not allow a mixture of jpg and gif files - you must exclusively use on or the other.