dazwalsh Posted July 20, 2009 Report 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
dazwalsh Posted July 20, 2009 Author Report 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
Administrators Nabeel Posted July 21, 2009 Administrators Report Posted July 21, 2009 I think the variable is $flight or $pirep, but iehter if($pirep->pending == 0) echo 'Pending'; else echo 'Approved'; Quote
Thomas Posted August 18, 2009 Report Posted August 18, 2009 will this code be in the Index.php nabeel? Cheers, Thomas. Quote
Administrators Nabeel Posted August 18, 2009 Administrators Report Posted August 18, 2009 What do you mean? It's in one of the frontpage_ templates Quote
Moderators mark1million Posted August 20, 2009 Moderators Report Posted August 20, 2009 Is this like a recent flight arrivals and departures board for the front page? Quote
Thomas Posted August 31, 2009 Report Posted August 31, 2009 Its In The Pirep_Viewreport.tpl if it helps any1 Quote
Thomas Posted August 31, 2009 Report 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
Administrators Nabeel Posted September 16, 2009 Administrators Report Posted September 16, 2009 There's a few threads about that, if you search around Quote
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.