This commit is contained in:
ruan 2016-07-15 10:29:43 +02:00
parent 50cbbe2594
commit ee87e090ea
7 changed files with 12 additions and 12 deletions

View File

@ -2,9 +2,9 @@
require_once './inc/page.php'; require_once './inc/page.php';
$page = new Page("bans"); $page = new Page("bans");
$page->print_title();
$page->print_page_header(); $page->print_title();
$page->print_header();
$page->print_check_form(); $page->print_check_form();

View File

@ -84,7 +84,7 @@ if ($staffhistory) {
$page->print_title(); $page->print_title();
$page->print_page_header(); $page->print_header();
$from = null; $from = null;
$from_title = null; $from_title = null;

View File

@ -346,7 +346,7 @@ class Page {
echo "<tbody>"; echo "<tbody>";
} }
function print_page_header($container_start = true) { function print_header($container_start = true) {
$title = $this->title; $title = $this->title;
if ($container_start) { if ($container_start) {
echo '<div class="container">'; echo '<div class="container">';
@ -372,10 +372,10 @@ class Page {
} }
function print_pager($total = -1, $args = "", $prevargs = "") { function print_pager($total = -1, $args = "", $prevargs = "") {
if (!$this->settings->show_pager) return;
$table = $this->table; $table = $this->table;
$page = $this->name . ".php"; $page = $this->name . ".php";
if (!$this->settings->show_pager) return;
if ($total === -1) { if ($total === -1) {
$result = $this->conn->query("SELECT COUNT(*) AS count FROM $table")->fetch(PDO::FETCH_ASSOC); $result = $this->conn->query("SELECT COUNT(*) AS count FROM $table")->fetch(PDO::FETCH_ASSOC);
$total = $result['count']; $total = $result['count'];

View File

@ -156,7 +156,7 @@ if ($st->execute(array($id))) {
$page->name .= "<span $style class='label label-danger'>Permanent</span>"; $page->name .= "<span $style class='label label-danger'>Permanent</span>";
} }
} }
$page->print_page_header(); $page->print_header();
$page->table_begin(); $page->table_begin();
$map = $info->basic_info($row, $player_name); $map = $info->basic_info($row, $player_name);

View File

@ -2,9 +2,9 @@
require_once './inc/page.php'; require_once './inc/page.php';
$page = new Page("kicks"); $page = new Page("kicks");
$page->print_title();
$page->print_page_header(); $page->print_title();
$page->print_header();
$page->print_check_form(); $page->print_check_form();

View File

@ -2,9 +2,9 @@
require_once './inc/page.php'; require_once './inc/page.php';
$page = new Page("mutes"); $page = new Page("mutes");
$page->print_title();
$page->print_page_header(); $page->print_title();
$page->print_header();
$page->print_check_form(); $page->print_check_form();

View File

@ -2,9 +2,9 @@
require_once './inc/page.php'; require_once './inc/page.php';
$page = new Page("warnings"); $page = new Page("warnings");
$page->print_title();
$page->print_page_header(); $page->print_title();
$page->print_header();
$page->print_check_form(); $page->print_check_form();