<?php
if (empty($_GET['u'])){$_GET['u'] = 1;}
$query = "select * from obd_" . $is_bd . " where jobid = " . $_GET['u'];
$result = mysql_query($query);
$row = mysql_fetch_array($result);
include "../find_from_row.php";
include "../is_rating.php";
?>
<center><table><tr>
<?php
if (file_exists("img/bd/" . $_GET['p'] . "/" . $_GET['u'] . ".jpg")){
	echo "<td><div  class='pg10' style='height:111px;overflow:hidden;'><a target='_blank' title='открыть полное изображение' href='img/bd/" . $_GET['p'] . "/" . $_GET['u'] . ".jpg'><img class='b3w' alt='" . stripslashes($row['name']) . "' src='img/bd/" . $_GET['p'] . "/" . $_GET['u'] . ".jpg' /></a></div></td>";
}elseif (file_exists("img/bd/" . $_GET['p'] . "/" . $_GET['u'] . ".gif")){
	echo "<td><div  class='pg10' style='height:111px;overflow:hidden;'><a target='_blank' title='открыть полное изображение' href='img/bd/" . $_GET['p'] . "/" . $_GET['u'] . ".gif'><img class='b3w' alt='" . stripslashes($row['name']) . "' src='img/bd/" . $_GET['p'] . "/" . $_GET['u'] . ".gif' /></a></div></td>";
}elseif (file_exists("img/bd/" . $_GET['p'] . "/" . $_GET['u'] . ".png")){
	echo "<td><div  class='pg10' style='height:111px;overflow:hidden;'><a target='_blank' title='открыть полное изображение' href='img/bd/" . $_GET['p'] . "/" . $_GET['u'] . ".png'><img class='b3w' alt='" . stripslashes($row['name']) . "' src='img/bd/" . $_GET['p'] . "/" . $_GET['u'] . ".png' /></a></div></td>";
}
?>
<td>
<div class="cntr"><span class="sm div_bbig"><?php echo stripslashes($row['name']); ?></span></div><?php if (isset($basename[$_GET['p']-1])){ ?><div class="cntr"><?php $row['word2'] = stripslashes($row['word2']);if ($row['word2'] <> "нет"){echo $row['word2'];} ?></div><?php } ?>
<?php 
	echo "<div class='ssm'>Просмотров: ";
	include "../views.php";
	include "../tags.php";
	echo "</div>";
?>
</td></tr></table></center>
<table style="width:100%;"><tr><td class="jst tfont" style="border-right:3px solid #FFF9F0;">
<div class="ssm rgt"><a name="to_start" class="bclr_w" style="border:3px solid #FFF9F0;" href="#to_end">В конец записи</a></div>
<div class="tfont pg10 jst">
<?php
echo stripslashes($row['desk']);
?>
</div>
<div class="ssm rgt"><a name="to_end" class="bclr_w" style="border:3px solid #FFF9F0;" href="#to_start">В начало записи</a></div>
</td></tr></table>
<?php include "../online_addon.php"; ?>
<?php include "../other_project.php"; ?>
</td></tr></table></center>