Changeset 56 for trunk/www/view/realm.php
- Timestamp:
- Aug 4, 2009, 9:53:52 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/view/realm.php
r55 r56 3 3 class RealmView extends Module 4 4 { 5 var $ItemFormClass = array( 6 'Title' => 'Nastavení', 7 'Table' => 'Svět', 8 'SubmitText' => 'Uložit', 9 'Items' => array( 10 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => 'WoW server'), 11 'Description' => array('Type' => 'Text', 'Caption' => 'Popis', 'Default' => ''), 12 'Type' => array('Type' => 'ServerType', 'Caption' => 'Typ', 'Default' => 0), 13 'Database' => array('Type' => 'Database', 'Caption' => 'Databáze', 'Default' => 0), 14 'Motd' => array('Type' => 'String', 'Caption' => 'Zpráva dne', 'Default' => 'Vítejte na free WoW serveru'), 15 'RealmId' => array('Type' => 'Hidden', 'Caption' => 'Id', 'Default' => 0), 16 'TimeCreate' => array('Type' => 'DateTime', 'Caption' => 'Datum založení', 'Default' => 'NOW()'), 17 'NetworkPortWorldd' => array('Type' => 'Integer', 'Caption' => 'Port realmd', 'Default' => ''), 18 ), 19 ); 20 var $ItemListFormClass = array( 21 'Title' => 'Světy', 22 'Table' => '(SELECT `Client`.`Version`, `Realm`.`Name`, `Realm`.`Id`, `Server`.`Name` AS `ServerName`, `Realm`.`NetworkPortWorldd`, Realm.Online, Realm.CharacterOnlineCount, Realm.CharacterCount FROM `Realm` JOIN `Server` ON `Server`.`Id` = `Realm`.`Server` JOIN `Database` ON `Database`.`Id` = `Realm`.`Database` JOIN `Emulator` ON `Emulator`.`Id` = `Database`.`Emulator` JOIN `Client` ON `Client`.`Id` = `Emulator`.`Client`)', 23 'Items' => array( 24 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 25 'NetworkPortWorldd' => array('Type' => 'Integer', 'Caption' => 'Realmlist', 'Default' => ''), 26 'Version' => array('Type' => 'Integer', 'Caption' => 'Verze', 'Default' => 0), 27 'Online' => array('Type' => 'OnlineState', 'Caption' => 'Stav', 'Default' => 0), 28 'CharacterOnlineCount' => array('Type' => 'Integer', 'Caption' => 'Hráčů online', 'Default' => 0), 29 'CharacterCount' => array('Type' => 'Integer', 'Caption' => 'Postav', 0), 30 'ServerName' => array('Type' => 'String', 'Caption' => 'Server', 'Default' => ''), 31 ), 32 ); 33 34 5 35 function ItemList() 6 36 { … … 10 40 //$Realm->UpdateServerList(); 11 41 $Output = '<h4>Seznam světů</h4>'; 12 $Table = new Table( 'RealmList');42 $Table = new Table($this->ItemListFormClass); 13 43 //$Table->OnRow = array($this, 'ShowRealmListOnRow'); 14 44 $Table->Definition['Items']['Id'] = array('Type' => 'Hidden', 'Caption' => '', 'Default' => '');
Note:
See TracChangeset
for help on using the changeset viewer.