Official FSAirlines Integration Pack: Difference between revisions

From FSAirlinesWiki
Jump to navigation Jump to search
Line 15: Line 15:
The ''src="..."'' part determines which data is shown. Just copy the required url from the list of [[#Pages|pages]]. There are several [[#Parameters|parameters]] which can be appended to the url. These can be used to change for example the language or the color of the included page. The ''rvi=xxxx'' parameter is mandatory and has to be changed to the [[Virtual Airline Overview|ID]] of your own Virtual Airline. All other parameters have to be added with a leading '&' just like the '&title=off' in the example.
The ''src="..."'' part determines which data is shown. Just copy the required url from the list of [[#Pages|pages]]. There are several [[#Parameters|parameters]] which can be appended to the url. These can be used to change for example the language or the color of the included page. The ''rvi=xxxx'' parameter is mandatory and has to be changed to the [[Virtual Airline Overview|ID]] of your own Virtual Airline. All other parameters have to be added with a leading '&' just like the '&title=off' in the example.


==For developers==
Deep thinking - adds a new dimensoin to it all.
The FSAirlines Integration Pack is Open-Source, so everybody with a [[VA Integration Kit#Developer Account|developers account]] can enhance and improve the scripts. All the files are located in the trunk folder of the FSAirlines Subversion repository. We will review all the changes and from time to time publish the current revision under a new version number. You're welcome to implement anything you think is useful, but please stick to the following rules:
*Please don't do massive layout changes. If you want a completely different look please create a new branch, maybe you can convince us and we will merge it with the Official Integration Pack.
*Please don't remove any functionality. You're free to extend the scripts, but if you feel like there should be a page with less information, please create a new one.
*Don't use function calls to the [[XML-Interface]] in loops. If you need a different data set, please ask the developers to add a function for that to the [[XML-Interface]].
*Always keep record of your changes on this wiki page.


==Parameters==
==Parameters==

Revision as of 18:38, 7 January 2012

Official FSAirlines Integration Pack Overview
Version 1.0
Date September 9th, 2010
Developers Konny

Joe

Subversion path /trunk

How to use

The Integration Pack has been designed for easy integration into any website. There are no special requirements to the webserver. The easiest way to get the data into your own website is by using the <iframe> HTML-Tag. Here's an example HTML-code:

<iframe width="600" height="500" src="http://remote.fsairlines.net/v1/roster.php?rvi=368&title=off">
   <p>Your browser does not support iframes.</p>
</iframe>

The src="..." part determines which data is shown. Just copy the required url from the list of pages. There are several parameters which can be appended to the url. These can be used to change for example the language or the color of the included page. The rvi=xxxx parameter is mandatory and has to be changed to the ID of your own Virtual Airline. All other parameters have to be added with a leading '&' just like the '&title=off' in the example.

Deep thinking - adds a new dimensoin to it all.

Parameters

Here is a list of all the parameters which are currently supported.

rvi=17899 Virtual Airline ID number (mandatory)
lng=XX Language translation (Coming Soon)
title=ON Hide the title of the pages
hub=SVMI Four letter ICAO code, used by Timetable to show flights to and from the selected airport
cli=XXXXXX Link Color, Six letter HTML Color code
clv=XXXXXX Visited Link Color, Six letter HTML Color code
clh=XXXXXX Hover Link Color, Six letter HTML Color code
textcol=XXXXXX Text Color, Six letter HTML Color code
tblcol=XXXXXX Table Heading Background Color, Six letter HTML Color code
tbltextcol=XXXXXX Table Heading Text Color, Six letter HTML Color code
row1=XXXXXX Data Row 1 Color, Six letter HTML Color code
row2=XXXXXX Data Row 2 Color, Six letter HTML Color code

Pages

The following table shows all the pages which you can include in your own VA website.

Roster http://remote.fsairlines.net/v1/roster.php?rvi=20167
Roster ( Alternate ) http://remote.fsairlines.net/v1/roster_2.php?rvi=20167
Fleet http://remote.fsairlines.net/v1/fleet.php?rvi=20167
Fleet ( Alternate ) http://remote.fsairlines.net/v1/fleet_2.php?rvi=20167
Timetable http://remote.fsairlines.net/v1/timetable.php?rvi=20167
Timetable ( Alternate ) http://remote.fsairlines.net/v1/timetable_2.php?rvi=20167
Flight Reports ( Pireps ) http://remote.fsairlines.net/v1/pireps.php?rvi=20167
Financial Report http://remote.fsairlines.net/v1/finance.php?rvi=20167
Reliability Report http://remote.fsairlines.net/v1/reliability.php?rvi=20167
Pilot Stats http://remote.fsairlines.net/v1/pilotstats.php?rvi=20167
Monthly Pilot Stats http://remote.fsairlines.net/v1/mpilotstats.php?rvi=20167
Fleet Stats http://remote.fsairlines.net/v1/fleetstats.php?rvi=20167
Monthly Fleet Stats http://remote.fsairlines.net/v1/mfleetstats.php?rvi=20167
Country Stats http://remote.fsairlines.net/v1/countrystats.php?rvi=20167
Dispatch Office http://remote.fsairlines.net/v1/dispatch.php?rvi=20167
Pilot Registration & Application (*) http://remote.fsairlines.net/v1/application.php?rvi=2885
Infobox http://remote.fsairlines.net/v1/infobox.php?rvi=20167
Infobox ( Alternate ) http://remote.fsairlines.net/v1/infobox2.php?rvi=20167
Booked Flights http://remote.fsairlines.net/v1/flights_booked.php?rvi=20167
Active Flights http://remote.fsairlines.net/v1/flights_active.php?rvi=20167
Active Flights ( Alternate ) http://remote.fsairlines.net/v1/flights_active2.php?rvi=20167
Last Flights http://remote.fsairlines.net/v1/lastflights.php?rvi=20167

Demos

Here can have a look at how the pages of the Integration Pack look like.

Basic VA data

Reports

That's an ignenuios way of thinking about it.

Interactive

God, I feel like I shuold be takin notes! Great work

Requested Features

The following features have been requested by users and are on the ToDo-List:

  • pilot flight book