'News','pagename'=>'news','sectionvals'=>array(group_getname($group_id)))); echo $Language->getText('news', 'choose'); /* Put the result set (list of forums for this group) into a column with folders */ if ($group_id && ($group_id != $sys_news_group)) { $sql="SELECT * FROM news_bytes WHERE group_id='$group_id' AND is_approved <> '4' ORDER BY post_date DESC"; } else { $sql="SELECT * FROM news_bytes WHERE is_approved='1' ORDER BY post_date DESC"; } if (!$limit || $limit>50) $limit=50; $result=db_query($sql,$limit+1,$offset); $rows=db_numrows($result); $more=0; if ($rows>$limit) { $rows=$limit; $more=1; } if ($rows < 1) { if ($group_id) { echo '
' . $Language->getText('news', 'noitems') . '
';; echo db_error(); } else { echo '';
for ($j = 0; $j < $rows; $j++) {
echo '
'.
html_image("ic/cfolder15.png","15","13",array("border"=>"0")) . ' '.
stripslashes(db_result($result, $j, 'summary')).' ';
echo '
'; } if ($more) { echo ' [Older headlines]'; } echo ' |