diff --git a/system/pages/admin/modules/statistics.php b/system/pages/admin/modules/statistics.php index 7dc65822..ad3ea675 100644 --- a/system/pages/admin/modules/statistics.php +++ b/system/pages/admin/modules/statistics.php @@ -7,50 +7,6 @@ $count = $db->query('SELECT (SELECT COUNT(*) FROM `' . TABLE_PREFIX . 'monsters`) as total_monsters, (SELECT COUNT(*) FROM `houses`) as total_houses;')->fetch(); -$error_icon = ''; -?> -
-
- -
- Accounts: - -
-
-
-
-
- -
- Players: - -
-
-
-
-
- -
- Monsters: - -
-
-
-
-
- -
- Guilds: - -
-
-
-
-
- -
- Houses: - -
-
-
+$twig->display('statistics.html.twig', array( + 'count' => $count, +)); diff --git a/system/pages/admin/modules/templates/statistics.html.twig b/system/pages/admin/modules/templates/statistics.html.twig new file mode 100644 index 00000000..5a85093a --- /dev/null +++ b/system/pages/admin/modules/templates/statistics.html.twig @@ -0,0 +1,45 @@ +
+
+ +
+ Accounts: + {{ count.total_accounts }} +
+
+
+
+
+ +
+ Players: + {{ count.total_players }} +
+
+
+
+
+ +
+ Monsters: + {{ count.total_monsters }} +
+
+
+
+
+ +
+ Guilds: + {{ count.total_guilds }} +
+
+
+
+
+ +
+ Houses: + {{ count.total_houses }} +
+
+