Fernando Posted August 19, 2012 Report Posted August 19, 2012 Hello I was looking at some virtual airline using the PHPVMS, a system of very good, pilots recent ... Algue know how we can do a similar? http://desmond.image...jpg&res=landing Quote
Moderators servetas Posted August 19, 2012 Moderators Report Posted August 19, 2012 <?php MainController::Run('Pilots', 'RecentFrontPage', x); ?> Where x the number of the pilots you want to show. Quote
Fernando Posted August 19, 2012 Author Report Posted August 19, 2012 Servetas I'm using the same code, but the image does not appear as I mentioned above. why? Quote
Moderators servetas Posted August 19, 2012 Moderators Report Posted August 19, 2012 Go to your template's directory, find and edit the frontpage_recentpilots.tpl file. You may use the following code: <img src="<?php echo Countries::getCountryImage($pilot->location);?>" /> Quote
Fernando Posted August 19, 2012 Author Report Posted August 19, 2012 Serveta, thanks ... Its separate the information as below? In the case shown Pilot ID / Name / Date Quote
Moderators Kyle Posted August 19, 2012 Moderators Report Posted August 19, 2012 This should be what you are looking for <?php if(!$pilots) { echo '<p>No pilots has joined us!</p>'; return; } ?> <table> <thead> <tr> <th>Pilot ID</th> <th>Pilot Name</th> <th>Join Date</th> </tr> </thead> <tbody> <?php foreach($pilots as $pilot) { ?> <tr> <td align="center"><a href="<?php echo url('/profile/view/'.$pilot->pilotid);?>"><?php echo PilotData::GetPilotCode($pilot->code, $pilot->pilotid);?></a></td> <td align="center"><?php echo $pilot->firstname . ' ' . $pilot->lastname; ?></td> <td align="center"><?php echo date("m.d.y", $pilot->joindate);?></td> </tr> <?php } ?> </tbody> </table> Quote
Fernando Posted August 19, 2012 Author Report Posted August 19, 2012 Kyle Thank you ..... Perfect! www.azulv.com 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.