Changing the Aircraft Details popup window

User-created resources that can help you get more out of your BaseStation software.

Moderators: admin, chrisg0wtz, KineticDavid, Moderators

Changing the Aircraft Details popup window

Postby bones » November 19th, 2006, 4:52 am

This thread replaces the Next Challenge thread. This earlier thread covered code for both Spider and Snoopy and also included many posts on the evolving process of adding pictures (or links to pictures) in the Aircraft Details box. This thread is specifically for Snoopy version 1.1.1.110 or later.

Changing the Aircraft Details window

The Aircraft Details box is created from the basestation.xsl file in the UserData folder. It is basic XML code and this allows users to add, modify and adapt the code for individual requirements. In the screenshot below the code has been changed to add pictures, links to other aviation sites, airline logos and route information.

Everyone has different ideas about presentation so many variants of the Aircraft Details box have evolved. This thread allows users who have made changes to post their code (along with a screenshot) so that other users can choose a display to their liking.

Submitting Designs

Users who have made code changes and wish to post them here should:

a) Place their code in a Code block in the post using the Code button (next to the Quote button). Ensure that the Disable BBCode box is NOT ticked.

b) Include a screenshot of the Aircraft Details box only (not your whole BaseStation display!) like this:

Image

c) Explain in the post any code that may need modifying by end users (such as links to pictures on a hard drive).

Using modified Code

For users wishing to alter their Aircraft Details window please read the next bit carefully.

The layout of the Aircraft Details box is contained in the basestation.xsl file in the UserData folder. To make the changes you have to open this file and replace the code it contains with an example that you may prefer from the choices further in this thread. To repeat what was said in the earlier thread do not attempt this if you have no experience in opening and editing files - and always back up your XSL file before attempting any changes.

Look at the posts below and pick the screenshot best suited to your needs. Copy the included code to your basestation.XSL file (replacing the existing content) and save.

Do not try and modify any code unless you are familiar with XML syntax.

Important

As with any changes to default Kinetic files you make the above changes at your own risk. It is essential that you keep a backup of your original basestation.xsl file.

Please also read this post from Kinetic regarding this type of change - http://www.kinetic-avionics.co.uk/forum ... php?t=2281


Finally I would like to recognise both Bumpy and Dave Reid who started this whole process going in the Next Challenge thread.
Last edited by bones on December 25th, 2009, 1:11 pm, edited 9 times in total.
User avatar
bones
 
Posts: 8329
Joined: August 8th, 2005, 4:44 am
Location: Isle of Man

Postby bones » November 19th, 2006, 5:07 am

To start the thread rolling here is a screenshot of my Aircraft Details window.

Image

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&amp;first_this_page=0&amp;page_limit=30&amp;&amp;regsearch={//regdata/registration}&amp;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&amp;srng=2&amp;srch={//regdata/registration}&amp;offset=0&amp;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&amp;where=search|-2|-2|-2|-2|{//regdata/registration}|15|1|||||||-2|-2|-2|-2|||15|1||-2|-2||||reg|1||||||-2|||1|||||||&amp;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.
Last edited by bones on December 25th, 2009, 1:17 pm, edited 6 times in total.
User avatar
bones
 
Posts: 8329
Joined: August 8th, 2005, 4:44 am
Location: Isle of Man

Postby SabreJV » November 19th, 2006, 6:07 am

As Bones has noted, my preference is not to display the pictures directly but to have links to the various websites, the links will open in a new window. I also have a link to try and look up the callsign from the FlyteComm site, don't expect all callsigns to retrieve information.

Image

As the code has evolved so the popup now has additional links to get registration lookups from UK CAA g-info site for G- registered aircraft and from the FAA Registry for N registered aircraft. Basestation is passing the reg or callsign to the website so if its not in the expected format, for example has additional characters such as '!' or '?' as part of the registration you will not get any info back. Also trying to lookup say F- marks on the CAA site will not work. :)

The code to generate the Aircraft Details popup shown above is....

