mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Fix info.php labels
This commit is contained in:
parent
5074cbfc5f
commit
fc2471d94c
@ -367,8 +367,10 @@ class Page {
|
||||
echo "<tbody>";
|
||||
}
|
||||
|
||||
function print_header($container_start = true) {
|
||||
$title = $this->title;
|
||||
function print_header($container_start = true, $title = null) {
|
||||
if ($title === null) {
|
||||
$title = $this->title;
|
||||
}
|
||||
if ($container_start) {
|
||||
echo '<div class="container">';
|
||||
}
|
||||
|
10
info.php
10
info.php
@ -146,19 +146,21 @@ if ($st->execute(array($id))) {
|
||||
$page->name = $page->title = "$name #$id";
|
||||
$page->print_title();
|
||||
|
||||
$header = $page->name;
|
||||
|
||||
if (!($info instanceof KickInfo)) {
|
||||
$style = 'style="margin-left: 13px; font-size: 16px;"';
|
||||
$active = $page->active($row);
|
||||
if ($active === true) {
|
||||
$page->name .= "<span $style class='label label-danger'>Active</span>";
|
||||
$header .= "<span $style class='label label-danger'>Active</span>";
|
||||
} else {
|
||||
$page->name .= "<span $style class='label label-warning'>Inactive</span>";
|
||||
$header .= "<span $style class='label label-warning'>Inactive</span>";
|
||||
}
|
||||
if ($permanent) {
|
||||
$page->name .= "<span $style class='label label-danger'>Permanent</span>";
|
||||
$header .= "<span $style class='label label-danger'>Permanent</span>";
|
||||
}
|
||||
}
|
||||
$page->print_header();
|
||||
$page->print_header($header);
|
||||
|
||||
$map = $info->basic_info($row, $player_name);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user