Jeff Posted September 21, 2011 Report Posted September 21, 2011 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? Quote
Guest Posted September 21, 2011 Report Posted September 21, 2011 Try this <?php echo $report->aircraft;?> Quote
Jeff Posted November 15, 2011 Author Report Posted November 15, 2011 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>';} ?> Quote
Jeff Posted December 13, 2011 Author Report Posted December 13, 2011 Another Bump please. I am using Dave's Front Schedules. 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.