mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 16:32:45 +00:00
Clean up tables
This commit is contained in:
parent
e54fdce3a3
commit
2db9e7ec6a
22
bans.php
22
bans.php
@ -36,27 +36,8 @@
|
||||
<div class="row" style="margin-bottom:60px;">
|
||||
<div class="col-lg-12">
|
||||
<table class="table table-hover table-bordered table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<div style="text-align: center;">Name</div>
|
||||
</th>
|
||||
<th>
|
||||
<div style="text-align: center;">Banned By</div>
|
||||
</th>
|
||||
<th>
|
||||
<div style="text-align: center;">Reason</div>
|
||||
</th>
|
||||
<th>
|
||||
<div style="text-align: center;">Banned On</div>
|
||||
</th>
|
||||
<th>
|
||||
<div style="text-align: center;">Banned Until</div>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
print_table_headers(array("Name", "Banned By", "Reason", "Banned On", "Banned Until"));
|
||||
global $table_bans, $conn, $show_inactive_bans;
|
||||
$result = run_query($table_bans);
|
||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
@ -80,7 +61,6 @@
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -77,4 +77,14 @@ function clean($text) {
|
||||
return $text;
|
||||
}
|
||||
|
||||
function print_table_headers($headers) {
|
||||
echo("<thead><tr>");
|
||||
foreach ($headers as $header) {
|
||||
echo('<th><div style="text-align: center;">');
|
||||
echo($header);
|
||||
echo('</div></th>');
|
||||
}
|
||||
echo("<tbody>");
|
||||
}
|
||||
|
||||
?>
|
||||
|
12
mutes.php
12
mutes.php
@ -13,17 +13,8 @@
|
||||
<div class="row" style="margin-bottom:60px;">
|
||||
<div class="col-lg-12">
|
||||
<table class="table table-hover table-bordered table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="text-align: center;">Name</th>
|
||||
<th style="text-align: center;">Muted By</th>
|
||||
<th style="text-align: center;">Reason</th>
|
||||
<th style="text-align: center;">Muted On</th>
|
||||
<th style="text-align: center;">Muted Until</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
print_table_headers(array("Name", "Muted By", "Reason", "Muted On", "Muted Until"));
|
||||
global $table_mutes, $conn, $show_inactive_bans;
|
||||
$result = run_query($table_mutes);
|
||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
@ -48,7 +39,6 @@
|
||||
</tr>
|
||||
<?php }
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
21
warnings.php
21
warnings.php
@ -13,27 +13,8 @@
|
||||
<div class="row" style="margin-bottom:60px;">
|
||||
<div class="col-lg-12">
|
||||
<table class="table table-hover table-bordered table-condensed">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>
|
||||
<div style="text-align: center;">Name</div>
|
||||
</th>
|
||||
<th>
|
||||
<div style="text-align: center;">Warned By</div>
|
||||
</th>
|
||||
<th>
|
||||
<div style="text-align: center;">Reason</div>
|
||||
</th>
|
||||
<th>
|
||||
<div style="text-align: center;">Warned Until</div>
|
||||
</th>
|
||||
<th>
|
||||
<div style="text-align: center;">Received Warning?</div>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
print_table_headers(array("Name", "Warned By", "Reason", "Warned Until", "Received Warning?"));
|
||||
global $table_warnings, $conn, $show_inactive_bans;
|
||||
$result = run_query($table_warnings);
|
||||
while ($row = $result->fetch(PDO::FETCH_ASSOC)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user