Файл: vsime.com/devices/inc/act_index.php
Строк: 41
<?
ex_head();
echo "<div class='grand_h'>n";
echo "<table>n";
echo "<td><span class='block_l'>Популярные</span></td>n";
echo "<td><a href='/devices/?act=producers'><span class='block_l'>Производители</span></a></td>n";
echo "<td><a href='/devices/?act=search'><span class='block_l'>Поиск</span></a></td>n";
echo "</table>n";
echo "</div>n";
$count_results = mysqli_result("SELECT COUNT(*) FROM `devices_list` WHERE `id_cat` != '0'");
$count_pages = navi :: count_pages($count_results);
$page = navi :: page();
$start = navi :: start_pages();
if (!$count_results) {
echo "<div class='list_empty'>n";
echo "Список девайсов пустn";
echo "</div>n";
}
$query = mysqli_query($dbi, "SELECT * FROM `devices_list` WHERE `id_cat` != '0' ORDER BY `id` ASC LIMIT $start, $config[rop]");
while ($post = mysqli_fetch_array($query)) {
$cat = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `devices_cat` WHERE `id` = '$post[id_cat]'"));
echo "<div class='list'>n";
echo "<div class='left'>n";
echo "<img src='/i/devices/device_$post[id]_small.png' />n";
echo "</div>n";
echo "<div class='overf_hid'>n";
echo "<a href='?act=device_info&id_device=$post[id]'>".hsc($cat['name'])." ".hsc($post['name'])."</a>n";
echo "</div>n";
echo "<div class='clear'></div>n";
echo "</div>n";
}
navi :: pages_show("?");
ex_foot();
?>