# --
# AgentTicketZoom.dtl - provides HTML for AgentTicketZoom.pm
# Copyright (C) 2001-2007 OTRS GmbH, http://otrs.org/
# --
# $Id: AgentTicketZoom.dtl,v 1.24 2007/03/22 09:05:12 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.
# --

<!-- dtl:block:Header -->
<!-- start ticket head $Data{"TicketNumber"} -->
<table border="0" width="100%" cellspacing="0" cellpadding="3">
  <tr>
    <td width="70%" class="mainhead">
      $Env{"Box0"}$Text{"Zoom"} $Config{"Ticket::Hook"}: $Data{"TicketNumber"} $Env{"Box1"}
<!-- dtl:block:Title-->
      $QData{"Title","60"}
<!-- dtl:block:Title-->
    </td>
    <td align="right" width="30%" class="mainhead">
      $Env{"Box0"}$Text{"Age"}: $Data{"Age"}$Env{"Box1"}
    </td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="3">
  <tr>
    <td width="70%" class="menu">
<!-- dtl:block:Menu -->
<!-- dtl:block:MenuItemSplit -->
      -
<!-- dtl:block:MenuItemSplit -->
<!-- dtl:block:MenuItem -->
      <a href="$Env{"Baselink"}$Data{"Link"}" $Data{"LinkParam"} onmouseover="window.status='$JSText{"$QData{"Name"}"}'; return true;" onmouseout="window.status='';" class="menuitem" title="$Text{"$QData{"Description"}"}">$Text{"$QData{"Name"}"}</a>
<!-- dtl:block:MenuItem -->
<!-- dtl:block:Menu -->
    </td>
    <td align="right" width="30%" class="menu">
      <table border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td class="mainkey">$Text{"Created"}:</td>
          <td class="mainvalue"> $TimeLong{"$Data{"Created"}"}</td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="3">
<!-- dtl:block:Header -->
<!-- dtl:block:Body -->
  <tr>
    <td rowspan="2" valign="top" width="75%" class="mainbody">
<!-- dtl:block:Tree -->
      <table border="0" width="100%" cellspacing="0" cellpadding="0">
<!-- dtl:block:TreeItem -->
        <tr class="$QData{"SenderType"}-$QData{"ArticleType"}">
          <td class="small">
            <div title="$QData{"From","50"}: $QData{"Subject","200"} - $TimeLong{"$QData{"Created"}"}">$Data{"Space"}$Data{"Start"} $QData{"Count"}. <a href="$Env{"Baselink"}Action=AgentTicketZoom&TicketID=$QData{"TicketID"}&ArticleID=$QData{"ArticleID"}#$QData{"ArticleID"}" onmouseover="window.status='$JSText{"$QData{"SenderType"}"} ($Text{"$QData{"ArticleType"}"})'; return true;" onmouseout="window.status='';">$Text{"$QData{"SenderType"}"} ($Text{"$QData{"ArticleType"}"})</a>
<!-- dtl:block:TreeItemEmail -->
            (<a href="$Env{"Baselink"}Action=AgentTicketPlain&TicketID=$QData{"TicketID"}&ArticleID=$QData{"ArticleID"}" onmouseover="window.status='$JSText{"plain"}'; return true;" onmouseout="window.status='';">$Text{"plain"}</a>)
<!-- dtl:block:TreeItemEmail -->
            &nbsp $QData{"From","16"}: $QData{"Subject","20"} - $TimeLong{"$QData{"Created"}"}$Data{"Stop"}
<!-- dtl:block:TreeItemAttachment -->
            &nbsp;<a href="$Env{"Baselink"}Action=AgentTicketAttachment&ArticleID=$QData{"ArticleID"}&FileID=$QData{"FileID"}" title="$QData{"Filename"} - $QData{"Filesize"}" $Data{"Target"}><img border="0" src="$Env{"Images"}attach-small.png"></a>
<!-- dtl:block:TreeItemAttachment -->
<!-- dtl:block:TreeItemAttachmentMore -->
            &nbsp;[..]