<?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>
<table>
<tr>
<td width="600">
<span class="entryheading">Aircraft Data</span>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="600">
<tr>
<td width="200">
<span class="entrycaption">ModeS Code : </span>
<span class="entrydata"><xsl:apply-templates select="//transmission/modes"/></span>
</td>
<td width="400">
<span class="entrycaption">ICAO Code : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/ICAOTypeCode"/></span>
</td>
</tr>
<tr>
<td width="200">
<span class="entrycaption">Registration : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/registration"/></span>
</td>
<td width="400">
<span class="entrycaption">Type : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/type"/></span>
</td>
</tr>
<tr>
<td width="200">
<span class="entrycaption">Serial No : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/serialno"/></span>
</td>
<td width="400">
<span class="entrycaption">Operator : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/registeredowners"/></span>
</td>
</tr>
<tr>
<td width="200">
<span class="entrycaption">Country : </span>
<span class="entrydata"><xsl:apply-templates select="//transmission/country"/></span>
</td>
<td width="400">
<span class="entrycaption">Current flight no : </span>
<span class="entrydata"><xsl:apply-templates select="//currentflight/callsign"/></span>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>

<table>
<tr>
<td width="600">
<span class="entryheading">User Notes</span>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="600">
<tr>
<td>
<span class="entrydata"><xsl:apply-templates select="//user/notes"/></span>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>


<table>
<tr>
<td width="600">
<span class="entryheading">Web Links</span>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="600">
<tr>
<td>

<tr>
<td width="325">
<a href="http://www.airliners.net/search/photo.search?keywords={//regdata/registration}" target="new">
<span class="entrycaption">Click here to link to Airliners.net for : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
<td width="275">
<a href="http://www.caa.co.uk/application.aspx?categoryid=60&amp;pagetype=65&amp;applicationid=1&amp;mode=detailnosummary&amp;fullregmark={//regdata/registration}" target="new">
<span class="entrycaption">Click here to link to CAA G-INFO for : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
</tr>
<tr>
<td width="325">
<a href="http://www.jetphotos.net/showphotos.php?offset=0&amp;where=search|-2|-2|-2|-2|{//regdata/registration}|15|1|||||||-2|-2|-2|-2|||15|1||-2|-2||||reg|1||||||-2|||1|||||||" target="new">
<span class="entrycaption">Click here to link to Jetphotos.net for : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
<td width="275">
<xsl:variable name="Nreg" select="substring-after(//regdata/registration,'N')"/>
<a href="http://registry.faa.gov/aircraftinquiry/NNumSQL.asp?NNumbertxt={$Nreg}" target="new">
<span class="entrycaption">Click here to link to FAA Registry for : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
</tr>
<tr>
<td width="300">
<a href="http://www.planepictures.net/netsearch4.cgi?stype=reg&amp;srng=2&amp;srch={//regdata/registration}&amp;offset=0&amp;range=10" target="new">
<span class="entrycaption">Click here to link to Planepictures.net for : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td width="300">
<a href="http://www.flytecomm.com/cgi-bin/trackflight?action=select_advanced&amp;flight_id={//currentflight/callsign}" target="new">
<span class="entrycaption">Click here to link to FlyteComm for flight no: <xsl:apply-templates select="//currentflight/callsign"/></span></a>
</td>
</tr>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>

</body>
</html>

</xsl:template>
</xsl:stylesheet>


It would be possible to combine sections of code from both Bones' and my versions to create a composite of both. I'll leave you to experiment 8) however please do take note of the Important section in the first post of this thread.

Finally I too thank Bones, Dave Reid, Bumpy and others who set me off down this path as without the push to find an answer, I certainly would not have learned some basics of xml/xsl :wink:

cheers
Sabrejv
SabreJV
 
Posts: 2783
Joined: February 7th, 2006, 4:53 am
Location: London

Postby seca » November 19th, 2006, 11:31 am

Thanks for the great code guys,,,would it be poss for a a couple of links to airframes to search via reg or hexcode.
Would be cool
Thanks again guys
Chris
seca
 
Posts: 11
Joined: November 11th, 2006, 5:06 pm

Postby gizmo » November 19th, 2006, 11:48 am

great idea bones :D

