$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"; $sContent .= ' <input type="hidden" name="contenido" value="' . $sess->id . '">' . "\n"; $sContent .= ' <table>' . "\n"; $sContent .= ' <tr>' . "\n"; $sContent .= ' <td>' . i18n("Items / page", $plugin_name) . '</td>' . "\n"; $sContent .= ' <td>' . $oSelItemsPerPage->render() . '</td>' . "\n"; $sContent .= ' </tr>' . "\n"; $sContent .= ' <tr>' . "\n"; $sContent .= ' <td>' . i18n("Sort by", $plugin_name) . '</td>' . "\n"; $sContent .= ' <td>' . $oSelSortBy->render() . '</td>' . "\n"; $sContent .= ' </tr>' . "\n"; $sContent .= ' <tr>' . "\n";
$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); $sContent .= ' <td>' . $oSelItemsPerPage->render() . '</td>' . chr(10); $sContent .= ' </tr>' . chr(10); $sContent .= ' <tr>' . chr(10); $sContent .= ' <td>' . i18n("Sort by", $plugin_name) . '</td>' . chr(10); $sContent .= ' <td>' . $oSelSortBy->render() . '</td>' . chr(10); $sContent .= ' </tr>' . chr(10); $sContent .= ' <tr>' . chr(10); $sContent .= ' <td>' . i18n("Sort order", $plugin_name) . '</td>' . chr(10); $sContent .= ' <td>' . $oSelSortOrder->render() . '</td>' . chr(10); $sContent .= ' </tr>' . chr(10); $sContent .= ' <tr>' . chr(10);