[freeside-commits] freeside/rt/html/RTx/Statistics DurationAsString, NONE, 1.1 index.html, NONE, 1.1

Ivan,,, ivan at wavetail.420.am
Wed Jun 20 15:28:22 PDT 2007


Update of /home/cvs/cvsroot/freeside/rt/html/RTx/Statistics
In directory wavetail:/tmp/cvs-serv10214/rt/html/RTx/Statistics

Added Files:
	DurationAsString index.html 
Log Message:
integrate RTx::Statistics package, part of merging spiritone RT changes (#1661)

--- NEW FILE: index.html ---
%# BEGIN LICENSE BLOCK
%# 
%# Copyright (c) 1996-2003 Jesse Vincent <jesse at bestpractical.com>
%# 
%# (Except where explictly superceded by other copyright notices)
%# 
%# Copyright this file (c) 2003 Harald Wagener <hwagener at hamburg.fcb.com>
%#
%# This work is made available to you under the terms of Version 2 of
%# the GNU General Public License. A copy of that license should have
%# been provided with this software, but in any event can be snarfed
%# from www.gnu.org.
%# 
%# This work is distributed in the hope that it will be useful, but
%# WITHOUT ANY WARRANTY; without even the implied warranty of
%# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
%# General Public License for more details.
%# 
%# Unless otherwise specified, all modifications, corrections or
%# extensions to this work which alter its source code become the
%# property of Best Practical Solutions, LLC when submitted for
%# inclusion in the work.
%# 
%# 
%# END LICENSE BLOCK
<& /Elements/Header, Title => loc('RT Statistics') &>
<& /RTx/Statistics/Elements/Tabs,  Title => loc('RT Statistics')  &>

<&|/l&><h2>Description</h2>
<p>These 6 options below enable you to display management data from the RT Database in table and graphical forms, enabling trends, bottlenecks, load problems etc to be identified.
Each contains a description of how the data is displayed and describes the options available to you.</p></&>
<ul>
<li><strong><a href="CallsQueueDay/index.html">
<&|/l&>Tickets per day per Queue</&></a></strong><br />
<&|/l&>View the number of tickets created, resolved or deleted in a<br /> specific Queue, over the requested period of days</&>
</li>
<li><strong><a href="OpenStalled/index.html">
<&|/l&>Tickets status by Queue</&></a></strong><br>
<&|/l&>View numbers of new, open and stalled tickets in a selected Queue</&>
</li>
<li><strong><a href="CallsMultiQueue/index.html">
<&|/l&>Tickets per Day in Multiple Queues</&>
</a></strong><br>
<&|/l&>View tickets created, resolved or deleted on in one or more Queues<br /> over a specified time period</&>
</li>
<li><strong><a href="DayOfWeek/index.html">
<&|/l&>Tickets per Day of Week (absolute)</&></a></strong><br>
<&|/l&>View trends showing when tickets are created, resolved or deleted</&>
</li>
<li><strong><a href="Resolution/index.html">
<&|/l&>Time to Resolve</&></a></strong><br>
<&|/l&>View how long tickets take to be resolved by Queue</&>
</li>
</li>
<li><strong><a href="TimeToResolve/index.html">
<&|/l&>Time to Resolve (scatter graph)</&></a></strong><br>
<&|/l&>View a detailed scatter graph of time to resolve tickets by Queue</&>
</li>
</ul>

--- NEW FILE: DurationAsString ---
<%$days|'00'%> days <%$hours|'00'%>:<%$minutes|'00'%> 
<%INIT>

my $MINUTE = 60;
my $HOUR =  $MINUTE*60;
my $DAY = $HOUR * 24;
my $WEEK = $DAY * 7;
my $days = int($Duration / $DAY);
$Duration = $Duration % $DAY;
my $hours = int($Duration / $HOUR);
$hours = sprintf("%02d", $hours);
$Duration = $Duration % $HOUR;
my $minutes = int($Duration/$MINUTE);
$minutes = sprintf("%02d", $minutes);
</%INIT>
<%ARGS>
$Duration => undef
</%ARGS>



More information about the freeside-commits mailing list