Changeset 27 for trunk/index.php
- Timestamp:
- Dec 27, 2018, 4:16:22 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r26 r27 259 259 $PageList = GetPageList($DbRow[0]); 260 260 261 $Gender = array('', 'Muž', 'Žena'); 261 $Gender = array('', 'Muž', 'Žena'); 262 262 $Output .= '<div id="list_content">'; 263 263 $Output .= $PageList['Output']; … … 271 271 array('Name' => 'Gender', 'Title' => 'Pohlaví'), 272 272 array('Name' => 'Message', 'Title' => 'Zpráva'), 273 array('Name' => 'Source', 'Title' => 'Zdroj'), 273 array('Name' => 'Source', 'Title' => 'Import'), 274 array('Name' => '', 'Title' => 'Detail'), 274 275 ); 275 276 $Order = GetOrderTableHeader($TableColumns, 'Date', 1); … … 291 292 '<td>'.$Gender[$MeetItem['Gender']].'</td>'. 292 293 '<td>'.$MeetItem['Message'].'</td>'. 293 '<td><a href="'.$MeetItem['SourceURL'].'">'.$MeetItem['SourceName'].'</a></td>'; 294 '<td><a href="'.$MeetItem['SourceURL'].'">'.$MeetItem['SourceName'].'</a></td>'. 295 '<td><a href="'.$this->Link('/seznamka/inzerat/'.$MeetItem['Id']).'">Ukázat</a></td>'; 294 296 $Output .= '</tr>'; 295 297 } … … 302 304 else 303 305 { 304 $Output .= '<a href="'.$this->Link('/seznamka -rss/').'"><img src="'.$this->Link('/images/rss20.png').'" alt="rss20"/></a><br/>';306 $Output .= '<a href="'.$this->Link('/seznamka/rss/').'"><img src="'.$this->Link('/images/rss20.png').'" alt="rss20"/></a><br/>'; 305 307 } 306 308 307 309 return($Output); 310 } 311 312 function ShowMeetItem() 313 { 314 $Output = ''; 315 if(count($this->PathItems) > 2) 316 { 317 $id = $this->PathItems[2] * 1; 318 } else return 'Položka nenalezena'; 319 $Output .= '<div class="title">Inzerát</div>'; 320 $Gender = array('', 'Muž', 'Žena'); 321 $DbResult = $this->Database->select('MeetItem', '*, (SELECT MeetSource.Name FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceName, '. 322 '(SELECT MeetSource.URL FROM MeetSource WHERE MeetSource.Id = MeetItem.Source) AS SourceURL', 'Id='.$id); 323 while($MeetItem = $DbResult->fetch_assoc()) 324 { 325 if ($MeetItem['Link'] != '') $Link = '<a href="'.$MeetItem['Link'].'">Odkaz</a>'; 326 else $Link = ''; 327 $Output .= '<table class="ItemTable">'. 328 '<tr><th>Datum</th><td>'.HumanDate(MysqlDateToTime($MeetItem['Date'])).'</td></tr>'. 329 '<tr><th>Pohlaví</th><td>'.$Gender[$MeetItem['Gender']].'</td></tr>'. 330 '<tr><th>Jméno</th><td>'.$MeetItem['Name'].'</td></tr>'. 331 '<tr><th>Výška</th><td>'.$MeetItem['Height'].'</td></tr>'. 332 '<tr><th>Věk</th><td>'.$MeetItem['Age'].'</td></tr>'. 333 '<tr><th>Váha</th><td>'.$MeetItem['Weight'].'</td></tr>'. 334 '<tr><th>Umístění</th><td>'.$MeetItem['Location'].'</td></tr>'. 335 '<tr><th>Email</th><td>'.$MeetItem['Email'].'</td></tr>'. 336 '<tr><th>Telefon</th><td>'.$MeetItem['Phone'].'</td></tr>'. 337 '<tr><th>Zpráva</th><td>'.$MeetItem['Message'].'</td></tr>'. 338 '<tr><th>Původní web</th><td>'.$Link.'</td></tr>'. 339 '<tr><th>Zdroj importu</th><td><a href="'.$MeetItem['SourceURL'].'">'.$MeetItem['SourceName'].'</a></td></tr>'; 340 $Output .= '</table>'; 341 } 342 return $Output; 308 343 } 309 344 … … 331 366 if ($MeetItem['Age'] != '') $Description .= '<br/>Věk: '.$MeetItem['Age'].' let'; 332 367 if ($MeetItem['Height'] != '') $Description .= '<br/>Výška: '.$MeetItem['Height'].' cm'; 333 if ($MeetItem['Weight'] != '') $Description .= '<br/>Váha: '.$MeetItem['Weight'].' kg'; 334 $Description .= '<br/>Zdroj: <a href="'.$MeetItem['SourceURL'].'">'.$MeetItem['SourceName'].'</a>'; 368 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>'; 335 371 $RSS->Items[] = array( 336 372 'Title' => $Title, 337 373 'Description' => $Description, 338 374 'Time' => $MeetItem['UnixTime'], 339 'Link' => $this->AbsoluteLink('/seznamka/ '),375 'Link' => $this->AbsoluteLink('/seznamka/inzerat/'.$MeetItem['Id'].'/'), 340 376 ); 341 377 $Output .= '</tr>'; … … 387 423 if($this->PathItems[0] == 'skoly') $Output .= $this->ShowSchoolList(); 388 424 else if($this->PathItems[0] == 'tance') $Output .= $this->ShowDanceList(); 389 else if($this->PathItems[0] == 'seznamka') $Output .= $this->ShowMeetList(); 390 else if($this->PathItems[0] == 'seznamka-rss') $Output .= $this->ShowMeetListRss(); 391 else if($this->PathItems[0] == 'seznamka-aktualizace') $Output .= $this->ShowMeetUpdate(); 425 else if($this->PathItems[0] == 'seznamka') { 426 if(count($this->PathItems) > 1) 427 { 428 if($this->PathItems[1] == 'rss') $Output .= $this->ShowMeetListRss(); 429 else if($this->PathItems[1] == 'aktualizace') $Output .= $this->ShowMeetUpdate(); 430 else if($this->PathItems[1] == 'inzerat') $Output .= $this->ShowMeetItem(); 431 } else $Output .= $this->ShowMeetList(); 432 } 392 433 else $Output .= $this->ShowDanceList(); 393 434 } else $Output .= $this->ShowDanceList();
Note:
See TracChangeset
for help on using the changeset viewer.