# --
# AgentTicketPrint.dtl - provides HTML print view
# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
# --
# $Id: AgentTicketPrint.dtl,v 1.38 2012/11/20 15:22:59 mh Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --

<table border="0" cellspacing="1" cellpadding="0" width="100%">
    <tr>
        <td class="mainhead">$Config{"Ticket::Hook"}: $QData{"TicketNumber"} / $QData{"Title"}</td>
    </tr>
</table>
<table border="0" cellspacing="1" cellpadding="10" width="100%">
    <tr>
        <td class="contentkey">
            $Text{"Ticket-Info"}:
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td width="50%" valign="top">
                        <table border="0" cellspacing="3" cellpadding="0" width="100%">
                            <tr>
                                <td class="contentkey" width="40%">$Text{"State"}:</td>
                                <td class="contentvalue" width="60%">$Text{"$Data{"State"}"}</td>
                            </tr>
                            <tr>
                                <td class="contentkey">$Text{"Priority"}:</td>
                                <td class="contentvalue">$Text{"$Data{"Priority"}"}</td>
                            </tr>
                            <tr>
                                <td class="contentkey">$Text{"Queue"}:</td>
                                <td class="contentvalue">$QData{"Queue"}</td>
                            </tr>
                            <tr>
                                <td class="contentkey">$Text{"Lock"}:</td>
                                <td class="contentvalue">$Text{"$Data{"Lock"}"}</td>
                            </tr>
                            <tr>
                                <td class="contentkey">$Text{"CustomerID"}:</td>
                                <td class="contentvalue">$QData{"CustomerID"}</td>
                            </tr>
                            <tr>
                                <td class="contentkey">$Text{"Owner"}:</td>
                                <td class="contentvalue">$QData{"Owner"} ($QData{"UserFirstname"} $QData{"UserLastname"})</td>
                            </tr>
<!-- dtl:block:Responsible -->
                            <tr>
                                <td class="contentkey">$Text{"Responsible"}:</td>
                                <td class="contentvalue">$QData{"ResponsibleString"}</td>
                            </tr>
<!-- dtl:block:Responsible -->
<!-- dtl:block:TicketType -->
                            <tr>
                                <td class="contentkey">$Text{"Type"}:</td>
                                <td class="contentvalue">$QData{"Type"}</td>
                            </tr>
<!-- dtl:block:TicketType -->
<!-- dtl:block:TicketService -->
                            <tr>
                                <td class="contentkey">$Text{"Service"}:</td>
                                <td class="contentvalue">$QData{"Service"}</td>
                            </tr>
                            <tr>
                                <td class="contentkey">$Text{"Service Level Agreement"}:</td>
                                <td class="contentvalue">$QData{"SLA"}</td>
                            </tr>
<!-- dtl:block:TicketService -->
                        </table>
                    </td>
                    <td width="50%" valign="top">
                        <table border="0" cellspacing="3" cellpadding="0" width="100%">
                            <tr>
                                <td class="contentkey" width="40%">$Text{"Age"}:</td>
                                <td class="contentvalue" width="60%">$QData{"Age"}</td>
                            </tr>
                            <tr>
                                <td class="contentkey">$Text{"Created"}:</td>
                                <td class="contentvalue">$TimeLong{"$Data{"Created"}"}</td>
                            </tr>
<!-- dtl:block:AccountedTime -->
                            <tr>
                                <td class="contentkey">$Text{"Accounted time"}:</td>
                                <td class="contentvalue">$QData{"TicketTimeUnits"}</td>
                            </tr>
<!-- dtl:block:AccountedTime -->
<!-- dtl:block:PendingUntil -->
                            <tr>
                                <td class="contentkey">$Text{"Pending till"}:</td>
                                <td class="contentvalue">$QData{"PendingUntil"}</td>
                            </tr>
<!-- dtl:block:PendingUntil -->
<!-- dtl:block:FirstResponseTime -->
                            <tr>
                                <td class="contentkey">$Text{"First Response Time"}:</td>
                                <td class="contentvalue">$TimeShort{"$QData{"FirstResponseTimeDestinationDate"}"}</td>
                            </tr>
<!-- dtl:block:FirstResponseTime -->
<!-- dtl:block:UpdateTime -->
                            <tr>
                                <td class="contentkey">$Text{"Update Time"}:</td>
                                <td class="contentvalue">$TimeShort{"$QData{"UpdateTimeDestinationDate"}"}</td>
                            </tr>
<!-- dtl:block:UpdateTime -->
<!-- dtl:block:SolutionTime -->
                            <tr>
                                <td class="contentkey">$Text{"Solution Time"}:</td>
                                <td class="contentvalue">$TimeShort{"$QData{"SolutionTimeDestinationDate"}"}</td>
                            </tr>
<!-- dtl:block:SolutionTime -->
                        </table>
                    </td>
                </tr>
            </table>
            <table border="0" cellspacing="3" cellpadding="0" width="100%">
                <tr>
                    <td width="20%"></td>
                    <td width="30%"></td>
                    <td width="20%"></td>
                    <td width="30%"></td>
                </tr>

