$oAssocGroups = new RecipientGroupMemberCollection(); $oAssocGroups->link("RecipientGroupCollection"); $oAssocGroups->setWhere("recipientgroupmembercollection.idnewsrcp", $recipient->get("idnewsrcp")); $oAssocGroups->setOrder("recipientgroupcollection.groupname"); $oAssocGroups->query(); if ($oAssocGroups->count() == 0) { $oGroupList->setCell(0, 1, i18n("Recipient is not member of any group", $plugin_name)); } else { // Headline $oGroupList->setCell(0, 1, "<strong>" . i18n("Groupname", $plugin_name) . "</strong>"); $oImgDel = new cHTMLImage("images/delete.gif"); $oGroupList->setCell(0, 2, $oImgDel->render()); $oGroupList->setCellAlignment(0, 2, "right"); // Data while ($oAssocGroup = $oAssocGroups->next()) { $oGroup = $oAssocGroups->fetchObject("RecipientGroupCollection"); $oCkbRemove = new cHTMLCheckbox("ckbRemove[]", $oAssocGroup->get("idnewsgroupmember")); echo $oGroup->get("idnewsgroupmember"); $oGroupList->setCell($oAssocGroup->get("idnewsgroupmember"), 1, $oGroup->get("groupname")); $oGroupList->setCell($oAssocGroup->get("idnewsgroupmember"), 2, $oCkbRemove->toHTML(false)); $oGroupList->setCellAlignment($oAssocGroup->get("idnewsgroupmember"), 2, "right"); } } $oForm->add(i18n("Associated Groups", $plugin_name), $oGroupList->render()); $oForm->add(i18n("Author", $plugin_name), $classuser->getUserName($recipient->get("author")) . " (" . $recipient->get("created") . ")"); $oForm->add(i18n("Last modified by", $plugin_name), $classuser->getUserName($recipient->get("modifiedby")) . " (" . $recipient->get("lastmodified") . ")"); $oPage->setContent($sNotis . $oForm->render(true)); } else { $oPage->setContent($sNotis . ""); } $oPage->render();
$oPagerLink->setCustom("member_sortby", $_REQUEST["member_sortby"]); $oPagerLink->setCustom("member_sortorder", $_REQUEST["member_sortorder"]); $oPagerLink->setCustom("member_searchin", $_REQUEST["member_searchin"]); $oPagerLink->setCustom("outsider_elemperpage", $_REQUEST["outsider_elemperpage"]); $oPagerLink->setCustom("outsider_filter", $_REQUEST["outsider_filter"]); $oPagerLink->setCustom("outsider_sortby", $_REQUEST["outsider_sortby"]); $oPagerLink->setCustom("outsider_sortorder", $_REQUEST["outsider_sortorder"]); $oPagerLink->setCustom("outsider_searchin", $_REQUEST["outsider_searchin"]); $oPagerLink->setCustom("idrecipientgroup", $_REQUEST["idrecipientgroup"]); $oPagerLink->setCustom("frame", $frame); $oPagerLink->setCustom("area", $area); #$oPagerLink->enableAutomaticParameterAppend(); $oPagerLink->setCustom("contenido", $sess->id); $oMemberPager = new cObjectPager("d82a3ff0-52d9-11db-b0de-0800200c9a66", $iMembers, $_REQUEST["member_elemperpage"], $_REQUEST["member_page"], $oPagerLink, "member_page"); $oMemberPager->setCaption(i18n("Member navigation", $plugin_name)); $oForm->add(i18n("Recipients in group", $plugin_name), '<table border="0" cellspacing="0" cellpadding="0" width="100%">' . $oMemberListOptionRow->render() . $oMemberPager->render() . '<tr><td>' . $oAddedRecipientList->render() . '</td></tr></table>'); unset($oInsiders); unset($oMemberListOptionRow); unset($oMemberPager); unset($oAddedRecipientList); // Outsiders // Outsider list options folding row $oOutsiderListOptionRow = new cFoldingRow("ca633b00-52e9-11db-b0de-0800200c9a66", i18n("Outsider list options", $plugin_name)); $oSelItemsPerPage = new cHTMLSelectElement("outsider_elemperpage"); $oSelItemsPerPage->autoFill(array(0 => i18n("-- All --", $plugin_name), 25 => 25, 50 => 50, 75 => 75, 100 => 100)); $oSelItemsPerPage->setDefault($_REQUEST["outsider_elemperpage"]); $oSelSortBy = new cHTMLSelectElement("outsider_sortby"); foreach ($aFields as $sKey => $aData) { if (strpos($aData["type"], "sort") !== false) { if ($_REQUEST["outsider_sortby"] == "") { $_REQUEST["outsider_sortby"] = $aData["field"];