1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232
|
# --
# 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 -->
|