Compare commits

...

2 Commits

Author SHA1 Message Date
51aa5605cf
fix: table class
All checks were successful
continuous-integration/drone/push Build is passing
2022-09-23 22:02:40 +08:00
1d142f8cff
fix: style 2022-09-23 21:54:44 +08:00
3 changed files with 6 additions and 6 deletions

View File

@ -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;

View File

@ -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();

View File

@ -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']) ?>">