Файл: vsime.com/devices/inc/act_device_info_full.php
Строк: 119
<?
$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 "<img src='/i/devices/device_$device[id].png' /><br />n";
echo "</div>n";
if ($device['general_features']) {
echo "<div class='main'>n";
echo "Общие характеристикиn";
echo "</div>n";
echo "<div class='list'>n";
echo output_text($device['general_features'], 1)."n";
echo "</div>n";
}
if ($device['screen']) {
echo "<div class='main'>n";
echo "Экранn";
echo "</div>n";
echo "<div class='list'>n";
echo output_text($device['screen'], 1)."n";
echo "</div>n";
}
if ($device['calls']) {
echo "<div class='main'>n";
echo "Звонкиn";
echo "</div>n";
echo "<div class='list'>n";
echo output_text($device['calls'], 1)."n";
echo "</div>n";
}
if ($device['multimedia_features']) {
echo "<div class='main'>n";
echo "Мультимедийные возможностиn";
echo "</div>n";
echo "<div class='list'>n";
echo output_text($device['multimedia_features'], 1)."n";
echo "</div>n";
}
if ($device['relations']) {
echo "<div class='main'>n";
echo "Связьn";
echo "</div>n";
echo "<div class='list'>n";
echo output_text($device['relations'], 1)."n";
echo "</div>n";
}
if ($device['memory_and_processor']) {
echo "<div class='main'>n";
echo "Память и процессорn";
echo "</div>n";
echo "<div class='list'>n";
echo output_text($device['memory_and_processor'], 1)."n";
echo "</div>n";
}
if ($device['messages']) {
echo "<div class='main'>n";
echo "Сообщенияn";
echo "</div>n";
echo "<div class='list'>n";
echo output_text($device['messages'], 1)."n";
echo "</div>n";
}
if ($device['food']) {
echo "<div class='main'>n";
echo "Питаниеn";
echo "</div>n";
echo "<div class='list'>n";
echo output_text($device['food'], 1)."n";
echo "</div>n";
}
if ($device['other_features']) {
echo "<div class='main'>n";
echo "Другие функцииn";
echo "</div>n";
echo "<div class='list'>n";
echo output_text($device['other_features'], 1)."n";
echo "</div>n";
}
if ($device['notebook_and_organizer']) {
echo "<div class='main'>n";
echo "Записная книжка и органайзерn";
echo "</div>n";
echo "<div class='list'>n";
echo output_text($device['notebook_and_organizer'], 1)."n";
echo "</div>n";
}
if ($device['additional_information']) {
echo "<div class='main'>n";
echo "Дополнительная информацияn";
echo "</div>n";
echo "<div class='list'>n";
echo output_text($device['additional_information'], 1)."n";
echo "</div>n";
}
echo "<div class='foot'>n";
echo image_back()." <a href='?act=device_info&id_device=$device[id]'>Назад</a><br />n";
echo "</div>n";
ex_foot();
?>