Changeset 510 for trunk/action.php
- Timestamp:
- Feb 15, 2013, 11:02:13 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/action.php
r507 r510 271 271 if($User->Licence(LICENCE_ADMIN)) $Output .= ' <a href="admin/?action=addnew">Vložit</a>'; 272 272 $Output .= '<div class="shoutbox">'; 273 $DbResult = $System->Database->query('SELECT `News`.`Time`, `News`.`Text`, `User`.`Name` AS `User` FROM `News` JOIN `User` ON `User`.`Id`=`News`.`User` ORDER BY `News`.`Time` DESC '.$PageList['SQLLimit']); 273 $DbResult = $System->Database->query('SELECT `News`.`Time`, `News`.`Text`, `News`.`Title`, '. 274 '`User`.`Name` AS `User` FROM `News` JOIN `User` ON `User`.`Id`=`News`.`User` ORDER BY `News`.`Time` DESC '.$PageList['SQLLimit']); 274 275 while($Line = $DbResult->fetch_assoc()) 275 $Output .= '<div><strong>'. HumanDate($Line['Time']).'</strong> '.$Line['Text'].' ('.$Line['User'].')</div>';276 $Output .= '<div><strong>'.$Line['Title'].' ('.HumanDate($Line['Time']).')</strong> '.$Line['Text'].' ('.$Line['User'].')</div>'; 276 277 $Output .= '</div>'.$PageList['Output']; 277 278 return($Output);
Note:
See TracChangeset
for help on using the changeset viewer.