/// <summary> Writes the HTML generated to browse the results of a search directly to the response stream </summary> /// <param name="Output"> Stream to which to write the HTML for this subwriter </param> /// <param name="Tracer"> Trace object keeps a list of each method executed and important milestones in rendering </param> /// <returns> TRUE -- Value indicating if html writer should finish the page immediately after this, or if there are other controls or routines which need to be called first </returns> public override bool Write_HTML(TextWriter Output, Custom_Tracer Tracer) { Tracer.Add_Trace("Search_Results_HtmlSubwriter.Write_HTML", "Rendering HTML"); // If this skin has top-level navigation suppressed, skip the top tabs if (htmlSkin.Suppress_Top_Navigation) { Output.WriteLine("<br />"); } else { // Add the main aggrgeation menu here MainMenus_Helper_HtmlSubWriter.Add_Aggregation_Search_Results_Menu(Output, currentMode, currentUser, Current_Aggregation, translations, codeManager, false); } if (resultsStatistics != null) { if (writeResult == null) { Tracer.Add_Trace("Search_Results_HtmlSubwriter.Write_HTML", "Building Result DataSet Writer"); writeResult = new PagedResults_HtmlSubwriter(resultsStatistics, pagedResults, codeManager, translations, allItemsTable, currentUser, currentMode, Tracer) { Current_Aggregation = Current_Aggregation, Skin = htmlSkin, Mode = currentMode }; } writeResult.Write_HTML(Output, Tracer); } return(true); }
/// <summary> Writes the HTML generated to browse the results of a search directly to the response stream </summary> /// <param name="Output"> Stream to which to write the HTML for this subwriter </param> /// <param name="Tracer"> Trace object keeps a list of each method executed and important milestones in rendering </param> /// <returns> TRUE -- Value indicating if html writer should finish the page immediately after this, or if there are other controls or routines which need to be called first </returns> public override bool Write_HTML(TextWriter Output, Custom_Tracer Tracer) { Tracer.Add_Trace("Search_Results_HtmlSubwriter.Write_HTML", "Rendering HTML"); // If this skin has top-level navigation suppressed, skip the top tabs if ((RequestSpecificValues.HTML_Skin.Suppress_Top_Navigation.HasValue) && (RequestSpecificValues.HTML_Skin.Suppress_Top_Navigation.Value)) { Output.WriteLine("<br />"); } else { // Add the main aggrgeation menu here MainMenus_Helper_HtmlSubWriter.Add_Aggregation_Search_Results_Menu(Output, RequestSpecificValues, hierarchyObject, false); } if (RequestSpecificValues.Results_Statistics != null) { if (writeResult == null) { Tracer.Add_Trace("Search_Results_HtmlSubwriter.Write_HTML", "Building Result DataSet Writer"); writeResult = new PagedResults_HtmlSubwriter(RequestSpecificValues, RequestSpecificValues.Results_Statistics, RequestSpecificValues.Paged_Results); } writeResult.Write_HTML(Output, Tracer); } return(true); }