Changeset 52 for trunk/Modules/Event/EventPage.php
- Timestamp:
- Jan 4, 2020, 11:59:33 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Event/EventPage.php
r51 r52 38 38 $Filter = new Filter(); 39 39 $Filter->Items = array( 40 array('Name' => 'past', 'Type' => 'Boolean', 'DbName' => '', 'Title' => 'Proběhlé'), 40 41 array('Name' => 'title', 'Type' => 'String', 'DbName' => 'Title', 'Title' => 'Titulek'), 41 42 array('Name' => 'description', 'Type' => 'String', 'DbName' => 'Description', 'Title' => 'Popis'), 42 array('Name' => 'price', 'Type' => ' String', 'DbName' => 'Price', 'Title' => 'Cena'),43 array('Name' => 'price', 'Type' => 'Integer', 'DbName' => 'Price', 'Title' => 'Cena'), 43 44 array('Name' => 'location', 'Type' => 'String', 'DbName' => 'Location', 'Title' => 'Umístění'), 44 45 array('Name' => 'source', 'Type' => 'String', 'DbName' => 'SourceName', 'Title' => 'Import'), … … 53 54 $Output .= $Filter->GetOutput($this->System->Link('/udalosti/')); 54 55 $Where = $Filter->GetWhere($this->Database); 56 if ($_SESSION['past'] != 1) $Where .= ' AND (TimeFrom > NOW())'; 55 57 56 58 $DbResult = $this->Database->query('SELECT COUNT(*) FROM (SELECT *, '. … … 71 73 array('Name' => '', 'Title' => 'Detail'), 72 74 ); 73 $Order = GetOrderTableHeader($TableColumns, 'TimeFrom', 1);75 $Order = GetOrderTableHeader($TableColumns, 'TimeFrom', 0); 74 76 $Output .= '<table class="WideTable">'; 75 77 $Output .= $Order['Output'];
Note:
See TracChangeset
for help on using the changeset viewer.