Changeset 12 for trunk/index.php
- Timestamp:
- Dec 21, 2018, 8:51:54 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r11 r12 16 16 { 17 17 return($this->Config['BaseURL'].$URL); 18 } 19 20 function AbsoluteLink($URL) 21 { 22 return($this->Config['HostName'].$this->Config['BaseURL'].$URL); 18 23 } 19 24 … … 94 99 $Output = '<h4 style="text-align: center;">Taneční školy:</h4>'; 95 100 $Output .= '<table class="WideTable">'; 96 $Output .= '<tr><th>Název</th><th> Adresa</th>';101 $Output .= '<tr><th>Název</th><th>Webové stránky</th><th>Adresa</th>'; 97 102 $Output .= '</tr>'; 98 103 $DbResult = $this->Database->select('School', '*', '1 ORDER BY `Name`'); 99 104 while($School = $DbResult->fetch_assoc()) 100 105 { 101 $Output .= '<tr><td> <a href="'.$this->Link($School['URL']).'">'.$School['Name'].'</a></th><td>'.$School['Address'].'</td>';106 $Output .= '<tr><td>'.$School['Name'].'</td><td><a href="'.$this->Link($School['URL']).'">'.$School['URL'].'</a></th><td>'.$School['Address'].'</td>'; 102 107 $Output .= '</tr>'; 103 108 } … … 281 286 $RSS->Title = 'Taneční seznamka'; 282 287 $RSS->Description = ''; 283 $RSS->Link = $this-> Link('/seznamka/');288 $RSS->Link = $this->AbsoluteLink('/seznamka/'); 284 289 285 290 $DbResult = $this->Database->select('MeetItem', '*, (SELECT MeetSource.Name FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceName, '. … … 297 302 if ($MeetItem['Height'] != '') $Description .= '<br/>Výška: '.$MeetItem['Height'].' cm'; 298 303 if ($MeetItem['Weight'] != '') $Description .= '<br/>Váha: '.$MeetItem['Weight'].' kg'; 299 $Description .= '<br/>Škola: <a href="'.$this-> Link($MeetItem['SourceURL']).'">'.$MeetItem['SourceName'].'</a>';304 $Description .= '<br/>Škola: <a href="'.$this->AbsoluteLink($MeetItem['SourceURL']).'">'.$MeetItem['SourceName'].'</a>'; 300 305 $RSS->Items[] = array( 301 306 'Title' => $Title, 302 307 'Description' => $Description, 303 308 'Time' => $MeetItem['UnixTime'], 304 'Link' => $this-> Link('/seznamka/'),309 'Link' => $this->AbsoluteLink('/seznamka/'), 305 310 ); 306 311 $Output .= '</tr>';
Note:
See TracChangeset
for help on using the changeset viewer.