here is mine,you can make it smaler in size ofcourse...
the xsl is a bit messy,but hey it works (important:don't chance things that work :lol: )

Image


<?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:for-each select="//regdata/user" >
<xsl:if test="string(PictureURL1)">
<img src="{PictureURL1}" width="200" height="133" border="0" />
</xsl:if>
<xsl:if test="string(PictureURL2)">
<img src="{PictureURL2}" width="200" height="133" border="0" />
</xsl:if>
<xsl:if test="string(PictureURL3)">
<img src="{PictureURL3}" width="200" height="133" border="0" />
</xsl:if>
</xsl:for-each>





<table>
<tr>
<td width="200">
<span class="entryheading">Registration Data</span>
</td>
</tr>
<tr>
<td width="200">
<span class="entrycaption">Current flight no: </span>
<span class="entrydata"><xsl:apply-templates select="//user/UserString1"/></span>
</td>
</tr>
<tr>
<td width="400">
<a href="http://www.flytecomm.com/cgi-bin/trackflight?action=select_advanced&amp;flight_id={//user/UserString1}" target="new">
<span class="entrycaption">Click here to link to FlyteComm for <xsl:apply-templates select="//user/UserString1"/></span></a>

<td width="400">
</td>
<a href="http://www.airliners.net/search/photo.search?keywords={//regdata/registration}" target="new">
<span class="entrycaption">Click here to link to Airliners.net for <xsl:apply-templates select="//regdata/registration"/></span>
</a>
</td>
</tr>
<td width="400">
</td>
<a href="http://www.planepictures.net/netsearch4.cgi?stype=reg&amp;srng=2&amp;srch={//regdata/registration}&amp;offset=0&amp;range=10
" target="new">
<span class="entrycaption">Click here to link to Planepictures.net for <xsl:apply-templates select="//regdata/registration"/></span>
</a>
<br/>
<a href="http://www.jetphotos.net/showphotos.php?offset=0&amp;where=search|-2|-2|-2|-2|{//regdata/registration}|15|1|||||||-2|-2|-2|-2|||15|1||-2|-2||||reg|1||||||-2|||1|||||||" target="new">
<span class="entrycaption">Click here to link to Jetphotos.net for <xsl:apply-templates select="//regdata/registration"/></span></a>


<br/>
<a href="http://www.caa.co.uk/application.aspx?categoryid=60&amp;pagetype=65&amp;applicationid=1&amp;mode=detailnosummary&amp;fullregmark={//regdata/registration}" target="new">
<span class="entrycaption">Click here to link to CAA G-INFO for <xsl:apply-templates select="//regdata/registration"/></span></a>
<br/>
<xsl:variable name="Nreg" select="substring-after(//regdata/registration,'N')"/>
<a href="http://registry.faa.gov/aircraftinquiry/NNumSQL.asp?NNumbertxt={$Nreg}" target="new">
<span class="entrycaption">Click here to link to FAA Registry for <xsl:apply-templates select="//regdata/registration"/></span></a>
<br/>



<tr>
<td>
<div class="entrybox">
<table width="600">
<tr>
<td width="190">
<span class="entrycaption">ModeS (Hex): </span>
<span class="entrydata"><xsl:apply-templates select="//transmission/modes"/></span>
</td>
<td width="190">
<span class="entrycaption">Registration: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/registration"/></span>
</td>
<td width="220">
<span class="entrycaption">Country: </span>
<span class="entrydata"><xsl:apply-templates select="//transmission/country"/></span>
</td>
</tr>
<tr>
<td>
<span class="entrycaption">Status: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/status"/></span>
</td>
<td>
<span class="entrycaption">Previous ID: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/previousid"/></span>
</td>
<td>
<span class="entrycaption">Current Reg Date: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/currentregdate"/></span>
</td>
</tr>
<tr>
<td>
<span class="entrycaption">First Reg Date: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/firstregdate"/></span>
</td>
<td colspan="2">
<span class="entrycaption">De-reg Date: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/deregdate"/></span>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="600">
<tr>
<td width="190">
<span class="entrycaption">Manufacturer: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/manufacturer"/></span>
</td>
<td width="190">
<span class="entrycaption">Type: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/type"/></span>
</td>
<td width="220">
<span class="entrycaption">Serial No: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/serialno"/></span>
</td>
</tr>
<tr>
<td>
<span class="entrycaption">Popular Name: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/popularname"/></span>
</td>
<td colspan="2">
<span class="entrycaption">Aircraft Class: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/aircraftclass"/></span>
</td>
</tr>
<tr>
<td>
<span class="entrycaption">Generic Name: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/genericname"/></span>
</td>
<td colspan="2">
<span class="entrycaption">Engines: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/engines"/></span>
</td>
</tr>
</table>
</div>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="600">
<tr>
<td width="190">
<span class="entrycaption">Ownership Status: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/ownershipstatus"/></span>
</td>
<td width="190">
<span class="entrycaption">MTOW: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/mtow"/></span>
</td>
<td width="220">
<span class="entrycaption">C of A Cat.: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/cofacategory"/></span>
</td>
</tr>
<tr>
<td>
<span class="entrycaption">Total Hours: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/totalhours"/></span>
</td>
<td>
<span class="entrycaption">Year Built: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/yearbuilt"/></span>
</td>
<td>
<span class="entrycaption">C of A Expiry: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/cofaexpiry"/></span>
</td>
</tr>
<tr>
<td colspan="3">
<span class="entrycaption">Registered Owners: </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/registeredowners"/></span>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>

<table>
<tr>
<td width="600">
<span class="entryheading">UserNotes</span>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="600">
<tr>
<td>
<span class="entrydata"><xsl:apply-templates select="//user/notes"/></span>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>

<table>
<tr>
<td width="600">
<span class="entryheading">Sightings</span>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="600">
<xsl:for-each select="//history/receiveevent" >
<xsl:if test="position() = 1">
<tr>
<td width="80">
<span class="entrycaption">Callsign</span>
</td>
<td width="80">
<span class="entrycaption">Date</span>
</td>
<td width="80">
<span class="entrycaption">Time</span>
</td>
<td width="80">
<span class="entrycaption">On Ground</span>
</td>
<td width="80">
<span class="entrycaption">Lat</span>
</td>
<td width="80">
<span class="entrycaption">Lon</span>
</td>
<td width="80">
<span class="entrycaption">Speed</span>
</td>
<td width="80">
<span class="entrycaption">Altitude</span>
</td>
<td width="80">
<span class="entrycaption">V. Rate</span>
</td>
<td width="80">
<span class="entrycaption">Track</span>
</td>
</tr>
</xsl:if>
<tr>
<td>
<span class="entrydata"><xsl:value-of select="callsign" /></span>
</td>
<td>
<span class="entrydata"><xsl:value-of select="date" /></span>
</td>
<td>
<span class="entrydata"><xsl:value-of select="time" /></span>
</td>
<td>
<span class="entrydata"><xsl:value-of select="isonground" /></span>
</td>
<td>
<span class="entrydata"><xsl:value-of select="lat" /></span>
</td>
<td>
<span class="entrydata"><xsl:value-of select="lon" /></span>
</td>
<td>
<span class="entrydata"><xsl:value-of select="speed" /></span>
</td>
<td>
<span class="entrydata"><xsl:value-of select="altitude" /></span>
</td>
<td>
<span class="entrydata"><xsl:value-of select="verticalrate" /></span>
</td>
<td>
<span class="entrydata"><xsl:value-of select="track" /></span>
</td>
</tr>
</xsl:for-each>
<tr><td></td></tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>

</xsl:template>
</xsl:stylesheet>


thanks to sabre and bones and others... :wink:

greetzzz johan :D
gizmo
 
Posts: 763
Joined: March 17th, 2006, 11:58 pm
Location: The netherlands jo31ai

Postby Mr Phil » November 20th, 2006, 6:05 pm

This is absolutley brilliant you guys
im'e trying to get one of my fellow radio hams to buy an SBS-1 and he used to be an ATC down heathrow, and has an interest in it . He has a photo data base coz he uses wacars , pcfhdl and some other thing I cant remember the name of at the mo , (I bet he will read this later.. :) )
im'e going to put the code in and put it on the laptop and show him next club meet.. :D
regards to all those who made it happen.
Mr Phil

Now where can I get all those plane piccys ? Mr bones (Pretty please) :):wink:
User avatar
Mr Phil
 
