|
Last change
on this file was 95, checked in by chronos, 11 years ago |
- Upraveno: Soubory různých logických částí systému odděleny do aplikačních modulů.
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | include_once(dirname(__FILE__).'/../../Base/Module.php');
|
|---|
| 4 |
|
|---|
| 5 | class ClientView extends View
|
|---|
| 6 | {
|
|---|
| 7 | var $ItemListFormClass = array(
|
|---|
| 8 | 'Title' => 'Verze klienta',
|
|---|
| 9 | 'Table' => 'Client',
|
|---|
| 10 | 'DefaultOrderColumn' => 'BuildNumber',
|
|---|
| 11 | 'DefaultOrderDirection' => 1,
|
|---|
| 12 | 'Items' => array(
|
|---|
| 13 | 'Version' => array('Type' => 'String', 'Caption' => 'Verze', 'Default' => ''),
|
|---|
| 14 | 'BuildNumber' => array('Type' => 'Integer', 'Caption' => 'Číslo sestavení', 'Default' => ''),
|
|---|
| 15 | 'ReleaseDate' => array('Type' => 'Date', 'Caption' => 'Datum vydání', 'Default' => ''),
|
|---|
| 16 | 'Title' => array('Type' => 'String', 'Caption' => 'Titulek', 'Default' => ''),
|
|---|
| 17 | ),
|
|---|
| 18 | );
|
|---|
| 19 |
|
|---|
| 20 | function ShowListOnRow($Row)
|
|---|
| 21 | {
|
|---|
| 22 | $Row['Version'] = '<a href="http://www.wowwiki.com/Patch_'.$Row['Version'].'">'.$Row['Version'].'</a>';
|
|---|
| 23 | return($Row);
|
|---|
| 24 | }
|
|---|
| 25 |
|
|---|
| 26 | function ItemList()
|
|---|
| 27 | {
|
|---|
| 28 | $Output = '<h4>Verze herního klienta</h4>';
|
|---|
| 29 | $Table = new Table($this->ItemListFormClass, $this->System);
|
|---|
| 30 | $Table->OnRow = array($this, 'ShowListOnRow');
|
|---|
| 31 | $Table->LoadValuesFromDatabase($this->Database);
|
|---|
| 32 | $Output .= $Table->Show();
|
|---|
| 33 | return($Output);
|
|---|
| 34 | }
|
|---|
| 35 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.