chilemugriento Posted August 4, 2014 Report Share Posted August 4, 2014 Hi Gentlemen Have vAwards, in profile main and pilot public profile, and admin every works perfect, but dont show issued awards inserted in index tpl from vStatsCenter with this code: <table align="center"> <thead> <th colspan="4"><Center>AWARDS OTORGADOS<Center></th> <tr> <th><Center><img src="http://surair.com.mx/phpvms/lib/images/estadisticas/id.jpg"><Center>Matricula</th> <th><Center><img src="http://surair.com.mx/phpvms/lib/images/estadisticas/piloto.jpg"><Center>Piloto</th> <th><Center><img src="http://surair.com.mx/phpvms/lib/images/estadisticas/award.jpg"><Center>Award</th> <th><Center><img src="http://surair.com.mx/phpvms/lib/images/estadisticas/mes.jpg"><Center>Fecha</th> </tr> </thead> <tbody> <?php if(!$awards) { ?> <tr><td colspan="4"><Center>No se han otorgado Awards este mes<Center></td></tr> <?php } else { foreach($awards as $awd) { ?> <tr> <td align="center"><a href="<?php echo url('/profile/view/'.$awd->pilotid);?>"><?php echo PilotData::GetPilotCode($awd->code, $awd->pilotid);?></a></td> <td align="center"><?php echo $awd->firstname . ' ' . $awd->lastname; ?></td> <td align="center"><?php echo $awd->name;?></td> <td align="center"><?php echo date("F j, Y", $awd->dateissued); ?></td> </tr> <?php } } ?> </tbody> </table> Have granted awards this month but dont appear Thanks for your help Quote Link to comment Share on other sites More sharing options...
Administrators simpilot Posted August 4, 2014 Administrators Report Share Posted August 4, 2014 Try a var_dump($awards); at the start of your template and see if there is anything in the variable. It is most likely empty, then start working your way back to the originating function. Quote Link to comment Share on other sites More sharing options...
chilemugriento Posted August 28, 2014 Author Report Share Posted August 28, 2014 Hi, thank you for that possible solution, but still don´t works. Is there other solution ? Best regards 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.