Autor Tópico: recentes Tópicos bloco  (Lida 4602 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
recentes Tópicos bloco
« em: 26 de Agosto de 2013, 23:51 »








Código: [Seleccione]
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>
        &nbsp; Última resposta 10 tópicos</td>
        <td>
        &nbsp; 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">&nbsp; ', $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">&nbsp; ', $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>
';