Colin Posted January 14, 2014 Report Share Posted January 14, 2014 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 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/ Quote Link to comment Share on other sites More sharing options...
Colin Posted January 17, 2014 Author Report Share Posted January 17, 2014 bump Quote Link to comment Share on other sites More sharing options...
RichardRodgers Posted February 10, 2015 Report Share Posted February 10, 2015 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 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.