Public feed
#377506
<?php
//number of columns
$objects_per_row = 3;
//number of results per page
$objects_per_page = 9;
//optional table width setting
$flexwidth = '100%';
print '<TABLE width="' . $flexwidth . '" cellpadding=0 cellspacing=0><TR>';
$result = pager_query(db_rewrite_sql("SELECT n.nid FROM node n WHERE n.type = 'flexinode-4' OR n.type = 'flexinode-1'"), $objects_per_page);
$i = 0;
while ($node = db_fetch_object($result)) {
print '<TD valign=top width=250><center>';
print node_view(node_load(array('nid' => $node->nid)), 1);
print '</center></TD>';
$i++;
if ($i == $objects_per_row)
{
print '</TR>
<TR><TD colspan="' . $objects_per_row . '"><img src="images/pixel_grey.gif" width=100% height=1></TD></TR>
<TR>';
$i = 0;
}
}
print '</TD></TR></TABLE>';
//summons the pager at the bottom
print '<TABLE width="' . $flexwidth . '" colspan="' . $objects_per_row . '">
<TR><TD>'. theme('pager') .'</TD></TR>
</TABLE>';
//}
?>