Changeset 93 for trunk/www/Application/View/Task.php
- Timestamp:
- Aug 15, 2013, 11:17:26 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/Application/View/Task.php
r92 r93 26 26 function ItemList() 27 27 { 28 global $Config;29 30 28 $Output = '<h4>Fronta úloh</h4>'; 31 29 $Table = new Table($this->ItemListFormClass, $this->System); 32 30 $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)'; 34 33 $Table->Definition['Items']['Id'] = array('Type' => 'Hidden', 'Caption' => '', 'Default' => ''); 35 34 $Table->LoadValuesFromDatabase($this->Database); … … 65 64 } 66 65 } 67 68 ?>
Note:
See TracChangeset
for help on using the changeset viewer.