View file stat.php

File size: 0.99Kb
<?
session_start();
$title="Статистика\n";
include ("header.php");
include ("func/aut.php");
echo $div["header"];
echo "<b>[Оператор | Клики | У.е.]</b> за сегодня<br/>";
echo $div["end"];
echo $div["ten"];
$q = mysql_query("select * from uzvers where `log`='$login';");
$reg=mysql_num_rows($q);
$field=mysql_fetch_array($q);
$all=$field['all'];
for ($i=1;$i<32;$i++)
{
$oper=$i;
include ("func/spop.php");
if ($otk[$i]!=0)
{
$host=$field[$i];
$cost=$host*($cena[$i]/1000);
echo "$oper_name | $host | $cost<br/>";
}
$allcost=$allcost+$cost;
}
echo "<br/><b>Всего за сегодня: $allcost У.е.</b><br/>";
echo "<img src=\"pics/st.gif\" alt=\"*\"/>";echo "<a href=\"statday.php?".session_name()."=".session_id()."\">Статистика по дням</a><br/>";
echo "<img src=\"pics/st.gif\" alt=\"*\"/>";echo "<a href=\"enter.php?".session_name()."=".session_id()."\">Панель</a><br/>";
echo $div["end"];
include ("footer.php");
?>