/// <summary> Add the HTML to be displayed below the search box </summary> /// <param name="Output"> Textwriter to write the HTML for this viewer</param> /// <param name="Tracer"> Trace object keeps a list of each method executed and important milestones in rendering</param> /// <remarks> This writes the HTML from the static browse or info page here </remarks> public override void Add_Secondary_HTML(TextWriter Output, Custom_Tracer Tracer) { if (Tracer != null) { Tracer.Add_Trace("Item_Count_AggregationViewer.Add_Secondary_HTML", "Adding HTML"); } DataTable value = Engine_Database.Tracking_Get_Milestone_Report(ViewBag.Hierarchy_Object.Code, Tracer); Output.WriteLine("<div class=\"SobekText\">"); Output.WriteLine("<br />"); Output.WriteLine("<p>Below is the number of titles and items for all items within this aggregation, including currently online items as well as items in process.</p>"); Output.WriteLine("<br />"); Output.WriteLine("</div>"); // Start the table Output.WriteLine("<table width=\"700px\" border=\"0px\" cellspacing=\"0px\" class=\"statsTable\">"); Output.WriteLine(" <tr align=\"left\" bgcolor=\"#0022a7\">"); Output.WriteLine(" <th align=\"left\"><span style=\"color: White\"><b>LAST MILESTONE</b></span></th>"); Output.WriteLine(" <th align=\"left\"><span style=\"color: White\"><b>TITLE COUNT</b></span></th>"); Output.WriteLine(" <th align=\"left\"><span style=\"color: White\"><b>ITEM COUNT</b></span></th>"); Output.WriteLine(" <th align=\"left\"><span style=\"color: White\"><b>PAGE COUNT</b></span></th>"); Output.WriteLine(" <th align=\"left\"><span style=\"color: White\"><b>FILE COUNT</b></span></th>"); Output.WriteLine(" </tr>"); foreach (DataRow thisRow in value.Rows) { Output.WriteLine(" <tr><td bgcolor=\"#e7e7e7\" colspan=\"5\"></td></tr>"); Output.WriteLine(" <tr align=\"left\">"); Output.WriteLine(" <td>" + thisRow[0] + "</td>"); Output.WriteLine(" <td>" + Int_To_Comma_String(Convert.ToInt32(thisRow[1])) + "</td>"); Output.WriteLine(" <td>" + Int_To_Comma_String(Convert.ToInt32(thisRow[2])) + "</td>"); if (thisRow[3] != DBNull.Value) { Output.WriteLine(" <td>" + Int_To_Comma_String(Convert.ToInt32(thisRow[3])) + "</td>"); } else { Output.WriteLine(" <td>0</td>"); } if (thisRow[4] != DBNull.Value) { Output.WriteLine(" <td>" + Int_To_Comma_String(Convert.ToInt32(thisRow[4])) + "</td>"); } else { Output.WriteLine(" <td>0</td>"); } Output.WriteLine(" </tr>"); } // End the table Output.WriteLine(" <tr><td bgcolor=\"#e7e7e7\" colspan=\"5\"></td></tr>"); Output.WriteLine("</table>"); Output.WriteLine("<br />"); Output.WriteLine("<br />"); }