diff --git a/web/app/controllers/super_manage.php b/web/app/controllers/super_manage.php index 092e5d5..1f1999e 100644 --- a/web/app/controllers/super_manage.php +++ b/web/app/controllers/super_manage.php @@ -325,9 +325,6 @@ if ($cur_tab == 'index') { if (isset($_GET['usergroup']) && $_GET['usergroup'] != "") { $user_list_cond[] = "usergroup = '" . DB::escape($_GET['usergroup']) . "'"; } - if (isset($_GET['usertype']) && $_GET['usertype'] != "") { - $user_list_cond[] = "usertype like '%" . DB::escape($_GET['usertype']) . "%'"; - } if ($user_list_cond) { $user_list_cond = implode(' and ', $user_list_cond); @@ -1189,24 +1186,6 @@ EOD); -
- - -
@@ -1218,15 +1197,15 @@ EOD); $user_list_cond, 'order by username asc', << - 用户名 - 学校 - 用户类别 - 权限 - 注册时间 - 操作 - -EOD, + + 用户名 + 学校 + 用户类别 + 权限 + 注册时间 + 操作 + + EOD, function ($row) { echo ''; echo '', '', $row['username'], '', ''; @@ -1239,18 +1218,16 @@ EOD, case 'B': echo UOJLocale::get('user::banned user'); break; + case 'T': + echo UOJLocale::get('user::tmp 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 UOJLocale::get('user::' . $row['usertype']) ?: HTML::escape($row['usertype']); echo ''; echo '', $row['register_time'], ''; echo '', '编辑', '';