File size: 1.27Kb
<?
session_start();
$title="Контакты\n";
include ("header.php");
echo $div["header"];
echo "<b>Статистика</b>";
echo $div["end"];
echo $div["ten"];
echo "<div style=\"text-align:center\">";
$q = mysql_query("select * from uzvers;");
$reg=mysql_num_rows($q);
echo "<br/>Всего партнеров: <b>$reg</b><br/>";
$q = mysql_query("select * from uzvers where `allmonth`>'0';");
$reg=mysql_num_rows($q);
while ($field=mysql_fetch_array($q))
{
$w=$field['allmonth'];
$all=$all+$w;
}
echo "Активных партнеров: <b>$reg</b><br/>";
echo "На счету у партнеров: <b>$all</b> у.е.<br/>";
$q = mysql_query("select * from uzvers where `opl`>'0';");
$reg=mysql_num_rows($q);
while ($field=mysql_fetch_array($q))
{
$w=$field['opl'];
$all1=$all1+$w;
}
echo "Выплачено: <b>$all1</b> y.e.<br/>";
if ($autorize) {echo "<img src=\"pics/st.gif\" alt=\"*\"/>";echo "<a href=\"enter.php?".session_name()."=".session_id()."\">Панель</a><br/>";}
else {echo "#";echo "<a href=\"index.php?".session_name()."=".session_id()."\">Назад</a><br/>";}
echo "</div>";
echo $div["end"];
include ("footer.php");
?>