if ($password_protected) { $participant_mgmnt = gettext("password protected tutorial"); } else { if ($lms_tutorial->is_moderated() && !$password_protected) { $participant_mgmnt = gettext("moderated tutorial"); } else { if ($lms_tutorial->is_private() && !$password_protected) { $participant_mgmnt = gettext("private tutorial"); } else { $participant_mgmnt = gettext("public tutorial"); } } } $content->setCurrentBlock("BLOCK_GROUP"); if ($tutorial->get_workroom()->check_access_read($current_user)) { $content->setVariable("GROUPLINK", "<td><a href=\"" . $backlink . $tutorial->get_id() . "\"><b>" . $lms_tutorial->get_display_name() . "</b></a>" . " (" . $participant_mgmnt . ")" . "<br>" . h($result[$tnr[$tutorial->get_id()]["attributes"]]["OBJ_DESC"]) . "<br><small>" . h($result[$tnr[$tutorial->get_id()]["attributes"]]["TUTORIAL_LONG_DESC"]) . "</small></td>"); } else { $content->setVariable("GROUPLINK", "<td><b>" . $lms_tutorial->get_display_name() . "</b>" . " (" . $participant_mgmnt . ")" . "<br>" . h($result[$tnr[$tutorial->get_id()]["attributes"]]["OBJ_DESC"]) . "<br><small>" . h($result[$tnr[$tutorial->get_id()]["attributes"]]["TUTORIAL_LONG_DESC"]) . "</small></td>"); } $content->setVariable("MEMBER_LINK", $backlink . "tutorials/" . $tutorial->get_id() . "/members/"); $content->setVariable("GROUP_MEMBERS", $result[$tnr[$tutorial->get_id()]["membercount"]]); $result[$tnr[$tutorial->get_id()]["is_member"]] || $lms_tutorial->is_admin($current_user) ? $content->setVariable("COMMUNICATION", "<td align=\"center\"><a href=\"" . PATH_URL . "messages_write.php?group=" . $tutorial->get_id() . "\">" . gettext("Send Message") . "</a></td>") : $content->setVariable("COMMUNICATION", "<td align=\"center\">" . gettext("not allowed") . "</td>"); $content->setVariable("LABEL_MESSAGE", gettext("Message")); $content->setVariable("LABEL_SEND", gettext("Send")); $content->setVariable("LABEL_TUTOR", gettext("Tutor")); $content->setVariable("LABEL_ACTION", gettext("Sign in/Resign")); $content->setVariable("LABEL_MAX_LEARNERS", gettext("# max. lns")); $content->setVariable("GROUP_MEM_TITLE", gettext("Number of participants")); $content->setVariable("VALUE_MAX_TITLE", gettext("Maximum number of participants")); $content->setVariable("VALUE_TUTOR", $tutorial->get_attribute("TUTORIAL_TUTOR")); if ($result[$tnr[$tutorial->get_id()]["attributes"]]["TUTORIAL_MAX_LEARNERS"] != "" && $result[$tnr[$tutorial->get_id()]["attributes"]]["TUTORIAL_MAX_LEARNERS"] != 0) {