Jump to content

Recommended Posts

  • Moderators
Posted
$details = OperationsData::getAllPilots();
foreach($details as $pilot)
{
 echo $pilot->firstname.'<br />;
 echo $pilot->lastname.'<br />;
 .
 .
 .
}

Posted

I'm pretty sure Cori is referring to the array of status's a pilot can be put under such as Active, Inactive, on LOA, banned, etc.

I'd also like to know how to add and display this because i never seemed to get it working.

Tylor

  • Like 1
Posted

In my pilots_list.tpl, I add:

<?php
		    if($pilot->retired == '1')
		    {echo '<img src="'.SITE_URL.'/lib/skins/yourskinname/images/no.png" alt="warning" /> - Retired';}
		    else
		    {echo '<img src="'.SITE_URL.'/lib/skins/yourskinname/images/yes.png" alt="warning" /> - Active';}
	    ?>

Obviously, change "yourskinname" to whatever you are using ie. crystal And add an icon to indicate active or retired in the above example. You can add whatever else you like. There IS a post about this on this site about this somewhere. That is where I got the info from.

  • Like 1
Posted

It is possible to add more Status values. I have some more at hellenic airways. I'm just on my iphone so i can't give you the code right now but i got it from this forum. Somewhere Here is explained what files you need to edit.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...