<?
if ($k_post_img!=0)
{
echo "<img src='/search/img/img.png' /><a href='?go&img=ok'> Картинки $k_post_img</a>";
if (isset($_GET['img']) =='ok')
{
$k_page=k_page($k_post_img,$set['p_str']);
$page=page($k_page);
$start=$set['p_str']*$page-$set['p_str'];
if ($k_post_img==0)echo "<div class="err">nНет результатов</div>n";
$q=mysql_query("SELECT * FROM `obmennik_files` WHERE `opis` like '%".mysql_escape_string($q_search)."%' AND `type` like '%".mysql_escape_string(image)."%' ORDER BY `id` DESC LIMIT $start, $set[p_str]");
$i=0;
while ($img = mysql_fetch_assoc($q))
{
$dir=mysql_fetch_assoc(mysql_query("select * from `obmennik_dir` where `id`='".$img['id_dir']."';"));
echo " <div class='p_m'>n";
echo "<a href='/obmen$dir[dir]$img[name].$img[ras]?showinfo'> ^ $img[name]</a>";
echo " </div>n";
}
if ($k_page>1){str("?go&img=ok&",$k_page,$page);
print'<br/>';
}
}
}
else
{
}
?>