Jump to content

Showing Aircraft by name [RE-OPENED]


Recommended Posts

Posted

Okay, here is a problem I came across today that I would like to get right, but just can't figure it out. I want to have the aircraft name to be shown instead of the registration in the pireps_viewall.tpl.

In the pireps_viewall.tpl file I have this (as default)

<?php echo $report->registration; ?>

I have tried numerous types to get it show, but it just will not show up for me.

Tried the following...

<?php echo $report->name; ?>
<?php echo $aircraft->name; ?>
<?php echo $report->aircraftname; ?>

with no positive results. Does anyone have the correct code for this?

  • 1 month later...
Posted

Now I need to show the aircraft name in the search form. Here is the code I am using, but nothing shows except "ALL"

<?php
                       foreach ($aircrafts as $aircraft)
                           {echo '<option value="'.$aircraft->name.'">'.$aircraft->name.'</option>';}
                   ?>

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