
<html>

<head>
<title>[% $Title %]</title>
</head>

<body>

<h2>[% $Title %]</h2>

<div style="border:1px;border-color:black;">
            <table cellspacing="0" border="0" width="70%">
                <tr>
                    <th colspan="2"><h2>[% $user->gettext('Ticketdetails') %]</h2></th>
                </tr>
                <tr>
                    <td>[% $user->gettext('Kontakt') %] :</td>
                    <td>[% $ticket.name %] [% if $ticket.company != '' %]([% $ticket.company %])[% /if %]</td>
                </tr>
                <tr >
                    <td>[% $user->gettext('Kurzbeschr.') %] :</td>
                    <td>[% $ticket.ticketdescr %]</td>
                </tr>

                <tr >
                    <td>[% $user->gettext('Ticket ID') %] :</td>
                    <td>[% $ticket.id %]</td>
                </tr>
                
                [% if $ticket.gruppe|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Gruppe') %] :</td>
                        <td>[% $ticket.gruppe %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.supporter|trim != '' %]
                    <tr>
                        <td>[% $user->gettext('Supporter') %] :</td>
                        <td>[% $ticket.supporter %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.category1|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Kategorie 1') %]:</td>
                        <td>[% $ticket.category1 %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.category2|trim != '' %]
                    <tr>
                        <td>[% $user->gettext('Kategorie 2') %]:</td>
                        <td>[% $ticket.category2 %]</td>
                    </tr>
                [% /if %]
                <tr >
                    <td> [% $user->gettext('F&auml;llig am') %] :</td>
                    <td>[% if $ticket.desiredate != "" %][% $ticket.desiredate|date_format:"%d.%m.%Y %H:%M" %][% /if %]</td>
                </tr>
                <tr >
                    <td>[% $user->gettext('Priorit&auml;t') %] :</td>
                    <td>[% $user->gettext($ticket.priority) %]</td>
                </tr>
                [% if $ticket.diffonhold > 0 %]
                    <tr >
                        <td>[% $user->gettext('Zur&uuml;ckgestellt bis zum') %] :</td>
                        <td>[% $ticket.onhold|date_format:"%d.%m.%Y %H:%M" %]</td>
                    </tr>
                [% /if %]
                <tr >
                    <td>[% $user->gettext('Status') %] :</td>
                    <td>[% $user->gettext($ticket.tstatus) %]</td>
                </tr>
                [% if !$ticket.master && $ticket.ticketreferenzid > 0 %]
                    <tr >
                        <td>[% $user->gettext('TicketRef. ID') %] :</td>
                        <td>[% $ticket.ticketreferenzid %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.expense > 0 %]
                    <tr >
                        <td>[% $user->gettext('Aufwand in Min') %] :</td>
                        <td>[% $ticket.expense %]</td>
                    </tr>
                [% /if %]
                <tr >
                    <td>[% $user->gettext('Erstelldatum') %] :</td>
                    <td>[% $ticket.createdate|date_format:"%d.%m.%Y %H:%M" %]</td>
                </tr>
                [% if $ticket.master %]
                    <tr >
                        <td>[% $user->gettext('Masterticket') %] :</td>
                        <td><img src="images/master.gif" width="16" height="16" alt="" title="[% $user->gettext('Masterticket') %]" border="0"  /></td>
                    </tr>
                [% /if %]
                <tr >
                    <td>[% $user->gettext('Eskalationsstufe') %] :</td>
                    <td>[% if $ticket.escalationlevel > 0 %][% $ticket.escalationlevel %][% else %]0[% /if %]</td>
                </tr>
                <tr >
                    <td>[% $user->gettext('max. Eskalationsstufe') %] :</td>
                    <td>[% if $ticket.maxescalation > 0 %][% $ticket.maxescalation %][% else %]0[% /if %]</td>
                </tr>

            [% if $TicketURL != '' %]
                <tr>
                    <td>[% $user->gettext('Link') %]</td>
                    <td>:</td>
                    <td><a href="[% $TicketURL %]" target="_blank">[% $TicketURL %]</a></td>
                </tr>
            [% /if %]

            </table>

            <br />

</div>
<div style="border:1px;border-color:black;">
            [% if $Tools->FCS_Count($Formulars.1) %]
            <table border="0" width="70%">
                <tr>
                    <th ><h2>[% $user->gettext('Formular') %]:</h2></th>
                    <th >[% $Formulars.1.formname %] (Kategorie: [% $Formulars.1.categoryname %])</th>
                </tr>
                [% foreach from= $Formulars.1.fields item=value key=fieldname %]
                    <tr >
                        <td width="30%" valign="top" nowrap="nowrap">[% $fieldname %]:&nbsp;</td>
                        <td width="70%" valign="top" >[% $value|wordwrap:80:"\n":true|nl2br %]</td>
                    </tr>
                [% /foreach %]
            </table>

            <br />
</div>
<div style="border:1px;">
                [% if $Tools->FCS_Count($Formulars.2) %]
                
                <table border="0" width="70%">
                    <tr>
                        <th ><h2>[% $user->gettext('Formular') %]:</h2></th>
                        <th >[% $Formulars.2.formname %] (Kategorie: [% $Formulars.2.categoryname %])</th>
                    </tr>
                    [% foreach from= $Formulars.2.fields item=value key=fieldname %]
                        <tr class="[% cycle values="row1,row2" %]">
                            <td width="30%" valign="top" nowrap="nowrap">[% $fieldname %]:&nbsp;</td>
                            <td width="70%" valign="top" >[% $value|wordwrap:80:"\n":true|nl2br %]&nbsp;</td>
                        </tr>
                    [% /foreach %]
                </table>

                <hr />
                [% /if %]
                
            [% /if %]
            
</div>
<div style="border:1px;">
            <table cellspacing="0" border ="0" width="70%">
                <tr>
                    <th colspan="2"><h2>[% $user->gettext('Kontaktdetails') %]</h2></th>
                </tr>
                <tr><td colspan="2"><hr /></td></tr>
                [% if $ticket.name|trim != '' %]
                    <tr class="[% cycle values="row1,row2" %]">
                        <td>[% $user->gettext('Name') %] :</td>
                        <td>&nbsp;[% $ticket.name %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.company|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Firma') %] :</td>
                        <td>&nbsp;[% $ticket.company %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.email|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('E-Mail') %] :</td>
                        <td>&nbsp;[% $ticket.email %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.com_position|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Position') %] :</td>
                        <td>&nbsp;[% $ticket.com_position %]</td>
                    </tr>
                [% /if %]
                [% if $AssetDesk && $ticket.department|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Abteilung') %] :</td>
                        <td>&nbsp;[% $ticket.department %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.personalno|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Personalnr.') %] :</td>
                        <td>&nbsp;[% $ticket.personalno %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.street|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Strasse') %] :</td>
                        <td>&nbsp;[% $ticket.street %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.plz|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('PLZ') %] :</td>
                        <td>&nbsp;[% $ticket.plz %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.city|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Ort') %] :</td>
                        <td>&nbsp;[% $ticket.city %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.state|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Bundesland') %] :</td>
                        <td>&nbsp;[% $ticket.state %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.country|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Land') %] :</td>
                        <td>&nbsp;[% $ticket.country %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.phone|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Telefon') %] :</td>
                        <td>&nbsp;[% $ticket.phone %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.fax|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Fax') %] :</td>
                        <td>&nbsp;[% $ticket.fax %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.mobil|trim != '' %]
                    <tr >
                        <td>[% $user->gettext('Mobil') %] :</td>
                        <td>&nbsp;[% $ticket.mobil %]</td>
                    </tr>
                [% /if %]
                [% if $ticket.misc|trim != '' %]
                    <tr >
                        <td valign="top">[% $user->gettext('Zusatzinformation') %] :</td>
                        <td valign="top">[% $ticket.misc|nl2br %]&nbsp;</td>
                    </tr>
                [% /if %]
            </table>

</div>
<div style="border:1px;">
            <table cellspacing="0"  border="0" width="70%">
                <tr>
                    <th colspan="2"><h2>[% $user->gettext('Geräte') %]</h2></th>
                </tr>
                <tr>
                    <th>[% $user->gettext('GeräteID') %]</th>
                    <th>[% $user->gettext('Geräte Namen') %]</th>
                </tr>
                <tr><td colspan="2"><hr /></td></tr>
                [% foreach from=$Devices item=device %]
                    <tr >
                        <td nowrap="nowrap">&nbsp;[% $device.deviceid %]&nbsp;</td>
                        <td nowrap="nowrap">&nbsp;[% $device.hostname %]&nbsp;</td>
                    </tr>
                    <tr><td colspan="2"><hr /></td></tr>
                [% /foreach %]
            </table>
</div>
<div style="border:1px;">
            <table cellspacing="0"  border="0" width="70%">
                <tr>
                    <th colspan="4"><h2>[% $user->gettext('Bearbeitungen / Aktionen') %]</h2></th>
                </tr>
                <tr>
                    <th>[% $user->gettext('Beschreibung') %]</th>
                    <th>[% $user->gettext('Erstellt am') %]</th>
                    <th>[% $user->gettext('Benutzer') %]</th>
                    <th>[% $user->gettext('Status') %]</th>
                </tr>
                <tr><td colspan="5"><hr /></td></tr>
                [% foreach from=$events item=event %]
                    [% if $event.notpublic != 1 %]
                        <tr >
                            <td valign="top" style="white-space:normal;">[% if $event.notpublic == 1 %]<b>[% $user->gettext('Interne Notiz') %]</b><hr />[% /if %][% $event.eventdescr|nl2br %]</td>
                            <td valign="top" nowrap="nowrap">&nbsp;[% $event.createdate|date_format:"%d.%m.%Y %H:%M" %]&nbsp;</td>
                            <td valign="top" nowrap="nowrap">&nbsp;[% $event.name %]&nbsp;</td>
                            <td valign="top" nowrap="nowrap">&nbsp;[% $event.descr %]&nbsp;</td>
                        </tr>
                        <tr><td colspan="5"><hr /></td></tr>
                    [% /if %]
                [% /foreach %]
            </table>
</div>
<!-- Component Ticket end -->

</body>
</html>
