Файл: idicator.php
Строк: 107
<?
$count_traf = $db->query("select * from `traf_count`")->num_rows;
if ($count_traf < 100) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="1" aria-valuemin="0" aria-valuemax="100" style="width: 1%;">
1%
</div>
</div>';
}
if ($count_traf >= 100 && $count_traf < 200) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="5" aria-valuemin="0" aria-valuemax="100" style="width: 5%;">
5%
</div>
</div>';
}
if ($count_traf >= 200 && $count_traf < 300) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="10" aria-valuemin="0" aria-valuemax="100" style="width: 10%;">
10%
</div>
</div>
';
}
if ($count_traf >= 300 && $count_traf < 400) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="15" aria-valuemin="0" aria-valuemax="100" style="width: 15%;">
15%
</div>
</div>';
}
if ($count_traf >= 400 && $count_traf < 500) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%;">
20%
</div>
</div>';
}
if ($count_traf >= 500 && $count_traf < 600) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" style="width: 25%;">
25%
</div>
</div>';
}
if ($count_traf >= 700 && $count_traf < 800) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="30" aria-valuemin="0" aria-valuemax="100" style="width: 30%;">
30%
</div>
</div>';
}
if ($count_traf >= 800 && $count_traf < 900) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="35" aria-valuemin="0" aria-valuemax="100" style="width: 35%;">
35%
</div>
</div>';
}
if ($count_traf >= 1000 && $count_traf < 1100) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%;">
40%
</div>
</div>';
}
if ($count_traf >= 1100 && $count_traf < 1200) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 45%;">
45%
</div>
</div>';
}
if ($count_traf >= 1300 && $count_traf < 1400) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width: 50%;">
50%
</div>
</div>';
}
if ($count_traf >= 1400 && $count_traf < 1500) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="55" aria-valuemin="0" aria-valuemax="100" style="width: 55%;">
55%
</div>
</div>';
}
if ($count_traf >= 1500 && $count_traf < 1600) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%;">
60%
</div>
</div>';
}
if ($count_traf >= 1600 && $count_traf < 1700) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="65" aria-valuemin="0" aria-valuemax="100" style="width: 65%;">
65%
</div>
</div>';
}
if ($count_traf >= 1700 && $count_traf < 1800) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="70" aria-valuemin="0" aria-valuemax="100" style="width: 70%;">
70%
</div>
</div>';
}
if ($count_traf >= 1800 && $count_traf < 1900) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="75" aria-valuemin="0" aria-valuemax="100" style="width: 75%;">
75%
</div>
</div>';
}
if ($count_traf >= 1900 && $count_traf < 2000) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 80%;">
80%
</div>
</div>';
}
if ($count_traf >= 2000 && $count_traf < 2100) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="85" aria-valuemin="0" aria-valuemax="100" style="width: 85%;">
85%
</div>
</div>';
}
if ($count_traf >= 2100 && $count_traf < 2200) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="90" aria-valuemin="0" aria-valuemax="100" style="width: 90%;">
90%
</div>
</div>';
}
if ($count_traf >= 2200 && $count_traf < 2400) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="95" aria-valuemin="0" aria-valuemax="100" style="width: 95%;">
95%
</div>
</div>';
}
if ($count_traf >= 2500) {
$indikator = '
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100" style="width: 100%;">
100%
</div>
</div>';
}
?>