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

Parašė Tomcis· 2009 Kov. 12 21:03:03
#3

<?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>
Vartotoju: ".number_format(dbcount("(user_id)", "users", "user_status<='1'"))."   &nbsp;   Portale narso: ".dbcount("(*)","online","")."(".dbcount("(*)","online","online_user = '0'")." )
</td>
</table>";
?>



Bandyk.

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