ThomasH Posted April 9, 2010 Report Share Posted April 9, 2010 Hello I would like to get pilot roster at the end of the table not with the pilot him HUB, but current location indicated. I simply do not do it. If somebody can write to me please a code for it? Thanks Thomas Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted April 9, 2010 Moderators Report Share Posted April 9, 2010 Hi the code to display the pilots current position in their profile is, <?php echo $report->arricao;?> Not sure if it will work in the pilots page, you could try something like, <?php echo $userinfo->arricao;?> See if that gives you anything, im sure someone more proficient in code will be along soon Quote Link to comment Share on other sites More sharing options...
ThomasH Posted April 9, 2010 Author Report Share Posted April 9, 2010 Ok, this is my code in pilots_list.tpl: 39 <center><td><?php echo $userinfo->arricao;?></td></center> 40 </tr> 41 </tbody> 42 </table> But becom error message in the browser: Parse error: syntax error, unexpected $end in /kunden/265414_32756/html/phpvms/core/templates/pilots_list.tpl on line 43 hmm, can you help me? Quote Link to comment Share on other sites More sharing options...
faraz Posted April 9, 2010 Report Share Posted April 9, 2010 <?php $last_location = PIREPData::getLastReports($pilot->pilotid, 1, PIREP_ACCEPTED); echo $last_location->arricao ; ?> Quote Link to comment Share on other sites More sharing options...
ThomasH Posted April 9, 2010 Author Report Share Posted April 9, 2010 <center><td><?php $last_location = PIREPData::getLastReports($pilot->pilotid, 1, PIREP_ACCEPTED); echo $last_location->arricao ; ?> </td></center> </tr> </tbody> </table> And then come: Parse error: syntax error, unexpected $end in /kunden/265414_32756/html/phpvms/core/templates/pilots_list.tpl on line 45 Quote Link to comment Share on other sites More sharing options...
Administrators Nabeel Posted April 9, 2010 Administrators Report Share Posted April 9, 2010 Look in the code snippets forum, I believe it's there 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.