[freeside-commits] freeside/rt/html/RTx/Statistics/Elements/ControlsAsTable ControlBox, NONE, 1.1.2.2 UpdatePage, NONE, 1.1.2.2

Ivan,,, ivan at wavetail.420.am
Wed Jun 20 15:29:18 PDT 2007


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

Added Files:
      Tag: FREESIDE_1_7_BRANCH
	ControlBox UpdatePage 
Log Message:
integrate RTx::Statistics, RT::Extension::ActivityReports package, and RTx::WebCronTool packages, as part of merging spiritone RT changes (#1661)

--- NEW FILE: ControlBox ---
<table class="box" bgcolor="#336699" style="border-style:none solid solid solid;border-width:1px;border-color:#2E2E8C;" cellpadding="0" cellspacing="0">
  <tbody>
    <tr>
      <th style="color: rgb(51, 102, 153);" class="titlebox">
        <span class="titleboxclose">
          <a href="#" onclick="hideshow('stats_control')">X</a></span>&nbsp;
        <span class="titleboxtitle" style="color: rgb(255, 255, 255);">
          <b><% $Title %></b></span>
      </th>
      <th style="color: rgb(51, 102, 153);" class="titleboxright">
      <span class="titleboxright">&nbsp;</span>
      </th>
    </tr>
    <tr id="element-stats_control">
      <td colspan="3" class="" bgcolor="#dddddd">
        <table border="0" cellpadding="1" cellspacing="0">
% if (defined $ShowStatus) {
          <tr>
            <td class="collection-as-table" style="text-align:left;">Show Status:</td>
            <td COLSPAN=3 class="collection-as-table" style="text-align:left;">
	      <& /Elements/SelectStatus, Name=>"status", Default => $Status, DefaultValue => undef &>
	    </td>
          </tr>
% }
% if (defined $ShowSingleQueue) {
          <tr>
            <td class="collection-as-table" style="text-align:left;">Show Queue:</td>
            <td COLSPAN=3 class="collection-as-table" style="text-align:left;">
	      <& /Elements/SelectQueue, Name=>"Queue", Default=>$Queue ,ShowNullOption=>0, 
	             CheckQueueRight=>'SeeQueue' &>
	    </td>
          </tr>
% }
% if (defined $ShowDates) {
          <tr>
	    <& /RTx/Statistics/Elements/DateSelectRow, Label => "Start Date:", 
              refMonth => $sMonth, nameMonth => "sMonth", 
	      refDay => $sDay, nameDay => "sDay",
	      refYear => $sYear, nameYear => "sYear" &>
          </tr>
          <tr>
  	    <& /RTx/Statistics/Elements/DateSelectRow, Label => "End Date:", 
              refMonth => $eMonth, nameMonth => "eMonth", 
  	      refDay => $eDay, nameDay => "eDay",
	      refYear => $eYear, nameYear => "eYear" &>
          </tr>
          <tr>
  	    <td class="collection-as-table" style="text-align:left;">Show Weekends:</td>
  	    <td class="collection-as-table" style="text-align:left;">
  	      <select name=weekends>
  	        <option value=0 <% (!$weekends) && 'selected' %> >No</option>
  	        <option value=1 <% $weekends && 'selected' %> >Yes</option>
  	      </select>
  	    </td>
  	  </tr>
% }
% if (defined $ShowMultiQueues) {
          <tr>
% if (defined $ShowDates) {
%# If we're showing the dates, we put these side by side.
            <td COLSPAN=2 class="collection-as-table" style="text-align:left;">Select All Queues: <input type=checkbox name="AddAllCheck"></td>
	    <td COLSPAN=3 class="collection-as-table" >
	      <& /RTx/Statistics/Elements/SelectMultiQueue, Name=>"queues", Selected=>$queues_ref, 
                 ShowNullOption=>0, CheckQueueRight=>'SeeQueue', Size => 10, NamedValues => 1 &>
            </td>
% } else {
            <td COLSPAN=3 class="collection-as-table" style="text-align:left;">
	      <& /RTx/Statistics/Elements/SelectMultiQueue, Name=>"queues", Selected=>$queues_ref, 
                 ShowNullOption=>0, CheckQueueRight=>'SeeQueue', Size => 10, NamedValues => 1 &>
            </td>
          </tr>
          <tr>
            <td class="collection-as-table" style="text-align:left;">Select All Queues: <input type=checkbox name="AddAllCheck"></td>
% }
          </tr>
% }
	  <& /RTx/Statistics/Elements/ControlsAsTable/UpdatePage &>
        </table>
      </td>
    </tr>
  </tbody>
</table>


<BR>
<%args>
$Title => undef
$ShowMultiQueues => undef
$queues_ref => undef
$ShowDates => undef
$sMonth => undef
$sDay => undef
$sYear => undef
$eMonth => undef
$eDay => undef
$eYear => undef
$weekends => undef
$ShowSingleQueue => undef
$Queue => undef
$ShowStatus => undef
$Status => undef
</%args>


--- NEW FILE: UpdatePage ---
<tr>
  <td colspan="4" style="text-align:center;padding-top:3px; background-color:#C8C8C8;">
    <INPUT TYPE="submit" VALUE="<&|/l&>Update Page</&>">
  </td>
</tr>



More information about the freeside-commits mailing list