Changeset 10
- Timestamp:
- Jun 11, 2009, 12:55:38 PM (15 years ago)
- Location:
- trunk/www
- Files:
-
- 5 added
- 1 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/form_classes.php
r6 r10 58 58 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => 'WoW server'), 59 59 'Description' => array('Type' => 'Text', 'Caption' => 'Popis', 'Default' => ''), 60 'Homepage' => array('Type' => ' String', 'Caption' => 'Webové stránky', 'Default' => ''),61 'Type' => array('Type' => ' TServerType', 'Caption' => 'Typ', 'Default' => 0),62 'Database' => array('Type' => ' TDatabase', 'Caption' => 'Databáze', 'Default' => 0),60 'Homepage' => array('Type' => 'Hyperlink', 'Caption' => 'Webové stránky', 'Default' => ''), 61 'Type' => array('Type' => 'ServerType', 'Caption' => 'Typ', 'Default' => 0), 62 'Database' => array('Type' => 'Database', 'Caption' => 'Databáze', 'Default' => 0), 63 63 'Motd' => array('Type' => 'String', 'Caption' => 'Zpráva dne', 'Default' => 'Vítejte na free WoW serveru'), 64 64 ), … … 66 66 ); 67 67 68 $FormTypes = array( 69 'TServerType' => array( 70 'Type' => 'Enumeration', 71 'States' => array('Normální', 'PvP', 'RP', 'RPPvP'), 72 ), 73 'TDatabase' => array( 74 'Type' => 'Reference', 75 'Table' => 'Database', 76 'Id' => 'Id', 77 'Name' => 'CONCAT(Name, " ", Version, " r", Revision)', 78 'Filter' => '1', 79 ), 80 ); 68 RegisterType('ServerType', 'Enumeration', array('Normální', 'PvP', 'RP', 'RPPvP')); 69 //RegisterType('Database', 'PointerOneToOne', array('Table' => 'Database', 'Id' => 'Id', 'Name' => 'CONCAT(Name, " ", Version, " r", Revision)')); 81 70 82 71 ?> -
trunk/www/index.php
r9 r10 38 38 $Server = new Server($this->Database, $Id); 39 39 $Output = '<h4>Podrobnosti serveru</h4>'; 40 $Form = new Form('EditServer'); 41 $Form->LoadValuesFromDatabase($Id); 42 $Output .= $Form->ShowTable(); 43 /* 40 44 $Output .= '<table class="WideTable"><tr><th>Položka</th><th>Hodnota</th></tr>'; 41 45 $Output .= '<tr><td>Jméno</td><td>'.$Server->Server['Name'].'</td></tr>'. … … 45 49 '<tr><td>Síťový port realmd</td><td>'.($Server->RealmdBaseNetworkPort + $Server->Id).'</td></tr>'. 46 50 '<tr><td>Síťový port mangosd</td><td>'.($Server->WorlddBaseNetworkPort + $Server->Id).'</td></tr>'; 47 $Output .= '</table><div style="text-align: center">'; 48 if($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER) 51 $Output .= '</table> 52 */ 53 $Output .= '<div style="text-align: center">'; 54 if(($this->System->Modules['User']->User['Role'] >= USER_ROLE_USER) and ($this->System->Modules['User']->User['Id'] == $Server->Server['User'])) 49 55 { 50 56 $Output .= '<br /><a href="'.$this->System->Config['Web']['Host'].'/mysql/">Správa databáze</a> ';
Note:
See TracChangeset
for help on using the changeset viewer.