mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-07-09 15:27:32 +00:00
Use glyphicons for "Received Warning" column
This commit is contained in:
parent
e39c4e721a
commit
2620a552a9
@ -205,7 +205,13 @@ class Page {
|
||||
if ($header === "Reason") {
|
||||
$style = "style=\"width: 30%;\"";
|
||||
}
|
||||
echo "<td $style><a style=\"color: #fcfcfc;\" href=\"info.php?type=$type&id=$id\">$text</a></td>";
|
||||
$a = "a";
|
||||
if ($header === "Received Warning") {
|
||||
$icon = ($text !== "No") ? "glyphicon-ok" : "glyphicon-remove";
|
||||
$a .= " class=\"glyphicon $icon\" aria-hidden=true";
|
||||
$text = "";
|
||||
}
|
||||
echo "<td $style><$a style=\"color: #fcfcfc;\" href=\"info.php?type=$type&id=$id\">$text</a></td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ use PDO;
|
||||
require_once './includes/page.php';
|
||||
$page = new Page("warnings");
|
||||
$page->print_title();
|
||||
$headers = array("Name", "Warned By", "Reason", "Warned Until", "Received Warning?");
|
||||
$headers = array("Name", "Warned By", "Reason", "Warned Until", "Received Warning");
|
||||
|
||||
$page->print_page_header();
|
||||
|
||||
@ -23,7 +23,7 @@ while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
'Warned By' => $page->get_avatar($page->get_banner_name($row), $row['banned_by_uuid']),
|
||||
'Reason' => $page->clean($row['reason']),
|
||||
'Warned Until' => $page->expiry($row),
|
||||
'Received Warning?' => $row['warned'] ? "Yes" : "No",
|
||||
'Received Warning' => $row['warned'] ? "Yes" : "No",
|
||||
));
|
||||
}
|
||||
$page->table_end();
|
||||
|
Loading…
x
Reference in New Issue
Block a user