Changeset 510 for trunk/index.php
- Timestamp:
- Feb 15, 2013, 11:02:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/index.php
r507 r510 8 8 9 9 $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'); 11 12 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>'; 13 14 $Output .= '<a href="action.php?action=news">Všechny zprávy</a>'; 14 15 $Output .= '</div>';
Note:
See TracChangeset
for help on using the changeset viewer.