Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Nebeveike iš niekur nieko!

Parašė Tadziokaz· 2009 Kov. 12 21:03:07
#9

<?php

global $db_prefix;

echo "<table><td width='' >";
$result = dbquery("SELECT count(download_id) FROM ".$db_prefix."downloads");
echo "<b><font color='656565'>I&#353; viso fail&#371;:&nbsp;&nbsp;&nbsp;<font color='d2c6b6'><b>".dbresult($result, 0)."</b></font></b><br>\n";

$result = dbquery("SELECT SUM(download_count) FROM ".$db_prefix."downloads");
echo "<b><font color='656565'>Parsisi&#363;sta:&nbsp;&nbsp;&nbsp;<font color='d2c6b6'><b>".dbresult($result, 0)." kart&#371;</b></font></font></b><br>";

$result = dbquery("SELECT count(news_id) FROM ".$db_prefix."news");
echo "<b><font color='656565'>Naujien&#371; portale:&nbsp;&nbsp;&nbsp;<font color='d2c6b6'><b>".dbresult($result, 0)."</b></font></font></b><br>";

$result = dbquery("SELECT SUM(news_reads) FROM ".$db_prefix."news");
echo "<b><font color='656565'>Skaityta:&nbsp;&nbsp;&nbsp;<font color='d2c6b6'><b>".dbresult($result, 0)." kart&#371;</b></font></b><br>";

echo "<b><font color='656565'>Turime nariø:&nbsp;<font color='d2c6b6'><b>".dbcount("(user_id)", "users", "user_status<='1'")." </b></font></b> <br>\n";

echo "</td><td>";

echo "<td  align='left'>Vartotoju: ".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."   &nbsp;   Portale narso: ".dbcount("(*)","online","")."(".dbcount("(*)","online","online_user = '0'")." )</td>
";
   
echo "</td>
</table>";
?>




Viskas veikia, tik kur Portale narso: ** tai skaiciuoja svecius o ne prisijungusius zmones... Tik susitvarkyk teksto spalva ir pns. Jei nori kad ikisciau ta Vortoju: / Portale narso: į pirma lentele pasakyk padarysiu

Redagavo Tadziokaz· 2009 Kov. 12 21:03:18