Файл: user/inc/users_list.php
Строк: 34
<?php
$k_post = count::query('user');
$k_page = k_page($k_post, $set['p_str']);
$page = page($k_page);
$start = $set['p_str'] * $page - $set['p_str'];
$q = mysql_query("SELECT * FROM `user` ORDER BY `date_last` DESC LIMIT $start, $set[p_str]");
while ($ank = mysql_fetch_assoc($q)) {
echo "<table class='list-group-item'><tr><td class='icon14'>";
avatar($ank['id'], 110, 110);
echo "</td><td class='null'>";
if (user_access('user_prof_edit') and $user['group_access'] > $ank['group_access'] and $user['id'] != $ank['id']) {
echo "<a href='" . APANEL . "/user.php?id=$ank[id]' style='float:right' title='" . lang('Редактировать профиль') . "' data-toggle='tooltip' data-placement='left'><span class='fa fa-pencil-square-o fa-2x'></span></a>";
}
echo nick($ank['id']);
echo ($ank['ank_name'] != null ? ' , <b>' . output_text($ank['ank_name']) . '</b>' : false) . "
" . ($ank['ank_city'] != null ? ' , <b>' . output_text($ank['ank_city']) . '</b>' : false);
if ($ank['status_ank'] != NULL) {
$text = output_text($ank['status_ank']);
$res = mb_substr($text, 0, 99);
if ($text != $res) {
$res .= '...';
}
echo "<div class='status_o_s'> </div><div class='status_o' > " . $res . " </div>";
}
echo "</td></tr></table>";
}
if ($k_page > 1) {
str("?", $k_page, $page);
}