- Timestamp:
- Feb 3, 2019, 12:30:05 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r34 r35 45 45 '<a href="'.$this->Link('/skoly/').'">Školy</a> '. 46 46 '<a href="'.$this->Link('/seznamka/').'">Seznamka</a> '. 47 '<a href="'.$this->Link('/filmy/').'">Filmy</a> '. 47 48 '</div>'; 48 49 return($Output); … … 65 66 function ShowDanceList() 66 67 { 67 $this->Title .= ' - Tance';68 $this->Title = 'Tance - '.$this->Title; 68 69 $Output = '<div class="title">Tance</div>'; 69 70 $Output .= '<table class="WideTable">'; … … 99 100 function ShowSchoolList() 100 101 { 101 $this->Title .= ' - Taneční školy';102 $this->Title = 'Taneční školy - '.$this->Title; 102 103 $Output = '<div class="title">Taneční školy</div>'; 103 104 $Output .= '<table class="WideTable">'; … … 107 108 while($School = $DbResult->fetch_assoc()) 108 109 { 109 $Output .= '<tr><td>'.$School['Name'].'</td><td><a href="'.$this->Link($School['URL']).'">'.$School['URL'].'</a></th><td>'.$School['Address'].'</td>'; 110 $Output .= '</tr>'; 110 $Output .= '<tr>'. 111 '<td>'.$School['Name'].'</td>'. 112 '<td><a href="'.$this->Link($School['URL']).'">'.$School['URL'].'</a></td>'. 113 '<td>'.$School['Address'].'</td>'. 114 '</tr>'; 115 } 116 $Output .= '</table>'; 117 118 return($Output); 119 } 120 121 function ShowMovieList() 122 { 123 $this->Title = 'Filmy - '.$this->Title; 124 $Output = '<div class="title">Filmy</div>'; 125 $Output .= '<table class="WideTable">'; 126 $Output .= '<tr><th>Rok</th><th>Český název</th><th>Anglický název</th><th>IMDb</th><th>ČSFD</th>'; 127 $Output .= '</tr>'; 128 $DbResult = $this->Database->select('Movie', '*', '1 ORDER BY `Year` DESC'); 129 while($Movie = $DbResult->fetch_assoc()) 130 { 131 $Output .= '<tr>'. 132 '<td>'.$Movie['Year'].'</td>'. 133 '<td>'.$Movie['NameCz'].'</td>'. 134 '<td>'.$Movie['NameEn'].'</td>'. 135 '<td><a href="'.$Movie['Imdb'].'">Otevřít</a></td>'. 136 '<td><a href="'.$Movie['Csfd'].'">Otevřít</a></td>'. 137 '</tr>'; 111 138 } 112 139 $Output .= '</table>'; … … 125 152 function ShowMeetList() 126 153 { 127 $this->Title .= ' - Seznamka';154 $this->Title = 'Seznamka - '.$this->Title; 128 155 $Output = ''; 129 156 if (array_key_exists('lvm', $_GET) and ($_GET['lvm'] == 'seznam')) … … 316 343 function ShowMeetItem() 317 344 { 318 $this->Title .= ' - Seznamka - Inzerát';345 $this->Title = 'Inzerát - Seznamka - '.$this->Title; 319 346 $Output = ''; 320 347 if(count($this->PathItems) > 2) … … 430 457 '/skoly/', 431 458 '/tance/', 459 '/filmy/', 432 460 ); 433 461 $Result = '<?xml version="1.0" encoding="UTF-8"?>'."\n". … … 450 478 ' <lastmod>'.date('c', $Time).'</lastmod>'."\n". 451 479 '</url>'."\n"; 452 $Result .= '<loc>'.$this->AbsoluteLink($Url).'</loc>'."\n";453 480 } 454 481 … … 480 507 else if($this->PathItems[0] == 'skoly') $Output .= $this->ShowSchoolList(); 481 508 else if($this->PathItems[0] == 'tance') $Output .= $this->ShowDanceList(); 509 else if($this->PathItems[0] == 'filmy') $Output .= $this->ShowMovieList(); 482 510 else if($this->PathItems[0] == 'seznamka') { 483 511 if(count($this->PathItems) > 1)
Note:
See TracChangeset
for help on using the changeset viewer.