dazwalsh Posted July 20, 2009 Report Share Posted July 20, 2009 hey guys, would it be easy to add further information to the latest pirep report on the frontpage, for example adding departure and arrival ICAO's, duration and if the pirep has been approved or not. i am just looking into doing this myself but im a relative newbie to php so it might take me some time, feel free to help me cheers Darren Quote Link to comment Share on other sites More sharing options...
dazwalsh Posted July 20, 2009 Author Report Share Posted July 20, 2009 ok this was easier than i thought to display the information, but i would like to add wether the flight has been approved or not, there is a field for this in the pirep table that simply has a 0 if not approved and a 1 if it has. How can i display the 0 as "pending" and the 1 as "approved"? Many thanks Darren Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted July 21, 2009 Administrators Report Share Posted July 21, 2009 I think the variable is $flight or $pirep, but iehter if($pirep->pending == 0) echo 'Pending'; else echo 'Approved'; Quote Link to comment Share on other sites More sharing options...
dazwalsh Posted July 21, 2009 Author Report Share Posted July 21, 2009 cheers il try that Quote Link to comment Share on other sites More sharing options...
Thomas Posted August 18, 2009 Report Share Posted August 18, 2009 will this code be in the Index.php nabeel? Cheers, Thomas. Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted August 18, 2009 Administrators Report Share Posted August 18, 2009 What do you mean? It's in one of the frontpage_ templates Quote Link to comment Share on other sites More sharing options...
Thomas Posted August 18, 2009 Report Share Posted August 18, 2009 Thankyou!2 Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted August 20, 2009 Moderators Report Share Posted August 20, 2009 Is this like a recent flight arrivals and departures board for the front page? Quote Link to comment Share on other sites More sharing options...
Thomas Posted August 31, 2009 Report Share Posted August 31, 2009 Its In The Pirep_Viewreport.tpl if it helps any1 Quote Link to comment Share on other sites More sharing options...
Thomas Posted August 31, 2009 Report Share Posted August 31, 2009 But One other Question, i was looking on one of the Other VA's websites that uses PHPvms (Fly Alaska actually ) and i was wondering how i would be able to make it that it shows the "Accepted Image" On the Pirep info page? Quote Link to comment Share on other sites More sharing options...
Thomas Posted September 1, 2009 Report Share Posted September 1, 2009 Anyone? Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted September 16, 2009 Administrators Report Share Posted September 16, 2009 There's a few threads about that, if you search around 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.