View file cabinet/stat.php

File size: 1Kb
<?
session_start();
$title="Статистика\n";
include ("../header.php");
include ("aut.php");
echo $div["header"];
echo "<b>[Оператор | Клики | У.е.]</b> за сегодня<br/>";
echo $div["end"];
echo $div["ten"];
$q = mysql_query("select * from clients where `id`='$id';");
$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");
?>