<!-- dtl:block:TreeItemAttachmentMore -->
            </div>
          </td>
        </tr>
<!-- dtl:block:TreeItem -->
      </table>
<!-- dtl:block:Tree -->
      <hr size="2">
      <a name="$Data{"ArticleID"}"></a>
      <table border="0" width="100%" cellspacing="0" cellpadding="1">
# From:, To:, Cc:
<!-- dtl:block:Row -->
        <tr>
          <td class="contentkey" width="15%">$Text{"$Data{"Key"}"}:</td>
          <td class="contentvalue" width="85%"> <div title="$QData{"Value"}">$QData{"Value","200"}</div></td>
        </tr>
<!-- dtl:block:Row -->
        <tr>
          <td class="contentkey">$Text{"Created"}:</td>
          <td class="contentvalue"> <div title="$TimeLong{"$Data{"Created"}"}">$TimeLong{"$Data{"Created"}"}</div></td>
        </tr>
# show the ArticleFreeKey1-3 and ArticleFreeText1-3
<!-- dtl:block:ArticleFreeText -->
        <tr>
          <td class="contentkey" width="15%">$QData{"Key"}:</td>
          <td class="contentvalue" width="85%"> <div title="$QData{"Value"}">$QData{"Value","160"}</div></td>
        </tr>
<!-- dtl:block:ArticleFreeText -->
# show ArticleFreeKey1-3 and ArticleFreeText1-3 (in other way like the block, so you could add link or somethin else)
#       <dtl if ($Data{"ArticleFreeKey1"} ne "") { $Data{"ArticleFreeString1"} = "<tr><td class="contentkey">$QData{"ArticleFreeKey1"}:</td><td class="contentvalue"> $QData{"FreeText1"}</td></tr>"; }>
#       <dtl if ($Data{"ArticleFreeKey2"} ne "") { $Data{"ArticleFreeString2"} = "<tr><td class="contentkey">$QData{"ArticleFreeKey2"}:</td><td class="contentvalue"> $QData{"FreeText2"}</td></tr>"; }>
#       <dtl if ($Data{"ArticleFreeKey3"} ne "") { $Data{"ArticleFreeString3"} = "<tr><td class="contentkey">$QData{"ArticleFreeKey3"}:</td><td class="contentvalue"> $QData{"FreeText3"}</td></tr>"; }>
#     $Data{"ArticleFreeString1"}
#     $Data{"ArticleFreeString2"}
#     $Data{"ArticleFreeString3"}

# show article options like signed, crypted, ...
<!-- dtl:block:ArticleOption -->
        <dtl if ($Data{"Successful"} eq "0") { $Data{"StartFont"} = "<font color="red">"; }>
        <dtl if ($Data{"Successful"} eq "0") { $Data{"StopFont"} = "</font>"; }>
        <dtl if ($Data{"Successful"} eq "1") { $Data{"StartFont"} = "<font color="green">"; }>
        <dtl if ($Data{"Successful"} eq "1") { $Data{"StopFont"} = "</font>"; }>
        <tr>
          <td class="contentkey" width="15%">$Text{"$Data{"Key"}"}:</td>
          <td class="contentvalue" width="85%"> <div title="$QData{"Value"}">$Data{"StartFont"}$QData{"Value","160"}$Data{"StopFont"}</div></td>
        </tr>
<!-- dtl:block:ArticleOption -->
# show attachments
<!-- dtl:block:ArticleAttachment -->
        <tr>
          <td class="contentkey" width="15%">$Text{"$Data{"Key"}"}:</td>
          <td class="contentvalue" width="85%">
            <table border="0" cellspacing="0" cellpadding="1">
<!-- dtl:block:ArticleAttachmentRow -->
              <tr>
                <td>$QData{"Filename"}</td>
                <td>
<!-- dtl:block:ArticleAttachmentRowLink -->
                  <a href="$Data{"Link"}" $Data{"Target"} onmouseover="window.status='$JSText{"$QData{"Action"}"}: $QData{"Filename"}';return true;" onmouseout="window.status='';"><img src="$Env{"Images"}$QData{"Image"}" border="0" alt="$Text{"$QData{"Action"}"}" title="$Text{"$QData{"Action"}"}"></a>
