Autor Tópico: Estatísticas Mini  (Lida 5928 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
Estatísticas Mini
« em: 12 de Janeiro de 2008, 03:26 »

BoardIndex.template.php

Pesquisar por

Código: [Seleccione]
// Show the "Board name      Topics  Posts    Last Post" header.[/color]

Código: [Seleccione]
//istatistikler  Translate By Candidosa2
echo '
<table border="0" width="100%" class="tborder" cellspacing="' , ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' : '0' , '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="titlebg"><span class="text">..::Estatísticas==::..</td>
</tr><td width="100%" colspan="4" class="catbg" height="17" align="center"></td></tr>
<tr>
<td valign="middle" align="center" height="60"><b>
<img src="http://img240.imageshack.us/img240/2685/newmarkzq4.gif"> ', $txt[490], ': ', $context['common_stats']['total_topics'], ' <img src="http://img240.imageshack.us/img240/2685/newmarkzq4.gif"> ', $txt[489], ': ', $context['common_stats']['total_posts'], ' <img src="http://img240.imageshack.us/img240/2685/newmarkzq4.gif"> ', $txt[488], ': <a href="', $scripturl, '?action=mlist">', $context['common_stats']['total_members'],  '</a></b> <img src="http://img240.imageshack.us/img240/2685/newmarkzq4.gif">


</td>
</tr>
</table>';




Código: [Seleccione]
//istatistikler Translate By Candidosa2
echo '
<table border="0" width="100%" class="tborder" cellspacing="' , ($context['browser']['is_ie'] || $context['browser']['is_opera6']) ? '1' : '0' , '" cellpadding="4" style="margin-bottom: 2ex;">
<tr>
<td class="titlebg"><span class="text">..::Estatísticas::..</td>
</tr><td width="100%" colspan="4" class="catbg" height="17" align="center"></td></tr>
<tr>
<tr class="windowbg2">
<td valign="middle" align="center" height="30"><b>
<!-- Tarih ve Saat Başlangıcı -->
<img src="http://img240.imageshack.us/img240/2685/newmarkzq4.gif"><span id="clock"> </span>
<SCRIPT LANGUAGE="JavaScript"><!--
var tarih = new Date();
var hours;
var minutes;
var seconds;
var timer=null;
function sClock()
{
hours   = tarih.getHours();
minutes = tarih.getMinutes();
seconds = tarih.getSeconds();
setTimeout("work();",1000);
}
function twoDigit(_v)
{
if(_v<10)_v="0"+_v;
return _v;
}
function work()
{
if (!document.layers && !document.all && !document.getElementById) return;
var runTime = new Date();
var shours = hours;
var sminutes = minutes;
var sseconds = seconds;
var years  = twoDigit(tarih.getFullYear());
var months = turkceAy(tarih.getMonth()+1);//twoDigit(tarih.getMonth()+1);
var days   = twoDigit(tarih.getDate());
sminutes=twoDigit(sminutes);
sseconds=twoDigit(sseconds);
shours  =twoDigit(shours);
movingtime = days+" "+months+" "+years+" "+ shours + ":" + sminutes +":"+sseconds;
document.getElementById("clock").innerHTML=movingtime;
if(++seconds>59)
{
seconds=0;
if(++minutes>59)
{
minutes=0;
if(++hours>23)
{
hours=0;
tarih.setDate(tarih.getDate()+1);
}
}
}
setTimeout("work();",1000);
}
function turkceAy(ay)
{
switch (ay){
case 1:return "Janeiro";
case 2:return "Fevereiro";
case 3:return "Março";
case 4:return "Abril";
case 5:return "Maio";
case 6:return "Junho";
case 7:return "Julho";
case 8:return "Ağosto";
case 9:return "Setembro";
case 10:return "Outubro";
case 11:return "Novembro";
case 12:return "Dezembro";
}
}
sClock();
--></SCRIPT> <img src="http://img240.imageshack.us/img240/2685/newmarkzq4.gif">
<!-- Saat ve Tarih Kodu Bitişi -->
</td>

</tr>
<tr class="windowbg2">
<td valign="middle" align="center" height="30"><b>
<img src="http://img240.imageshack.us/img240/2685/newmarkzq4.gif"> ', $txt[490], ': ', $context['common_stats']['total_topics'], ' <img src="http://img240.imageshack.us/img240/2685/newmarkzq4.gif"> ', $txt[489], ': ', $context['common_stats']['total_posts'], ' <img src="http://img240.imageshack.us/img240/2685/newmarkzq4.gif"> ', $txt[488], ': <a href="', $scripturl, '?action=mlist">', $context['common_stats']['total_members'],  '</a></b> <img src="http://img240.imageshack.us/img240/2685/newmarkzq4.gif">


</td>

</tr>
<tr class="windowbg2">
<td valign="middle" align="center" height="30"><b>

<img src="http://img240.imageshack.us/img240/2685/newmarkzq4.gif">', $txt['totalTimeLogged1'];

         // If days is just zero, don't bother to show it.
         if ($context['user']['total_time_logged_in']['days'] > 0)
            echo $context['user']['total_time_logged_in']['days'] . $txt['totalTimeLogged2'];

         // Same with hours - only show it if it's above zero.
         if ($context['user']['total_time_logged_in']['hours'] > 0)
            echo $context['user']['total_time_logged_in']['hours'] . $txt['totalTimeLogged3'];

         // But, let's always show minutes - Time wasted here: 0 minutes ;).
         echo $context['user']['total_time_logged_in']['minutes'], $txt['totalTimeLogged4'], ' <img src="http://img240.imageshack.us/img240/2685/newmarkzq4.gif">

</td>

</tr>
<tr class="windowbg2">
</table>';