blob: aaded88e9124b19958ccd748ef16a1dc35b1e23c (
plain)
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
|
%#$Header: /home/cvs/cvsroot/freeside/rt/webrt/Search/Attic/TicketCell,v 1.1 2002-08-12 06:17:09 ivan Exp $
<% $link |n%><%$Column->{Constant} || eval("\$Ticket->$Column->{TicketAttribute}") || "-" %><% $endlink|n %>
<%INIT>
my $link = "";
my $endlink = "";
if ($Column->{TicketLink}) {
$link = "<A HREF=\"";
if ($Column->{TicketLink} == 1 ) {
$link .= "../Ticket/Display.html?";
}
else {
$link .= $Column->{TicketLink};
}
$link .= "id=".$Ticket->Id . $Column->{ExtraLinks};
if ($session{NewWindowOption}) {
$link .= "TARGET=\"TicketDisplay".$session{AlwaysNewWindowOption} && (time() . rand(1024))."\" ";
}
$link .= "\">";
$endlink = "</a>";
}
</%INIT>
<%ARGS>
$Ticket => undef
$Column => undef
</%ARGS>
|