'
. '
'
. '' . $boardlist['top'] . '
';
$body .= '' . ($settings['subtitle'] ? utf8tohtml($settings['subtitle']) : '') . '
';
$body .= '';
$query = query("SELECT * FROM `news` ORDER BY `name` = 'static' DESC, `time` DESC") or error(db_error());
if($query->rowCount() == 0) {
$body .= '
(No news to show.)
';
} else {
// List news
while($news = $query->fetch()) {
$body .= '
' .
($news['subject'] ?
$news['subject']
:
'no subject'
) .
($news['name'] != 'static' ?
' - ' .
date($config['post_date'], $news['time']) .
''
: '') .
'
' . $news['body'] . '
';
if($news['name'] == 'static') {
// static notice
$body .= '