more detailed pirep reports

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

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

I think the variable is $flight or $pirep, but iehter

if($pirep->pending == 0)
    echo 'Pending';
else
    echo 'Approved';

cheers il try that

will this code be in the Index.php nabeel?

Cheers, Thomas.

What do you mean?

It’s in one of the frontpage_ templates

Thankyou!2

Is this like a recent flight arrivals and departures board for the front page?

Its In The Pirep_Viewreport.tpl if it helps any1

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?

Anyone?

There’s a few threads about that, if you search around