Location: PHPKode > projects > DATA system > datasystem-0.8.7/html/u/listgroups.php
<?
/*
 *  listgroups.php
 *  List all groups
 *
 *  Changes:
 *  Nov.05,2003  Shinya Meguro
 *   - Here document is used.
 */

pageheader("main", "Group listing");

$Names = db_listgroups();

$Trow = 0;
$table = "";
foreach($Names as $Group=>$List)
{
	$table .= " <tr bgcolor=\"".($Trow++ % 2 ? "#ffffff" : "#d0ffd0")."\">";
	$table .= "  <td>$Group</td>\n  <td></td>\n  <td>$List</td>\n </tr>\n";
}

print <<<__EOD__
<table cellspacing="0" class="thead"><tr><th>Group</th><th>&nbsp;</th><th>Members</th></tr>
$table
</table>
__EOD__;

pagefooter();

?>
Return current item: DATA system