}
$oSelItemsPerPage = new cHTMLSelectElement("elemperpage");
$oSelItemsPerPage->autoFill(array(0 => i18n("-- All --", $plugin_name), 25 => 25, 50 => 50, 75 => 75, 100 => 100));
$oSelItemsPerPage->setDefault($iItemsPerPage);
$oSelSortBy = new cHTMLSelectElement("sortby");
foreach ($aFields as $sKey => $aData) {
    if (strpos($aData["type"], "sort") !== false) {
        $oOption = new cHTMLOptionElement($aData["caption"], $aData["field"]);
        $oSelSortBy->addOptionElement($aData["field"], $oOption);
    }
}
$oSelSortBy->setDefault("name");
$oSelSortOrder = new cHTMLSelectElement("sortorder");
$oSelSortOrder->autoFill(array("ASC" => i18n("Ascending", $plugin_name), "DESC" => i18n("Descending", $plugin_name)));
$oSelSortOrder->setDefault("ASC");
$oTxtFilter = new cHTMLTextbox("filter", "", 16);
$oSelSearchIn = new cHTMLSelectElement("searchin");
$oOption = new cHTMLOptionElement(i18n("-- All fields --", $plugin_name), "--all--");
$oSelSearchIn->addOptionElement("all", $oOption);
foreach ($aFields as $sKey => $aData) {
    if (strpos($aData["type"], "search") !== false) {
        $oOption = new cHTMLOptionElement($aData["caption"], $aData["field"]);
        $oSelSearchIn->addOptionElement($aData["field"], $oOption);
    }
}
$oSelSearchIn->setDefault("--all--");
$oBtnApply = new cHTMLButton("submit", i18n("Apply", $plugin_name));
$sContent = '<div style="border-bottom: 0px solid #B3B3B3; padding-left: 17px; background: ' . $cfg['color']['table_dark'] . ';">' . "\n";
$sContent .= '<form target="left_bottom" onsubmit="reloadLeftBottomAndTransportFormVars(this);" id="groups_listoptionsform" name="groups_listoptionsform" method="get" action="">' . "\n";
$sContent .= '   <input type="hidden" name="area" value="recipientgroups">' . "\n";
$sContent .= '   <input type="hidden" name="frame" value="2">' . "\n";
                 $oGroupMembers->delete($iGroupMemberID);
             }
         }
     }
 }
 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());
 $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"];
         }
         $oOption = new cHTMLOptionElement($aData["caption"], $aData["field"]);
         $oSelSortBy->addOptionElement($aData["field"], $oOption);
     }
 }
 $oSelSortBy->setDefault($_REQUEST["outsider_sortby"]);
 $oSelSortOrder = new cHTMLSelectElement("outsider_sortorder");
 $oSelSortOrder->autoFill(array("ASC" => i18n("Ascending", $plugin_name), "DESC" => i18n("Descending", $plugin_name)));
 $oSelSortOrder->setDefault($_REQUEST["outsider_sortorder"]);
 $oTxtFilter = new cHTMLTextbox("outsider_filter", $_REQUEST["outsider_filter"], 16);
 $oSelSearchIn = new cHTMLSelectElement("outsider_searchin");
 $oOption = new cHTMLOptionElement(i18n("-- All fields --", $plugin_name), "--all--");
 $oSelSearchIn->addOptionElement("all", $oOption);
 foreach ($aFields as $sKey => $aData) {
     if (strpos($aData["type"], "search") !== false) {
         $oOption = new cHTMLOptionElement($aData["caption"], $aData["field"]);
         $oSelSearchIn->addOptionElement($aData["field"], $oOption);
     }
 }
 $oSelSearchIn->setDefault($_REQUEST["outsider_searchin"]);
 $oSubmit = new cHTMLButton("submit", i18n("Apply", $plugin_name));
 $sContent = '<div style="border-bottom: 1px solid black; background: ' . $cfg['color']['table_dark'] . ';">' . chr(10);
 $sContent .= '   <table>' . chr(10);
 $sContent .= '      <tr>' . chr(10);
 $sContent .= '         <td>' . i18n("Items / page", $plugin_name) . '</td>' . chr(10);