RequireUIFile( ["jquery-ui.js", "jquery-ui.css"], ApplicationFramework::ORDER_FIRST); # set up fields to display $Fields = [ "FromAddr" => [ "Heading" => "From", ], "ToAddr" => [ "Heading" => "To", ], "Subject" => [ "Heading" => "Subject", ], "NumResources" => [ "Heading" => "Num. Resources", ], "DateCreated" => [ "Heading" => "Date Queued", ], ]; $FormUI = new FormUI([ "SS" => [ "Type" => FormUI::FTYPE_TEXT, "Label" => "Search", "Value" => $H_SearchString, ], "Template" => [ "Type" => FormUI::FTYPE_OPTION, "Label" => "Mailer Template", "Value" => $H_SelectedTemplate, "Options" => $H_Templates, ], ]); $OptList = new HtmlOptionList("TID", $H_Templates, $H_SelectedTemplate); $OptList->SubmitOnChange(TRUE); $SendLink = "index.php?P=P_Mailer_ViewMessage&ID=\$ID&A=Send"; $ViewLink = "index.php?P=P_Mailer_ViewMessage&ID=\$ID&A=View"; $DeleteLink = "index.php?P=P_Mailer_ViewMessage&ID=\$ID&A=Delete"; ?>
Template: GetHtml() ?> Search:

# Queued Email

AddTopButton( $SendManyLabel, $SendManyLink, "accept.png"); } $ListUI->AddActionButton("Send", $SendLink, "accept.png"); $ListUI->AddActionButton("View", $ViewLink, "asterisk_yellow.png"); $ListUI->AddActionButton("Delete", $DeleteLink, "cross.png"); $ListUI->Display($H_EmailList, $H_TotalItems);