Файл: vsime.com/devices/inc/act_device_info.php
Строк: 33
<?
$device = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `devices_list` WHERE `id` = '".intval(@$_GET['id_device'])."'"));
if (!$device['id']) {
$title .= ' - Ошибка!';
show_errors("Девайс не найден");
ex_foot();
}
$cat = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `devices_cat` WHERE `id` = '$device[id_cat]'"));
$navigation .= " / ".hsc($cat['name'])." ".hsc($device['name']);
$title .= " / ".hsc($cat['name'])." ".hsc($device['name']);
ex_head();
echo "<div class='grand_h'>n";
echo "<b>".hsc($cat['name'])." ".hsc($device['name'])."</b><br />n";
echo "</div>n";
echo "<div class='list'>n";
echo "<div class='left'>n";
echo "<img src='/i/devices/device_$device[id].png' /><br />n";
echo "</div>n";
echo "<div class='overfl_hid'>n";
if ($device['general_features']) {
echo output_text($device['general_features'], 1)."n";
}
echo "</div>n";
echo "<div class='clear'></div>n";
echo "</div>n";
echo "<div class='mod_grad'>n";
echo "<a href='?act=device_info_full&id_device=$device[id]'>Все характеристики</a><br />n";
echo "</div>n";
echo "<div class='foot'>n";
echo image_back()." <a href='?act=producer&id_producer=$cat[id]'>Назад</a><br />n";
echo "</div>n";
ex_foot();
?>