Example #1
0
 if ($objUser) {
     $objMiniMenu->add('Create', 'index.php?action=groups&subaction=edit');
 }
 $arrGroups = clsGroup::getGroupList($objUser);
 print "<table class='groups'>";
 print "<tr>";
 print "<th width='300' align='left'>Name</td>";
 print "<th width='150' align='left'>Founder</td>";
 print "<th width='75'>Members</td>";
 print "<th width='75'>Albums</td>";
 print "<th width='75'>Pictures</td>";
 print "</tr>";
 foreach ($arrGroups as $objGroup) {
     $objFounder = $objGroup->getForeignObject('user');
     $isMember = $objGroup->isMember($objUser);
     $isPotential = $objGroup->isRequestedMember($objUser) || $objGroup->isInvitedMember($objUser);
     print "<tr>";
     print "\t<td>";
     if ($isMember) {
         print "<strong>";
     }
     if ($isPotential) {
         print "<em>";
     }
     print "\t\t<a href='index.php?action=groups&subaction=view&" . $objGroup->getIDPair() . "' class='nounderline'>" . $objGroup->get('name') . "</a></td>";
     if ($isPotential) {
         print "</em>";
     }
     if ($isMember) {
         print "</strong>";
     }