Ignore:
Timestamp:
Aug 15, 2013, 11:17:26 PM (11 years ago)
Author:
chronos
Message:
  • Fixed: System variable as parameter to constructors of descendents of Module class.
  • Removed: End PHP mark "?>" from all files.
File:
1 edited

Legend:

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

    r92 r93  
    2626  function ItemList()
    2727  {
    28     global $Config;
    29    
    3028    $Output = '<h4>Fronta úloh</h4>';
    3129    $Table = new Table($this->ItemListFormClass, $this->System);
    3230    $Table->OnRow = array($this, 'ShowListOnRow');
    33     $Table->Definition['Table'] = '(SELECT Id, (COALESCE(UNIX_TIMESTAMP(TimeEnd), UNIX_TIMESTAMP(NOW())) - UNIX_TIMESTAMP(TimeStart)) AS Duration, TimeCreate, Title, State FROM Task WHERE User='.$this->System->Modules['User']->User['Id'].' ORDER BY Id DESC)';
     31    $Table->Definition['Table'] = '(SELECT Id, (COALESCE(UNIX_TIMESTAMP(TimeEnd), UNIX_TIMESTAMP(NOW())) - UNIX_TIMESTAMP(TimeStart)) AS Duration, TimeCreate, Title, State FROM Task WHERE User='.
     32      $this->System->Modules['User']->User['Id'].' ORDER BY Id DESC)';
    3433    $Table->Definition['Items']['Id'] = array('Type' => 'Hidden', 'Caption' => '', 'Default' => '');
    3534    $Table->LoadValuesFromDatabase($this->Database);
     
    6564  }
    6665}
    67 
    68 ?>
Note: See TracChangeset for help on using the changeset viewer.