|
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.1 KB
|
| Line | |
|---|
| 1 | <?php
|
|---|
| 2 |
|
|---|
| 3 | include_once(dirname(__FILE__).'/../../Base/View.php');
|
|---|
| 4 |
|
|---|
| 5 | class ClusterView extends View
|
|---|
| 6 | {
|
|---|
| 7 | var $ItemListFormClass = array(
|
|---|
| 8 | 'Title' => 'Uzly skupiny',
|
|---|
| 9 | 'Table' => 'ClusterNode',
|
|---|
| 10 | 'DefaultOrderColumn' => 'NetworkAddress',
|
|---|
| 11 | 'DefaultOrderDirection' => 1,
|
|---|
| 12 | 'Items' => array(
|
|---|
| 13 | 'NetworkAddress' => array('Type' => 'String', 'Caption' => 'Síťová adresa', 'Default' => ''),
|
|---|
| 14 | ),
|
|---|
| 15 | );
|
|---|
| 16 |
|
|---|
| 17 | function ShowListOnRow($Row)
|
|---|
| 18 | {
|
|---|
| 19 | //$Row['Version'] = '<a href="http://www.wowwiki.com/Patch_'.$Row['Version'].'">'.$Row['Version'].'</a>';
|
|---|
| 20 | return($Row);
|
|---|
| 21 | }
|
|---|
| 22 |
|
|---|
| 23 | function ItemList()
|
|---|
| 24 | {
|
|---|
| 25 | $Output = '<h4>Uzly ve skupině</h4>';
|
|---|
| 26 | $Table = new Table($this->ItemListFormClass, $this->System);
|
|---|
| 27 | $Table->OnRow = array($this, 'ShowListOnRow');
|
|---|
| 28 | $Table->LoadValuesFromDatabase($this->Database);
|
|---|
| 29 | $Output .= $Table->Show();
|
|---|
| 30 | if($this->System->Modules['Permission']->Check('Cluster', 'Show'))
|
|---|
| 31 | {
|
|---|
| 32 | $Output .= '<div style="text-align: center">';
|
|---|
| 33 | $Output .= ' <a href="?Module=Cluster&Action=Add">Přidat</a>';
|
|---|
| 34 | $Output .= '</div>';
|
|---|
| 35 | }
|
|---|
| 36 | return($Output);
|
|---|
| 37 | }
|
|---|
| 38 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.