1 Star 0 Fork 0

白菜酱 / SoftCupRankingSystem

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
logged.php 1022 Bytes
一键复制 编辑 原始数据 按行查看 历史
rexskz 提交于 2014-08-11 21:48 . 修正了页面包含的逻辑问题
<?php
if (!defined("IN_SCRS")) exit();
?>
<script src="js/conf.js"></script>
<div id="test">
<h3>请选择题目</h3>
<ul>
<?php
$topic = get_all_topics();
$privilege = $user->get_user_privilege();
$statics = $user->get_statics();
$unrated = false;
foreach ($topic as $t) {
if (isset($privilege[$t['topic_id']]) && $privilege[$t['topic_id']] == 1) {
echo "<a href=\"?exam=" . $t['topic_id'] . "\"><li>" .
"<span style=\"max-width:55%\" class=\"li_left\">" . $t['topicname'] . "</span>" .
"<span class=\"li_right\">" . $statics[$t['topic_id']]['rated'] . " / " . $statics[$t['topic_id']]['total'] . "</span>" .
"</li></a>";
if ($statics[$t['topic_id']]['rated'] != $statics[$t['topic_id']]['total']) $unrated = true;
}
}
?>
</ul>
<input class="button" type="button" value="提交所有题目" onclick="conf('?action=do_submit','<?php
echo ($unrated ? "有未评分的队伍,确认提交?提交后不可更改。" : "提交后不可更改,确定?");
?>')" />
</div>
PHP
1
https://gitee.com/xm1994/SoftCupRankingSystem.git
git@gitee.com:xm1994/SoftCupRankingSystem.git
xm1994
SoftCupRankingSystem
SoftCupRankingSystem
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891