Changeset 854 for trunk/Modules/News/News.php
- Timestamp:
- Jan 19, 2016, 5:25:11 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/News/News.php
r850 r854 29 29 function ShowBox() 30 30 { 31 $Count = 6;31 $Count = 10; 32 32 $Output = '<strong><a href="'.$this->System->Link('/news/').'">'.T('News').':</a></strong>'. 33 '<div class=" NewsBox">';33 '<div class="box"><div class="NewsBox">'; 34 34 $DbResult = $this->Database->query('SELECT `News`.`Time`, `User`.`Name`, `News`.`Text`,`News`.`Title`, `News`.`Id` '. 35 35 ' FROM `News` JOIN `User` ON `User`.`ID` = `News`.`User` ORDER BY `Time` DESC LIMIT '.$Count); … … 37 37 { 38 38 $Output .= '<h4><a href="'.$this->System->Link('/news/?a=item&i='.$DbRow['Id']).'">'.$DbRow['Title'].'</a> ('.HumanDate($DbRow['Time']).')</h4>'. 39 ' 39 '<div>'.$DbRow['Text'].' ('.$DbRow['Name'].')</div>'; 40 40 } 41 $Output .= '</div> ';41 $Output .= '</div></div>'; 42 42 return($Output); 43 43 }
Note:
See TracChangeset
for help on using the changeset viewer.