Пример #1
0
 public function getOperatingSystem()
 {
     $os = $this->array['os'];
     $osIcon = '<img src="' . OperatingSystem::getIcon($os) . '"> ' . $os;
     return $osIcon;
 }
Пример #2
0
    if (empty($osStats)) {
        echo '<li class="list-group-item"><div class="text-holder"><span class="title-text"> ';
        echo "0";
        echo ' </span> <span class="description-text"> ';
        echo "None";
        echo '</span></div> <span class="stat-value"> ';
        echo " + 0 ";
        echo '<i class="icon-sort"></i></span>';
    } else {
        arsort($osStats);
        $numberValues = array_values($osStats);
        for ($i = 0; $i < 5 && $i < count($osStats); $i++) {
            $number = $numberValues[$i];
            $short = key($osStats);
            next($osStats);
            $icon = "<img src='" . OperatingSystem::getIcon($short) . "'>";
            echo '<li class="list-group-item"><div class="text-holder"><span class="title-text"> ';
            echo $number;
            echo ' </span> <span class="description-text"> ';
            echo $icon . " " . $short;
            echo '</span></div> <span class="stat-value"> ';
            echo " + 0 ";
            echo '<i class="icon-sort"></i></span>';
        }
    }
    echo '</ul>
						</div>
						</div>';
}
?>