SMFPT - Suporte e Manutenção de Fórum em Português
Customizing SMF => Portal System para SMF => Simpleportal => Tópico iniciado por: candidosa2 em 26 de Agosto de 2013, 23:51
-
(http://aplicimagens.info/image-0998_521BBFAE.jpg) (http://aplicimagens.info/share-0998_521BBFAE.html)
global $scripturl, $settings, $context, $txt;
$what = ssi_recentTopics('10', NULL, 'array');
echo '
<table width="100%" style="border-collapse: collapse" id="table1">
<tr class="catbg">
<td>
Última resposta 10 tópicos</td>
<td>
Secção resposta</td>
<td align="center">
Remetente</td>
<td align="center">
História</td>
</tr>
';
foreach ($what as $topic)
{
echo '
<tr>
<td background="Themes/default/images/baby3.jpg">
<img border="0" src="Themes/default/images/ok (1)" width="16" height="12"> ', $topic['link'];
// Is this topic new? (assuming they are logged in!)
if (!$topic['new'] && $context['user']['is_logged'])
echo '
<a href="', $scripturl, '?topic=', $topic['topic'], '.from', $topic['time'], '#new"><img src="', $settings['images_url'], '/', $context['user']['language'], '/new.gif" alt="', $txt[302], '" border="0" /></a>';
echo '</td>
<td background="Themes/default/images/baby3.jpg"> ', $topic['board']['link'], '</td>
<td align="center" background="Themes/default/images/baby3.jpg">', $topic['poster']['link'], '</td>
<td align="center" background="Themes/default/images/baby3.jpg">', $topic['time'], '</td>
';
}
echo '
</tr>
</table>
';