<!-- dtl:block:ArticleAttachmentRowLink -->
<!-- dtl:block:ArticleAttachmentRowNoLink -->
                  <img src="$Env{"Images"}$QData{"Image"}" border="0" alt="$Text{"$QData{"Action"}"}" title="$Text{"$QData{"Action"}"}">
<!-- dtl:block:ArticleAttachmentRowNoLink -->
                </td>
                <td align="right">$QData{"Filesize"}</td>
              </tr>
<!-- dtl:block:ArticleAttachmentRow -->
            </table>
          </td>
        </tr>
<!-- dtl:block:ArticleAttachment -->
      </table>
$Data{"BodyNote"}
      <div class="message">
$Data{"Body"}
      </div>
    </td>
    <td width="25%" valign="top" class="PriorityID-$Data{"PriorityID"}">
# show ticket status (state, lock, ...)
<!-- dtl:block:Status -->
      <table border="0" cellspacing="1" cellpadding="0" width="100%">
<!-- dtl:block:Type -->
        <tr valign="top">
          <td><b>$Text{"Type"}:</b></td>
          <td>
            <div title="$Text{"$Data{"Type"}"}">$Quote{"$Text{"$Data{"Type"}"}","18"}</div></font>
          </td>
        </tr>
<!-- dtl:block:Type -->
        <tr valign="top">
          <td><b>$Text{"State"}:</b></td>
          <td>
            <font color="red">
            <div title="$Quote{"$Text{"$Data{"State"}"}"}">$Quote{"$Text{"$Data{"State"}"}","18"}</div>
            </font>
          </td>
        </tr>
        <tr valign="top">
          <td><b>$Text{"Locked"}:</b></td>
          <td>
            <font color="red">
            <div title="$Quote{"$Text{"$Data{"Lock"}"}"}">$Quote{"$Text{"$Data{"Lock"}"}","18"}</div>
            </font>
          </td>
        </tr>
        <tr valign="top">
          <td><b>$Text{"Priority"}:</b></td>
          <td>
            <font color="red">
            <div title="$Quote{"$Text{"$Data{"Priority"}"}"}">$Quote{"$Text{"$Data{"Priority"}"}","18"}</div>
            </font>
          </td>
        </tr>
        <tr valign="top">
          <td><b>$Text{"Queue"}:</b></td>
          <td>
            <font color="red">
            <div title="$QData{"Queue"}">$QData{"Queue","18"}</div>
            </font>
          </td>
        </tr>
<!-- dtl:block:Service -->
        <tr valign="top">
          <td><b>$Text{"Service"}:</b></td>
          <td>
            <div title="$Text{"$Data{"Service"}"}">$Quote{"$Text{"$Data{"Service"}"}","18"}</div></font>
          </td>
        </tr>
<!-- dtl:block:Service -->
<!-- dtl:block:SLA -->
        <tr valign="top">
          <td><b>$Text{"SLA"}:</b></td>
          <td>
            <div title="$Text{"$Data{"SLA"}"}">$Quote{"$Text{"$Data{"SLA"}"}","18"}</div></font>
          </td>
        </tr>
<!-- dtl:block:SLA -->
<!-- dtl:block:FirstResponseTime -->
        <tr valign="top">
          <td><b>$Text{"First Response"}:</b></td>
          <td>
<!-- dtl:block:FirstResponseTimeFontStart -->
            <font color="red">
<!-- dtl:block:FirstResponseTimeFontStart -->
            <div title="$Text{"Service Time"}: $QData{"FirstResponseTimeWorkingTime"}">$QData{"FirstResponseTimeHuman"}
            <br>
            $TimeShort{"$QData{"FirstResponseTimeDestinationDate"}"}</div>
<!-- dtl:block:FirstResponseTimeFontStop -->
            </font>