<!-- dtl:block:TicketDynamicField -->
                <tr>
                    <td class="contentkey">$Text{"$Data{"Label"}"}:</td>
                    <td class="contentvalue">
                        <div title="$QData{"Title"}">$Data{"Value"}</div>
                    </td>
                </tr>
<!-- dtl:block:TicketDynamicField -->

# example of how to use fixed dynamic field blocks for customizations
# Note: Field1 and Field2 are the names of the fields and had to be replaced with the actual
# field names
#<!-- dtl:block:TicketDynamicField_Field1 -->
#               <tr>
#                   <td class="contentkey">$Text{"$Data{"Label"}"}:</td>
#                   <td class="contentvalue">
#                       <div title="$QData{"Title"}">$Data{"Value"}</div>
#                   </td>
#               </tr>
#<!-- dtl:block:TicketDynamicField_Field1 -->
#<!-- dtl:block:TicketDynamicField_Field2 -->
#               <tr>
#                   <td class="contentkey">$Text{"$Data{"Label"}"}:</td>
#                   <td class="contentvalue">
#                       <div title="$QData{"Title"}">$Data{"Value"}</div>
#                   </td>
#               </tr>
#<!-- dtl:block:TicketDynamicField_Field2 -->
            </table>
        </td>
    </tr>
<!-- dtl:block:Link -->
    <tr>
        <td class="contentkey">
            $Text{"Linked-Object"}:
            <table border="0" cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td width="50%" valign="top">
                        <table border="0" cellspacing="3" cellpadding="0" width="100%">
<!-- dtl:block:LinkType -->
                            <tr valign="top">
                                <td class="contentkey" width="20%">$Text{"$Data{"LinkTypeName"}"}:</td>
                                <td class="contentvalue">
<!-- dtl:block:LinkTypeRow -->
                                    $Data{"LinkStrg"}<br/>
<!-- dtl:block:LinkTypeRow -->
                                </td>
                            </tr>
<!-- dtl:block:LinkType -->
                        </table>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
<!-- dtl:block:Link -->
    <tr>
        <td colspan="4" class="contentkey">
            $Text{"Customer Info"}:
            $Data{"CustomerTable"}
        </td>
    </tr>
</table>
<!-- start ticket $Data{"TicketNumber"} -->
<!-- dtl:block:Article -->
<table border="0" width="640" cellpadding="0" cellspacing="0" bgcolor="#000000" class="container">
    <tr>
        <td>
            <table border="0" width="640" cellpadding="10" cellspacing="1" bgcolor="#ffffff">
                <tr>
                    <td>
                        <table border="0" width="100%" cellspacing="0" cellpadding="3">
                            <tr bgcolor="#ffffff">
                                <td valign="top" width="100%" class="small">
                                    <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","160"}</div></td>
                                        </tr>
<!-- dtl:block:Row -->
                                        <tr>
                                            <td class="contentkey">$Text{"Created"}:</td>
                                            <td class="contentvalue"> $TimeLong{"$Data{"Created"}"} $Text{"by"} $Text{"$Data{"SenderType"}"}</td>
                                        </tr>
# show Dynamic Fields for each Article
<!-- dtl:block:ArticleDynamicField -->
                                        <tr>
                                            <td class="contentkey" width="15%">$Text{"$Data{"Label"}"}:</td>
                                            <td class="contentvalue" width="85%">
                                                <div title="$QData{"Title"}">$Data{"Value"}</div>
                                            </td>
                                        </tr>
<!-- dtl:block:ArticleDynamicField -->
# example of how to use fixed dynamic field blocks for customizations
# Note: Field1 and Field2 are the names of the fields and had to be replaced with the actual
# field names
#<!-- dtl:block:ArticleDynamicField_Field1 -->
#                                        <tr>
#                                            <td class="contentkey" width="15%">$Text{"$Data{"Label"}"}:</td>
#                                            <td class="contentvalue" width="85%">
#                                                <div title="$QData{"Title"}">$Data{"Value"}</div>
#                                            </td>
#                                        </tr>
#<!-- dtl:block:ArticleDynamicField_Field1 -->
#<!-- dtl:block:ArticleDynamicField_Field2 -->
#                                        <tr>
#                                            <td class="contentkey" width="15%">$Text{"$Data{"Label"}"}:</td>
#                                            <td class="contentvalue" width="85%">
#                                                <div title="$QData{"Title"}">$Data{"Value"}</div>
#                                            </td>
#                                        </tr>
#<!-- dtl:block:ArticleDynamicField_Field2 -->
                                        <tr>
                                            <td class="contentkey">$Text{"Type"}:</td>
                                            <td class="contentvalue"> $Text{"$Data{"ArticleType"}"}
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="contentkey">$Text{"Attachment"}:</td>
                                            <td class="contentvalue"> $Data{"Article::ATM"}</td>
                                        </tr>
                                    </table>
$Data{"TextNote"}
                                    <pre>
$Data{"Body"}
                                    </pre>
                                </td>
                            </tr>
                        </table>
<!-- end ticket -->
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
<br/>
<!-- dtl:block:Article -->
