} if (count($aMessages) > 0) { $sNotis = $notification->returnNotification("warning", implode("<br>", $aMessages)) . "<br>"; } $oForm = new UI_Table_Form("properties"); $oForm->setVar("frame", $frame); $oForm->setVar("area", $area); $oForm->setVar("action", "recipients_save"); $oForm->setVar("idrecipient", $recipient->get("idnewsrcp")); $oForm->addHeader(i18n("Edit recipient", $plugin_name)); $oTxtName = new cHTMLTextbox("name", $recipient->get("name"), 40); $oTxtEMail = new cHTMLTextbox("email", $recipient->get("email"), 40); $oCkbConfirmed = new cHTMLCheckbox("confirmed", "1"); $oCkbConfirmed->setChecked($recipient->get("confirmed")); $oCkbDeactivated = new cHTMLCheckbox("deactivated", "1"); $oCkbDeactivated->setChecked($recipient->get("deactivated")); $oSelNewsType = new cHTMLSelectElement("newstype"); $oOption = new cHTMLOptionElement(i18n("Text only", $plugin_name), "0"); $oSelNewsType->addOptionElement(0, $oOption); $oOption = new cHTMLOptionElement(i18n("HTML and text", $plugin_name), "1"); $oSelNewsType->addOptionElement(1, $oOption); $oSelNewsType->setDefault($recipient->get("news_type")); $oForm->add(i18n("Name", $plugin_name), $oTxtName->render()); $oForm->add(i18n("E-Mail", $plugin_name), $oTxtEMail->render()); $oForm->add(i18n("Confirmed", $plugin_name), $oCkbConfirmed->toHTML(false) . " (" . $recipient->get("confirmeddate") . ")"); $oForm->add(i18n("Deactivated", $plugin_name), $oCkbDeactivated->toHTML(false)); $oForm->add(i18n("Message type", $plugin_name), $oSelNewsType->render()); $aPluginOrder = trim_array(explode(",", getSystemProperty("plugin", "recipients-pluginorder"))); // Check out if there are any plugins if (is_array($aPluginOrder)) { foreach ($aPluginOrder as $sPlugin) {
if ($_REQUEST["outsider_sortorder"] != "DESC") { $_REQUEST["outsider_sortorder"] = "ASC"; } // Output form $oForm = new UI_Table_Form("properties", "main.php?1", "get"); // Use "get" for folding rows... $oForm->setVar("frame", $frame); $oForm->setVar("area", $area); $oForm->setVar("action", "recipientgroup_save_group"); $oForm->setVar("idrecipientgroup", $_REQUEST["idrecipientgroup"]); $oForm->setSubmitJS("append_registered_parameters(this);"); $oForm->addHeader(i18n("Edit group", $plugin_name)); $oTxtGroupName = new cHTMLTextbox("groupname", $oRGroup->get("groupname"), 40); $oForm->add(i18n("Group name", $plugin_name), $oTxtGroupName->render()); $oCkbDefault = new cHTMLCheckbox("defaultgroup", "1"); $oCkbDefault->setChecked($oRGroup->get("defaultgroup")); $oForm->add(i18n("Default group", $plugin_name), $oCkbDefault->toHTML(false)); // Member list options folding row $oMemberListOptionRow = new cFoldingRow("a91f5540-52db-11db-b0de-0800200c9a66", i18n("Member list options", $plugin_name)); $oSelItemsPerPage = new cHTMLSelectElement("member_elemperpage"); $oSelItemsPerPage->autoFill(array(0 => i18n("-- All --", $plugin_name), 25 => 25, 50 => 50, 75 => 75, 100 => 100)); $oSelItemsPerPage->setDefault($_REQUEST["member_elemperpage"]); $oSelSortBy = new cHTMLSelectElement("member_sortby"); foreach ($aFields as $sKey => $aData) { if (strpos($aData["type"], "sort") !== false) { if ($_REQUEST["member_sortby"] == "") { $_REQUEST["member_sortby"] = $aData["field"]; } $oOption = new cHTMLOptionElement($aData["caption"], $aData["field"]); $oSelSortBy->addOptionElement($aData["field"], $oOption); }