Changeset 510 for trunk/index.php


Ignore:
Timestamp:
Feb 15, 2013, 11:02:13 PM (11 years ago)
Author:
chronos
Message:
  • Přidáno: Novinky na webu nyní mají titulek. U starých novinek se nastaví jako titulek jméno uživatele, jako to bylo dříve.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r507 r510  
    88
    99  $Output = '<strong>Změny systému:</strong><div class="NewsBox">';
    10   $DbResult = $System->Database->query('SELECT `News`.`Time`, `User`.`Name`, `News`.`Text` FROM `News` JOIN `User` ON `User`.`ID` = `News`.`User` ORDER BY `Time` DESC LIMIT 10');
     10  $DbResult = $System->Database->query('SELECT `News`.`Time`, `User`.`Name`, `News`.`Text`,`News`.`Title`'.
     11    ' FROM `News` JOIN `User` ON `User`.`ID` = `News`.`User` ORDER BY `Time` DESC LIMIT 10');
    1112  while($DbRow = $DbResult->fetch_assoc())
    12     $Output .= '<div><strong>'.$DbRow['Name'].' ('.HumanDate($DbRow['Time']).')</strong> <br />'.$DbRow['Text'].'</div>'; 
     13    $Output .= '<div><strong>'.$DbRow['Title'].' ('.HumanDate($DbRow['Time']).')</strong> <br />'.$DbRow['Text'].'</div>'; 
    1314  $Output .= '<a href="action.php?action=news">Všechny zprávy</a>';
    1415  $Output .= '</div>';
Note: See TracChangeset for help on using the changeset viewer.