Jump to content

Recommended Posts

Posted

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

post-45471-0-13481100-1407110495_thumb.jpg

  • Administrators
Posted

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.

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...