aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/UserStatistics/HTMLUtil.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/UserStatistics/HTMLUtil.cs')
-rw-r--r--OpenSim/Region/UserStatistics/HTMLUtil.cs44
1 files changed, 32 insertions, 12 deletions
diff --git a/OpenSim/Region/UserStatistics/HTMLUtil.cs b/OpenSim/Region/UserStatistics/HTMLUtil.cs
index 173f75e..bd0c74a 100644
--- a/OpenSim/Region/UserStatistics/HTMLUtil.cs
+++ b/OpenSim/Region/UserStatistics/HTMLUtil.cs
@@ -50,11 +50,27 @@ namespace OpenSim.Region.UserStatistics
50 50
51 public static void TD_O(ref StringBuilder o, string pclass) 51 public static void TD_O(ref StringBuilder o, string pclass)
52 { 52 {
53 TD_O(ref o, pclass, 0, 0);
54 }
55 public static void TD_O(ref StringBuilder o, string pclass, int rowspan, int colspan)
56 {
53 o.Append("<td"); 57 o.Append("<td");
54 if (pclass.Length > 0) 58 if (pclass.Length > 0)
55 { 59 {
56 GenericClass(ref o, pclass); 60 GenericClass(ref o, pclass);
57 } 61 }
62 if (rowspan > 1)
63 {
64 o.Append(" rowspan=\"");
65 o.Append(rowspan);
66 o.Append("\"");
67 }
68 if (colspan > 1)
69 {
70 o.Append(" colspan=\"");
71 o.Append(colspan);
72 o.Append("\"");
73 }
58 o.Append(">"); 74 o.Append(">");
59 } 75 }
60 public static void TD_C(ref StringBuilder o) 76 public static void TD_C(ref StringBuilder o)
@@ -220,21 +236,25 @@ namespace OpenSim.Region.UserStatistics
220 { 236 {
221 o.Append("|&nbsp;&nbsp;"); 237 o.Append("|&nbsp;&nbsp;");
222 } 238 }
223 239 A(ref o, reports[str].ReportName, str, pClass);
224 o.Append("<A"); 240 o.Append("&nbsp;&nbsp;");
225 if (pClass.Length > 0)
226 {
227 GenericClass(ref o, pClass);
228
229 }
230 o.Append(" href=\"");
231 o.Append(str);
232 o.Append("\">");
233 o.Append(reports[str].ReportName);
234 o.Append("</A>&nbsp;&nbsp;");
235 repcount++; 241 repcount++;
236 } 242 }
237 } 243 }
238 } 244 }
245 public static void A( ref StringBuilder o, string linktext, string linkhref, string pClass)
246 {
247 o.Append("<A");
248 if (pClass.Length > 0)
249 {
250 GenericClass(ref o, pClass);
251 }
252 o.Append(" href=\"");
253 o.Append(linkhref);
254 o.Append("\">");
255 o.Append(linktext);
256 o.Append("</A>");
257
258 }
239 } 259 }
240} 260}