Changeset 28 for trunk/index.php
- Timestamp:
- Dec 27, 2018, 4:42:20 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r27 r28 33 33 var $Database; 34 34 var $Config; 35 var $Title; 35 36 36 37 function __construct() … … 64 65 function ShowDanceList() 65 66 { 67 $this->Title .= ' - Tance'; 66 68 $Output = '<div class="title">Tance</div>'; 67 69 $Output .= '<table class="WideTable">'; … … 97 99 function ShowSchoolList() 98 100 { 101 $this->Title .= ' - Taneční školy'; 99 102 $Output = '<div class="title">Taneční školy</div>'; 100 103 $Output .= '<table class="WideTable">'; … … 122 125 function ShowMeetList() 123 126 { 127 $this->Title .= ' - Seznamka'; 124 128 $Output = ''; 125 129 if (array_key_exists('lvm', $_GET) and ($_GET['lvm'] == 'seznam')) … … 312 316 function ShowMeetItem() 313 317 { 318 $this->Title .= ' - Seznamka - Inzerát'; 314 319 $Output = ''; 315 320 if(count($this->PathItems) > 2) … … 321 326 $DbResult = $this->Database->select('MeetItem', '*, (SELECT MeetSource.Name FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceName, '. 322 327 '(SELECT MeetSource.URL FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceURL', 'Id='.$id); 323 while($MeetItem = $DbResult->fetch_assoc()) 324 { 328 if ($DbResult->num_rows > 0) 329 { 330 $MeetItem = $DbResult->fetch_assoc(); 325 331 if ($MeetItem['Link'] != '') $Link = '<a href="'.$MeetItem['Link'].'">Odkaz</a>'; 326 332 else $Link = ''; … … 334 340 '<tr><th>Umístění</th><td>'.$MeetItem['Location'].'</td></tr>'. 335 341 '<tr><th>Email</th><td>'.$MeetItem['Email'].'</td></tr>'. 336 '<tr><th>Telef on</th><td>'.$MeetItem['Phone'].'</td></tr>'.342 '<tr><th>Telefón</th><td>'.$MeetItem['Phone'].'</td></tr>'. 337 343 '<tr><th>Zpráva</th><td>'.$MeetItem['Message'].'</td></tr>'. 338 344 '<tr><th>Původní web</th><td>'.$Link.'</td></tr>'. 339 345 '<tr><th>Zdroj importu</th><td><a href="'.$MeetItem['SourceURL'].'">'.$MeetItem['SourceName'].'</a></td></tr>'; 340 346 $Output .= '</table>'; 341 } 347 } else $Output .= 'Položka nenalezena'; 342 348 return $Output; 343 349 } … … 367 373 if ($MeetItem['Height'] != '') $Description .= '<br/>Výška: '.$MeetItem['Height'].' cm'; 368 374 if ($MeetItem['Weight'] != '') $Description .= '<br/>Váha: '.$MeetItem['Weight'].' kg'; 369 $Description .= '<br/>Zdroj import: <a href="'.$MeetItem['SourceURL'].'">'.$MeetItem['SourceName'].'</a>'; 370 $Description .= '<br/>Podrobnosti: <a href="'.$this->AbsoluteLink('/seznamka/inzerat/'.$MeetItem['Id'].'/').'">Otevřít</a>'; 375 $Description .= '<br/>Zdroj importu: <a href="'.$MeetItem['SourceURL'].'">'.$MeetItem['SourceName'].'</a>'; 371 376 $RSS->Items[] = array( 372 377 'Title' => $Title, … … 375 380 'Link' => $this->AbsoluteLink('/seznamka/inzerat/'.$MeetItem['Id'].'/'), 376 381 ); 377 $Output .= '</tr>';378 382 } 379 383 … … 393 397 '<script src="'.$this->Link('/jquery.js').'"></script>'; 394 398 $Output .= '<link rel="alternate" title="Taneční seznamka" href="'. 395 $this->Link('/seznamka -rss/').'" type="application/rss+xml" />';396 $Output .= '<title> Tance</title>'.399 $this->Link('/seznamka/rss/').'" type="application/rss+xml" />'; 400 $Output .= '<title>'.$this->Title.'</title>'. 397 401 '</head><body>'; 398 402 $Output .= $Content; … … 417 421 $this->PathItems = $this->ProcessURL(); 418 422 419 $Output = ''; 423 $this->Title = 'Tanec'; 424 $Output = ''; 420 425 421 426 if(count($this->PathItems) > 0)
Note:
See TracChangeset
for help on using the changeset viewer.