# --
# AgentTicketZoom.dtl - provides HTML for AgentTicketZoom.pm
# Copyright (C) 2001-2005 Martin Edenhofer <martin+code@otrs.org>
# --
# $Id: AgentTicketZoom.dtl,v 1.4 2005/09/18 13:35:00 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" cols="2">
<tr>
  <td width="50%" class="mainhead">
    $Env{"Box0"}$Text{"Zoom"} $Config{"Ticket::Hook"}: $Data{"TicketNumber"} $Env{"Box1"}
#$QData{"Title","20"}
  </td>
  <td align="right" width="50%" class="mainhead">
    $Env{"Box0"}$Text{"Age"}: $Data{"Age"}$Env{"Box1"}
  </td>
</tr>
</table>
<table border="0" width="100%" cellspacing="0" cellpadding="3" cols="2">
<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='$Text{"$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" cols="2">
<!-- 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">
    $Data{"ArticleStrg"}
    </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 valign="top" width="15%"><b>$Text{"$Data{"Key"}"}:</b></td>
      <td width="85%"> <div title="$QData{"Value"}">$QData{"Value","160"}</div></td>
    </tr>
<!-- dtl:block:Row -->
    <tr>
      <td valign="top"><b>$Text{"Created"}:</b></td>
      <td> <div title="$TimeLong{"$Data{"Created"}"}">$TimeLong{"$Data{"Created"}"}</div></td>
    </tr>
# show the Article::FreeKey1-3 and Article::FreeText1-3
<!-- dtl:block:ArticleFreeText -->
    <tr>
      <td valign="top" width="15%"><b>$QData{"Key"}:</b></td>
      <td width="85%"> <div title="$QData{"Value"}">$QData{"Value","160"}</div></td>
    </tr>
<!-- dtl:block:ArticleFreeText -->
# --
# show FreeKey1-3 and FreeText1-3 (in other way like the block, so you could add link or somethin else)
# --
#<dtl if ($Data{"FreeKey1"} ne "") { $Data{"ArticleFreeString1"} = "<tr><td valign="top"><b>$QData{"FreeKey1"}:</b></td><td> $QData{"FreeText1"}</td></tr>"; }>
#<dtl if ($Data{"FreeKey2"} ne "") { $Data{"ArticleFreeString2"} = "<tr><td valign="top"><b>$QData{"FreeKey2"}:</b></td><td> $QData{"FreeText2"}</td></tr>"; }>
#<dtl if ($Data{"FreeKey3"} ne "") { $Data{"ArticleFreeString3"} = "<tr><td valign="top"><b>$QData{"FreeKey3"}:</b></td><td> $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 valign="top" width="15%"><b>$Text{"$Data{"Key"}"}:</b></td>
      <td 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 valign="top" width="15%"><b>$Text{"$Data{"Key"}"}:</b></td>
      <td 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='$Text{"$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>
#$Data{"Value"}</div>
<!-- dtl:block:ArticleAttachmentRow -->
        </table>
      </td>
    </tr>
<!-- dtl:block:ArticleAttachment -->

  </table>
$Data{"BodyNote"}
<div class="message">
$Data{"Body"}
</div>
  </td>
  <td width="25%" align="left" valign="top" class="PriorityID-$Data{"PriorityID"}">
# --
# show ticket status (state, lock, ...)
$Data{"TicketStatus"}
# --

    <table border="0" cellspacing="0" cellpadding="1" width="95%">
    <tr>
      <td>
# --
# show compose links
<!-- dtl:block:AgentIsCustomer -->
   <p align="left">
     <b>$Text{"Your own Ticket"}:</b>
     <br>
     <table border="0">
       <tr align="left">
         <td>
     <li><a href="$Env{"Baselink"}Action=AgentTicketCustomerFollowUp&TicketID=$Data{"TicketID"}" onmouseover="window.status='$Text{"Compose Follow up"}'; return true;" onmouseout="window.status='';">$Text{"Compose Follow up"}</a></li>
         </td>
       </tr>
     </table>
   </p>
<!-- dtl:block:AgentIsCustomer -->

<!-- dtl:block:AgentAnswer -->
   <p align="left">
     <b>$Text{"Compose Answer"} ($Text{"email"}):</b>
     <br>
     <table border="0">
       <tr align="left">
         <td>
         $Data{"StdResponsesStrg"}
         </td>
       </tr>
     </table>
   </p>

   <p align="left">
     <b>$Text{"Contact customer"} ($Text{"phone"}):</b>
     <br>
     <table border="0">
       <tr align="left">
         <td>
<dtl if ($Data{"AgentTicketPhone"} ne "0") { $Data{"AgentPhoneStrg"} = "<li><a href="$Env{"Baselink"}Action=AgentTicketPhone&TicketID=$Data{"TicketID"}&QueueID=$Data{"QueueID"}" onmouseover="window.status='$Text{"Phone call"}'; return true;" onmouseout="window.status='';">$Text{"Phone call"}</a></li>"; }>
$Data{"AgentPhoneStrg"}
         </td>
       </tr>
     </table>
   </p>
<!-- dtl:block:AgentAnswer -->
# --
# show article links
<!-- dtl:block:AgentArticleCom -->
   <p>
     <b>$Text{"Article"}</b>
     <table border="0">
       <tr align="left">
         <td>
     <a href="$Env{"Baselink"}Action=AgentTicketForward&TicketID=$Data{"TicketID"}&ArticleID=$Data{"ArticleID"}&QueueID=$Data{"QueueID"}" onmouseover="window.status='$Text{"Forward"}'; return true;" onmouseout="window.status='';">$Text{"Forward"}</a>
# check if bounce should be shown
    <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='$Text{"Bounce"}'; return true;" onmouseout="window.status='';">$Text{"$Data{"ArticleBounceString"}"}</a>
# check if split should be shown
    <dtl if ($Data{"SenderType"} eq "customer") { $Data{"ArticleSplitString"} = "Split"; }>

    <a href="$Env{"Baselink"}Action=AgentTicketPhone&ArticleID=$Data{"ArticleID"}&QueueID=$Data{"QueueID"}" onmouseover="window.status='$Text{"Split"}'; return true;" onmouseout="window.status='';">$Text{"$Data{"ArticleSplitString"}"}</a>
         </td>
       </tr>
     </table>
   </p>
<!-- dtl:block:AgentArticleCom -->

# --
      </td>
    </tr>
    </table>
  </td>
</tr>
<tr>
  <td align="left" valign="bottom" class="PriorityID-$Data{"PriorityID"}">
   <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>
  </td>
</tr>
<!-- dtl:block:Body -->
<!-- dtl:block:Footer -->
</table>
<!-- dtl:block:Footer -->