Posts: 811
Joined: October 8th, 2006, 6:50 am
Location: Keighley West Yorkshire

Postby bones » November 20th, 2006, 7:11 pm

If your friend is ex ATC Heathrow ask him to write to me if he wants more technical information. It is possible our paths may have crossed.

If you link to one of the major web sites like airliners.net you can have a picture in your Aircraft Details box without the need to store it on your PC. The only disadvantage to this is if the source site is down or suffering high load.

Pictures on your hard drive overcomes this problem and gives fast reaction times - but be prepared for a huge amount of storage space - about 170Mb per 10,000 pictures. I can't oblige with releasing my own collection owing to copyright restrictions. Sorry.
User avatar
bones
 
Posts: 8329
Joined: August 8th, 2005, 4:44 am
Location: Isle of Man

Postby proflight2000 » November 20th, 2006, 7:18 pm

Yep totally agree this is great to have the codes for different set ups. However, does anyone fancy a royalty free picture exchange?? mainly sharing what photos we have taken ourselves. One of my hobbies is photographing the aircraft I see, over 300 pictures taken this saturday at manchester airport.

Even if the pictures were fed into a main folder within the site, this would aid people getting them royalty free as airliners.net is a superb resource but requires (and quite rightly so) authority from the owners to use them.

Just a thought anyway :D
Proflight 2000
User avatar
proflight2000
 
