From e9cef70f892bfbf4aad0e4471a958367766d849a Mon Sep 17 00:00:00 2001
From: Teravus Ovares
Date: Sat, 3 Jan 2009 03:30:03 +0000
Subject: * Updates the sim stats module. Cleans out some of the rot. * Adds
a prototype web stats module which is disabled by default. It's functional
with one report right now, however, the database structure may change, so I
don't recommend enabling this to keep actual stats right now. I'll let you
know when it's safe. * Adds Prototype for ajaxy web content * removed a
warning or two.
---
OpenSim/Region/UserStatistics/HTMLUtil.cs | 185 ++++++++++++++++++++++++++++++
1 file changed, 185 insertions(+)
create mode 100644 OpenSim/Region/UserStatistics/HTMLUtil.cs
(limited to 'OpenSim/Region/UserStatistics/HTMLUtil.cs')
diff --git a/OpenSim/Region/UserStatistics/HTMLUtil.cs b/OpenSim/Region/UserStatistics/HTMLUtil.cs
new file mode 100644
index 0000000..ed8cc98
--- /dev/null
+++ b/OpenSim/Region/UserStatistics/HTMLUtil.cs
@@ -0,0 +1,185 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace OpenSim.Region.UserStatistics
+{
+ public static class HTMLUtil
+ {
+
+ public static void TR_O(ref StringBuilder o, string pclass)
+ {
+ o.Append("
0)
+ {
+ GenericClass(ref o, pclass);
+ }
+ o.Append(">\n\t");
+ }
+ public static void TR_C(ref StringBuilder o)
+ {
+ o.Append("
\n");
+ }
+
+ public static void TD_O(ref StringBuilder o, string pclass)
+ {
+ o.Append(" 0)
+ {
+ GenericClass(ref o, pclass);
+ }
+ o.Append(">");
+ }
+ public static void TD_C(ref StringBuilder o)
+ {
+ o.Append(" | ");
+ }
+ public static void TABLE_O(ref StringBuilder o, string pclass)
+ {
+ o.Append(" 0)
+ {
+ GenericClass(ref o, pclass);
+ }
+ o.Append(">\n\t");
+ }
+ public static void TABLE_C(ref StringBuilder o)
+ {
+ o.Append("
\n");
+ }
+
+ public static void BLOCKQUOTE_O(ref StringBuilder o, string pclass)
+ {
+ o.Append(" 0)
+ {
+ GenericClass(ref o, pclass);
+ }
+ o.Append(" />\n");
+ }
+
+ public static void BLOCKQUOTE_C(ref StringBuilder o)
+ {
+ o.Append("
\n");
+ }
+
+ public static void BR(ref StringBuilder o)
+ {
+ o.Append("
\n");
+ }
+
+ public static void HR(ref StringBuilder o, string pclass)
+ {
+ o.Append("
0)
+ {
+ GenericClass(ref o, pclass);
+ }
+ o.Append(" />\n");
+ }
+
+ public static void UL_O(ref StringBuilder o, string pclass)
+ {
+ o.Append(" 0)
+ {
+ GenericClass(ref o, pclass);
+ }
+ o.Append(" />\n");
+ }
+
+ public static void UL_C(ref StringBuilder o)
+ {
+ o.Append("
\n");
+ }
+
+ public static void OL_O(ref StringBuilder o, string pclass)
+ {
+ o.Append(" 0)
+ {
+ GenericClass(ref o, pclass);
+ }
+ o.Append(" />\n");
+ }
+
+ public static void OL_C(ref StringBuilder o)
+ {
+ o.Append("
\n");
+ }
+
+ public static void LI_O(ref StringBuilder o, string pclass)
+ {
+ o.Append(" 0)
+ {
+ GenericClass(ref o, pclass);
+ }
+ o.Append(" />\n");
+ }
+
+ public static void LI_C(ref StringBuilder o)
+ {
+ o.Append("\n");
+ }
+
+ public static void GenericClass(ref StringBuilder o, string pclass)
+ {
+ o.Append(" class=\"");
+ o.Append(pclass);
+ o.Append("\"");
+ }
+
+ public static void InsertProtoTypeAJAX(ref StringBuilder o)
+ {
+ o.Append("\n");
+ o.Append("\n");
+ }
+
+ public static void InsertPeriodicUpdaters(ref StringBuilder o, string[] divID, int[] seconds, string[] reportfrag)
+ {
+ o.Append("");
+
+ }
+
+ public static void HtmlHeaders_O ( ref StringBuilder o)
+ {
+ o.Append("\n");
+ o.Append("");
+ o.Append("");
+
+
+ }
+ public static void HtmlHeaders_C ( ref StringBuilder o)
+ {
+ o.Append("");
+ o.Append("");
+ }
+ }
+}
--
cgit v1.1