[ "Heading" => "From", ], "ToAddr" => [ "Heading" => "To", ], "Subject" => [ ], "DateSent" => [ "Heading" => "Date Sent", ], ]; # add in template filtering and display when Mailer is enabled if ($PluginMgr->pluginReady("Mailer")) { $ListFields["Template"] = [ "Heading" => "Mailer Template", "Sortable" => false, "ValueFunction" => function ($Item, $FieldName) use ($H_Templates) { $LogData = $Item["LogData"]; if (strlen($LogData) == 0) { return ""; } $LogData = unserialize($LogData); if (!isset($LogData["TemplateId"])) { return ""; } return $H_Templates[$LogData["TemplateId"]]; } ]; } # create and display list UI $ListUI = new ItemListUI($ListFields); $ListUI->Heading("Sent Email Log"); $ListUI->ItemsPerPage($H_ItemsPerPage); $ListUI->BaseLink($H_BaseLink); $OptList = new HtmlOptionList("TID", $H_Templates, $H_SelectedTemplate); $OptList->SubmitOnChange(true); $SubmitButton = new HtmlButton("Search"); $SubmitButton->setIcon("MagnifyingGlass.svg"); $SubmitButton->setSize(HtmlButton::SIZE_SMALL); # ----- DISPLAY -------------------------------------------------------------- $AF->setPageTitle("Sent Email Log"); ?>
pluginReady("Mailer")) { ?> Template: GetHtml() ?> Search: getHtml(); ?>
Display($H_EmailList, $H_TotalItems); ?>