# --
# AgentStatsEditXaxis.dtl - provides HTML form for stats edit mask
# Copyright (C) 2001-2006 OTRS GmbH, http://otrs.org/
# --
# $Id: AgentStatsEditXaxis.dtl,v 1.5 2006/12/21 16:13:14 mh Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (GPL). If you
# did not receive this file, see http://www.gnu.org/licenses/gpl.txt.
# --

<!-- start form -->
<form action="$Env{"CGIHandle"}" method="post" enctype="multipart/form-data" name="compose">
  <input type="hidden" name="Action" value="$Env{"Action"}">
  <input type="hidden" name="Subaction" value="Action">
  <input type="hidden" name="Home" value="EditXaxis">
  <input type="hidden" name="StatID" value="$QData{"StatID"}">
  <table border="0" width="100%" cellspacing="0" cellpadding="3">
    <tr>
      <td class="mainhead">
        $Env{"Box0"}$Text{"Edit"}: $Config{"Stats::StatsHook"} $QData{"StatNumber"}$Env{"Box1"}
      </td>
    </tr>
#    <tr>
#      <td class="menu">
#        <a href="$Env{"Baselink"}Action=$Env{"Action"}&Subaction=View&StatID=$QData{"StatID"}" class="menuitem">
#        $Text{"View"}
#        </a>
#      </td>
#    </tr>
    <tr>
      <td class="mainbody" align="center">
        <img border="0" src="$Env{"Images"}installer1.png" alt="">
        <br>
        <table border="0" width="700" align="center" cellspacing="0" cellpadding="4">
          <tr>
            <td class="contenthead">$Text{"Select the element, which will be used at the X-axis"} (2/4)</td>
          </tr>
          <tr>
            <td class="contentbody">
              <table border="0" cellspacing="0" cellpadding="3" width="100%">
<!-- dtl:block:Attribute -->
<!-- dtl:block:hr -->
                <tr>
                  <td colspan="3"><hr></td>
                </tr>
<!-- dtl:block:hr -->
<!-- dtl:block:MultiSelectField -->
                <tr>
                  <td class="contentkey">
                    <input type="radio" name="Select" value="$Data{"Element"}" $Data{"Checked"}>
                  </td>
                  <td class="contentkey" width="200">
                    $Text{"$QData{"Name"}"}:
                  </td>
                  <td class="contentvalue" width="450">$Data{"SelectField"}</td>
                </tr>
                <tr>
                  <td colspan="2"></td>
                  <td class="contentvalue">
                    <input type="Checkbox" name="Fixed$Data{"Element"}" value="1" $Data{"Fixed"}>
                    $Text{"Fixed"}
                  </td>
                </tr>
<!-- dtl:block:MultiSelectField -->
<!-- dtl:block:TimeExtended -->
                <tr>
                  <td>
                    <input type="radio" name="Select" value="$Data{"Element"}" $Data{"Checked"}>
                  </td>
                  <td colspan="2" class="contentkey">$Text{"$Data{"Name"}"}:</td>
                </tr>
                <tr class="contentvalue">
                  <td></td>
                  <td valign="middle" width="150">
                    &nbsp;&nbsp;
                    <input type="radio" name="$Data{"Element"}TimeSelect" value="Absolut" $Data{"CheckedAbsolut"}>
                    $Text{"Absolut Period"}:
                  </td>
                  <td valign="middle">
                    $Text{"Between"} $Data{"TimeStart"} $Text{"and"} $Data{"TimeStop"}
                  </td>
                </tr>
                <tr class="contentvalue">
                  <td></td>
                  <td valign="middle">
                    &nbsp;&nbsp;
                    <input type="radio" name="$Data{"Element"}TimeSelect" value="Relativ" $Data{"CheckedRelative"}>
                    $Text{"Relative Period"}:
                  </td>
                  <td valign="middle">
                    $Text{"The last"}
                    $Data{"TimeRelativeCount"}
                    $Data{"TimeRelativeUnit"} ($Text{"maximal period"})
                  </td>
                </tr>
                <tr class="contentvalue">
                  <td></td>
                  <td valign="middle">
                    &nbsp;&nbsp;$Text{"Scale"}:
                  </td>
                  <td valign="middle">
                    $Text{"minimal"}
                    $Data{"TimeScaleCount"}
                    $Data{"TimeScaleUnit"} ($Text{"minimal scale"})
                  </td>
                </tr>
                <tr>
                  <td colspan="2"></td>
                  <td class="contentvalue">
                    <input type="Checkbox" name="Fixed$Data{"Element"}" value="1" $Data{"Fixed"}>
                    $Text{"Fixed"}
                  </td>
                </tr>
<!-- dtl:block:TimeExtended -->
<!-- dtl:block:Time -->
                <tr>
                  <td class="contentkey">
                    <input type="radio"  name="Select" value="$Data{"Element"}" $Data{"Checked"}>
                  </td>
                  <td class="contentkey" colspan="2">$Text{"$Data{"Name"}"}:</td>
                </tr>
                <tr>
                  <td></td>
                  <td class="contentvalue">
                    $Text{"Scale"}:<br>
                    <span class="readonly">$Text{"Please select only one Element or turn of the button 'Fixed'."}</span>
                  </td>
                  <td>
                    $Data{"TimeSelectField"}
                  </td>
                </tr>
                <tr class="contentvalue">
                  <td></td>
                  <td valign="middle">
                    $Text{"Between"}
                  </td>
                  <td>
                    $Data{"TimeStart"} $Text{"and"} $Data{"TimeStop"}
                  </td>
                </tr>
                <tr>
                  <td colspan="2"></td>
                  <td class="contentvalue">
                    <input type="Checkbox" name="Fixed$Data{"Element"}" value="1" $Data{"Fixed"}>
                    $Text{"Fixed"}
                  </td>
                </tr>
<!-- dtl:block:Time -->
<!-- dtl:block:Attribute -->
              </table>
            </td>
          </tr>
          <tr>
            <td class="contentfooter">
              <input class="button" type="submit" name="Back" value="$Text{"...Back"}">
              <input class="button" type="submit" name="Next" value="$Text{"Next..."}" accesskey="g">
            </td>
          </tr>
        </table>
        <br>
      </td>
    </tr>
  </table>
</form>
<table border="0" width="100%" cellspacing="0" cellpadding="3">
  <tr>
    <td class="mainhead">
      $Env{"Box0"}$Text{"Note"}$Env{"Box1"}
    </td>
  </tr>
  <tr>
    <td class="mainbody">
      <table width="100%">
        <tr>
          <td class="mainvalue">
            $Text{"Here you can define the x-axis. You can select one element via the radio button. Than you you have to select two or more attributes of the element. If you make no selection all attributes of the element will be used if you generate a stat. As well a new attribute is added since the last configuration."}
            $Text{"If you remove the hook in the "Fixed" checkbox, the agent generating the stat can change the attributs of the corresponding element."}
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<!-- end form -->
