mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-27 15:56:20 +00:00
Compare commits
2 Commits
d8f6ffb582
...
51aa5605cf
Author | SHA1 | Date | |
---|---|---|---|
51aa5605cf | |||
1d142f8cff |
@ -177,14 +177,14 @@
|
||||
};
|
||||
$remove_assignment_form->runAtServer();
|
||||
|
||||
$announcement_form = new UOJForm('announcement_form');
|
||||
$announcement_form->addVTextArea('announcement_content', '公告', $group['announcement'],
|
||||
$announcement_form = new UOJForm('announcement_form');
|
||||
$announcement_form->addVTextArea('announcement_content', '公告', $group['announcement'],
|
||||
function ($x) {
|
||||
return '';
|
||||
},
|
||||
null
|
||||
);
|
||||
$announcement_form->submit_button_config['align'] = 'compressed';
|
||||
$announcement_form->submit_button_config['align'] = 'compressed';
|
||||
$announcement_form->submit_button_config['text'] = '更新公告';
|
||||
$announcement_form->handle = function() {
|
||||
global $group_id, $myUser;
|
||||
|
@ -168,9 +168,9 @@ function echoLongTable($col_names, $table_name, $cond, $tail, $header_row, $prin
|
||||
$div_classes = isset($config['div_classes']) ? $config['div_classes'] : array('table-responsive');
|
||||
$table_classes = isset($config['table_classes'])
|
||||
? $config['table_classes']
|
||||
: isset($REQUIRE_LIB['bootstrap5'])
|
||||
: (isset($REQUIRE_LIB['bootstrap5'])
|
||||
? array('table', 'table-bordered', 'table-striped', 'text-center')
|
||||
: array('table', 'table-bordered', 'table-hover', 'table-striped', 'table-text-center');
|
||||
: array('table', 'table-bordered', 'table-hover', 'table-striped', 'table-text-center'));
|
||||
|
||||
if (isset($config['head_pagination']) && $config['head_pagination']) {
|
||||
echo $pag->pagination();
|
||||
|
@ -295,7 +295,7 @@
|
||||
<?php foreach ($groups as $group): ?>
|
||||
<?php
|
||||
$group_detail = DB::selectFirst("select * from groups where id = {$group['id']}");
|
||||
$group_announcement = $group_detail['announcement'];
|
||||
$group_announcement = $group_detail['announcement'];
|
||||
?>
|
||||
<li class="list-group-item">
|
||||
<a href="<?= HTML::url('/group/'.$group['id']) ?>">
|
||||
|
Loading…
Reference in New Issue
Block a user