Jeff Posted September 21, 2011 Report Share 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 Link to comment Share on other sites More sharing options...
Guest Posted September 21, 2011 Report Share Posted September 21, 2011 Try this <?php echo $report->aircraft;?> Quote Link to comment Share on other sites More sharing options...
Jeff Posted September 21, 2011 Author Report Share Posted September 21, 2011 Thank you Mattia. Quote Link to comment Share on other sites More sharing options...
Guest Posted September 22, 2011 Report Share Posted September 22, 2011 always ready to help... Quote Link to comment Share on other sites More sharing options...
Jeff Posted November 15, 2011 Author Report Share 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 Link to comment Share on other sites More sharing options...
Jeff Posted November 17, 2011 Author Report Share Posted November 17, 2011 [bump] please Quote Link to comment Share on other sites More sharing options...
Jeff Posted December 13, 2011 Author Report Share Posted December 13, 2011 Another Bump please. I am using Dave's Front Schedules. Quote Link to comment Share on other sites More sharing options...
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.