From e8125e7e3a298e969500a5cea121d33d70a49a7c Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Wed, 28 Sep 2022 15:39:39 +0800 Subject: [PATCH] refactor: user_info page with bs5 --- web/app/controllers/user_info.php | 354 +++++++++++++++++------- web/app/views/page-header.php | 6 + web/css/jquery.calendar_heatmap.min.css | 9 + web/js/jquery.calendar_heatmap.min.js | 10 + 4 files changed, 273 insertions(+), 106 deletions(-) create mode 100644 web/css/jquery.calendar_heatmap.min.css create mode 100644 web/js/jquery.calendar_heatmap.min.js diff --git a/web/app/controllers/user_info.php b/web/app/controllers/user_info.php index 15c248b..c1bb21a 100644 --- a/web/app/controllers/user_info.php +++ b/web/app/controllers/user_info.php @@ -9,89 +9,239 @@ $username = $_GET['username']; - $REQUIRE_LIB['github_contribution_graph'] = ''; + if (!validateUsername($username) || !($user = queryUser($username))) { + become404Page(); + } ?> - - - -
-
-
-
-
- <?= $user['username'] ?> Avatar + + +
+
+
+ Avatar of <?= $user['username'] ?> +
+

+ + + style="color: blue"> + + style="color: red"> + + +

+ +
+
-
-

-
-
-

-

-
-
-

-

-
-
-

+ +
  • + + +
  • + +
  • + + + + +
  • + +
  • + + +
  • + + +
    +
    +
    + +
    +
    + +

    + +

    +
    + +
    +
    +
    +
    + +

    + +

    + +
    +
    + + +
    +
      +
    • +
      register time
      +

      +
    • +
    • +
      remote_addr
      +

      +
    • +
    • +
      http_x_forwarded_for
      +

      +
    • +
    +
    + +
    +
    + + +
    +
    +
    +
    +
    + <?= $user['username'] ?> Avatar +
    +
    +

    +
    +
    +

    +

    +
    +
    +

    +

    +
    +
    +

    + -

    - -
    - - -
    -

    register time

    -

    -
    -
    -

    remote_addr

    -

    -
    -
    -

    http_x_forwarded_for

    -

    -
    - +

    +
    + + +
    +

    register time

    +

    +
    +
    +

    remote_addr

    +

    +
    +
    +

    http_x_forwarded_for

    +

    +
    +
    - - - - - - - - - - 查看 的所有赛后总结 - -
    -
    -
    - + + + + + + + + + + 查看 的所有赛后总结 + +
    +
    +
    + -

    -
    - -
    -
    - +
    +
    + -

    -
    +
    - - -
    -
    用户信息
    -
    -

    不存在该用户

    -
    -
    +
    diff --git a/web/app/views/page-header.php b/web/app/views/page-header.php index df147d9..270e985 100644 --- a/web/app/views/page-header.php +++ b/web/app/views/page-header.php @@ -228,6 +228,12 @@ + + + + + +