Файл: _downfile_CodWM_21480/foto/vivod.php
Строк: 36
<?
?>
<link rel="stylesheet" href="/foto/foto.css" type="text/css" />
<?
echo "<div class='foot'>";
echo "<a href='/foto/rating.php'>Лучшие фото:</a> n";
echo "</div> <center> ";
$set['p_str'] = 5;
$k_rxn = mysql_num_rows(mysql_query("SELECT `id` FROM `gallery_foto` WHERE `rating` > '0'"));
$k_page = k_page($k_rxn,$set['p_str']);
$page = page($k_page);
$start = $set['p_str']*$page-$set['p_str'];
$r_xn = mysql_query("SELECT * FROM `gallery_foto` WHERE `rating` > '0' ORDER BY `rating` DESC LIMIT $start, $set[p_str]");
echo '<div class="nav1">';
// Лесенка
echo '<table class="' . ($num % 2 ? "nav1" : "nav2") . '">';
$num++;
echo " <tr>n";
while ($ank = mysql_fetch_array($r_xn))
{
echo " <td class='icon141'><div class = 'foto'><div class = 'foto_bl'>
<center><img class = 'img' src = '/foto/img/votes.png' width='14'/>
<small>$ank[rating]</small>
</center></div>n";
$f=$ank['id'];
$foto = mysql_fetch_assoc(mysql_query("SELECT * FROM `gallery_foto` WHERE `id` = '" . $f . "' LIMIT 1"));
$gallery = mysql_fetch_assoc(mysql_query("SELECT * FROM `gallery` WHERE `id`='" . $foto['id_gallery'] . "' LIMIT 1"));
$ank_p=get_user($gallery['id_user']);
echo '<a href="/foto/' . $ank_p['id'] . '/' . $gallery['id'] . '/' . $ank['id'] . '/" title="Перейти к фото">';
echo " <img src='/foto/foto50/$ank[id].$ank[ras]' alt='*' style='width:49px; height:49px; '/></a> n";
echo "</td> n";
}
echo ' </tr> </table> </div></center>';
?>