Hustoj mdui Web界面修改

修改站点图标

/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>&nbsp;<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>
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

幸愉聊信奥

谢谢亲的支持,我会继续努力啦~

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值