<!-- dtl:block:FirstResponseTimeFontStop -->
          </td>
        </tr>
<!-- dtl:block:FirstResponseTime -->
<!-- dtl:block:UpdateTime -->
        <tr valign="top">
          <td><b>$Text{"Update Time"}:</b></td>
          <td>
<!-- dtl:block:UpdateTimeFontStart -->
            <font color="red">
<!-- dtl:block:UpdateTimeFontStart -->
            <div title="$Text{"Service Time"}: $QData{"UpdateTimeWorkingTime"}">$QData{"UpdateTimeHuman"}
            <br>
            $TimeShort{"$QData{"UpdateTimeDestinationDate"}"}</div>
<!-- dtl:block:UpdateTimeFontStop -->
            </font>
<!-- dtl:block:UpdateTimeFontStop -->
          </td>
        </tr>
<!-- dtl:block:UpdateTime -->
<!-- dtl:block:SolutionTime -->
        <tr valign="top">
          <td><b>$Text{"Solution Time"}:</b></td>
          <td>
<!-- dtl:block:SolutionTimeFontStart -->
            <font color="red">
<!-- dtl:block:SolutionTimeFontStart -->
            <div title="$Text{"Service Time"}: $QData{"SolutionTimeWorkingTime"}">$QData{"SolutionTimeHuman"}
            <br>
            $TimeShort{"$QData{"SolutionTimeDestinationDate"}"}</div>
<!-- dtl:block:SolutionTimeFontStop -->
            </font>
<!-- dtl:block:SolutionTimeFontStop -->
          </td>
        </tr>
<!-- dtl:block:SolutionTime -->
        <tr valign="top">
          <td><b>$Text{"CustomerID"}:</b></td>
          <td>
            <a href="$Config{"CustomerDBLink"}" $Config{"CustomerDBLinkTarget"}>$Quote{"$Data{"CustomerID"}","18"}</a>
          </td>
        </tr>
        <tr valign="top">
          <td><b>$Text{"Accounted time"}:</b></td>
          <td>$Data{"TicketTimeUnits"}</td>
        </tr>
        <tr valign="top">
          <td><b>$Text{"Escalation in"}:</b></td>
          <td>$Data{"TicketOverTime"}</td>
        </tr>
# use ticket is pending
        <dtl if ($Data{"PendingUntil"} ne "") { $Data{"PendingUntilString"} = "<tr valign="top"><td><b>$Text{"Pending till"}:</b></td><td>$Data{"PendingUntil"}</td></tr>"; }>
        $Data{"PendingUntilString"}
<!-- dtl:block:Owner -->
        <tr  valign="top">
          <td><b>$Text{"Owner"}:</b></td>
          <td>
            <div title="$QData{"UserLogin"} ($QData{"UserFirstname"}$QData{"UserLastname"})">$QData{"UserLogin","18"} ($Quote{"$Data{"UserFirstname"} $Data{"UserLastname"}","18"})</div>
          </td>
        </tr>
<!-- dtl:block:Owner -->
<!-- dtl:block:Responsible -->
        <tr  valign="top">
          <td><b>$Text{"Responsible"}:</b></td>
          <td>
            <div title="$QData{"UserLogin"} ($QData{"UserFirstname"}$QData{"UserLastname"})">$QData{"UserLogin","18"} ($Quote{"$Data{"UserFirstname"} $Data{"UserLastname"}","18"})</div>
          </td>
        </tr>
<!-- dtl:block:Responsible -->
# object links
        <tr valign="top">
          <td><b>$Text{"Linked"} ($Text{"Normal"}):</b></td>
          <td>
<!-- dtl:block:LinkNormal -->
            <a href="$Env{"Baselink"}$Data{"FrontendDest"}$QData{"ID"}" title="$QData{"Object"}: $QData{"Number"}">$QData{"Text"}</a>
<!-- dtl:block:LinkNormal -->
          </td>
        </tr>
        <tr valign="top">
          <td><b>$Text{"Linked"} ($Text{"Parent"}):</b></td>
          <td>
