# --
# AgentUtilSearchByText.dtl - provides HTML form for AgentUtilities.pm
# Copyright (C) 2001-2004 Martin Edenhofer <martin+code@otrs.org>
# --
# $Id: AgentUtilSearch.dtl,v 1.5.2.2 2004/04/01 11:57:29 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.txt.
# --
<!-- start form -->
<table border="0" width="100%" cellspacing="0" cellpadding="3">
<tr>
  <td align="left" class="table0"">
    <b>$Env{"Box0"}$Text{"Ticket Search"}$Env{"Box1"}</b>
  </td>
</tr>
<tr align="center" valign="top">
  <td class="table1">

<table width="600" border="0" cellspacing="1" cellpadding="3">
<tr align="left">
  <td class="table2">$Text{"Profile"}</td>
</tr>
<tr align="left">
  <td>
  <form action="$Env{"CGIHandle"}" method="get">
  <input type="hidden" name="Action" value="AgentUtilities">
  <input type="hidden" name="Subaction" value="LoadProfile">
  $Text{"Search-Template"} $Data{"ProfilesStrg"}
  <input class="button" name="SelectTemplate" type="submit" value="$Text{"Select"}">
  <input class="button" name="EraseTemplate" type="submit" value="$Text{"Delete"}">
  <input class="button" name="SearchTemplate" type="submit" value="$Text{"Search"}">
  </form>
  </td>
</tr>
</table>


<form action="$Env{"CGIHandle"}" method="get">
<input type="hidden" name="Action" value="AgentUtilities">
<input type="hidden" name="Subaction" value="Search">

<table width="600" border="0" cellspacing="1" cellpadding="3">
<tr align="left">
  <td colspan="2" class="table2">$Config{"TicketHook"} $Text{"and"} $Text{"CustomerID"}</td>
</tr>
<tr align="left">
  <td width="50%">$Config{"TicketHook"} $Text{"(e. g. 10*5155 or 105658*)"}</td>
  <td width="50%"><input type="text" name="TicketNumber" size="30" value="$QData{"TicketNumber"}"></td>
</tr>
<tr align="left">
  <td>$Text{"CustomerID"} $Text{"(e. g. 234321)"}</td>
  <td><input type="text" name="CustomerID" size="30" value="$QData{"CustomerID"}"></td>
</tr>
<tr align="left">
  <td>$Text{"Customer User Login"} $Text{"(e. g. U5150)"}</td>
  <td><input type="text" name="CustomerUserLogin" size="30" value="$QData{"CustomerUserLogin"}"></td>
</tr>
<tr align="left">
  <td colspan="2" class="table2">$Text{"Fulltext-Search in Article (e. g. "Mar*in" or "Baue*")"}</td>
</tr>
<tr align="left">
  <td>$Text{"From"}</td>
  <td><input type="text" name="From" size="30" value="$QData{"From"}"></td>
</tr>
<tr align="left">
  <td>$Text{"To"}</td>
  <td><input type="text" name="To" size="30" value="$QData{"To"}"></td>
</tr>
<tr align="left">
  <td>$Text{"Cc"}</td>
  <td><input type="text" name="Cc" size="30" value="$QData{"Cc"}"></td>
</tr>
<tr align="left">
  <td>$Text{"Subject"}</td>
  <td><input type="text" name="Subject" size="30" value="$QData{"Subject"}"></td>
</tr>
<tr align="left">
  <td>$Text{"Body"}</td>
  <td><input type="text" name="Body" size="30" value="$QData{"Body"}"></td>
</tr>
<tr align="left">
  <td colspan="2" class="table2">$Text{"TicketFreeText"}</td>
</tr>
<tr align="left">
  <td>$Data{"TicketFreeKeyField1"}</td>
  <td>$Data{"TicketFreeTextField1"}</td>
</tr>
<tr align="left">
  <td>$Data{"TicketFreeKeyField2"}</td>
  <td>$Data{"TicketFreeTextField2"}</td>
</tr>
<tr align="left">
  <td>$Data{"TicketFreeKeyField3"}</td>
  <td>$Data{"TicketFreeTextField3"}</td>
</tr>
<tr align="left">
  <td>$Data{"TicketFreeKeyField4"}</td>
  <td>$Data{"TicketFreeTextField4"}</td>
</tr>
#<tr align="left">
#  <td>$Data{"TicketFreeKeyField5"}</td>
#  <td>$Data{"TicketFreeTextField5"}</td>
#</tr>
#<tr align="left">
#  <td>$Data{"TicketFreeKeyField6"}</td>
#  <td>$Data{"TicketFreeTextField6"}</td>
#</tr>
#<tr align="left">
#  <td>$Data{"TicketFreeKeyField7"}</td>
#  <td>$Data{"TicketFreeTextField7"}</td>
#</tr>
#<tr align="left">
#  <td>$Data{"TicketFreeKeyField8"}</td>
#  <td>$Data{"TicketFreeTextField8"}</td>
#</tr>
</table>

<table width="600" border="0" cellspacing="1" cellpadding="3">
<tr align="left">
  <td class="table2" width="50%">$Text{"Priority"}</td>
  <td class="table2" width="50%">$Text{"Queue"}</td>
</tr>
<tr align="left">
  <td>$Data{"PriotitiesStrg"}</td>
  <td>$Data{"QueuesStrg"}</td>
</tr>
<tr align="left">
  <td class="table2">$Text{"State"}</td>
  <td class="table2">$Text{"Agent"}/$Text{"Owner"}</td>
</tr>
<tr align="left" valign="top">
  <td>$Data{"StatesStrg"}</td>
  <td>
$Data{"UserStrg"}
  </td>
</tr>
<tr align="left">
  <td colspan="2" class="table2">$Text{"Times"}</td>
</tr>
<tr align="left">
  <td colspan="2"><input type="radio" name="TimeSearchType" value="" $Data{"TimeSearchType::None"}>
  $Text{"No time settings."}
  </td>
</tr>
  <td colspan="2"><input type="radio" name="TimeSearchType" value="TimePoint" $Data{"TimeSearchType::TimePoint"}>
  $Text{"Ticket created"} $Data{"TicketCreateTimePointStart"} $Data{"TicketCreateTimePoint"} $Data{"TicketCreateTimePointFormat"}.
  </td>
</tr>
<tr align="left">
  <td colspan="2"><input type="radio" name="TimeSearchType" value="TimeSlot" $Data{"TimeSearchType::TimeSlot"}>
  $Text{"Ticket created between"} $Data{"TicketCreateTimeStart"} $Text{"and"} $Data{"TicketCreateTimeStop"}.
  </td>
</tr>
<tr align="left">
  <td class="table2">$Text{"Result Form"}</td>
  <td class="table2">$Text{"Save Search-Profile as Template?"}</td>
</tr>
<tr align="left">
  <td>$Data{"ResultFormStrg"}</td>
  <td>
  <input type="radio" name="SaveProfile" value="1"> $Text{"Yes, save it with name"}
  <input type="text" name="Profile" size="10" value="$QData{"Profile"}">
  </td>
</tr>
</table>
<input class="button" type="submit" value="$Text{"Search"}">
</form>

  </td>
</tr>
</table>
<!-- end form -->
