Changeset 56 for trunk/www/view/debug.php
- Timestamp:
- Aug 4, 2009, 9:53:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/view/debug.php
r55 r56 3 3 class DebugView extends Module 4 4 { 5 var $ItemListFormClass = array( 6 'Title' => 'Restarty', 7 'Table' => 'Debug', 8 'Items' => array( 9 'Time' => array('Type' => 'String', 'Caption' => 'Čas', 'Default' => ''), 10 'MangosVersion' => array('Type' => 'String', 'Caption' => 'Verze emulátoru', 'Default' => ''), 11 'DbVersion' => array('Type' => 'String', 'Caption' => 'Verze databáze', 'Default' => ''), 12 'MaxPlayerCount' => array('Type' => 'Integer', 'Caption' => 'Max. online hráčů', 'Default' => ''), 13 'Uptime' => array('Type' => 'String', 'Caption' => 'Doba běhu', 'Default' => ''), 14 ), 15 ); 16 var $ItemFormClass = array( 17 'Title' => 'Záznam restartu', 18 'Table' => 'Debug', 19 'Items' => array( 20 'Time' => array('Type' => 'DateTime', 'Caption' => 'Čas', 'Default' => ''), 21 'MangosVersion' => array('Type' => 'String', 'Caption' => 'Verze emulátoru', 'Default' => ''), 22 'DbVersion' => array('Type' => 'String', 'Caption' => 'Verze databáze', 'Default' => ''), 23 'MaxPlayerCount' => array('Type' => 'Integer', 'Caption' => 'Max. online hráčů', 'Default' => ''), 24 'Uptime' => array('Type' => 'String', 'Caption' => 'Doba běhu', 'Default' => ''), 25 ), 26 ); 27 5 28 function ShowListOnRow($Row) 6 29 { … … 20 43 { 21 44 $Output = '<h4>Ladící záznamy restartů</h4>'; 22 $Table = new Table( 'DebugList');45 $Table = new Table($this->ItemListFormClass); 23 46 $Table->OnRow = array($this, 'ShowListOnRow'); 24 47 $Table->Definition['Table'] = '(SELECT * FROM Debug WHERE Server='.$_GET['Id'].')';
Note:
See TracChangeset
for help on using the changeset viewer.