= 3 order by rating desc, username asc limit 12;"); $hotusers = DB::selectAll("select username, rating, rating_rd, rating_vol, qq, motto from user_info order by rating_vol desc, username asc limit 12;"); $topblogs = DB::selectAll("select id from blogs order by zan desc limit 10;"); $songs_data = htmlspecialchars(json_encode(DB::selectAll("select * from songs;")), ENT_QUOTES, 'UTF-8'); // 服务器数据看板 $today_submit_num = DB::selectCount("select count(*) from submissions where date(submit_time) = date(now())"); $today_ac_num = DB::selectCount("select count(*) from submissions where date(submit_time) = date(now()) and score = 100"); $month_submit_num = DB::selectCount("select count(*) from submissions where year(submit_time) = year(now()) and month(submit_time) = month(now())"); $month_ac_num = DB::selectCount("select count(*) from submissions where year(submit_time) = year(now()) and month(submit_time) = month(now()) and score = 100"); $total_submit_num = DB::selectCount("select count(*) from submissions"); $total_ac_num = DB::selectCount("select count(*) from submissions where score = 100"); $total_problem_num = DB::selectCount("select count(*) from problems where is_hidden = 0"); $total_user_num = DB::selectCount("select count(*) from user_info"); // 最近比赛:未结束的按开始时间升序取,不足 5 场时补最近结束的 $recent_contests = array(); $result = DB::selectAll("select * from contests where status != 'finished' order by start_time asc, id asc limit 5"); foreach ($result as $contest) { genMoreContestInfo($contest); $recent_contests[] = $contest; } if (count($recent_contests) < 5) { $need = 5 - count($recent_contests); $result = DB::selectAll("select * from contests where status = 'finished' order by start_time desc, id desc limit $need"); foreach ($result as $contest) { genMoreContestInfo($contest); $recent_contests[] = $contest; } } ?>
| = $blog['title'] ?>= $new_tag ?> | by = getUserLink($blog['poster']) ?> | = $blog['post_time'] ?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 本歌曲由 推荐 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| WyOJ 以及所有相关项目均为自由软件。 = UOJLocale::get('all the announcements') ?> | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 声明:本网站属个人非经营性网站,仅用于学习交流,无任何盈利目的,与任何组织无关 我要推歌 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
暂无比赛
| = $contest['name'] ?> 即将开始 进行中 等待出分 最终评测中 已结束 | = $contest['start_time_str'] ?> | = round($contest['last_min'] / 60, 2) ?>h |