<!-- dtl:block:LinkParent -->
            <a href="$Env{"Baselink"}$Data{"FrontendDest"}$QData{"ID"}" title="$QData{"Object"}: $QData{"Number"}">$QData{"Text"}</a>
<!-- dtl:block:LinkParent -->
          </td>
        </tr>
        <tr valign="top">
          <td><b>$Text{"Linked"} ($Text{"Child"}):</b></td>
          <td>
<!-- dtl:block:LinkChild -->
            <a href="$Env{"Baselink"}$Data{"FrontendDest"}$QData{"ID"}" title="$QData{"Object"}: $QData{"Number"}">$QData{"Text"}</a>
<!-- dtl:block:LinkChild -->
          </td>
        </tr>
# use this if you want to show TicketFreeKey1-8 and TicketFreeText1-8
        <dtl if ($Data{"TicketFreeText1"} ne "") { $Data{"TicketFreeString1"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey1","25"}:</b></td><td><div title="$QData{"TicketFreeText1"}">$QData{"TicketFreeText1","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText2"} ne "") { $Data{"TicketFreeString2"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey2","25"}:</b></td><td><div title="$QData{"TicketFreeText2"}">$QData{"TicketFreeText2","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText3"} ne "") { $Data{"TicketFreeString3"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey3","25"}:</b></td><td><div title="$QData{"TicketFreeText3"}">$QData{"TicketFreeText3","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText4"} ne "") { $Data{"TicketFreeString4"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey4","25"}:</b></td><td><div title="$QData{"TicketFreeText4"}">$QData{"TicketFreeText4","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText5"} ne "") { $Data{"TicketFreeString5"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey5","25"}:</b></td><td><div title="$QData{"TicketFreeText5"}">$QData{"TicketFreeText5","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText6"} ne "") { $Data{"TicketFreeString6"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey6","25"}:</b></td><td><div title="$QData{"TicketFreeText6"}">$QData{"TicketFreeText6","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText7"} ne "") { $Data{"TicketFreeString7"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey7","25"}:</b></td><td><div title="$QData{"TicketFreeText7"}">$QData{"TicketFreeText7","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText8"} ne "") { $Data{"TicketFreeString8"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey8","25"}:</b></td><td><div title="$QData{"TicketFreeText8"}">$QData{"TicketFreeText8","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText9"} ne "") { $Data{"TicketFreeString9"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey9","25"}:</b></td><td><div title="$QData{"TicketFreeText9"}">$QData{"TicketFreeText9","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText10"} ne "") { $Data{"TicketFreeString10"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey10","25"}:</b></td><td><div title="$QData{"TicketFreeText10"}">$QData{"TicketFreeText10","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText11"} ne "") { $Data{"TicketFreeString11"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey11","25"}:</b></td><td><div title="$QData{"TicketFreeText11"}">$QData{"TicketFreeText11","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText12"} ne "") { $Data{"TicketFreeString12"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey12","25"}:</b></td><td><div title="$QData{"TicketFreeText12"}">$QData{"TicketFreeText12","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText13"} ne "") { $Data{"TicketFreeString13"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey13","25"}:</b></td><td><div title="$QData{"TicketFreeText13"}">$QData{"TicketFreeText13","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText14"} ne "") { $Data{"TicketFreeString14"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey14","25"}:</b></td><td><div title="$QData{"TicketFreeText14"}">$QData{"TicketFreeText14","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText15"} ne "") { $Data{"TicketFreeString15"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey15","25"}:</b></td><td><div title="$QData{"TicketFreeText15"}">$QData{"TicketFreeText15","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeText16"} ne "") { $Data{"TicketFreeString16"} = "<tr valign="top"><td><b>$QData{"TicketFreeKey16","25"}:</b></td><td><div title="$QData{"TicketFreeText16"}">$QData{"TicketFreeText16","25"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeTime1"} ne "") { $Data{"TicketFreeTimeString1"} = "<tr valign="top"><td><b>$Text{"$Config{"TicketFreeTimeKey1"}"}:</b></td><td><div title="$TimeShort{"$QData{"TicketFreeTime1"}"}">$TimeShort{"$QData{"TicketFreeTime1"}"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeTime2"} ne "") { $Data{"TicketFreeTimeString2"} = "<tr valign="top"><td><b>$Text{"$Config{"TicketFreeTimeKey2"}"}:</b></td><td><div title="$TimeShort{"$QData{"TicketFreeTime2"}"}">$TimeShort{"$QData{"TicketFreeTime2"}"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeTime3"} ne "") { $Data{"TicketFreeTimeString3"} = "<tr valign="top"><td><b>$Text{"$Config{"TicketFreeTimeKey3"}"}:</b></td><td><div title="$TimeShort{"$QData{"TicketFreeTime3"}"}">$TimeShort{"$QData{"TicketFreeTime3"}"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeTime4"} ne "") { $Data{"TicketFreeTimeString4"} = "<tr valign="top"><td><b>$Text{"$Config{"TicketFreeTimeKey4"}"}:</b></td><td><div title="$TimeShort{"$QData{"TicketFreeTime4"}"}">$TimeShort{"$QData{"TicketFreeTime4"}"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeTime5"} ne "") { $Data{"TicketFreeTimeString5"} = "<tr valign="top"><td><b>$Text{"$Config{"TicketFreeTimeKey5"}"}:</b></td><td><div title="$TimeShort{"$QData{"TicketFreeTime5"}"}">$TimeShort{"$QData{"TicketFreeTime5"}"}</div></td></tr>"; }>
        <dtl if ($Data{"TicketFreeTime6"} ne "") { $Data{"TicketFreeTimeString6"} = "<tr valign="top"><td><b>$Text{"$Config{"TicketFreeTimeKey6"}"}:</b></td><td><div title="$TimeShort{"$QData{"TicketFreeTime6"}"}">$TimeShort{"$QData{"TicketFreeTime6"}"}</div></td></tr>"; }>
        $Data{"TicketFreeString1"}
        $Data{"TicketFreeString2"}
        $Data{"TicketFreeString3"}
        $Data{"TicketFreeString4"}
        $Data{"TicketFreeString5"}
        $Data{"TicketFreeString6"}
        $Data{"TicketFreeString7"}
        $Data{"TicketFreeString8"}
        $Data{"TicketFreeString9"}
        $Data{"TicketFreeString10"}
        $Data{"TicketFreeString11"}
        $Data{"TicketFreeString12"}
        $Data{"TicketFreeString13"}
        $Data{"TicketFreeString14"}
        $Data{"TicketFreeString15"}
        $Data{"TicketFreeString16"}
        $Data{"TicketFreeTimeString1"}
        $Data{"TicketFreeTimeString2"}
        $Data{"TicketFreeTimeString3"}
        $Data{"TicketFreeTimeString4"}
        $Data{"TicketFreeTimeString5"}
        $Data{"TicketFreeTimeString6"}
      </table>
# show customer info table
<!-- dtl:block:CustomerTable -->
      <p>
        <hr>
        <b>$Text{"Customer Info"}:</b>
        $Data{"CustomerTable"}
        <hr>
      </p>
<!-- dtl:block:CustomerTable -->
<!-- dtl:block:Status -->
      <table border="0" cellspacing="0" cellpadding="1" width="95%">
        <tr>
          <td>
# show compose links
<!-- dtl:block:AgentIsCustomer -->
            <p>
              <b>$Text{"Your own Ticket"}:</b>
              <br>
              <table border="0">
                <tr>
                  <td>
                    <li><a href="$Env{"Baselink"}Action=AgentTicketCustomerFollowUp&TicketID=$Data{"TicketID"}" onmouseover="window.status='$JSText{"Compose Follow up"}'; return true;" onmouseout="window.status='';">$Text{"Compose Follow up"}</a></li>
                  </td>
                </tr>
              </table>
            </p>
<!-- dtl:block:AgentIsCustomer -->
<!-- dtl:block:AgentAnswer -->
<!-- dtl:block:AgentAnswerCompose -->
            <p>
              <b>$Text{"Compose Answer"} ($Text{"email"}):</b>
              <br>
              <table border="0">
                <tr>
                  <td>
                    $Data{"StdResponsesStrg"}
                  </td>
                </tr>
              </table>
            </p>
<!-- dtl:block:AgentAnswerCompose -->
<!-- dtl:block:AgentAnswerPhoneOutbound -->
            <p>
              <b>$Text{"Contact customer"} ($Text{"phone"}):</b>
              <br>
              <table border="0">
                <tr>
                  <td>
                    <li>
                    <a href="$Env{"Baselink"}Action=AgentTicketPhoneOutbound&TicketID=$Data{"TicketID"}&QueueID=$Data{"QueueID"}" onmouseover="window.status='$JSText{"Phone call"}'; return true;" onmouseout="window.status='';">$Text{"Phone call"}</a>
                    </li>
$Data{"AgentPhoneStrg"}
                  </td>
                </tr>
              </table>
            </p>
<!-- dtl:block:AgentAnswerPhoneOutbound -->
<!-- dtl:block:AgentAnswer -->
# show article links
<!-- dtl:block:AgentArticleCom -->
            <p>
              <b>$Text{"Article"}</b>
              <table border="0">
                <tr>
                  <td>
<!-- dtl:block:AgentArticleComForward -->
                    <a href="$Env{"Baselink"}Action=AgentTicketForward&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}&QueueID=$Data{"QueueID"}" onmouseover="window.status='$JSText{"Forward"}'; return true;" onmouseout="window.status='';">$Text{"Forward"}</a>
<!-- dtl:block:AgentArticleComForward -->
# check if bounce should be shown
<!-- dtl:block:AgentArticleComBounce -->
                    <dtl if ($Data{"ArticleType"} eq "email-external") { $Data{"ArticleBounceString"} = "Bounce"; }>
                    <dtl if ($Data{"SenderType"} ne "customer") { $Data{"ArticleBounceString"} = ""; }>
                    <a href="$Env{"Baselink"}Action=AgentTicketBounce&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}&QueueID=$Data{"QueueID"}" onmouseover="window.status='$JSText{"Bounce"}'; return true;" onmouseout="window.status='';">$Text{"$Data{"ArticleBounceString"}"}</a>
<!-- dtl:block:AgentArticleComBounce -->
# check if split should be shown
<!-- dtl:block:AgentArticleComPhone -->
                    <dtl if ($Data{"SenderType"} eq "customer") { $Data{"ArticleSplitString"} = "Split"; }>
                    <a href="$Env{"Baselink"}Action=AgentTicketPhone&ArticleID=$Data{"ArticleID"}&QueueID=$Data{"QueueID"}" onmouseover="window.status='$JSText{"Split"}'; return true;" onmouseout="window.status='';">$Text{"$Data{"ArticleSplitString"}"}</a>
<!-- dtl:block:AgentArticleComPhone -->
                  </td>
                </tr>
              </table>
            </p>
<!-- dtl:block:AgentArticleCom -->
          </td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td valign="bottom" class="PriorityID-$Data{"PriorityID"}">
<!-- dtl:block:Move -->
      <p>
        <b>$Text{"Change queue"}:</b><br>
        <form action="$Env{"CGIHandle"}" method="get">
          <input type="hidden" name="Action" value="AgentTicketMove">
          <input type="hidden" name="Subaction" value="InRage">
          <input type="hidden" name="QueueID" value="$QData{"QueueID"}">
          <input type="hidden" name="TicketID" value="$QData{"TicketID"}">
          $Data{"MoveQueuesStrg"}
          <input class="button" type="submit" value="$Text{"Move"}">
        </form>
      </p>
<!-- dtl:block:Move -->
    </td>
  </tr>
<!-- dtl:block:Body -->
<!-- dtl:block:Footer -->
</table>
<!-- dtl:block:Footer -->
