Location: PHPKode > projects > FeedMeLinks, Social BookmarkingSince2002 > feedmelinks.com/modules/news-divs.inc.php
<%
	# $Id: news-divs.inc.php,v 1.5 2005/01/02 22:04:24 hirokai Exp $
	include_once( "$modules/news-data.inc.php" );
	$limit = $limit ? $limit : 7;
	$num = count( $newsItems );
	

	if( $num ) {
		$infoLine =  $num . " news item" . ( $num == 1 ? "" : "s") . " found; displaying the first $limit.";
%>
<div class="subhead">
<a href="/misc/news">Feed Me News</a> <span class="note"><small>(<%= $infoLine %>)</small></span>
</div>

<table>
<%
	$c = 0;
	foreach( $newsItems as $item ) {
	if( $c < $limit ) {
		$date = $item[0];
		$desc = $item[1];
%>

<tr>
<td valign="top" style="width: 10em;"><%= $date %></td><td valign="top"><%= $desc %></td>
</tr>

<% }
$c++;
}
%>
</table>
<% } %>
Return current item: FeedMeLinks, Social BookmarkingSince2002