Вход Регистрация
Файл: top_reit/rustats.su/system/view/stat/browser.tpl
Строк: 166
<div class="navig"> <? error_reporting(0); $ip =
Core::count("SELECT COUNT(*) FROM `ip` WHERE
`id_site`='".abs(intval($_GET['get']))."'");
$p=$ip/100; ?> <table
width="100%"cellspacing="1"> <tr> <td
align="center" width="34%" style="border:1px solid
#9a9a9c"><b>Браузер</b></td> <td
align="center" width="33%" style="border:1px solid
#9a9a9c"><b>Хосты</b></td> <td
align="center" width="33%" style="border:1px solid
#9a9a9c"><b>Процент</b></td> </tr></table> <table
width="100%"cellspacing="1"> <tr> <?$chrome
= Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'Chrome'
&& `id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid #9a9a9c">Chrome</td> <td
align="center" width="33%" style="border:1px solid
#9a9a9c"><? echo $chrome;?></td> <td
align="center" width="33%" style="border:1px solid
#9a9a9c"><? echo round($chrome/$p,
2).'%';?></td> </tr> <tr> <?$opera =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'Opera' &&
`id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid #9a9a9c">Opera</td> <td
align="center" width="33%" style="border:1px solid
#9a9a9c"><? echo $opera;?></td> <td
align="center" width="33%" style="border:1px solid
#9a9a9c"><? echo round($opera/$p,
2).'%';?></td> </tr> <tr> <?$IE =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'IE' &&
`id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid #9a9a9c">Internet
Explorer</td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo $IE;?></td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo round($IE/$p,
2).'%';?></td> </tr> <tr> <?$safari =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'Safari'
&& `id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid #9a9a9c">Safari</td> <td
align="center" width="33%" style="border:1px solid
#9a9a9c"><? echo $safari;?></td> <td
align="center" width="33%" style="border:1px solid
#9a9a9c"><? echo round($safari/$p,
2).'%';?></td> </tr> <tr> <?$firefox =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'Mozilla Firefox'
&& `id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid
#9a9a9c">Firefox</td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo $firefox;?></td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo round($firefox/$p,
2).'%';?></td> </tr> <tr> <?$opera_mini =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'Opera Mini'
&& `id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid #9a9a9c">Opera
Mini</td> <td align="center" width="33%"
style="border:1px solid #9a9a9c"><? echo
$opera_mini;?></td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo round($opera_mini/$p,
2).'%';?></td> </tr> <tr> <?$ucweb =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'UC Browser'
&& `id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid #9a9a9c">UC
Browser</td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo $ucweb;?></td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo round($ucweb/$p,
2).'%';?></td> </tr> <tr> <?$Opera_Mobi =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'Opera Mobi'
&& `id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid #9a9a9c">Opera
Mobi</td> <td align="center" width="33%"
style="border:1px solid #9a9a9c"><? echo
$Opera_Mobi;?></td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo round($Opera_Mobi/$p,
2).'%';?></td> </tr> <tr> <?$Amaya =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'Amaya' &&
`id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid #9a9a9c">Amaya</td> <td
align="center" width="33%" style="border:1px solid
#9a9a9c"><? echo $Amaya;?></td> <td
align="center" width="33%" style="border:1px solid
#9a9a9c"><? echo round($Amaya/$p,
2).'%';?></td> </tr> <tr> <?$Netscape =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'Netscape'
&& `id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid
#9a9a9c">Netscape</td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo $Netscape;?></td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo round($Netscape/$p,
2).'%';?></td> </tr> <tr> <?$IE_Mobile =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'IE Mobile'
&& `id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid #9a9a9c">IE
Mobile</td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo $IE_Mobile ;?></td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo round($IE_Mobile /$p,
2).'%';?></td> </tr> <tr> <?$Avant_Browser =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'Avant Browser'
&& `id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid #9a9a9c">Avant
Browser</td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo $Avant_Browser;?></td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo round($Avant_Browser/$p,
2).'%';?></td> </tr> <tr> <?$SeaMonkey =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'SeaMonkey'
&& `id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid
#9a9a9c">SeaMonkey</td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo $SeaMonkey;?></td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo round($SeaMonkey/$p,
2).'%';?></td> </tr> <tr> <?$BlackBerry =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` = 'BlackBerry'
&& `id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid
#9a9a9c">BlackBerry</td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo $BlackBerry;?></td> <td align="center"
width="33%" style="border:1px solid #9a9a9c"><?
echo round($BlackBerry/$p,
2).'%';?></td> </tr> <tr> <?$ost =
Core::count("SELECT COUNT(*) FROM `ip` WHERE `br` =
'Неизвестный' &&
`id_site`='".abs(intval($_GET['get']))."'");
?> <td align="center" width="34%"
style="border:1px solid
#9a9a9c">Остальные</td> <td
align="center" width="33%" style="border:1px solid
#9a9a9c"><? echo $ost;?></td> <td
align="center" width="33%" style="border:1px solid
#9a9a9c"><? echo round($ost/$p,
2).'%';?></td> </tr> </table> </div> <? echo
'<a href=/stat/index/'.$_GET['get'].'><div
class="h1">Назад к
статистике</div></a>'; ?>
Онлайн: 1
Реклама