mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-24 17:02:44 +00:00
Show permanent label only for active punishments
This commit is contained in:
parent
a9118a9053
commit
d80d7b2f49
6
info.php
6
info.php
@ -153,12 +153,12 @@ if ($st->execute(array($id))) {
|
|||||||
$active = $page->active($row);
|
$active = $page->active($row);
|
||||||
if ($active === true) {
|
if ($active === true) {
|
||||||
$header .= "<span $style class='label label-danger'>Active</span>";
|
$header .= "<span $style class='label label-danger'>Active</span>";
|
||||||
} else {
|
|
||||||
$header .= "<span $style class='label label-warning'>Inactive</span>";
|
|
||||||
}
|
|
||||||
if ($permanent) {
|
if ($permanent) {
|
||||||
$header .= "<span $style class='label label-danger'>Permanent</span>";
|
$header .= "<span $style class='label label-danger'>Permanent</span>";
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
$header .= "<span $style class='label label-warning'>Inactive</span>";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$page->print_header(true, $header);
|
$page->print_header(true, $header);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user