Changeset 81 for trunk/www/Application


Ignore:
Timestamp:
Dec 16, 2009, 7:35:39 AM (15 years ago)
Author:
george
Message:
 
Location:
trunk/www/Application/View
Files:
2 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    {
Note: See TracChangeset for help on using the changeset viewer.