Posts: 282
Joined: April 15th, 2006, 1:50 pm
Location: Swindon UK

Postby AJ » November 21st, 2006, 5:42 pm

I would be happy to upload my altered version of the Aircraft Details Window, to add to Bones' and Sabre JV's versions. (Also to provide a frame shot, and include the code).
Trouble is.. I don't know how to.
Help for an upload Dummy always appreciated.
( Hi, Dave K. Is your's still working ? ).
Adam.
AJ
 
Posts: 36
Joined: January 27th, 2006, 10:42 pm
Location: London

Postby gizmo » November 21st, 2006, 5:49 pm

hi a.j... :D

there is a web-site that alows you too put pictures of your captured screen-shots on this forum look here http://www.imageshack.us/

for the xsl-file,you can copy it and paste it...

hth johan :wink:
gizmo
 
Posts: 763
Joined: March 17th, 2006, 11:58 pm
Location: The netherlands jo31ai

Postby AJ » November 21st, 2006, 6:38 pm

Screenshot

Image

Code:

<?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>
<table width="405">
<tr>
<td width="200">
<img src="{//transmission/modes}.bmp"/>
</td>
<td width="200" height="100">
<img src="{//regdata/registration}.bmp"/>
</td>
</tr>
</table>
<table>
<tr>
<td width="400">
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="400">
<tr>
<td width="200">
<span class="entrycaption">ModeS Code : </span>
<span class="entrydata"><xsl:apply-templates select="//transmission/modes"/></span>
</td>
<td width="200">
<span class="entrycaption">Callsign : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/popularname"/></span>
</td>
</tr><tr>
<td width="200">
<span class="entrycaption">Registration : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/registration"/></span>
</td>

<td width="200">
<span class="entrycaption">Flight Number : </span>
<span class="entrydata"><xsl:apply-templates select="//currentflight/callsign"/></span>

</td>
</tr><tr>
<td width="200">
<span class="entrycaption">Type : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/type"/></span>

</td>
<td width="200">
<span class="entrycaption">Operator : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/registeredowners"/></span>

</td>

</tr><tr>
<td width="200">

</td>
<td width="200">

</td>

</tr>
</table>
</div>
</td>
</tr>
</table>

</body>
</html>

</xsl:template>
</xsl:stylesheet>


Edited by Mod
AJ
 
Posts: 36
Joined: January 27th, 2006, 10:42 pm
Location: London

Postby AJ » November 21st, 2006, 7:02 pm

Johan,
Thanks for the pointer.

For information...
For personal preference, my pictures are stored on the hard drive. Store them wherever you like.

Hey Bones, ...That's cheating....!!!
Amalgamating my posts.!!

MOD - True but four posts on one subject was a bit excessive. I'm trying to keep this thread compact.


It's tidier though. Thanks.

Yes, it is.
AJ
 
Posts: 36
Joined: January 27th, 2006, 10:42 pm
Location: London

Postby AJ » November 22nd, 2006, 12:12 am

We're not married are we...
Her Majesty nicks my newspapers and throws them away two seconds after I put them down. :D ... Calll me untidy.... :D :D .
AJ
 
Posts: 36
Joined: January 27th, 2006, 10:42 pm
Location: London

Postby proflight2000 » November 22nd, 2006, 12:14 am

finally got one high pic in a reasonable state, still good fun to keep trying. http://img375.imageshack.us/my.php?image=folovcn1.jpg
Proflight 2000
User avatar
proflight2000
 
Posts: 282
Joined: April 15th, 2006, 1:50 pm
Location: Swindon UK

Postby Typhoon » November 22nd, 2006, 5:33 am

Heres my Popup, ive added a few bits of my own a few extra fields for use at a later date hence the *****.

Image

<?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>

<img src="C:\SBS-1 PICS\{//regdata/registration}.JPG" width="200" border="0" />

<table>
<tr>
<td width="200">
<span class="entryheading"></span>
</td>
</tr>
<tr>

<td width="200">
<span class="entrycaption">Flight Number : </span>
<span class="entrydata"><xsl:apply-templates select="//currentflight/callsign"/></span>
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>


<td width="400">
<span class="entryheading">Aircraft Data</span>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="400">
<tr>
<td width="200">
<span class="entrycaption">ModeS Code : </span>
<span class="entrydata"><xsl:apply-templates select="//transmission/modes"/></span>
</td>
<td width="400">
<span class="entrycaption">ICAO Code : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/ICAOTypeCode"/></span>
</td>
</tr>
<tr>
<td width="200">
<span class="entrycaption">Registration : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/registration"/></span>
</td>
<td width="400">
<span class="entrycaption">Type : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/type"/></span>
</td>
</tr>
<tr>
<td width="200">
<span class="entrycaption">Serial No : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/serialno"/></span>
</td>
<td width="400">
<span class="entrycaption">Operator : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/registeredowners"/></span>
</td>
</tr>
<tr>
<td width="200">
<span class="entrycaption">Country : </span>
<span class="entrydata"><xsl:apply-templates select="//transmission/country"/></span>
</td>
<td width="400">
<span class="entrycaption">Current Flight No : </span>
<span class="entrydata"><xsl:apply-templates select="//currentflight/callsign"/></span>
</td>
</tr>
<tr>
<td width="200">
<span class="entrycaption">Selcal : </span>
<span class="entrydata"><xsl:apply-templates select="//regdata/status"/></span>
</td>
<td width="400">
<span class="entrycaption">****** : </span>
<span class="entrydata"><xsl:apply-templates select="//previousid"/></span>
</td>
</tr>
<tr>
<td width="200">
<span class="entrycaption">****** : </span>
<span class="entrydata"><xsl:apply-templates select="//cofacategory"/></span>
</td>
<td width="400">
<span class="entrycaption">****** : </span>
<span class="entrydata"><xsl:apply-templates select="//cofaexpiry"/></span>
</td>
</tr>
<tr>
<td width="200">
<span class="entrycaption">****** : </span>
<span class="entrydata"><xsl:apply-templates select="//totalhours"/></span>
</td>
<td width="400">
<span class="entrycaption">Seen : </span>
<span class="entrydata"><xsl:apply-templates select="//UserTag"/></span>
</td>
</tr>

</table>
</div>
</td>
</tr>
</table>

<table>
<tr>
<td width="400">
<span class="entryheading">User Notes</span>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="400">
<tr>
<td>
<span class="entrydata"><xsl:apply-templates select="//user/notes"/></span>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>

<table>
<tr>
<td width="400">
<span class="entryheading">Web Links</span>
</td>
</tr>
<tr>
<td>
<div class="entrybox">
<table width="400">
<tr>
<td>

<tr>
<td width="325">
<a href="http://www.airliners.net/search/photo.search?keywords={//regdata/registration}" target="new">
<span class="entrycaption">Airliners.net : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
<td width="275">
<a href="http://www.caa.co.uk/application.aspx?categoryid=60&amp;pagetype=65&amp;applicationid=1&amp;mode=detailnosummary&amp;fullregmark={//regdata/registration}" target="new">
<span class="entrycaption">CAA G-INFO : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
</tr>
<tr>
<td width="325">
<a href="http://www.jetphotos.net/showphotos.php?offset=0&amp;where=search|-2|-2|-2|-2|{//regdata/registration}|15|1|||||||-2|-2|-2|-2|||15|1||-2|-2||||reg|1||||||-2|||1|||||||" target="new">
<span class="entrycaption">Jetphotos.net : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
<td width="275">
<xsl:variable name="Nreg" select="substring-after(//regdata/registration,'N')"/>
<a href="http://registry.faa.gov/aircraftinquiry/NNumSQL.asp?NNumbertxt={$Nreg}" target="new">
<span class="entrycaption">FAA Registry : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
</tr>
<tr>
<td width="300">
<a href="http://www.planepictures.net/netsearch4.cgi?stype=reg&amp;srng=2&amp;srch={//regdata/registration}&amp;offset=0&amp;range=10" target="new">
<span class="entrycaption">Planepictures.net : <xsl:apply-templates select="//regdata/registration"/></span></a>
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td width="300">
<a href="http://www.flytecomm.com/cgi-bin/trackflight?action=select_advanced&amp;flight_id={//currentflight/callsign}" target="new">
<span class="entrycaption">FlyteComm : <xsl:apply-templates select="//currentflight/callsign"/></span></a>
</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>

</tr>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>

</body>
</html>

</xsl:template>
</xsl:stylesheet>
Typhoon
User avatar
Typhoon
 
Posts: 102
Joined: June 27th, 2006, 5:55 pm
Location: Burnley, Lancashire

Next

Return to Resources

Who is online

Users browsing this forum: No registered users and 0 guests

cron