$content->parse("BLOCK_MAXPOINT"); } // Get member data $cache = get_cache_function($group->get_id(), CACHE_LIFETIME_STATIC); $members = $cache->call("lms_steam::group_get_members", $group->get_id(), TRUE); usort($members, "sort_objects"); $id = 0; $name = ""; foreach ($members as $member) { $id = $member["OBJ_ID"]; $name = $member["OBJ_NAME"]; $firstname = $member["USER_FIRSTNAME"]; $fullname = $member["USER_FULLNAME"]; $matriculation_number = $member["ldap:USER_MATRICULATION_NUMBER"]; $points = $pointlist[$id]; units_pointlist::display_memberdata_admin($content, $id, $name, $firstname, $fullname, $matriculation_number, $count, $points, $maxpoints, $write_mode, $bonus_1, $bonus_2); } // Disable the write mode /* if ($write_mode) { $content->setCurrentBlock("BLOCK_SUBMIT"); $content->setVariable("LABEL_SUBMIT", gettext("Save changes")); $content->setVariable("SUBMIT_COLSPAN", $count+3); $content->setVariable("BACKLINK", " " . "<a href='" . $backlink . "/?show=all'>" . gettext("go back") . "</a>" ); $content->parse("BLOCK_SUBMIT"); } else { $content->setCurrentBlock("BLOCK_WRITE"); $content->setVariable("WRITE_COLSPAN", $count+3); $content->setVariable("LINK_ENABLE_WRITE", "<a href='" . $backlink . "/?show=all&write_mode=true'>" . gettext("Enable Write Mode") . "</a>" ); $content->parse("BLOCK_SUBMIT"); }