function user_generate_info_string($id, $cacheable = true) { $info = user_info_by_id($id, $cacheable); if ($info['id'] == '') { return 'anonumoys (Гость)'; } return '<a href="' . config_get('document-root') . '/login/viewuser/?id=' . $info['id'] . '&redirect=' . get_redirection() . '">' . $info['login'] . '</a> (' . $info['name'] . ') ' . ' (' . security_access_title($info['access']) . ')' . ' E-Mail: <a href="mailto:' . $info['email'] . '">' . $info['email'] . '</a>'; }
} $pages = new CVCPagintation(); $pages->Init('', ($group != '' ? 'urlprefix=?group\\=' . $group . ';' : '') . 'bottomPages=false;skiponcepage=true;'); $i = 0; $n = count($list); if ($page != '') { $pageid = '&page=' . $page; } while ($i < $n) { $c = 0; $pageSrc = '<table class="list">' . "\n"; $pageSrc .= '<tr class="h"><th class="n first">№</th><th width="20%">Логин</th><th width="20%">Имя</th><th width="20%">E-Mail</th><th>Уровень доступа</th><th width="48" class="last"> </th></tr>' . "\n"; while ($c < $perPage && $i < $n) { $it = $list[$i]; $d = !user_is_system($it['id']); $pageSrc .= '<tr' . ($i == $n - 1 || $c == $perPage - 1 ? ' class="last"' : '') . '><td class="n">' . ($i + 1) . '.</td>' . '<td><a href=".?action=edit&id=' . $it['id'] . '&' . get_filters() . $pageid . '">' . $it['login'] . '</a></td>' . '<td>' . $it['name'] . '</td><td><a href="mailto:' . $it['email'] . '" title="Отправить письмо">' . $it['email'] . '</a></td>' . '<td>' . security_access_title($it['access']) . '</td>' . '<td align="right">' . stencil_ibtnav('edit.gif', '?action=edit&id=' . $it['id'] . '&' . get_filters() . $pageid, 'Изменить элемент') . stencil_ibtnav($d ? 'cross.gif' : 'cross_d.gif', $d ? '?action=delete&id=' . $it['id'] . '&' . get_filters() . $pageid : '', 'Удалить этот элемент', 'Удалить этот элемент?') . '</td></tr>' . "\n"; $c++; $i++; } $pageSrc .= '</table>' . "\n"; $pages->AppendPage($pageSrc); } $pages->Draw(); } else { info('В этой группе нет пользователей'); } ?> <div class="f"> <form action="." method="POST" onsubmit="update (); return false;" onkeypress="if (event.keyCode==13) update ();"> <b>Критерии выборки:</b> <table width="100%"><tr>