"All time", ST_24_MONTH => "Last 24 months", ST_12_MONTH => "Last 12 months", ST_6_MONTH => "Last 6 months", ST_3_MONTH => "Last 3 months", ST_1_MONTH => "Last month", ST_1_WEEK => "Last week", ST_1_DAY => "Last day" ]; $UserTypeOptions = [ UT_ALL => "All Users", UT_ANON => "Anonymous", UT_PRIV => "Privileged", UT_UNPRIV => "Unprivileged" ]; $SearchTypeOptions = [ STY_ALL => "All", STY_SUCCESSFUL => "Successful", STY_FAILED => "Failed" ]; $ResultsPerPageOptions = [ 50 => 50, 100 => 100, 250 => 250, 500 => 500, 750 => 750 ]; # ----- SETUP ---------------------------------------------------------------- # verify that required incoming variables are set if (!isset($H_ListData)) { throw new Exception("Variable \$H_ListData not set."); } if (!isset($H_ListFields)) { throw new Exception("Variable \$H_ListFields not set."); } if (!isset($H_TransportUI)) { throw new Exception("Variable \$H_TransportUI not set."); } if (!isset($H_ResultsPerPage)) { throw new Exception("Variable \$H_ResultsPerPage not set."); } if (!isset($H_BaseLink)) { throw new Exception("Variable \$H_BaseLink not set."); } if (!isset($UserType)) { throw new Exception("Variable \$UserType not set."); } if (!isset($H_SearchType)) { throw new Exception("Variable \$H_SearchType not set."); } if (!isset($H_View)) { throw new Exception("Variable \$H_View not set."); } if (!isset($H_TotalResults)) { throw new Exception("Variable \$H_TotalResults not set."); } if (!isset($H_StartTime)) { throw new Exception("Variable \$H_StartTime not set."); } $ListUI = new ItemListUI($H_ListFields, $H_ListData); $ListUI->setTransportControls($H_TransportUI); $ListUI->setItemsPerPage($H_ResultsPerPage); $ListUI->setTotalItemCount($H_TotalResults); $ListUI->setBaseLink($H_BaseLink); $SpamButtonLink = $H_BaseLink."&".TransportControlsUI::PNAME_STARTINGINDEX ."=".$H_TransportUI->startingIndex()."&Spam=\$ID"; $ListUI->addActionButton("Spam", $SpamButtonLink); $PeriodOptionList = new HtmlOptionList("ST", $TimePeriodOptions, $H_StartTime); $PeriodOptionList->submitOnChange(true); $UserTypeOptionList = new HtmlOptionList("UT", $UserTypeOptions, $UserType); $UserTypeOptionList->submitOnChange(true); $SearchTypeOptionList = new HtmlOptionList("STY", $SearchTypeOptions, $H_SearchType); $SearchTypeOptionList->submitOnChange(true); $RPOtionList = new HtmlOptionList("RP", $ResultsPerPageOptions, $H_ResultsPerPage); $RPOtionList->submitOnChange(true); $StartingItemNumber = min(($H_TransportUI->StartingIndex() + 1), $H_TotalResults); $EndingItemNumber = min(($H_TransportUI->StartingIndex() + $H_ResultsPerPage), $H_TotalResults); $TransportMessage = "Results ".number_format($StartingItemNumber)."" ." - ".number_format($EndingItemNumber)."" ." of ".number_format($H_TotalResults).""; $H_TransportUI->message($TransportMessage); $PageTitle = ($H_View == "Frequency") ? "Search Frequency" : "Search Log"; # ----- DISPLAY -------------------------------------------------------------- $AF = ApplicationFramework::getInstance(); $AF->setPageTitle($PageTitle); ?>
Period: getHtml(); ?> Users: getHtml(); ?> Search Type: getHtml(); ?> Results: getHtml(); ?>

#

getHtml(); ?>