用户名 |
学校 |
用户类别 |
权限 |
注册时间 |
操作 |
EOD,
function($row) {
echo '
';
echo '', '', $row['username'], '', ' | ';
echo '', HTML::escape($row['school']), ' | ';
echo '';
switch ($row['usergroup']) {
case 'S':
echo UOJLocale::get('user::super user');
break;
case 'B':
echo UOJLocale::get('user::banned user');
break;
default:
echo UOJLocale::get('user::normal user');
break;
}
echo ' | ';
echo '';
foreach (explode(',', $row['usertype']) as $idx => $type) {
if ($idx) {
echo ', ';
}
echo UOJLocale::get('user::' . str_replace('_', ' ', $type)) ?: HTML::escape($type);
}
echo ' | ';
echo '', $row['register_time'], ' | ';
echo '', '编辑', ' | ';
echo '
';
},
[
'page_len' => 20,
'div_classes' => ['table-responsive'],
'table_classes' => ['table', 'align-middle'],
],
);
?>