diff --git a/web/app/locale/user/en.php b/web/app/locale/user/en.php index a3d2e7e..61903a4 100644 --- a/web/app/locale/user/en.php +++ b/web/app/locale/user/en.php @@ -6,7 +6,7 @@ return [ 'banned user' => 'Banned User', 'tmp user' => 'Temporary User', 'real name' => 'Real name', - 'belongs to these groups' => 'Belongs to these groups:', + 'belongs to these groups' => 'Belongs to these groups', 'avatar source' => 'Avatar source', 'website' => 'Website', 'user type' => 'User type', diff --git a/web/app/locale/user/zh-cn.php b/web/app/locale/user/zh-cn.php index 27093f2..4d6e834 100644 --- a/web/app/locale/user/zh-cn.php +++ b/web/app/locale/user/zh-cn.php @@ -6,7 +6,7 @@ return [ 'banned user' => '封禁用户', 'tmp user' => '临时用户', 'real name' => '真实姓名', - 'belongs to these groups' => '属于这些小组:', + 'belongs to these groups' => '属于这些小组', 'avatar source' => '头像来源', 'website' => '网址', 'user type' => '用户类型', diff --git a/web/app/views/user-info.php b/web/app/views/user-info.php index e5d1c63..a4c634c 100644 --- a/web/app/views/user-info.php +++ b/web/app/views/user-info.php @@ -201,43 +201,111 @@
-
-

- -

- +
+ + + +
+
ACM 队伍信息
+
+ +
  • + ) +
  • +
    + +
    +
    超级管理员可见信息
    + +
    + + + "date_format(submit_time, '%Y-%m-%d')", + "problem_id", + ]), + "from submissions", + "where", [ + "submitter" => $user['username'], + "score" => 100, + ["date(submit_time)", "between", DB::raw("date_sub(curdate(), interval 1 year) and curdate()")], + ] + ]); + $last_year_ac_cnt_by_day = []; + $last_year_ac_cnt = 0; + foreach ($ac_records as $record) { + $last_year_ac_cnt++; + $last_year_ac_cnt_by_day[$record["submit_time"]]++; + } + ?>
    +
    - -

    - -

    + +
    +
    + +
    - -

    - -

    - - -
    - -
    -