Jump to content

Pilot Status Admin


Colin

Recommended Posts

Another quick one:

I've followed this old forum post: http://forum.phpvms....-supported-now/ as we have added the LOA form to the VA so we could set pilots status's to ON LEAVE.

I've got it to show in the pilot center etc but for some reason on the main pilots list in the admin it's showing as retired instead of correctly showing ON LEAVE (screenshot attached when I changed my own status )

Any help appreciated not sure where i've gone wrong :wacko:

If anyone can shed any light on this topic as well that would be awesome too http://forum.phpvms.net/topic/20264-email-all-pilots-not-working/ :wub:

post-3200-0-47776400-1389670382_thumb.jpg

Link to comment
Share on other sites

  • 1 year later...

Colin,

I have done a similar thing to you but rather than have Active, Retired or LOA I needed Active, In-Active or New Recruit

I can get it to display whichever one I set from the three choices in all places(rosters example http://www.rafairuk....ndex.php/pilots) except in the Admin 'View All Pilots' list.

I changed a setting in Admin/modules/pilot admin/pilot_admin.php from Retired to Not Active. try as I might I could not get my head around how to get the choice of 3 options in there. Whatever I tried I kept getting syntax errors.

# Add each row to the above array

foreach($allpilots as $row)

{

$status = ($row->retired==0) ? 'Active' : 'Not Active';

$location = '<img src="'.Countries::getCountryImage($row->location).'" alt="'.$row->location.'" />';

$edit = '<a href="'.adminurl('/pilotadmin/viewpilots?action=viewoptions&pilotid='.$row->pilotid).'">Edit</a>';

$tmp = array(

'id' => $row->id,

'cell' => array(

# Each column, in order

Untitled-1.jpg

My way of thinking was that being as I didn't need RETIRED anyway, if I had NOT ACTIVE in there it was better than having RETIRED.

Give me a shout if you wish.

Richard

Link to comment
Share on other sites

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