if(!isset($_REQUEST['lang']) or ($_REQUEST['lang']!=1 and $_REQUEST['lang']!=2)) $lang=1;
else $lang=$_REQUEST['lang'];
include ("include/config.php");
include ("include/connect.php");
include ("include/var.php");
if (!isset($_REQUEST['id']) or empty($_REQUEST['id']) or (!eregi("[0-9]", $_REQUEST['id']))) {
$spectr = $db->Execute("select * from ".$prefix."_spectrum where lang=$lang LIMIT 1");
$id = $spectr->fields['id'];
} else {
$id = $_REQUEST['id'];
$spectr = $db->Execute("select * from ".$prefix."_spectrum where id=$id");
}
$body = nl2br(html_entity_decode($spectr->fields['body'],ENT_QUOTES,"utf-8"));
$descriptions=nl2br(html_entity_decode($spectr->fields['descriptions'],ENT_QUOTES,"utf-8"));
$keywords=nl2br(html_entity_decode($spectr->fields['keywords'],ENT_QUOTES,"utf-8"));
echo '
';
echo '
'. $spectrtit . ' » '.$spectr->fields['title'].'
';
if ($spectr->RecordCount() > 0) {
$ld = $db->Execute("select * from ".$prefix."_ldspectrum where own_id=$id");
if ($ld->RecordCount() > 0) {
echo '
';
while (!$ld->EOF) {
if(file_exists("loaddb/" . $ld->fields['ldname'])) {
$ld_path = "loaddb/" . $ld->fields['ldname'];
$ld_size = round(($ld->fields['ldsize'])/1000);
if ($ld->fields['ldsize'] != '') echo '
'.$ld->fields['body'].' ('.$ld_size.' Кб) ';
}
$ld->MoveNext();
}
echo '
';
}
}
echo $body;
echo '
';
?>