[freeside-commits] freeside/rt/share/html/RTx/Statistics/TimeToResolve index.html, 1.1.2.2, 1.1.2.3

Ivan,,, ivan at wavetail.420.am
Sat Dec 4 18:59:41 PST 2010


Update of /home/cvs/cvsroot/freeside/rt/share/html/RTx/Statistics/TimeToResolve
In directory wavetail.420.am:/tmp/cvs-serv11355/TimeToResolve

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	index.html 
Log Message:
RTx-Statistics in 2.1 / 3.8, RT#10046

Index: index.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/rt/share/html/RTx/Statistics/TimeToResolve/index.html,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -w -d -r1.1.2.2 -r1.1.2.3
--- index.html	5 Dec 2010 00:06:43 -0000	1.1.2.2
+++ index.html	5 Dec 2010 02:59:39 -0000	1.1.2.3
@@ -5,19 +5,9 @@
 <p>This page displays the same information as the Time to Resolve chart, but in a scattergraph format and only for the previous 7 calendar
 days. It only displays data for tickets which have been resolved. Each division on the Days axis is one day and the granularity of this chart
 is 30 minutes.</p>
-<form method="POST">
 
-<table>
-  <tr>
-  <td>Show Queue:</td>
-  <td COLSPAN=3><& /Elements/SelectQueue, Name=>"queue", Default=>$queue ,ShowNullOption=>0, 
-            CheckQueueRight=>'SeeQueue' &></td>
-  </tr>
-</table>
-<INPUT TYPE="submit" VALUE="Update Page"</INPUT>
-</form>
+<form method="POST">
 
-<BR>
 % my $url = 'Elements/Chart?x_labels=';
 % my $i;
 % $url .= join ",", (map {(int($_/2) == $_/2 && (++$i)%2) ? $_/2 : ""} grep {$counts[$_]} 0..($#counts-1)), "longer";
@@ -25,14 +15,19 @@
 % $url .= "marker_size=1&";
 % $url .= "data1=".(join ",", map { $_ || () } @counts)."&";
 % chop $url;
-<IMG SRC="<% $url %>">
+<& /RTx/Statistics/Elements/GraphBox, GraphURL => $url &>
 
-<BR>
+<& /RTx/Statistics/Elements/ControlsAsTable/ControlBox, 
+        Title => "Change Queue",
+        ShowSingleQueue => 1, Queue=>$Queue,
+&>
+
+</form>
 
 %Statistics::DebugInit($m);
 
 <%ARGS>
-$queue => undef
+$Queue => undef
 </%ARGS>
 
 <%INIT>
@@ -51,16 +46,16 @@
 }
 
 my $QueueObj = new RT::Queue($session{'CurrentUser'});
-if (!defined $queue) {
-  $QueueObj->Load($Statistics::TimeToResolveGraphQueue);
-  $queue = $QueueObj->Id();
-} else {
-  $QueueObj->Load($queue);
-}
+#if (!defined $queue) {
+#  $QueueObj->Load($Statistics::TimeToResolveGraphQueue);
+#  $queue = $QueueObj->Id();
+#} else {
+  $QueueObj->Load($Queue);
+#}
 
 
 my $tix = new RT::Tickets($session{'CurrentUser'});
-$tix->LimitQueue (VALUE => $queue) if $queue;
+$tix->LimitQueue (VALUE => $Queue) if $Queue;
 $tix->LimitStatus(VALUE => "resolved");
 $tix->UnLimit;
 if ($tix->Count) {



More information about the freeside-commits mailing list