# --
# AdminSelectBoxForm.dtl - provides HTML form for SelectBox
# Copyright (C) 2001-2008 OTRS AG, http://otrs.org/
# --
# $Id: AdminSelectBoxForm.dtl,v 1.20 2008/04/08 20:54:58 martin 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-2.0.txt.
# --

<!-- start form -->
<table border="0" width="100%" cellspacing="0" cellpadding="3">
  <tr>
    <td class="mainhead">
      $Env{"Box0"}$Text{"SQL Box"}$Env{"Box1"}
    </td>
  </tr>
  <tr>
    <td align="center" class="mainbody">
      <br/>
      <form action="$Env{"CGIHandle"}" method="post">
        <input type="hidden" name="Action" value="$Env{"Action"}"/>
        <input type="hidden" name="Subaction" value="Select"/>
        <table cellspacing="0" cellpadding="4" border="0" width="700">
          <tr class="contenthead">
            <td colspan="2">$Text{"Options"}</td>
          </tr>
          <tr class="contentbody">
            <td width="15%" class="contentkey">$Text{"SQL"}:</td>
            <td width="85%" class="contentvalue"><textarea name="SQL" rows="3" cols="75">$QData{"SQL"}</textarea></td>
          </tr>
          <tr class="contentbody">
            <td class="contentkey">$Text{"Limit"}:</td>
            <td class="contentvalue"><input type="text" name="Max" value="$QData{"Max"}" size="2"/></td>
          </tr>
          <tr class="contentfooter">
            <td colspan="2" class="contentkey"><input class="button" type="submit" value="$Text{"Go"}"/></td>
          </tr>
        </table>
      </form>
      <br/>
    </td>
  </tr>
</table>
<!-- end form -->
<!-- dtl::block::Result -->
<table border="0" width="100%" cellspacing="0" cellpadding="3">
  <tr>
    <td class="mainhead">
      $Env{"Box0"}$Text{"Select Box Result"}$Env{"Box1"}
    </td>
  </tr>
  <tr>
    <td class="mainbody">
      <table width="100%" cellspacing="0" cellpadding="3" border="0">
<!-- dtl:block:Row -->
        <dtl if ($Env{"Color"} eq "") { $Env{"Color"} = "active"; }>
        <tr class="search$Env{"Color"}">$Data{"Result"}</tr>
        <dtl if ($Env{"Color"} eq "passive") { $Env{"Color"} = ""; }>
        <dtl if ($Env{"Color"} eq "active") { $Env{"Color"} = "passive"; }>
<!-- dtl:block:Row -->
      </table>
    </td>
  </tr>
</table>
<!-- dtl::block::Result -->
