Changeset 81


Ignore:
Timestamp:
Dec 16, 2009, 7:35:39 AM (15 years ago)
Author:
george
Message:
 
Location:
trunk/www
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/Application/View/Cluster.php

    r78 r81  
    2323  function ItemList()
    2424  {
    25     global $Config;
    26    
    2725    $Output = '<h4>Uzly ve skupině</h4>';
    28     $Table = new Table($this->ItemListFormClass);
     26    $Table = new Table($this->ItemListFormClass, $this->System);
    2927    $Table->OnRow = array($this, 'ShowListOnRow');
    3028    $Table->LoadValuesFromDatabase($this->Database);
    3129    $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&amp;Action=Add">Přidat</a>';
     34      $Output .= '</div>';
     35    }
    3236    return($Output);
    3337  }
  • trunk/www/Application/View/Server.php

    r78 r81  
    8787   
    8888    $Output = '<h4>Seznam serverů</h4>';
    89     $Table = new Table($this->ItemListFormClass);
     89    $Table = new Table($this->ItemListFormClass, $this->System);
    9090    if(array_key_exists('Filter', $_GET))
    9191    {
  • trunk/www/Base/Table.php

    r80 r81  
    22
    33include_once(dirname(__FILE__).'/Types/Type.php');
    4 include_once(dirname(__FILE__).'/Types/Module.php');
     4include_once(dirname(__FILE__).'/Module.php');
     5include_once(dirname(__FILE__).'/Global.php');
    56
    67class Table extends Module
Note: See TracChangeset for help on using the changeset viewer.