Jump to content

Recommended Posts

Posted

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

Posted

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

  • Administrators
Posted

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

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

  • 4 weeks later...
  • 2 weeks later...
Posted

But One other Question, i was looking on one of the Other VA's websites that uses PHPvms (Fly Alaska actually :D) and i was wondering how i would be able to make it  that it shows the "Accepted Image" On the Pirep info page?

  • 3 weeks later...

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