ich bin im OTRS Umfeld und auch hier sehr neu. Ich habe ein OTRS System am laufen, welches die LDAP angebunden hat. Im Kundenfrontend, soll der Kunde alle seine Tickets anzeigen lassen und diese auch anhand seiner UserID sortieren lassen. Die CustomerID ist die Firma, bei dieser Option funktioniert das Sortieren auch super (CustomerStatusView.dtl):
Code: Select all
<th width="25%">$Text{"CustomerID"}<br/>
<a href="$Env{"Baselink"}Action=$Env{"Action"}&SortBy=CustomerID&Order=Up&Limit=$LQData{"Limit"}&ShowClosedTickets=$LQData{"ShowClosed"}&Type=$LQData{"Type"}" onmouseover="window.status='$JSText{"sort upward"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Env{"Images"}up-small.png" alt="$Text{"up"}"></a> /
<a href="$Env{"Baselink"}Action=$Env{"Action"}&SortBy=CustomerID&Order=Down&Limit=$LQData{"Limit"}&ShowClosedTickets=$LQData{"ShowClosed"}&Type=$LQData{"Type"}" onmouseover="window.status='$JSText{"sort downward"}'; return true;" onmouseout="window.status='';"><img border="0" src="$Env{"Images"}down-small.png" alt="$Text{"down"}"></a>
</th>
Ansicht vom Quellcode unten:
Code: Select all
<td class="$Env{"Color"}"><div title="$Quote{"$Data{"CustomerUserID"}"}">$Quote{"$Data{"CustomerUserID"}","35"}</div>
<div title="$QData{"CustomerName"}">$QData{"CustomerName","35"}</div>
</td>
Lieben Gruß
Fabotz