diff --git a/web/template/syzoj/problemset.php b/web/template/syzoj/problemset.php index a802aae..d5fadf9 100644 --- a/web/template/syzoj/problemset.php +++ b/web/template/syzoj/problemset.php @@ -76,6 +76,42 @@ + +
+ + + + + +
@@ -199,7 +235,11 @@ $tcolor = 0; $i = 0; foreach ($result as $row) { - echo ""; + $solved_class = ''; + if (isset($_SESSION[$OJ_NAME . '_' . 'user_id']) && isset($acc_arr[$row['problem_id']])) { + $solved_class = 'solved-problem'; + } + echo ""; if (isset($_SESSION[$OJ_NAME . '_' . 'user_id'])) { if (isset($sub_arr[$row['problem_id']])) {