From e4de92b925ceb8c624593f6dcbdeed73617a2af2 Mon Sep 17 00:00:00 2001 From: ruan Date: Thu, 10 Sep 2015 17:14:51 +0200 Subject: [PATCH] Use table_begin() and table_end() for info table --- includes/page.php | 6 ++++-- info.php | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/includes/page.php b/includes/page.php index 515d6b5..b48a545 100644 --- a/includes/page.php +++ b/includes/page.php @@ -273,8 +273,10 @@ class Page { echo ''; } - public function table_end() { + public function table_end($clicky = true) { echo '
'; - echo ""; + if ($clicky) { + echo ""; + } } } diff --git a/info.php b/info.php index 33e7e69..3ea0a39 100644 --- a/info.php +++ b/info.php @@ -150,8 +150,8 @@ if ($st->execute(array($id))) {
print_page_header(); ?>
- table_begin(); $map = $info->basic_info($row, $player_name); $permanent_val = $info->page->permanent[$type]; foreach ($map as $key => $val) { @@ -160,8 +160,8 @@ if ($st->execute(array($id))) { } echo ""; } + $page->table_end(false); ?> -
$key$val