Файл: magic_us/top2.php
Строк: 90
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
only_reg();
include_once '../sys/inc/thead.php';
title();
err();
?><div class=fonlog><img src="img/logo.png" alt="" class="icon"/></div><div class=fonlog2>
<style>
.fonlog {
background-image: url('http://www.lenagold.ru/fon/tum/korkr/korkrtum80.jpg');
border-left: 1px solid black;
border: 0px solid #EEEEFF;
border-radius: 8px;
}
.fonlog2 {
background-image: url('http://www.lenagold.ru/fon/tum/korkr/korkrtum78.jpg');
border-left: 1px solid black;
border: 1px solid #EEEEFF;
border-radius: 8px;
}
.fon {
background-image: url('http://www.lenagold.ru/fon/tum/korkr/korkrtum87.jpg');
border-left: 1px ;
border: 1px solid #FFFFFF;
border-radius: 8px;
}
</style>
<?
echo "<div class='main'><center><img src='/magic_us/icon/make.png'alt='*' /> Топ колдующих!</center></div>";
echo '<table width="100%">';
echo '<tr>';
echo '<td class="nav2" width="50%">';
echo '<center><a href="top.php">топ колдованых</a></center>';
echo '</td>';
echo '<td class="nav2" width="50%">';
echo '<center><a href="top2.php">топ колдующих</a></center>';
echo '</td>';
echo '</tr> ';
echo "</div>n";
echo "<table class='post'>n";
$k_magic_zakold = mysql_num_rows(mysql_query("SELECT `id` FROM `user` WHERE `magic_zakold` > '0'"));
$k_page = k_page($k_magic_zakold,$set['p_str']);
$page = page($k_page);
$start = $set['p_str']*$page-$set['p_str'];
if ($k_magic_zakold=='0')
{
echo 'Нет результатов';
}
$q_magic_zakold = mysql_query("SELECT * FROM `user` WHERE `magic_zakold` > '0' ORDER BY `magic_zakold` DESC LIMIT $start, $set[p_str]");
while ($magic_zakold = mysql_fetch_array($q_magic_zakold))
{
echo '<tr><td class="icon14">';
if ($set['set_show_icon']==2){
avatar($magic_zakold['id']);
}
elseif ($set['set_show_icon']==1)
{
echo status($magic_zakold['id']);
}
echo '</td><td class="main">';
echo "".online($magic_zakold['id'])." n";
echo "<a href='/info.php?id=$magic_zakold[id]'><span style="color:$magic_zakold[ncolor]">$magic_zakold[nick]</span></a><br />n";
echo "<img src='/magic_us/icon/make.png'alt='*' />n";
echo 'Заколдовали : <font color="red"><b>['.$magic_zakold['magic_zakold'].']</b></font> <br />';
}
echo "</table>";
echo "<div class='main'>→<a href='index.php/'>назад</a></div>n";
if ($k_page>1)str("top2.php?",$k_page,$page);
include_once '../sys/inc/tfoot.php';
?>