= UOJGroup::info('title') ?>
(ID: #= UOJGroup::info('id') ?>)
= UOJLocale::get('hidden') ?>
userCanManage(Auth::user())) : ?>
=
UOJGroup::cur()->getLink([
'where' => '/manage',
'class' => 'btn btn-primary',
'text' => UOJLocale::get('problems::manage'),
]);
?>
= UOJLocale::get('assignments') ?>
DB::raw("groups_assignments.list_id"),
]
],
[
"groups_assignments.group_id" => UOJGroup::info('id'),
["groups_assignments.end_time", ">", DB::raw("addtime(now(), '-168:00:00')")]
],
'order by groups_assignments.end_time desc, groups_assignments.list_id desc',
<<
ID |
标题 |
状态 |
结束时间 |
EOD,
function ($info) {
$assignment = new UOJGroupAssignment($info, UOJGroup::cur());
echo HTML::tag_begin('tr');
echo HTML::tag('td', ['class' => 'text-center'], $assignment->info['id']);
echo HTML::tag('td', [], $assignment->getLink());
if ($assignment->info['end_time'] < UOJTime::$time_now) {
echo HTML::tag('td', ['class' => 'text-danger'], '已结束');
} else {
echo HTML::tag('td', ['class' => 'text-success'], '进行中');
}
echo HTML::tag('td', [], $assignment->info['end_time_str']);
echo HTML::tag_end('tr');
},
[
'echo_full' => true,
'div_classes' => ['table-responsive'],
'table_classes' => ['table', 'align-middle', 'mb-0'],
],
);
?>