Файл: vsime.com/lenta/inc/act_authors_list.php
Строк: 52
<?
$title .= ' - Список авторов';
ex_head();
$count_results = mysqli_result("SELECT COUNT(*) FROM `readers` WHERE `id_user` = '$user[id]'");
$count_pages = count_pages($count_results);
$page = page();
$start = start_pages();
if ($count_results == 0)
{
echo "<div class='list'>n";
echo "Сптсок авторов пустn";
echo "</div>n";
}
$query = mysqli_query($dbi, "SELECT * FROM `readers` WHERE `id_user` = '$user[id]'");
while ($post = mysqli_fetch_array($query))
{
$ank = profile($post['id_ank']);
echo "<div class='list'>n";
echo "<div class='left'>n";
echo "</div>n";
echo "<div class='overfl_hid'>n";
echo profile_icon($ank['id']).profile_nick($ank['id'],1).profile_medal($ank['id']);
echo "<br />n";
if ($post['diary']==1 || $post['topic']==1 || $post['files']==1 || $post['foto']==1)
{
echo "Вы подписаны на его действия в:<br />n";
if ($post['diary']==1)echo "<img src='/i/site/diary.png' class='icon' /> n";
if ($post['topic']==1)echo "<img src='/i/site/topic.png' class='icon' /> n";
if ($post['files']==1)echo "<img src='/i/site/files.png' class='icon' /> n";
if ($post['foto']==1)echo "<img src='/i/site/fotos.png' class='icon' /> n";
echo "<a href='?act=author_settings&id=$ank[id]'>Изменить</a>n";
} else {
echo "<a href='?act=author_settings&id=$ank[id]'>Выключен</a>n";
}
echo "<br />n";
echo "<span class='right'><a href='?act=author_delete&id=$ank[id]'>Удалить из ленты</a></span>n";
echo "</div>n";
echo "<div class='clear'></div>n";
echo "</div>n";
}
pages_show("?act=authors_list&");
echo "<div class='foot'>n";
echo "» <a href='/lenta'>Назад</a>n";
echo "</div>n";
ex_foot();
?>