在 /home/judge/src/web
目录下找到 文件名.ico
这个文件,上传自己制作好的 文件名.ico
即可
在 /home/judge/src/web/template/mdui/_includes
打开 head.php
修改成自己对应的文件名
<link rel="icon" href="/文件名.ico">
<div class="mdui-card mdui-col" style="min-height: 300px;">
<div class="mdui-card-primary">
<div class="mdui-card-primary-title">通过题目</div>
</div>
<div id="submission" class="mdui-card-content"></div>
<script>
function p(id, c, res) {
if(res%12 == 0) $('#submission').append('\n');
$('#submission').append(`<a href="problem.php?id=${id}">${id}</a> <sup>(<a href="status.php?user_id=<?php echo $user; ?>&problem_id=${id}"'>${c}</a>)</sup>`);
}
<?php
$sql = "SELECT `problem_id`, count(1) from solution where `user_id`=? and result=4 group by `problem_id` ORDER BY `problem_id` ASC";
if ($result = pdo_query($sql,$user)) {
$len = 0;
foreach($result as $row){
echo "p($row[0],$row[1],$len);";
}
}
?>
</script>
</div>
在 /home/judge/src/web/template/mdui
找到 problemset.php
修改 table
表单即可
<table id="problemset" width="90%" class="mdui-table mdui-table-hoverable mdui-m-y-4">
<thead>
<tr>
<th>编号</th>
<th>标题</th>
<th>分类</th>
<th>通过</th>
<th>提交</th>
<th>通过率</th>
</tr>
</thead>
<tbody>
<?php
$cnt = 0;
foreach ( $result as $row ) {
echo "<tr>";
echo '<td>'.$row["problem_id"].'</td>';
echo '<td><a class="mdui-text-color-theme-accent" href="problem.php?id='.$row["problem_id"].'">'.$row["title"].'</a></td>';
echo '<td><a class="mdui-text-color-theme-accent" href="problemset.php?search='.urlencode($row["source"]).'">'.$row["source"].'</td>';
echo '<td><a class="mdui-text-color-theme-accent" href="status.php?problem_id='.$row["problem_id"].'&jresult=4">'.$row["accepted"].'</td>';
echo '<td><a class="mdui-text-color-theme-accent" href="status.php?problem_id='.$row["problem_id"].'">'.$row["submit"].'</td>';
echo '<td>'.sprintf("%.02lf%%", 100 * $row['accepted'] / ($row['submit'] ? $row['submit'] : 1)).'</td>';
echo '</tr>';
}
?>
</tbody>
</table>