integrate RTx::Statistics package, part of merging spiritone RT changes (#1661)
[freeside.git] / rt / html / RTx / Statistics / Elements / ControlsAsTable / ControlBox
1 <table class="box" bgcolor="#336699" style="border-style:none solid solid solid;border-width:1px;border-color:#2E2E8C;" cellpadding="0" cellspacing="0">
2   <tbody>
3     <tr>
4       <th style="color: rgb(51, 102, 153);" class="titlebox">
5         <span class="titleboxclose">
6           <a href="#" onclick="hideshow('stats_control')">X</a></span>&nbsp;
7         <span class="titleboxtitle" style="color: rgb(255, 255, 255);">
8           <b><% $Title %></b></span>
9       </th>
10       <th style="color: rgb(51, 102, 153);" class="titleboxright">
11       <span class="titleboxright">&nbsp;</span>
12       </th>
13     </tr>
14     <tr id="element-stats_control">
15       <td colspan="3" class="" bgcolor="#dddddd">
16         <table border="0" cellpadding="1" cellspacing="0">
17 % if (defined $ShowStatus) {
18           <tr>
19             <td class="collection-as-table" style="text-align:left;">Show Status:</td>
20             <td COLSPAN=3 class="collection-as-table" style="text-align:left;">
21               <& /Elements/SelectStatus, Name=>"status", Default => $Status, DefaultValue => undef &>
22             </td>
23           </tr>
24 % }
25 % if (defined $ShowSingleQueue) {
26           <tr>
27             <td class="collection-as-table" style="text-align:left;">Show Queue:</td>
28             <td COLSPAN=3 class="collection-as-table" style="text-align:left;">
29               <& /Elements/SelectQueue, Name=>"Queue", Default=>$Queue ,ShowNullOption=>0, 
30                      CheckQueueRight=>'SeeQueue' &>
31             </td>
32           </tr>
33 % }
34 % if (defined $ShowDates) {
35           <tr>
36             <& /RTx/Statistics/Elements/DateSelectRow, Label => "Start Date:", 
37               refMonth => $sMonth, nameMonth => "sMonth", 
38               refDay => $sDay, nameDay => "sDay",
39               refYear => $sYear, nameYear => "sYear" &>
40           </tr>
41           <tr>
42             <& /RTx/Statistics/Elements/DateSelectRow, Label => "End Date:", 
43               refMonth => $eMonth, nameMonth => "eMonth", 
44               refDay => $eDay, nameDay => "eDay",
45               refYear => $eYear, nameYear => "eYear" &>
46           </tr>
47           <tr>
48             <td class="collection-as-table" style="text-align:left;">Show Weekends:</td>
49             <td class="collection-as-table" style="text-align:left;">
50               <select name=weekends>
51                 <option value=0 <% (!$weekends) && 'selected' %> >No</option>
52                 <option value=1 <% $weekends && 'selected' %> >Yes</option>
53               </select>
54             </td>
55           </tr>
56 % }
57 % if (defined $ShowMultiQueues) {
58           <tr>
59 % if (defined $ShowDates) {
60 %# If we're showing the dates, we put these side by side.
61             <td COLSPAN=2 class="collection-as-table" style="text-align:left;">Select All Queues: <input type=checkbox name="AddAllCheck"></td>
62             <td COLSPAN=3 class="collection-as-table" >
63               <& /RTx/Statistics/Elements/SelectMultiQueue, Name=>"queues", Selected=>$queues_ref, 
64                  ShowNullOption=>0, CheckQueueRight=>'SeeQueue', Size => 10, NamedValues => 1 &>
65             </td>
66 % } else {
67             <td COLSPAN=3 class="collection-as-table" style="text-align:left;">
68               <& /RTx/Statistics/Elements/SelectMultiQueue, Name=>"queues", Selected=>$queues_ref, 
69                  ShowNullOption=>0, CheckQueueRight=>'SeeQueue', Size => 10, NamedValues => 1 &>
70             </td>
71           </tr>
72           <tr>
73             <td class="collection-as-table" style="text-align:left;">Select All Queues: <input type=checkbox name="AddAllCheck"></td>
74 % }
75           </tr>
76 % }
77           <& /RTx/Statistics/Elements/ControlsAsTable/UpdatePage &>
78         </table>
79       </td>
80     </tr>
81   </tbody>
82 </table>
83
84
85 <BR>
86 <%args>
87 $Title => undef
88 $ShowMultiQueues => undef
89 $queues_ref => undef
90 $ShowDates => undef
91 $sMonth => undef
92 $sDay => undef
93 $sYear => undef
94 $eMonth => undef
95 $eDay => undef
96 $eYear => undef
97 $weekends => undef
98 $ShowSingleQueue => undef
99 $Queue => undef
100 $ShowStatus => undef
101 $Status => undef
102 </%args>
103